系统为ubuntu18.04 amd64版本。
本教程使用vino配置远程服务器。
首先,离线安装vino包后远程传输给待控制服务器:
sudo apt update
sudo apt-get download $(apt-cache depends --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances --no-pre-depends vino | grep -v i386 | grep "^\w")
进入安装包根目录下:
sudo chmod +x -R .
sudo dpkg -i ./*.deb
sudo ln -s ../vino-server.service /usr/lib/systemd/user/graphical-session.target.wants
gsettings set org.gnome.Vino authentication-methods "['vnc']"
# passwd改为需要设置的vnc连接密码
gsettings set org.gnome.Vino vnc-password $(echo -n 'passwd'|base64)
之后关机重启:
sudo reboot
在本地机器上使用vnc viewer连接远程服务器ip即可。
vino默认分辨率为640 x 480,需要修改分辨率则按照以下方法:
# 修改文件/etc/X11/xorg.conf并增加以下内容:
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Tegra0"
SubSection "Display"
Depth 24
Virtual 1920 1080 # Modify the resolution by editing these values
EndSubSection
EndSection
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)