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.

4
  • Looks like the wiki has you covered. Nov 14, 2015 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, 2015 at 22:22
  • @pradeep: That would be a separate issue. Please search for an existing question or open a new question, that covers it. Nov 14, 2015 at 22:55
  • 2
    You may also want to check out RaspberryPi.SE
    – Paul
    Nov 14, 2015 at 22:58

1 Answer 1

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.

6
  • @mchid- could you please advice how to connect to internet to install the packages..
    – pradeep
    Nov 14, 2015 at 22:23
  • I am using sandisk SD card of 8 gigabytes.
    – pradeep
    Nov 14, 2015 at 22:24
  • 1
    how do you know you have no internet? is your ethernet cable plugged in?
    – mchid
    Nov 14, 2015 at 22:27
  • i am using wifi dongle .. If it is connected it, LED light will glow on the dongle. More over my wifi network is password protected.
    – pradeep
    Nov 14, 2015 at 22:56
  • @pradeep I have updated the answer
    – mchid
    Nov 14, 2015 at 23:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .