install vnc in debian 8 desktop mate
سه شنبه, ۸ اسفند ۱۳۹۶، ۰۴:۱۱ ب.ظ
1- sudo apt-get install mate-desktop-environment
2- sudo apt-get install vnc4server
3- vncserver
4- vncserver -kill :1
5- vim ~/.vnc/xstartup
change:
#!/bin/bash
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
#. /etc/X11/xinit/xinitrc
/usr/bin/mate-session
[ -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" &
**only debain 9
6- sudo vim /etc/vnc.conf
add:
$localhost = "no";
7- vncserver
- ۹۶/۱۲/۰۸