In this tutorial, I will demonstrate how to use the pi with remote GUI. It involves the following steps given below:-
1. Install VNC server on pi:
$ sudo apt-get install tightvncserver
2. Setup VNC client on remote system:
$ sudo apt-get install xtightvncviewer
3. Start VNC server on pi:
4. Open VNC viewer on remote system:
$ xvncviewer 192.168.1.5:1
5. Kill VNC server
$ vncserver -kill :1
Pi normally needs hardware support like keyboard, mouse, display( HDMI compatible monitors). But we can run pi without these hardware too, using another PC by SSH tunneling. Before getting started, we need to install ssh client in the system from which we are tunneling in to the pi. In Ubuntu (or other linux distros), we install ssh client as follows:
$ sudo apt-get install ssh
$ sudo apt-get install openssh-client
Default login for pi running Wheezy:
Follow the video below which explains what is SSH and how to log in to pi by SSH tunneling step by step:
Well the most easiest way to shut down any computer is by pulling the plug or to switch it off directly. As with most of the PCs they can be switched off forcibly even when the system has crashed by holding the power switch for 3 secs. But this method isn't quite healthy for your system as it can damage the HDD or BIOS. For the Raspberry Pi, it can cause problems or corrupt the SD card.
So now let’s talk about how to shut down your Raspberry Pi when it hasn't frozen.
sudo shutdown -h now (or sudo halt) [
-hmeans halt the system] [now means to shutdown immediately]
You can also use the shorthand's:- `halt` and `reboot`.