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.
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.
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.
NOTE: because of a bug in tasksel, DO NOT use tasksel to uninstall packages. ONLY use tasksel to install.