Install VNC server for raspberry pie and set up self-starter

Source: Internet
Author: User
Tags ssh tightvnc
Raspberry Pie Initialization setting and installing VNCSSH up after the first thing is to update Debian:sudo apt-get update, after the upgrade is completed restart;

In the SSH terminal input sudo raspi-config, here need to open a few options: expand_rootfs– to extend the root partition to the entire SD card; change_pass– The default user name is pi, the password is raspberry; change_timezone– Change Time zone, select Asia–shanghai; Configure_keyboard, select 中文版 (US); change_locale– change the language settings and select en_US. UTF-8 and ZH_CN. When the UTF-8 setting is complete, select Finish to indicate whether to reboot and select Yes

Install VNC server (Debian) on raspberry pie: sudo apt-get install tightvncserver install VNC client on PC (Fedora): sudo yum-y install Tigervnc If your PC is a Windows system, you can download TightVNC install other common software: sudo apt-get install-y git build-essential vim Tmux Curl 2.1 on the raspberry pie VNC First to modify VNC password: SSH terminal to perform vncpasswd, and then enter two password. Create vnc-server configuration file: sudo vi/etc/init.d/tightvncserver, enter the following in this file:

### BEGIN INIT INFO # provides:tightvncserver # Required-start: $local _fs # required-stop: $local _fs # D Efault-start:2 3 4 5 # default-stop:0 1 6 # short-description:start/stop Tightvncserver ### end INIT INFO # M Ore details: # HTTP://WWW.PENGUINTUTOR.COM/LINUX/TIGHTVNC ### Customize This entry # Set the USER variable to the NAM
  E of the user to start Tightvncserver under Export user= ' pi ' ### end customization required eval CDs ~ $USER case "$" in Start) Su $USER-C '/usr/bin/tightvncserver-depth 16-geometry 800x600:1 ' echo ' starting TIGHTVNC server for $
  USER ";;
  Stop) Su $USER-C '/usr/bin/tightvncserver-kill:1 ' echo "Tightvncserver stopped";;
*) echo "Usage:/etc/init.d/tightvncserver {start|stop}" exit 1;; ESAC Exit 0 

Then add execution permissions and start the service:

sudo chmod +x/etc/init.d/tightvncserver
sudo service tightvncserver stop
sudo service tightvncserver start

Install the Chkconfig and set the VNC service to boot:

sudo apt-get install chkconfig
chkconfig--add tightvncserver chkconfig tightvncserver on

Connect with a PC, remember to add a raspberry address: ip:1, for example, the raspberry pie IP is 192.168.1.100, then the VNC Viewer will fill in the 192.168.1.100:1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.