LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 10-30-2012, 10:40 AM   #1
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Having trouble with wireless network in lfs


My atheros wireless card is obviously loaded as I'm able to ping my router & get response. I installed wpa_supplicant set SSID & Passphrase but everytime I try to get online get message "unknown host".
Os LFS7.2.
Btw "iwlist wlan0 scan" does list the available networks.

Last edited by EDDY1; 10-30-2012 at 01:14 PM.
 
Old 10-30-2012, 02:34 PM   #2
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
Quote:
Originally Posted by EDDY1

...but everytime I try to get online get message "unknown host".
Since everything else appears to be working, consider DNS resolution for this last problem. Have you got some nameservers in /etc/resolv.conf? Or if you do, try some different ones, say, OpenDNS's (208.67.222.222, 208.67.220.220) or Google's (8.8.8.8 and 8.8.4.4).
 
Old 10-30-2012, 07:26 PM   #3
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Original Poster
Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I looked in my /etc/hosts file & it was empty so I included my dns nameserver but it didn't change anything.
What I have installed is wpa_supplicant & dhcpcd also network support for ethernet, which is not necessary as I'm not closed to an ethernet cord. I would like to know what steps I can take to remove all network & dhcpcd software & reinstall.
 
Old 10-30-2012, 07:30 PM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Original Poster
Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I saw this post after posting but would like to know if "make uninstall" would work in my case as my packages were installed from sources directory.
 
Old 10-30-2012, 08:55 PM   #5
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
Quote:
Originally Posted by EDDY1

I looked in my /etc/hosts file & it was empty so I included my dns nameserver but it didn't change anything.
Put those in /etc/resolv.conf. See section 7.2.3 of the LFS 7.2 book.

Since scanning finds networks, then your device and driver are working IMO. And you said you can ping your router, so you have established a connection with it IMO. To me, wpa_supplicant has negotiated an encrypted connection with the router, and dhcpcd has acquired an IP address from it. If you can't ping an Internet URL, then try pinging an Internet IP address. Say, one for www.google.com such as 173.194.75.104. If the IP address does get replies, then that sort of confirms DNS resolution as the issue.

Last edited by stoat; 10-30-2012 at 09:08 PM.
 
Old 10-30-2012, 09:17 PM   #6
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Original Poster
Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Thank you on my back to 7.2.3 post back in a few
 
Old 11-02-2012, 09:15 AM   #7
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Original Poster
Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I tried pinging an ip address no luck.
I also was able to use wpa_cli & got CTRL-EVENTS AP-AVAILABLE, after going thru all of the steps in wpa_cli & getting ok still not connecting.
 
Old 11-02-2012, 09:52 AM   #8
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
can you please post the following:
Code:
ping -c 5 64.235.229.141
ping -c 5 www.02144.com
edit: while your at it please post the following diagnostic info:
Code:
echo uname: && uname -a -m -p && echo lspci: && lspci -v -v -v | awk '{RS=""} $0 ~ /Ethernet controller/ || $0 ~ /Network controller/' && echo lsusb: && lsusb && echo lsmod: && lsmod && echo ifconfig: && ifconfig && echo ifconfig -a: && ifconfig -a && echo iwconfig: && iwconfig && echo resolv.conf: && cat /etc/resolv.conf && echo route: && route -n

Last edited by schneidz; 11-04-2012 at 09:06 PM.
 
Old 11-04-2012, 01:48 PM   #9
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Original Poster
Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
FInally figured out my problem. I read up on dhcp & dhcpcd & obviously installed the wrong 1 should've installed dhcp instead of dhcpcd. Itns going to be a few days before I get back to install but positive that is issue. Also after playing with wpa_cli iwconfig showed my network was associated but couldn't get to internet.
 
Old 11-13-2012, 03:02 AM   #10
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Original Poster
Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I'm finally able to connect to internet, although I did reinstall lfs.
This time I didn't use dhcpcd, nor did I use dhcp.
When I installed wpa_supplicant I went ahead & installed dbus & it's dependencies & reinstalled lfs-bootscripts.

The only problem that I have is that network doesn't survive reboot.
On boot I get message: [ 8.031913] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready.
For 1 the dwext driver isn't loaded automatically.
Each time I want to connect to network I have to use wpa_cli & enter everything manually.

I need to work on it a little bit more & try to get dwext to load on boot
 
Old 11-15-2012, 09:23 AM   #11
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
Quote:
Originally Posted by EDDY1

I need to work on it a little bit more & try to get dwext to load on boot
I haven't had the opportunity or need to use wireless for my BLFS systems yet, but I did this sort of stuff manually and with scripts for years with various distros before I ever heard of NetworkManager. Anyway, I don't think you have to worry about wext getting loaded. If you are establishing the connection satisfactorily by hand after booting, then consider a custom init script to do those final chores that you're doing manually.
 
Old 11-15-2012, 10:18 AM   #12
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Original Poster
Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I just saved my commands for wpa_cli to a file to copy & paste.
 
Old 11-15-2012, 10:57 AM   #13
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
Quote:
Originally Posted by EDDY1

I just saved my commands for wpa_cli to a file to copy & paste.
Very well.

For fun someday, take that text file with the commands that you mentioned, add a bash shebang line at the top, save it with an appropriate name in /etc/rc.d/init.d, make it executable, create a symlink to it in /etc/rc.d/rc3.d as the last script to start, reboot and see if you're connected. It might work.
 
Old 11-15-2012, 04:44 PM   #14
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
i know in fedora you can put commands in /etc/rc.local and they will run when the system boots up.

or you can put stuff in ~/.profile or ~.bash_profile and they will run when that user logs in.

or you can put an @reboot entry in your crontab and the command will run after every reboot.


there are many ways to skin this cat.
 
Old 11-16-2012, 10:40 PM   #15
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Original Poster
Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Lost my system installing pam so I had to start all over.
 
  


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
trouble connecting 10.04 to a wireless network OriginalCynic Linux - Newbie 3 10-03-2010 11:05 PM
Trouble with wireless network card... Crobat Slackware 1 01-14-2007 02:41 PM
SuSE 10 wireless network trouble superbondbond SUSE / openSUSE 1 10-26-2005 11:09 PM
Trouble Connecting to Wireless Network halfpower *BSD 2 09-06-2005 06:55 AM
Mandrake 10 Network Wireless trouble Emp Mandriva 4 07-08-2004 06:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:17 AM.

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