LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 08-29-2012, 12:00 PM   #1
Beanz239
LQ Newbie
 
Registered: Feb 2009
Location: Phoenix, AZ
Distribution: Linux Mint
Posts: 28

Rep: Reputation: 0
Connecting to wi-fi with console only


I recently started getting into the text-only side of Linux by using a minimal Debian install on my Dell Latitude D830 laptop. I'm really confused at the moment, though on a few things...

I tried following this guide, but I ran into an issue. I currently don't have access to an actual LAN connection (not to mention, I tried installing these packages on a VM and none of them worked), but I can download apt packages on another computer to install on my laptop.

So I really need to know A: What packages I do need for wi-fi, B: How to install them remotely, C: How to make sure my drivers are indeed working and installed, and D: How to get it running once I actually have those packages collected and installed.

Sorry to have so many questions jam packed into one post, but it would have been ridiculous to jump around posting each time I got just one step closer.
 
Old 08-29-2012, 12:45 PM   #2
segmentation_fault
Member
 
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 332

Rep: Reputation: 55
To check if the appropriate kernel modules are loaded you can issue
Code:
$ lspci -k
In order to get a wifi connection you need wpa supplicant (if the network is encrypted with wpa/wpa2), and dhcp. I can't help you exactly how to install them (they may are already installed); you can download the .deb files and install them with dpkg (check the man page).

You need to edit the /etc/wpa_supplicant.conf with your network settings. Mine looks like this
Code:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel

network={
  ssid="Panos"
  scan_ssid=1
  key_mgmt=WPA-PSK
  psk="<removed>"
}
and then start/restart the service. I believe in Debian it is
Code:
$ service wpa_supplicant restart
or something like that.
Then you need to call the dhcp client. On my machine I do this
Code:
$ dhcpcd -t 60 wlan0
Of course somewhere in /etc/ you can set it to auto execute. Eg on Gentoo this is done in /etc/conf.d/net

If your router doesn't have dhcp server, you need 3 steps:
Code:
#give an IP to the adapter
$ ifconfig wlan0 inet XXX.XXX.XXX.XXX netmask 255.255.255.0 up
#set up routing table
$ route add -net default gw <your-router-IP> wlan0
#set up the dns in /etc/resolv.conf
$ echo "nameserver <your-router/dns-IP>" > /etc/resolv.conf
You can check the man pages of the tools for more details.
I hope this helps a bit.
 
Old 08-29-2012, 12:50 PM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
You need wireless tools, wpa_supplicant, your wifi driver (WHAT'S THE CARD??) and wifi card firmware, and dhcpcd or dhclient.

Specifically iwconfig, iwlist, wpa_supplicant, and startup scripts. With a debian, use

to install, sudo apt-get <something> and emerge and stuff. Never got into it myself.

The guide doesn't mention wpa_supplicant. Is your network open. Better make it so until you connect unless you're living in pirate's den :-).

Also look at
http://www.linuxwireless.org/en/users/Drivers

find your card, and follow line by line the instructions.
 
Old 08-29-2012, 08:51 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,979

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
(not to mention, I tried installing these packages on a VM and none of them worked),

You don't usually use the client in a vm to connect. You let the host connect and the vm would be a nat of the host.
 
Old 08-29-2012, 09:01 PM   #5
abrinister
Member
 
Registered: Dec 2010
Location: Boston, MA, USA
Distribution: Arch Linux
Posts: 460

Rep: Reputation: 38
Try netcfg. It makes everything a lot easier.

Alex Brinister
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
connecting to cisco console seaking1 Linux - Hardware 3 06-09-2009 01:29 PM
connecting to a console port dlynch912 Solaris / OpenSolaris 2 01-15-2007 02:06 PM
Connecting to the web & Solaris Management Console woes ... RuralTurtle Solaris / OpenSolaris 26 10-13-2006 03:37 PM
Connecting a console to a monitor help! Mega Man X General 2 09-29-2006 08:15 PM
Problems connecting to Cisco Catalyst switch via Console irotas Linux - Networking 1 01-03-2006 06:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 06:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration