To telnet to the Raspberry Pi GUI via vnc, the Raspberry Pi must have a VNC Server service installed on one side, and a few simple configurations are required to make the operation more convenient, as detailed steps below.
1. Installing the VNC server component--tightvncserver
sudo Install Tightvncserver
2. Set up a VNC password
vncpasswd
(Enter the operation password two times, then ask whether to set a view (view-only) password, as you like, generally not necessary. )
3. Set Boot up
sudo nano/etc/init.d/tightvncserver
Add the following content:
#!/bin/SH# # # BEGIN INIT info# provides:tightvncserver# Required-Start: $local _fs# Required-Stop: $local _fs# Default-start:2 3 4 5# Default-stop:0 1 6# Short-description:start/Stop tightvncserver### END INIT INFO # More details see:# http://Www.penguintutor.com/linux/tightvnc# # Customize This entry# Set the user variable to the name of the user to start Tightvncserver underexport USER='Pi'# # # END Customization required eval CD~$USER Case " $" inchStart ) # starts the command line. Customize the resolution, console number, or other parameters here. su$USER-C'/usr/bin/tightvncserver-depth 16-geometry 800x600:1' Echo "starting TightVNC server for $USER" ;; Stop) # terminates the command line. Here the console number is consistent with the start. su$USER-C'/usr/bin/tightvncserver-kill:1' Echo "Tightvncserver stopped" ;; *) Echo "Usage:/etc/init.d/tightvncserver {start|stop}"Exit1 ;;EsacExit0
(Note: The default user of a few players is not pi, please change the name of the export user= ' pi ' in quotation marks to your user name.) )
Press Ctrl+x to answer Y (save) to exit the Nano editor.
4. Add the Execute permission to the Tightvncserver file and update the boot list
sudo chmod 755 /etc/init.d/tightvncserversudo update-rc.d tightvncserver defaults
5. Computer-side VNC Login Raspberry Pi GUI
>> Download VNC Viewer client: VNC viewer PC Client
>> Open the VNC Viewer client, input: Raspberry Pi ip:1 (e.g. 192.16.137.4:1)
>> Click OK to enter the Raspberry Pi vnc password set in step 2nd
>> Click OK to see the Raspberry Pi graphical interface
6. Mobile-side VNC Landing Raspberry Pi GUI
>> Download VNC Viewer client:VNC viewer Android mobile Client
>> Open the VNC Viewer client, click on the bottom left of the "+" number, address fill out the Raspberry Pi IP address, name fill in the account name (such as pi), Save password to the right of the tick, and then click on the bottom left corner "√" number, and finally click "Connect" You can see the following screen.
Reference: HTTP://SHUMEIPAI.NXEZ.COM/2013/09/04/LOGIN-RPI-WITH-VNC.HTML?VARIANT=ZH-CN
VNC remote Login Raspberry Pi GUI--VNC server installation and connection