Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

As a learning experiment, I'm trying to turn Ubuntu Desktop into a server. I was able to disable X at boot time and now, I am trying to get my computer to connect to my WiFi network at boot time, before any user logs in. That way, I won't have to be physically near my computer every time it reboots. I've set up the WiFi connection using the Network Manager if that can help somehow (would be nice not having to reconfigure it again!).

share|improve this question

2 Answers 2

I found out how to do it :) Simply go in Network Manager / Edit Connection. Select your connection, click Edit and check "Available to all users".

share|improve this answer
Is that working?I have already tried that but it's not working. –  karthick87 Dec 6 '10 at 4:12
Yep it's working here. The connection doesn't use DHCP but I doubt it wouldn't work because of DHCP. –  Olivier Lalonde Dec 6 '10 at 4:17

Edit the interfaces file /etc/network/interfaces

sudo gedit /etc/network/interfaces

Add the following,

auto ra0
iface ra0 inet dhcp
wpa-conf /etc/wpa_supplicant.conf

share|improve this answer
Is there a technical difference between the way I did it (see my answer) and yours? –  Olivier Lalonde Dec 6 '10 at 4:07
Olivier, I think your solution is more up-to-date, depending as it does on a relatively new feature of NetworkManager. Kathick's solution, on the other hand, circumvents NetworkManager altogether. Your solution might be more robust as NetworkManager keeps track of the connection and reconncects if it is lost temporarily (although the interfaces way might do that too in some cases). –  loevborg Dec 6 '10 at 15:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.