Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
lspci -v will list the name of the wireless card. This will help to check if the appropriate module is loaded at startup. You can check this with lsmod.
You can check to see if the device is available with 'ifconfig -a' which shows the devices even if down.
As root you can use the below to configure a static IP with encryption for your wlan on your LAN;
Code:
~#ifconfig wlan0 192.168.0.18 #<<< available IP
~#route add default gw 192.168.0.1 #<<your gateway
~#iwlist wlan0 scan #<< use information to fill in for essid & ap information
~#iwconfig wlan0 essid "Your Wireless"
~#iwconfig wlan0 key your_key_here
~#iwconfig wlan0 ap xx:xx:xx:xx:xx:xx #<<Your _ap_from iwlist
You should have your '/etc/resolv.conf' setup with your 'ISP DNS' nameservers.
Code:
sample '/etc/resolv.conf';
search 192.168.0.1
nameserver xxx.xxx.xxx.xxx #ISP DSN 'replace xxx.xxx.xxx.xxx
#with IP from your ISP
nameserver 4.2.2.1 #Verizon third level DNS
nameserver 4.2.2.2
nameserver 4.2.2.3
nameserver 4.2.2.4
Another way to setup static IP without encryption then do as root from cli;
Code:
~#ifconfig -a #get recognized devices
~#ifconfig wlan0 192.168.0.10 #set to a available IP
~#route add default gw 192.168.0.1 #set to your gateway
~#route -n #show the route table
~#ifconfig wlan0 up #should be up already
~#ping 192.168.0.1 #ping your gateway
~#ping 208.69.32.130 #google.com IP
~#ping google.com #test DNS, if fail then
#check /etc/resolv.conf
This one assumes that your LAN/AP is setup properly for access.
BTW, make sure your '/etc/resolv.conf' has your nameservers for your 'ISP DNS'. I use the third level DNS as a fallback.
Thanks so much for the info but it seems I'm a bit confused. I don't have an ip address, I log into free wifi at the cafe. How can I get iwconfig to show me the available networks and then connect to the one I select? I ran ifconfig and am attaching the result. Can either of you explain what the info means??? Thanks.
Thanks so much for the info but it seems I'm a bit confused. I don't have an ip address, I log into free wifi at the cafe. How can I get iwconfig to show me the available networks and then connect to the one I select? I ran ifconfig and am attaching the result. Can either of you explain what the info means??? Thanks.
palmweaver
I don't see a 'wlan' device in the output you provided. What do you see in your 'lspic -vv' for the wireless device?
I ran lspci -v and it comes up as a Broadcom wireless modem on IRQ 11. Now, I remember that when the boot up occurs, it sees the WLAN card and tries to recognize it and reports failed in the right column where everything else is 'passed'. So, I ran lsmod but I couldn't see any wireless module. I don't really know what a module is anyway. But maybe that's it. I need to load a module. Is that the same as 'drivers'? Any help much appreciated. By the way, I'm a US expat living in Australia now. From Kansas. Near you, eh?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.