#参考:https://wiki.debian.org/Xfce
apt install aptitude -y
aptitude purge `dpkg --get-selections | grep gnome | cut -f 1`
aptitude -f install
aptitude purge `dpkg --get-selections | grep deinstall | cut -f 1`
aptitude -f install
apt install -y xfce4 vim
apt install -y xfce4-goodies
apt install -y task-xfce-desktop
###############################################################
#apt-cache search xfce4
#apt install `apt-cache search xfce | cut -d ' ' -f1`
#vim /etc/slim.conf
#login_cmd exec ck-launch-session /bin/bash -login /etc/X11/Xsession %session
#####
#vim ~/.xsession
#exec ck-launch-session startxfce4
#####
#vim /etc/pam.d/common-session
#session optional pam_loginuid.so
##############################################################
apt install -y tightvncserver
vncserver
vncserver -kill :1
cp -a ~/.vnc/xstartup ~/.vnc/xstartup.backup
vim ~/.vnc/xstartup
#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &
chmod +x ~/.vnc/xstartup
vncserver :1 -geometry 1440x900 -depth 24
#错误排查
#netstat -ntlup
#看看5901 是不是监听的0.0.0.0的地址 如果不是可以使用 -localhost no 设置监听全部