vnc setup

来源:互联网 发布:unity3d 视频教程 编辑:程序博客网 时间:2024/06/11 00:38
[html] view plain copy
  1. #!/bin/sh  
  2.   
  3. # Uncomment the following two lines for normal desktop:  
  4. # unset SESSION_MANAGER  
  5. # exec /etc/X11/xinit/xinitrc  
  6. unset SESSION_MANAGER  
  7. unset DBUS_SESSION_BUS_ADDRESS  
  8. [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup  
  9. [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources  
  10. xsetroot -solid grey  
  11. vncconfig -iconic &  
  12. x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &  
  13. x-window-manager &  
  14. # gnome-session &  
  15. export STARTUP="/usr/bin/gnome-session --session=ubuntu-2d"  
  16. $STARTUP  
原创粉丝点击