vnc4server - Linux

Table of Contents

# apt-get install vnc2server

替換 ~/.vnc/xstartup 為以下內容
---
#!/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
export XDG_CONFIG_HOME=${HOME}"/.config"
export XDG_DATA_DIRS="/usr/local/share:/usr/share/:/usr/share/gdm/"
vncconfig -iconic &
scim -d &
lxsession
# 如果是 gnome 的話把 lxsession 替換成 gnome-session

--

All Comments