LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-21-2005, 10:26 PM   #1
apocoloco
Member
 
Registered: Sep 2005
Posts: 32

Rep: Reputation: 15
Question Set wireless configs automatically


Hi all,
i have gotten the procedur e to get my wireless internet up and running down pat.
It is fairly simple:
1. Open a terminal
2. Type the following one line at a time
iwconfig wlan0 essid "Dallas"
iwconfig key s:xxxxx
ifconfig wlan0 up
dhclient

To simplify this, I made a simple script that basically just has those lines of text in it, and then I double click this script and choose "Run in Terminal."


What I would really like is for this script to be run automatically when my computer boots up. could anybody help me figure out how to do this/

Thanks in advance.
 
Old 10-22-2005, 03:18 AM   #2
solveit
Member
 
Registered: Jan 2005
Posts: 83

Rep: Reputation: 15
Edit and add your script in /etc/rc.local

(You need to be root user : i.e type "su -" at a terminal and then type root password. This should work for most linux distributions)
 
Old 10-22-2005, 07:26 AM   #3
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
If you would list your Linux distribution in your LQ UserCP it would
be a lot easier to help you.

There are two files in Slackware that do this job:
/etc/rc.d/rc.inet1.conf
/etc/rc.d/rc.wireless.conf

Edit them and your network is configured and starts on boot...
 
Old 10-22-2005, 10:25 AM   #4
apocoloco
Member
 
Registered: Sep 2005
Posts: 32

Original Poster
Rep: Reputation: 15
I'm sorry - I had meant to list what distribution I'm running but forgot I've got a cold and I probably sneezed the thought away.
It's FC4.
I'll try editing the rc.local file first. Thanks for the tips!
PS: What does the "-" do when you type "su -" ?
 
Old 10-22-2005, 11:43 AM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Quote:
Originally posted by apocoloco
What does the "-" do when you type "su -" ?
From the manual page for the command su, switch user:
Quote:
bruce@silas:~$ man su
NAME
su - change user ID or become super-user

SYNOPSIS
su [-] [username [args]]

DESCRIPTION
su is used to become another user during a login session. Invoked without a user-
name, su defaults to becoming the super user. The optional argument - may be used
to provide an environment similiar to what the user would expect had the user
logged in directly.
So if you "su to root" by issuing "su -" you will change to root's
home directory and root's $PATH; both being "root's environment,"
that you also get when you login as root. If you issue "su root"
the same thing happens.
 
  


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 set a program to automatically start wfernley Linux - Newbie 8 04-16-2005 01:20 PM
wireless network doesn't come up automatically on Suse 9.2 pazzport Linux - Wireless Networking 1 02-01-2005 11:10 AM
How to configure Wireless KEY automatically? enemorales Linux - Newbie 7 11-24-2004 03:30 AM
Palm set to automatically sync daily? sohmc Linux - Laptop and Netbook 3 08-31-2004 11:53 AM
Need to set up 2 IP configs and choose auto the good one kleag Linux - Networking 1 05-18-2004 05:05 PM

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

All times are GMT -5. The time now is 07:35 PM.

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