LinuxQuestions.org
Help answer threads with 0 replies.
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 07-08-2005, 08:54 PM   #1
litlmary
Member
 
Registered: May 2005
Location: Texas, somewhere near Houston (I think)
Distribution: See my sig
Posts: 308

Rep: Reputation: 30
Where did my web go?


I have 2 questions about my wireless setup.

For those of you who know me I finally relented on trying to get that awesome realtek driver to compile with gcc4 and went with ndiswrapper (yuk)

1) when I add "alias wlan0 ndiswrapper" to my modprobe.conf file the module still does not load on startup. I can load the module manually with "modprobe ndiswrapper" and the wireless card lights up perfectly, albeit with a crappy windows driver. Of course, I also have to manually UNload the driver before shutting down or the computer freaks out.

2) I created a startup script in init.d and linked to it in rc5.d that looked like this:
Code:
iwconfig wlan0 mode managed
iwconfig wlan0 essid PC_SUPREME
iwconfig wlan0 channel 6
dhclient wlan0
Of course, I have to run the script manually after I have loaded the module, because the module isn't loading like it is supposed to (re: question 1 above).

Once I run the script it ties into my network perfectly. I can ping my NAT box and access its browser-based setup dialogs. I can ping other computers. I just can't access the outside of my NAT box. I have no web. I know the problem is not in the NAT box because the same rig works fine on the same computer in XP (it is a dual boot machine). I also have what looks like a good routing table, too.

So, 1) how can I get the ndiswrapper module to load/unload automatically and 2) why don't I have web?

TIA
 
Old 07-08-2005, 09:36 PM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
1) Run "ndiswrapper -m"
2) Post your routing table (run "route"). Also what was the output of dhclient?
 
Old 07-08-2005, 10:38 PM   #3
litlmary
Member
 
Registered: May 2005
Location: Texas, somewhere near Houston (I think)
Distribution: See my sig
Posts: 308

Original Poster
Rep: Reputation: 30
Thanks for the quick reply.

1) "ndiswrapper -m" did the same thing I did, only it did it wrong.

my modprobe.conf looked like this:
Code:
alias usb-controller uhci-hcd
and ndiswrapper modified it to look like this:
Code:
alias usb-controller uhci-hcdalias wlan0 ndiswrapper
so I modified it to look like this:
Code:
alias usb-controller uhci-hcd

alias wlan0 ndiswrapper
and took credit for it in my original post in this thread.

2) Route looks like this:
Code:
192.168.1.0     *               255.255.255.0   U     0      0        0 wlan0
169.254.0.0     *               255.255.0.0     U     0      0        0 lo
default         192.168.1.1     0.0.0.0         UG    0      0        0 wlan0
dhclient is running quietly for some reason. I can't see what all it is doing when it runs. How do I get it to run verbose?


Side Q: Any hint which RPM on the CD's will get dhcpcd installed? I don't have it right now.

Thanks!

Last edited by litlmary; 07-08-2005 at 11:06 PM.
 
Old 07-09-2005, 12:18 AM   #4
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Which distro are you running?

1) You could put it in /etc/rc.d/rc.modules (slackware) or /etc/modules (debian). I don't know what would automatically unload (how about putting the command in a shutdown script?).

2) "dhclient -d" maybe? It is supposed to be verbose by default. Also have you checked if it is a DNS issue:
cat /etc/resolv.conf
ping www.google.com
ping http://64.233.161.99
And what is the 169 lo route you have for? And check the firewall (iptables -L).
 
Old 07-09-2005, 12:41 PM   #5
litlmary
Member
 
Registered: May 2005
Location: Texas, somewhere near Houston (I think)
Distribution: See my sig
Posts: 308

Original Poster
Rep: Reputation: 30
We are dealing with Fedora Core 4 here.

There is no /etc/rc.d/rc.modules (I guess it is slackware only???) or /etc/modules (I would think that this is the debian equivalent to my /etc/modules.conf).

Here's what's weird: for a little while I had the startup script loading the module and doing all that you see above, I had web just fine. I had a shutdown script that was supposed to unload the module for me, but it didn't work. I started tinkering with the whole rig to make the module load and unload without being forced by scripts and this is what I got.

dhclient -d didn't get me a verbose output. Funny thing is, if I use the startup script that I wrote, I will see a verbose output before the screen switches to a login GUI. Is there a log file that I could dig this out of for you?

Also kind of weird, I didn't have to specify a device for dhclient. It just went to the NAT box and got an address for the NIC without me having to tell it wlan0.

I (foolishly) didn't check before I booted back into XP to write this, but if dhclient is successfully getting me an IP address, shouldn't it be getting me DNS addresses? Of course, I have seen this be a source of web headaches in the past, so I will go back and check it after I submit this post and come back with the result.

Pinging outside addresses is how I check my web. Opening a browser takes too long on a PII400

I have no idea what the lo route is for. It has always been there.

Back shortly...

Last edited by litlmary; 07-09-2005 at 05:50 PM.
 
Old 07-09-2005, 01:12 PM   #6
litlmary
Member
 
Registered: May 2005
Location: Texas, somewhere near Houston (I think)
Distribution: See my sig
Posts: 308

Original Poster
Rep: Reputation: 30
So maybe it is a DNS issue.

resove.conf looks like this:
Code:
; generated by /sbin/dhclient-script
What should I be looking for?

How can I get to the output of dhclient to help figure out what is going wrong?

Or perhaps someone can help me get dhcpcd installed? I know it is on one of those cd's...
 
Old 07-09-2005, 04:23 PM   #7
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
The resolv.conf should have a "nameserver some.ip.add.ress". For some reason dhclient didn't add it. I'm guessing "nameserver 192.168.1.1" would work.
 
Old 07-09-2005, 06:04 PM   #8
litlmary
Member
 
Registered: May 2005
Location: Texas, somewhere near Houston (I think)
Distribution: See my sig
Posts: 308

Original Poster
Rep: Reputation: 30
That worked I am typing this from Linux.

Now, I have web on startup but the NIC is still not shutting down on restarts. It is also not being shut down when the computer is shut down, but it goes off when the machine powers off, so I guess that will work.

I previously had created a script in /etc/rc.d/init.d and linked to it in /etc/rc.d/rc6.d to make the NIC shut down on restarts, but it didn't work. Maybe I did something wrong. I'll give you the specifics of how I did it if you want them to help me out.

What would really thrill me is to be able to do all this with Wireless Assistant:

http://www.kde-apps.org/content/show.php?content=21832

but I don't have dhcpcd available to make it tick (that's why I keep asking about it).

With that little sucker I would be able to tie into the wireless networks at IHOP and Starbucks without bugging the incompetent staff for network details that they probably don't know.
 
Old 07-09-2005, 11:29 PM   #9
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
http://www.phystech.com/download/dhcpcd.html
I don't know if it is in fedora anymore... obsolete or something. You can get the source from above.
 
Old 07-10-2005, 06:58 AM   #10
litlmary
Member
 
Registered: May 2005
Location: Texas, somewhere near Houston (I think)
Distribution: See my sig
Posts: 308

Original Poster
Rep: Reputation: 30
Yeah, I found that handy stuff.

Flubbed up makefile is what its got. It looks like I will be able to get by with just dhclient anyway.

I tried installing Wireless Assistant and ran into a dependency issue. It needs kdelibs3, which I can't find on the cd's either. Any idea where I can get THAT on the web?

Last edited by litlmary; 07-10-2005 at 03:38 PM.
 
Old 07-10-2005, 04:21 PM   #11
litlmary
Member
 
Registered: May 2005
Location: Texas, somewhere near Houston (I think)
Distribution: See my sig
Posts: 308

Original Poster
Rep: Reputation: 30
Wait. Isn't kdelibs3 an integral part of kde? Why is this ap looking for it? It has to be there!

 
Old 07-10-2005, 05:53 PM   #12
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Maybe it wants another version. What was the makefile message?
 
Old 07-11-2005, 01:52 PM   #13
litlmary
Member
 
Registered: May 2005
Location: Texas, somewhere near Houston (I think)
Distribution: See my sig
Posts: 308

Original Poster
Rep: Reputation: 30
I first had the dependency issue thrown at me when I tried using an rpm that someone compiled.

So I tried compiling from the source. I got this from make (ready?)
Code:
cd . && autoheader
touch ./config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make  all-recursive
make[1]: Entering directory `/data/Wireless Assistant/wlassistant-0.5.0'
Making all in po
make[2]: Entering directory `/data/Wireless Assistant/wlassistant-0.5.0/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/data/Wireless Assistant/wlassistant-0.5.0/po'
Making all in src
make[2]: Entering directory `/data/Wireless Assistant/wlassistant-0.5.0/src'
/usr/lib/qt-3.3/bin/uic -L /usr/lib/kde3/plugins/designer -nounload -o ui_main.h ./ui_main.ui
/usr/bin/kconfig_compiler ./waconfig.kcfg ./waconfig.kcfgc; ret=$?; \
if test "$ret" != 0; then rm -f waconfig.h ; exit $ret ;  fi
source='main.cpp' object='main.o' libtool=no \
depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \
depmode=gcc3 /bin/sh ../admin/depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/lib/qt-3.3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  -c -o main.o `test -f 'main.cpp' || echo './'`main.cpp
/usr/lib/qt-3.3/bin/moc ./ui_confgeneral.h -o ui_confgeneral.moc
source='ui_confgeneral.cpp' object='ui_confgeneral.o' libtool=no \
depfile='.deps/ui_confgeneral.Po' tmpdepfile='.deps/ui_confgeneral.TPo' \
depmode=gcc3 /bin/sh ../admin/depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/lib/qt-3.3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  -c -o ui_confgeneral.o `test -f 'ui_confgeneral.cpp' || echo './'`ui_confgeneral.cpp
ui_confgeneral.h:27: error: expected class-name before ‘{’ token
ui_confgeneral.h:28: error: ISO C++ forbids declaration of ‘Q_OBJECT’ with no type
ui_confgeneral.h:30: error: expected ‘;’ before ‘public’
ui_confgeneral.h:35: error: expected `:' before ‘slots’
ui_confgeneral.h:38: error: expected primary-expression before ‘protected’
ui_confgeneral.h:38: error: ISO C++ forbids declaration of ‘slots’ with no type
ui_confgeneral.h:38: error: expected ‘;’ before ‘protected’
ui_confgeneral.h:44: error: expected `;' before ‘}’ token
ui_confgeneral.cpp:24: error: expected `)' before ‘*’ token
/usr/lib/qt-3.3/include/private/qucom_p.h:69: warning: ‘struct QUBuffer’ has virtual functions but non-virtual destructor
/usr/lib/qt-3.3/include/private/qucom_p.h:77: warning: ‘struct QUType’ has virtual functions but non-virtual destructor
/usr/lib/qt-3.3/include/private/qucom_p.h:104: warning: ‘struct QUType_Null’ has virtual functions but non-virtual destructor
/usr/lib/qt-3.3/include/private/qucom_p.h:287: warning: ‘struct QUType_enum’ has virtual functions but non-virtual destructor
/usr/lib/qt-3.3/include/private/qucom_p.h:307: warning: ‘struct QUType_ptr’ has virtual functions but non-virtual destructor
/usr/lib/qt-3.3/include/private/qucom_p.h:326: warning: ‘struct QUType_iface’ has virtual functions but non-virtual destructor
/usr/lib/qt-3.3/include/private/qucom_p.h:345: warning: ‘struct QUType_idisp’ has virtual functions but non-virtual destructor
/usr/lib/qt-3.3/include/private/qucom_p.h:364: warning: ‘struct QUType_bool’ has virtual functions but non-virtual destructor
/usr/lib/qt-3.3/include/private/qucom_p.h:383: warning: ‘struct QUType_int’ has virtual functions but non-virtual destructor
/usr/lib/qt-3.3/include/private/qucom_p.h:403: warning: ‘struct QUType_double’ has virtual functions but non-virtual destructor
/usr/lib/qt-3.3/include/private/qucom_p.h:423: warning: ‘struct QUType_charstar’ has virtual functions but non-virtual destructor
/usr/lib/qt-3.3/include/private/qucom_p.h:444: warning: ‘struct QUType_QString’ has virtual functions but non-virtual destructor
/usr/lib/qt-3.3/include/private/qucomextra_p.h:65: warning: ‘struct QUType_QVariant’ has virtual functions but non-virtual destructor
/usr/lib/qt-3.3/include/private/qucomextra_p.h:87: warning: ‘struct QUType_varptr’ has virtual functions but non-virtual destructor
ui_confgeneral.moc:22: error: no ‘const char* ui_confGeneral::className() const’ member function declared in class ‘ui_confGeneral’
ui_confgeneral.moc:27: error: ‘QMetaObject* ui_confGeneral::metaObj’ is not a static member of ‘class ui_confGeneral’
ui_confgeneral.moc:28: error: ‘staticMetaObject’ is not a member of ‘ui_confGeneral’
ui_confgeneral.moc:31: error: no ‘QString ui_confGeneral::tr(const char*, const char*)’ member function declared in class ‘ui_confGeneral’
ui_confgeneral.moc:39: error: no ‘QString ui_confGeneral::trUtf8(const char*, const char*)’ member function declared in class ‘ui_confGeneral’
ui_confgeneral.moc:50: error: no ‘QMetaObject* ui_confGeneral::staticMetaObject()’ member function declared in class ‘ui_confGeneral’
ui_confgeneral.moc: In member function ‘QMetaObject* ui_confGeneral::staticMetaObject()’:
ui_confgeneral.moc:52: error: ‘metaObj’ was not declared in this scope
ui_confgeneral.moc:54: error: ‘confGeneral’ has not been declared
ui_confgeneral.moc:55: error: ‘metaObj’ was not declared in this scope
ui_confgeneral.moc:64: error: no matching function for call to ‘QMetaObjectCleanUp::setMetaObject(<type error>)’
/usr/lib/qt-3.3/include/qmetaobject.h:277: note: candidates are: void QMetaObjectCleanUp::setMetaObject(QMetaObject*&)
ui_confgeneral.moc: At global scope:
ui_confgeneral.moc:68: error: no ‘void* ui_confGeneral::qt_cast(const char*)’ member function declared in class ‘ui_confGeneral’
ui_confgeneral.moc: In member function ‘void* ui_confGeneral::qt_cast(const char*)’:
ui_confgeneral.moc:72: error: ‘confGeneral’ has not been declared
ui_confgeneral.moc: At global scope:
ui_confgeneral.moc:75: error: no ‘bool ui_confGeneral::qt_invoke(int, QUObject*)’ member function declared in class ‘ui_confGeneral’
ui_confgeneral.moc: In member function ‘bool ui_confGeneral::qt_invoke(int, QUObject*)’:
ui_confgeneral.moc:77: error: ‘confGeneral’ has not been declared
ui_confgeneral.moc: At global scope:
ui_confgeneral.moc:80: error: no ‘bool ui_confGeneral::qt_emit(int, QUObject*)’ member function declared in class ‘ui_confGeneral’
ui_confgeneral.moc: In member function ‘bool ui_confGeneral::qt_emit(int, QUObject*)’:
ui_confgeneral.moc:82: error: ‘confGeneral’ has not been declared
ui_confgeneral.moc: At global scope:
ui_confgeneral.moc:86: error: no ‘bool ui_confGeneral::qt_property(int, int, QVariant*)’ member function declared in class ‘ui_confGeneral’
ui_confgeneral.moc: In member function ‘bool ui_confGeneral::qt_property(int, int, QVariant*)’:
ui_confgeneral.moc:88: error: ‘confGeneral’ has not been declared
ui_confgeneral.moc: At global scope:
ui_confgeneral.moc:91: error: no ‘bool ui_confGeneral::qt_static_property(QObject*, int, int, QVariant*)’ member function declared in class ‘ui_confGeneral’
make[2]: *** [ui_confgeneral.o] Error 1
make[2]: Leaving directory `/data/Wireless Assistant/wlassistant-0.5.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/data/Wireless Assistant/wlassistant-0.5.0'
make: *** [all] Error 2
The truth is, I am not married to Wireless Assistant. If you know of any other software that can automatically discover nearby wireless networks (preferably one that is beyond beta) I'll be happy to try it instead.

Thanks for all the help!
 
Old 07-13-2005, 12:41 PM   #14
litlmary
Member
 
Registered: May 2005
Location: Texas, somewhere near Houston (I think)
Distribution: See my sig
Posts: 308

Original Poster
Rep: Reputation: 30
Maybe AP Radar instead? I'm having issues with it too, but perhaps they are easier to get around than wireless assistant's.
 
Old 07-28-2005, 06:00 PM   #15
pnawrocki
LQ Newbie
 
Registered: Jul 2005
Posts: 1

Rep: Reputation: 0
Hi!
Thanks for trying wlassistant. Sorry that with no success yet...
The compilation problems (version 0.5.0) could likely occur in case you forgot to run 'make -f Makefile.cvs' before running configure. Was that the case?
This step is not necessary in the newly released version 0.5.1. Give it a try. In case you still experience problems - please report a bug at
www.sf.net/projects/wlassistant so I can fix it. Note that the 0.5.1 version requires KDE 3.4.x and so compilation on earlier versions WILL fail.
Cheers.
 
  


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
Cant make web server run my local web page... Nik0s Linux - Newbie 22 10-08-2006 10:30 PM
Web Application to grab large files from web addresses farmerjoe Programming 3 10-16-2005 08:49 AM
setting up password protected web forms on an apache web server AZDAVE Linux - Security 3 07-07-2004 12:03 PM
Jerky mouse when web browsers download web page stodge Linux - Software 1 07-08-2003 10:29 PM
Can't access Linux web server web pages from LAN client jaydave Linux - Networking 4 03-16-2003 02:38 AM

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

All times are GMT -5. The time now is 09:40 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