1.install soft
apt-get install xfonts-intl-chinese xfonts-wqy ttf-wqy-zenhei ttf-wqy-microhei
2.set password
安装完成以后,配置下vnc,让vnc 开机自动启动,并设置一个vnc的连接密码
终端输入 vncpasswd ,提示输入密码即可
3. 启动
运行命令:vncserver
关闭命令:
vncserver -kill :1
4.配置vncserver
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 &
xfce4-session &
5.登陆VNC
然后用windows 的vnc 客户端VNC-Viewer-5.0.2-Windows-32bit连接。
Server填:服务器IP:1
然后输入刚刚设置的VNC密码
|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )
GMT+8, 2024-11-18 00:20 , Processed in 0.036827 second(s), 5 queries , Gzip On, Redis On.
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.