LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 11-27-2005, 12:56 AM   #1
jeffersd
LQ Newbie
 
Registered: Nov 2005
Location: Tennessee
Distribution: Ubuntu
Posts: 3

Rep: Reputation: 0
Ubuntu - Activate Wireless on Boot


im running ubuntu. my wireless only works after booting up and then clicking system - administration - networking and clicking activate on eth2.

i need to get wireless to start automatically on boot up. starting it by hand is anoying. i couldnt find a simple way of doing this so i thought i could make a sh script to do it and the add it to system - preferences - sessions - startup programs but it doesnt work because it needs the password for sudo to run.
*the script = sudo /etc/init.d/networking restart

can someone tell me how to get my wireless to start on boot or how to run a script as sudo without having to enter the password like i need to?

i tried adding this to /etc/sudoers
mylogin ALL=(ALL) ALL
but that didnt help.

any help please?
thanks

Last edited by jeffersd; 11-27-2005 at 12:58 AM.
 
Old 11-27-2005, 08:10 PM   #2
Sargek
Member
 
Registered: Jan 2003
Location: San Antonio, Texas
Distribution: Debian testing
Posts: 416

Rep: Reputation: 36
Re: Ubuntu - Activate Wireless on Boot

Quote:
Originally posted by jeffersd
im running ubuntu. my wireless only works after booting up and then clicking system - administration - networking and clicking activate on eth2.

i need to get wireless to start automatically on boot up. starting it by hand is anoying. i couldnt find a simple way of doing this so i thought i could make a sh script to do it and the add it to system - preferences - sessions - startup programs but it doesnt work because it needs the password for sudo to run.
*the script = sudo /etc/init.d/networking restart

can someone tell me how to get my wireless to start on boot or how to run a script as sudo without having to enter the password like i need to?

i tried adding this to /etc/sudoers
mylogin ALL=(ALL) ALL
but that didnt help.

any help please?
thanks
Isn't wireless a service already known to the system that you can start at boot? Not a Debian user, but I think the command to start/stop services is update-rc.d (or something like that). I would think it provides a way to show what is currently loaded, and loadable, for a given runlevel. if that is the command, take a look at its man page to see what options it has.
 
Old 11-30-2005, 11:26 PM   #3
jeffersd
LQ Newbie
 
Registered: Nov 2005
Location: Tennessee
Distribution: Ubuntu
Posts: 3

Original Poster
Rep: Reputation: 0
i dont think thats right. anyone else?
 
Old 12-28-2005, 10:30 AM   #4
seashell11
Member
 
Registered: Jul 2005
Distribution: Ubuntu Maverick
Posts: 86

Rep: Reputation: 16
You could use the gksu command.
Code:
gksudo /etc/init.d/networking restart
This will pop up a little window asking for the password, and then it will run your script after you type the password and press enter.

Last edited by seashell11; 12-28-2005 at 02:33 PM.
 
  


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
How Do I Activate Wireless NIC? jimbo-62 Slackware 7 10-11-2007 07:47 PM
How to Activate Wireless? jimbo-62 Debian 11 04-05-2006 01:33 PM
How to activate wireless on laptop? anon058 Slackware 7 11-24-2005 11:42 PM
Help Configuring Wireless - Cannot Activate Network Device (Newbie) georgec02 Linux - Wireless Networking 1 10-08-2004 11:01 PM
boot logo how to activate it? demmylls Linux - General 10 01-30-2004 06:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

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