Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Connecting to the wireless is relatively simple.

After some struggle, you have wifi in your installer. You can install Ubuntu Server and everything is alright. You are ready to boot your new system.

After setup finished, wifi settings disappeared.

tl;dr: How do I connect to a wireless (WPA2 Personal) network from Ubuntu Server 12.10?

What I have tried so far:

Connected with iw* commands. Obtained IP address with dhclient. Put these commands to etc/rc.local.

On boot, the server waits 120 seconds with message "Waiting for network to come up"

To fix this, I removed everything /etc/network/interfaces (wpa-psk and wpa-ssid).
This did not work. It was still waiting. I found an answer, which said I could just remove the /etc/... (the file that was in charge of the 120 second wait time.)

I did that, and kept a backup of it. Now the server waits ~3 seconds (modified sleep within the file) and boots up. However, there's no network connection available. It's some dhcp error.

As I was out of options, I tried using the one in comment. The one that used "tee".
Turns out it does not work either.

How can this whole thing be so inconsistent? How can they not install the firmwares on the ISO while it would perfectly fit (673+~10MB = 683). How can the installer NOT copy the necessary files and set up the connection to be used later? (Or ask if the user wants to use it.)

share|improve this question
    
Possible duplicate of askubuntu.com/questions/8568/… (look at the second answer, not the accepted one) or askubuntu.com/questions/172473/… –  guntbert Mar 22 '13 at 21:59
    
@guntbert - Thanks for the fast response (sorry I was on the other display which is connected to the server). Trying the second answer as you suggested, please refrain from downvoting/closing the Q until then. (I'll re-work it with more information if this fails as well.) –  Shiki Mar 22 '13 at 22:25
    
@guntbert: Alright, I'll attach the file in a few hours (can't reach now the server as I couldn't fix this wifi thing.) | btw. it's a stock 12.10 x64 install. –  Shiki Mar 26 '13 at 7:42
    
Don't bother please, my comment was intended for a different problem, my client/this person botched the thing :-)) –  guntbert Mar 28 '13 at 22:03
1  
@guntbert - Alright. Guess there is no solution either. It's broken it seems. Well, who would use Wifi on a server? (Besides me.) I'll just get a long cable. –  Shiki Mar 29 '13 at 16:01
show 5 more comments

2 Answers 2

1) Download wpa_supplicant.

2) Then write:

sudo su
wpa_passphrase [SSID] >> /etc/wpa_supplicant.conf
exit

Where [SSID] is SSID of point where you want to connect. After entering this command, you have to write password for that acces point.

3) Run wpa_suplicant with new config file.

sudo wpa_supplicant -B -D wext -i wlan0 -c /etc/wpa_supplicant.conf

Make sure that your interface is wlan0, or change it if needed!

-B is for background running.

-D is used driver.

-i is interface.

4) You should be connected now :)

share|improve this answer
add comment

I used instructions from https://wiki.debian.org/WiFi/HowToUse#WPA-PSK_and_WPA2-PSK.

Don't forget to remove anything you added in etc/rc.local as it could conflict

First, make sure you have installed (can't remember if its installed by default or not) the package "wpasupplicant"

Then you need to edit the "/etc/network/interfaces" file.

The stanza used was based on the example from the above link (reproduced below):

auto wlan0
iface wlan0 inet dhcp
    wpa-ssid mynetworkname
    wpa-psk mysecretpassphrase

You will need to check which interface your Wifi card is (its usually wlan0) and you need the key and ssid of your wireless network.

share|improve this answer
add comment

Your Answer

 
discard

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.