VectorLinux

The nuts and bolts => Networking & Security => Topic started by: adamlau on January 03, 2009, 03:51:47 pm

Title: Autostart RC1 Wicad Manager?
Post by: adamlau on January 03, 2009, 03:51:47 pm
I have to manually connect to my (single interface) network (router to ISP) upon every reboot. This does not seem right. Is there a:

Code: [Select]
ifup eth0
equivalent command I must add to rc.local in order to start the network upon login? Is there a more elegant solution?
Title: Re: Autostart RC1 Wicad Manager?
Post by: bigpaws on January 03, 2009, 05:06:47 pm
You can add the commands to /etc/rc.d/rc.local for example

ifconfig wlan0 up
dhcpcd wlan0

That is pretty much all you should need. You can also edit /etc/rc.d/rc.wireless.conf for the
wireless info and inet1.conf to add the card and the dhcpcd if needed.

You may also need wpa-supplicant for WPA settings there should be an example in
there. You can also call wpa_gui for a gui setup.

Bigpaws
Title: Re: Autostart RC1 Wicad Manager?
Post by: caitlyn on January 03, 2009, 06:03:44 pm
Yes, there is a more elegant solution.  Go into the Control Center (vasmCC).  Select Service, select Services, choose your default runlevel (4 for most users) and check the box next to wicd:wicd daemon.  wicd will automagically start and your network will come up on the next boot.  If your network is wireless you'll also have to check the box that says "Automatically connect to this network" directly below the listing for your essid.

That's it!
Title: Re: Autostart RC1 Wicad Manager?
Post by: adamlau on January 04, 2009, 12:25:34 am
No go. The wicd daemon option was always checked. ifconfig entries into rc.local are a no go as well. What is the command run when the user click 'Connect' in the Wicad Manager?
Title: Re: Autostart RC1 Wicad Manager?
Post by: bigpaws on January 04, 2009, 07:50:01 am
What commands do you use to connect?

No need for ip, essid or keys

Example:

ifconfig wlan0 up
ifconfig wlan0 essid xxxx
ifconfig wlan0 key xx:xx:xx:xx:xx
dhcpcd wlan0

Bigpaws