Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
11-23-2005, 02:52 PM
|
#1
|
LQ Newbie
Registered: Nov 2005
Distribution: Ubuntu 10.4
Posts: 29
Rep:
|
scripts
Hi... When I start my computer I allways have to do two things:
turn on my wirelessled
connect to my wireless network
Are there a way to make a script to do this automatic?
Some of the commands requires root.. The commands are shown below
[anden@dhcppc1 ~]$ su -
Password:
[root@dhcppc1 ~]# modprobe acerhk
[root@dhcppc1 ~]# echo 1 > /proc/driver/acerhk/wirelessled
[root@dhcppc1 ~]#
And then I open Network manager to connect to the wireless network
|
|
|
11-23-2005, 03:10 PM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Pretty much every distro will have a rc.local (or equivalent)
script that is run as the last script before runlevel 3(4,5).
In Slackware it's /etc/rc.d/rc.local
(SuSE has a boot.local, I think),
others may vary ...
Just put your commands in there.
Cheers,
Tink
|
|
|
11-24-2005, 03:11 AM
|
#3
|
LQ Newbie
Registered: Nov 2005
Distribution: Ubuntu 10.4
Posts: 29
Original Poster
Rep:
|
ok.. Iam using FC4, do u know where the rc.local is?
My problem is still that I dont know the commands to connect to a wireless network.. anyone does?
|
|
|
11-24-2005, 03:22 AM
|
#4
|
Senior Member
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440
Rep:
|
It should be in /etc (ie. /etc/rc.local).
-twantrd
|
|
|
11-24-2005, 04:03 AM
|
#5
|
Member
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549
Rep:
|
Just put the 2 lines below at the end of your /etc/rc.local and you should be fine:
modprobe acerhk &
echo 1 > /proc/driver/acerhk/wirelessled
|
|
|
11-24-2005, 04:39 AM
|
#6
|
LQ Newbie
Registered: Nov 2005
Distribution: Ubuntu 10.4
Posts: 29
Original Poster
Rep:
|
thx a lot.. that works..
does anyone know how to connect to a wireless network via command line?
|
|
|
01-04-2006, 11:49 AM
|
#7
|
Member
Registered: Jun 2005
Location: Florissant, MO
Distribution: Fedora 3/4, Centos, Suse 9.1-9.3, CentOS 4.1, Knopix
Posts: 34
Rep:
|
su -
password
iwconfig wlan0 essid your essid here
dhclient wlan0
|
|
|
All times are GMT -5. The time now is 07:23 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|