On my Ubuntu 14.04.2 LTS network-manager isn't installed yet. Without this program I can't connect to WiFi network. But I can't install this package from Ubuntu without network connection. Here is my question. How to install this offline? or How to install from another computer?
1 Answers
You can connect to WiFi without network-manager (even though it should have been installed by default). Open a terminal and run:
sudo iwconfig
There will be some output like lo, eth0, wlan0. The one we want is wlan. Take note of its name (probably wlan0).
sudo nano /etc/network/interfaces
Go to the end of the file and create a new line. Write the following:
auto wlan0
Replacing wlan0 with what you found back there. In new lines:
iface wlan0 inet dhcp
wpa-ssid SSID
Replacing SSID with the name of your WiFi connection.
wpa-psk password
Replacing password with your WiFi network's password.
Hit Ctrl+O then Enter to save and Ctrl+X to exit. In the terminal, run:
sudo ifup wlan0
And you should be connected. You can now install network-manager and anything you want. Remember to remove everything you wrote from /etc/network/interfaces before using network-manager otherwise it won't work.
- 5,876
- 3
- 20
- 33