Linux - Laptop and NetbookHaving 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
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.
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:
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?
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).
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.
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:
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.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.