Windows Remote Desktop Connection Raspbian Vncserver

Source: Internet
Author: User
Tags ssh windows remote desktop tightvnc

The purpose achieved:

1. After the Raspbian Linux system starts, Vncserver automatically starts,

2. Remote Desktop through Windows allows you to log in to the graphical interface.


Raspberry Pie Initialization setting and installing VNC and XRDP SSH 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 (new Raspbian will prompt to delete existing realvncserver, I choose y)

Install the XRDP service side (Debian) on the raspberry pie: sudo apt-get install XRDP (automatically create a startup file when you install)
Installing VNC Client (Windows) on your PC: Windows's own Remote Desktop or Vncviewer 2.1 Configure VNC on the raspberry pie First modify the VNC password: The SSH terminal executes the vncpasswd, and then the password is entered two times. 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 # De Fault-start:2 3 4 5 # default-stop:0 1 6 # short-description:start/stop Tightvncserver ### end INIT INFO # Mo  Re details: # 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 CDs ~ $USER case "$" in Start) Su $USER-C '/usr/bin/tightvncserver-depth 16-geometry 800x600:1 ' echo ' starting TightVNC server for $U
  SER ";;
  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 PC,

1. Remember to fill in the Raspberry address: ip:1, for example, the raspberry pie IP is 192.168.1.100, then the VNC viewer should fill in the 192.168.1.100:1

2. Win7 under Windows Remote Desktop Connection, as follows:




Related Article

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.