2

I have installed Ubuntu on Raspberry Pi. When I insert the SD card into the Raspberry Pi, it is taking me to a command window. How do I switch to desktop view or GUI?

I am not able to connect to the Internet to install all libraries.

Peter Mortensen
  • 933
  • 2
  • 11
  • 17
pradeep
  • 31
  • 1
  • 6
  • Looks like [the wiki](https://wiki.ubuntu.com/ARM/RaspberryPi) has you covered. – mikewhatever Nov 14 '15 at 21:30
  • @mikewhatever Yes I have followed wiki, but the problem is while installing xubuntu or any other installation it is throwing error to download. I have to connect to internet before installing. Could you please advice, how to connect to internet before the setup/installations? – pradeep Nov 14 '15 at 22:22
  • @pradeep: That would be a separate issue. Please search for an existing question or open a new question, that covers it. – David Foerster Nov 14 '15 at 22:55
  • 2
    You may also want to check out [RaspberryPi.SE](http://raspberrypi.stackexchange.com/) – Paul Nov 14 '15 at 22:58

1 Answers1

2

You might need to run the following command to install a desktop environment:

tasksel

or

sudo tasksel

.

However, you will need to connect to the internet.

To connect to the internet, run the following commands.

First, edit the following file using the following command:

sudo nano /etc/wpa_supplicant.conf

Make sure the contents look like this and of course you will need to replace ssid_name with the name of the network and password with the actual password!:

network={
            ssid="ssid_name"
             psk="password"
}

Press CTRL + o and then press ENTER to save the file. Press CTRL + x to exit nano.

Then, run the following command:

sudo wpa_supplicant -B -iwlan0 -c/etc/wpa_supplicant.conf -Dwext && sudo dhclient wlan0

Finally, check your network connection by running the following command:

iwconfig

Your ESSID should be listed.

Alternatively, you may be able to connect like this instead:

nmcli d wifi connect <WiFiSSID> password <WiFiPassword> iface wlan0

Again, replace <WifiSSID> with the actual name of the network and replace <WiFiPassword> with the actual password.

Additional info 1

Additional info 2


NOTE: because of a bug in tasksel, DO NOT use tasksel to uninstall packages. ONLY use tasksel to install.

mchid
  • 42,315
  • 7
  • 94
  • 147