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

What is the graphical interface of VNC remote login raspberry pie

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

VNC remote login raspberry pie graphical interface is like, I believe that many inexperienced people do not know what to do, so this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

The command line is required to install VNC. If you need to install VNC remotely, you must log in to the command line interface through SSH.

Installation

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.

Power on and start automatically

To set boot up, you need to create a file in / etc/init.d/. For example, tightvncserver:

Sudo nano / etc/init.d/tightvncserver

The contents are as follows:

#! / 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 1024x768: 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 few players whose default user is not pi, please change the USER variable by yourself.

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.

Log in to VNC on sudo chmod 755 / etc/init.d/tightvncserversudo update-rc.d tightvncserver defaults computer

Download Windows client RealVNC Viewer link: http://share.weiyun.com/3c5ceedf89d9f3ab38b875040b8db22b (password: I2xU)

Login address enter "IP address: console number", 0 console can not add a number.

You can also use the VNC client for Android, download address: http://android.d.cn/software/19334.html

Manual startup and parameters

Use this command to manually start the VNC server program:

Tightvncserver-geometry 1024x768: 1

If you start for the first time and have not used the vncpasswd command to set a password, the program will ask for one.

It's convenient to start up. If there is no reason, it is really not recommended to start manually.

Command line argument description:

1: 1, specify the number of the console.

Start multiple consoles to provide multiple desktop environments that do not affect each other. (most people don't need multi-user operations, so it doesn't make sense.)

Without this parameter, tightvncserver automatically looks for the next idle console starting at 1.

With this parameter, the specified console is forced to be used and an error is reported if the console is already started. Adding this parameter can effectively prevent the system resources from being wasted by unintentionally starting the program multiple times (which will start multiple consoles).

Special console 0

Console 0 is the desktop that is connected to the real monitor that actually outputs the image.

For the VNC client, log in to console 0 by default without entering the port number, which is convenient.

But because No. 0 is a real desktop, there is a verbose conflict with booting up the desktop environment or using your own startx commands.

At the end of the day, it's a problem. Therefore, console 1 is used in all configuration tutorials that start automatically.

Second,-geometry 1024x768, resolution. You don't have to add it.

Terminate the VNC console:

Tightvncserver-kill: 1

View a list of running consoles:

Ps ax | grep Xtightvnc | grep-v grep after reading the above, have you mastered how VNC remotely logs in to the graphical interface of raspberry pie? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

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