Ubuntu安装VNCServer SivanLaai2023-03-28 2023-06-15 约 147 字 预计阅读 1 分钟 - 次阅读 目录 Step1 (安装GNOME桌面)Step2Step3Step4:配置密码Step5:配置XStartupStep6:重启TigerVNC警告本文最后更新于 2023-06-15,文中内容可能已过时。Step1 (安装GNOME桌面)1 2 3 sudo apt-get update sudo apt-get install gnome-session-flashback sudo apt-get install ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal -yStep21 sudo apt-get -y install xfonts-100dpi xfonts-100dpi-transcoded xfonts-75dpi xfonts-75dpi-transcoded xfonts-baseStep31 sudo apt install tigervnc-standalone-serverStep4:配置密码1 vncpasswdStep5:配置XStartup1 vim ~/.vnc/xstartup内容如下:1 2 3 4 5 6 #!/bin/sh # Start Gnome 3 Desktop [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources vncconfig -iconic & dbus-launch --exit-with-session gnome-session &Step6:重启TigerVNC1 2 tightvncserver -kill :1 vncserver -depth 24 -name mydesktop -localhost no :1Please enable JavaScript to view the comments powered by Waline.