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.
Thanks to the Arch Wiki, I've managed to figure out how to scan for wireless networks, connect to one, and get an IP address on my Arch box.
Since I connect to the router at home most of the time, I wrote a short script I can run from a panel launcher to connect to it.
This leaves me with a few questions though.
First, how does one disconnect from a terminal, and put it in a state ready to scan for a network again?
Second, is there any way to have my script get called during boot up, rather than after logging in? I can move it to a more suitable location than my home folder if necessary.
And third, if I've connected via command line like this, what ways are to obtain statistics such as signal strength, noise and so on? Can Conky be configured to show this information?
Have you discovered the man pages for iwconfig & friends?
Read up on them. To your wuestions
1. Have you tried ifconfig wlan0 down?
2. Call your script from /etc/rc.d/~/rc.local.
3. Iwconfig's friend iwlist gives those details, and there are no doubt other ways.
With a little look into those man pages, I've solved the first and last, at least.
I'm not entirely certain how /etc/rc.local works - do I just add a line that runs the script, something like this:
I don't think you need the 'sh'. Here's the rc.local from this old box
bash-3.1$ cat /etc/rc.d/rc.local
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local startup commands in here. Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.