Linux configuration VNCServer

Here write custom directory title

Install vnc server

sudo apt install vnc4server
# 配置vncserver,设置好密码
vncserver -geometry 1920x1080 :11

Use vncvivrewer input 主机ip:端口, enter the password

Here Insert Picture DescriptionAdd the following

 xterm -display :11 &

It lets X Serverstartxterm终端

Boot directly to the desktop:

#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
exec /usr/bin/mate-session &

Here's desktop systems mate.

Published 65 original articles · won praise 26 · Views 100,000 +

Guess you like

Origin blog.csdn.net/bleedingfight/article/details/89418875