您的位置:首页 > 汽车 > 新车 > 2345小游戏_seo技术培训价格表_长沙疫情最新情况_软文广告300字范文

2345小游戏_seo技术培训价格表_长沙疫情最新情况_软文广告300字范文

2025/5/19 13:00:09 来源:https://blog.csdn.net/zfenggo/article/details/145487586  浏览:    关键词:2345小游戏_seo技术培训价格表_长沙疫情最新情况_软文广告300字范文
2345小游戏_seo技术培训价格表_长沙疫情最新情况_软文广告300字范文

一、安装tigervnc

sudo apt install tigervnc-common
sudo apt install tigervnc-standalone-server

二、增加配置文件

安装完后新增配置文件:vim ~/.vnc/xstartup

#!/bin/sh
#Uncomment the following two lines for normal desktop:
#unset SESSION_MANAGER
#exec /etc/X11/xinit/xinitrc
#gnome-session --session=gnome-classic &[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
#xsetroot -solid grey
vncconfig -iconic &
dbus-launch --exit-with-session gnome-session &
#x-terminal-emulator -geometry 1280x1024+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &

三、设置密码

命令vncpasswd设置密码

walle@WALLE:~$ vncpasswd
Password:
Verify:
Would you like to enter a view-only password (y/n)? n  //这里选择n

四、启动

walle@WALLE:~$ vncserver -localhost no -geometry 1920x1080 :1
Cleaning stale pidfile '/home/walle/.vnc/WALLE:1.pid'!You will require a password to access your desktops.
New 'WALLE:1 (walle)' desktop at :1 on machine WALLEStarting applications specified in /home/walle/.vnc/xstartup
Log file is /home/walle/.vnc/WALLE:1.logUse xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /home/walle/.vnc/passwd WALLE:1 to connect to the VNC server.

-localhost no 需要加上才能支持远程访问
-geometry 设置远程分辨率
:1 远程绘话号

vncserver -list 可以列出当前的会话列表
vncserver -kill id 可以关掉对应的远程会话
笔记本屏幕一直打开亮着,可以进行以下配置:

sudo vi /etc/systemd/logind.conf
HandleLidSwitch=ignore

五、连接

window可以使用MobaXterm软件连接
在这里插入图片描述

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com