LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-27-2007, 07:47 AM   #1
the-yikes
Member
 
Registered: Jan 2007
Posts: 151

Rep: Reputation: 30
Enabling automtic network logon


Hey all!
I dont doubt this will come across to many as a newbie question but thats pretty much what i am so here goes!

Im running SlackWare v11 and at present if i want to connect to me wireless router i have to open a konsole and give the relevant commands, is there a specific file i should modify in order to have the system do this at startup and if so how do i go about it? or are am i forever bound to command based authentication!

The-Yikes

"i have been asked what is wireless, to which i replied well what is a wire, they answered correctly and i said take away the wire and your wireless"
 
Old 02-27-2007, 07:56 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
You forgot to add what are the "relevant commands" and thus we cannot guide you to an automated solution... crystal balls are no longer sold.

Cheers, Eric
 
Old 02-27-2007, 08:26 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Quote:
Originally Posted by Alien Bob
You forgot to add what are the "relevant commands" and thus we cannot guide you to an automated solution... crystal balls are no longer sold.

Cheers, Eric
Hi,

Eric, I could lend you mine but it's cracked.

To the OP, did you run netconfig? As Eric, pointed out we need to get some background information.

Last edited by onebuck; 02-27-2007 at 08:30 AM.
 
Old 02-27-2007, 01:58 PM   #4
the-yikes
Member
 
Registered: Jan 2007
Posts: 151

Original Poster
Rep: Reputation: 30
Wink Heres the commands

Sorry my bad was kind distracted by the sound of a crazy guy outside my door screaming at a cat she never loved him at all!?! Don't ask suffice to say it's true.

Anyway on with the show the commands i use to logon to my network is


iwconfig ra0 essid "eircom2204 0050" key xxxxxxxxxxxxxxxxxxxxx

ifconfig ra0 up

dhcpcd ra0

once i do this im logged on every time!

Any ideas anyone? oh yeah as i mentioned im using slackware v11
with a netgear (ralink chipset) card

Thanks

The-Yikes

oh yeah by the way my older sister is a real hippie chick peace love and free the weed and crap, i'm sure if you can sort me out i can get a crystal ball off her (or as the crazy woman calls them soul orbes, too much weed me thinks)

Last edited by the-yikes; 02-27-2007 at 02:01 PM.
 
Old 02-27-2007, 04:14 PM   #5
mas7997
LQ Newbie
 
Registered: Feb 2007
Posts: 3

Rep: Reputation: 0
/etc/rc.d/rc.local

One way to get something to run every time you boot is to edit /etc/rc.d/rc.local

Just append the commands you've been running on the console to the end that file, and it will run every time the computer boots up.

You may want to modify the commands just slightly to provide the full path to the command, for instance:

/sbin/ifconfig ra0 up

instead of just

ifconfig ra0 up

Hope this helps.
 
Old 02-27-2007, 04:32 PM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by mas7997
One way to get something to run every time you boot is to edit /etc/rc.d/rc.local
The correct way is to configure your settings in /etc/rc.d/rc.inet1.conf.
Something like this:
Code:
# Config information for ra0:
IFNAME[1]="ra0"
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]="yes"
DHCP_TIMEOUT[1]=20
DHCP_HOSTNAME[1]=""
WLAN_ESSID[1]="eircom2204 0050"
WLAN_KEY[1]="xxxxxxxxxxxxxxxxxx"
WLAN_MODE[1]=Managed
Cheers, Eric
 
Old 02-27-2007, 11:11 PM   #7
the-yikes
Member
 
Registered: Jan 2007
Posts: 151

Original Poster
Rep: Reputation: 30
So close yet so far!

Well Eric, this is as close as i cane get based on the sample text you gave me i can now boot to a partial logon......as in i dont have to enter all those annoying commands except for 1 dhcpcd ra0


apart from that it's sweet! i've made some minor adjustments to try to compensate for the glitch, here they are

# Config information for ra0:
IFNAME[1]="ra0"
IPADDR[1]="192.168.1.3"
NETMASK[1]="255.255.255.0"
USE_DHCP[1]="yes"
DHCP_TIMEOUT[1]=20
DHCP_HOSTNAME[1]=""
WLAN_ESSID[1]="eircom2204 0050"
WLAN_KEY[1]="f2d9192c2ddd9a353a14de87f9"



WLAN_MODE[1]=Managed as apposed to the original


# Config information for ra0:
IFNAME[1]="ra0"
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]="yes"
DHCP_TIMEOUT[1]=20
DHCP_HOSTNAME[1]=""
WLAN_ESSID[1]="eircom2204 0050"
WLAN_KEY[1]="xxxxxxxxxxxxxxxxxx"
WLAN_MODE[1]=Managed

yes i know my wep key is visible but hey, i dont really mind. i mean if you guys know how to ues it then you probably know know how bypass, crack, circumvent or destrot it and in my mind the internet is for everyone not just those with a billion dollar cheque book.


Anyway can you instill upon me some more guru like wisdom, please
Thanks

Seriously i love linux, the people are always so extremely nice and helpfull!


The-Yikes
 
Old 02-27-2007, 11:21 PM   #8
the-yikes
Member
 
Registered: Jan 2007
Posts: 151

Original Poster
Rep: Reputation: 30
Okay thats odd!

Right, based on the advice i have recieed from both Alien Bob and mas7997 i got it sorted. Dont get me wrong i dont doubt either of yoou if just think it's wonderfull that it works all ways!

I just added the line

"dhcpcd ra0" to /etc/rc.d/rc.local and wham away we go!


If there are other ways i would love to hear!

Thenks

The-Yikes
 
  


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
Samba Network Logon hosler Linux - Networking 8 04-23-2006 10:18 PM
Network User Logon Question rsmith Linux - Security 6 07-26-2005 03:28 PM
Logon to a Windows network titanandrews Linux - Networking 2 10-16-2004 09:51 AM
network logon message lackluster Linux - Networking 1 10-10-2004 01:15 PM
Heterogeneous network logon robertoneto123 Conectiva 3 11-19-2003 01:08 PM

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

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