Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install VNC remote Desktop Service for Raspberry pie

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "Raspberry pie how to install VNC remote desktop service", the content is easy to understand, well-organized, hope to help you solve your doubts, let the editor lead you to study and learn this article "Raspberry pie how to install VNC remote desktop service".

Raspberry pie command line:

Sudo apt-get install tightvncserver

After installation, be sure to use this command to set a VNC password:

Vncpasswd

First enter the operation password twice, and then ask whether to set a view-only password, press your favorite, generally not necessary. )

Set up boot boot:

You need to create a file in / etc/init.d/. For example, tightvncserver (Note: the name of the startup script has the habit of being consistent with the program name).

Sudo nano / etc/init.d/tightvncserver

The content is as follows: (right-click = paste in the putty window)

#! / bin/sh### BEGIN INIT INFO# Provides: tightvncserver# Required-Start: $local_fs# Required-Stop: $local_fs# Default-Start: 2 34 "Default-Stop: 0 1" 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 "$1" 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) # terminate the command line. Here the console number is the same as the startup. Su $USER-c'/ usr/bin/tightvncserver-kill: 1 'echo "Tightvncserver stopped"; *) echo "Usage: / etc/init.d/tightvncserver {start | stop}" exit 1;; esacexit 0

Note: for a small number of players whose default user is not pi, please change the USER variable.

Press Ctrl+X and answer Y (save disk) to exit the nano editor.

Then add execution permissions to the tightvncserver file and update the boot list.

Sudo chmod 755 / etc/init.d/tightvncserversudo update-rc.d tightvncserver defaults

To access on Mac, install VNC first, and then specify the address when connecting: vnc://192.168.1.123.

These are all the contents of the article "Raspberry pie how to install VNC remote Desktop Service". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report