一、首先删除无用程序
apt-get remove portmap* httpd* bind9* samba* nscd* sendmail* -y
二、更新源
apt-get update -y && apt-get upgrade -y
三、安装XFCE4并配置中文支持
apt-get install xfce4 -y
apt-get install xfonts-intl-chinese xfonts-wqy ttf-wqy-zenhei ttf-wqy-microhei xfonts-intl-chinese wqy* -y
四、安装并设置VNC
安装:apt install tigervnc-standalone-server -y 启动并设置密码:vncserver 配置VNC启动xfce4桌面:vim /root/.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 &
#xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
#twm &
startxfce4 &
设置启动权限:chmod +x ~/.vnc/xstartup
reboot
启动VNC
vncserver -localhost no
VNC一些命令:
查看全部的vnc会话:vncserver -list
关闭某个会话可以用下面的命令:vncserver –kill :1
五、安装wine并配置winetricks
apt-get install wine -y apt-get install cabextract -y wget http://www.kegel.com/wine/winetricks chmod +x winetricks mv winetricks /usr/local/bin
在桌面里的SSH里输入winetricks并配置即可。
好文章,学习了
感觉不错!挺 博主!