1. 程式人生 > >aws ubuntu安裝vnc

aws ubuntu安裝vnc

  在網上搜了許多教程,還是不能解決問題,最後發現是配置檔案太古老的原因,大體步驟可以遵循https://kuyur.info/blog/archives/2593  只是將原文中 '將#去掉‘ 這一步改為

#!/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" &
x-window-manager &

gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &

 

大功告成