You are not logged in.
Pages: 1
Hi all,
I'm able to connect to the web from the command line easily enough but i would like to automatically connect at boot. I'm using wpa_supplicant to connect and and from what I understand so far I need Netcfg to automate it. I installed Netcfg and went to /etc/network.d/examples to find examples to work with but it isn't there.
Can anyone tell me where I can find and example?
Thanks,
Offline
Why not making a script with commands you use to connect from the command line usually? Then you can add the script to xinitrc so it autoconnects when you login to your session.
If you don't use netcfg to connect to the access point while wanting to connect, you don't need it for connecting at startup either. Just make a script.
Or maybe you insist on using netcfg?
Offline
Yeah great idea, I'll give it s shot.
Thanks,
Offline
Example, here's my script to connect with ethernet:
#! /bin/bash
echo 'password' | sudo -S ifconfig eth0 up
sudo dhcpcd eth0
Sure, this sudo -S part isn't really secure, but it does the job pretty nicely.
Now, if I want to connect when the session starts, I add this line to .xinitrc (in /home/user/):
exec /path/to/script/script.sh
before! exec openbox-session (or whatever WM or DE you got)
If there's any problems with this approach, reply here, and I may help if I will know.
Offline
If you have installed netcfg, the examples must be present inside the /etc/network.d/examples/ folder. Not sure why you can't find them, maybe reinstall netcfg?
Connecting automatically on boot is as easy as adding the net-profiles daemon and "NETWORKS=(profile)" to rc.conf. See here for more infos: http://wiki.archlinux.org/index.php/Net … omatically
Offline
Yes, but I guess that it's much better to just exec one script on startup except having a daemon running in the background.
Offline
Sure, pick what you like. I just responded to the OP's question
I don't believe net-profiles daemon comes with a noteworthy overhead, though.
For an overview of different wireless management methods, see here.
Offline
Pages: 1