Sunday, August 13, 2017

server - Connecting to a wireless network

I have a machine that I just installed Ubuntu Server on. The only problem is that I do not know how to connect it to a wireless network, and I cannot use a network cable to connect it to my router.



When trying to list the network cards, only the loopback interface showed up:



$ ifconfig
lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric 1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)


which was unexpected, as both my Ethernet network interface (eth0) and wireless network interface (wlan0) showed up when doing the same in a fresh installation of Ubuntu Desktop 10.10.




So, my two questions are:




  • how can I install the wireless drivers (and packages I could download etc.) and/or set up the wireless network interface to work properly, and

  • how can I connect to a WPA-encrypted wireless network from the command line?



EDIT:




I ended up uninstalling Ubuntu Server and installing Ubuntu Desktop instead, then configuring the wireless network through the GUI and making it boot into command line instead of GNOME.

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...