跳至內容

UNIXETC

标签: VNC

Ubuntu Server中安装VNC Server

安装所有软件 #aptitude install openbox firefox ttf-wqy-microhei #aptitude install vnc4server 设置openbox启动 #update-alternatives --config x-session-manager 然后选择openbox-session 设置vncserver密码: #vncpasswd Password: ****** Verify:***** 运行vncserver # vncserver //运行 # vncserver -kill :1 //终止 编辑~/.vnc/xstartup文件 #vi ~/.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 vncconfig -iconic & x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & x-window-manager & startx& //添加此行 链接VNC