LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-15-2009, 04:39 PM   #1
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 49
Where to put the wireless script?


Every time I log into my Debian Lenny system (without X/GNOME) I have to manually execute this script to get my wireless connection:

Code:
#!/bin/bash
echo "Starting Wireless..."
iwconfig wlan0 essid abc key 1234567890
dhclient wlan0
echo "Wireless started..."
Where can I place this scripts so that it executes automatically?
 
Old 03-15-2009, 04:41 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
/etc/rc.local
 
Old 03-15-2009, 04:47 PM   #3
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by repo View Post
/etc/rc.local
Thanks. I will try that. Also will this solution work if in case I decide to install GNOME? Or is there some other file to put the script into in case of Desktop environments.
 
Old 03-15-2009, 04:52 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Also will this solution work if in case I decide to install GNOME?
yes, but perhaps you could use the gui in GNOME
wicd does a good job.
 
Old 03-15-2009, 04:59 PM   #5
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by repo View Post
yes, but perhaps you could use the gui in GNOME
wicd does a good job.
wicd is still not in Lenny. Also I would like to avoid any GUI based WiFi configuration software as most of them are pretty crude and buggy also. I would like to stick with plain old command line means.
 
Old 03-15-2009, 05:40 PM   #6
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Mistake.Please ignore.

Last edited by the trooper; 03-15-2009 at 06:56 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 to put my script in bootup packets Solaris / OpenSolaris 3 10-31-2007 12:27 PM
.. how to put a script to '/etc/rc.d/rc.*? emil+ Slackware 11 02-24-2006 02:27 PM
Bash put script jnusa Programming 3 09-07-2004 02:31 AM
PPPD how do I know what to put in the script? jimdaworm Slackware 4 02-29-2004 12:02 PM
Where to put program/script cmfarley19 Linux - General 5 02-26-2004 01:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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