Preliminary practice of Raspberry Pi remote Login
The VNC installation section in this article and the way to implement the VNC server-side Autorun are from the following URLs: HTTP://SHUMEIPAI.NXEZ.COM/2013/09/04/LOGIN-RPI-WITH-VNC.HTML?VARIANT=ZH-CN
Before buying a Raspberry Pi 3, but also bought a small screen, already through the self-brought screen to set up good wifi. In the use of the found not only the screen is small, and display is not good. So I decided to try it with a remote login method.
Raspberry Pi HDMI display (display quality is general, the display effect is not ideal)
Download SecureCRT first. SECURECRT is a terminal emulator that supports SSH (SSH1 and SSH2), simply the software that logs on to UNIX or Linux server hosts under Windows. First use the software to log in to the Raspberry Pi, login after the interface such as.
Root privileges are obtained under this interface. After using the sudo
apt-get
install
tightvncserver
command to install VNC.
Use after installation is complete
The VNCPASSWD command sets the VNC password to be used when logging in. (Enter the operation password two times, then ask whether to set a view (view-only) password, as you like, generally not necessary. )
Boot Auto-start Setup method (I have not set the success, first to use SecureCRT, Login to Raspberry Pi, enter in command line mode Tightvncserver Run Manually VNC server-side, continuing research)
To set up boot, you need to create a file in/etc/init.d/. For example Tightvncserver:
(Note: The name of the startup script has a habit consistent with the program name)
1 |
sudo nano/etc/init.d/tightvncserver |
The contents are as follows: (right-click = paste in Putty window) #!/bin/sh
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21st 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# # # 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 under Export user= ' pi ' # # # END Customization Required Eval CD ~ $USER Case "$" in Start # Start 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}" Exit 1 ;; Esac Exit 0 |
Press Ctrl+x to answer Y (save) to exit the Nano editor.
Then give the Tightvncserver file plus execute permissions and update the boot list.
1 2 |
sudo chmod 755/etc/init.d/tightvncserver sudo update-rc.d tightvncserver defaults |
VNC computer-side installation: https://www.realvnc.com/download/vnc/Download the appropriate version of the installation on this website.
The screen after remote login ()
Login to the remote Graph line interface has been completed since. Boot autorun VNC server side I have not set the success, there is a remote desktop compared to the native desktop less shortcuts, I do not know why, I still need to continue to study.
VNC Raspberry Pi (Raspberry Pi 3) Remote Desktop initial experience