Linux開機啟動VNCserver

來源:互聯網
上載者:User

Linux開機啟動VNCserver Debian開機啟動VNC:   www.2cto.com  啟動VNC並設定:startjwm & firefox --display=:1 設定VNC開機啟動vim /etc/init.d/vncserver Sehll代碼  ### BEGIN INIT INFO  # Provides: vncserver  # Required-Start: $remote_fs $syslog  # Required-Stop: $remote_fs $syslog  # Default-Start: 2 3 4 5  # Default-Stop: 0 1 6  # Short-Description: Start daemon at boot time  # Description: Enable service provided by daemon.  ### END INIT INFO  PATH="$PATH:/usr/X11R6/bin/"  # The Username:Group that will run VNC  export USER="root"  #${RUNAS}  # The display that VNC will use  DISPLAY="1"  # Color depth (between 8 and 32)  DEPTH="16"  # The Desktop geometry to use.  #GEOMETRY="x"  GEOMETRY="800x600"  #You Can Choice GEOMETRY="1024x768" && GEOMETRY="1280x1024"  # The name that the VNC Desktop will have.  NAME="Vncserver"  OPTIONS="-name ${NAME} -depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY}"  . /lib/lsb/init-functions  case "$1" in  start)  su ${USER} -c "/usr/bin/vncserver ${OPTIONS}"  ;;  stop)  su ${USER} -c "/usr/bin/vncserver -kill :${DISPLAY}"  ;;  restart)  $0 stop  $0 start  ;;  esac  exit 0   添加許可權chmod +x /etc/init.d/vncserver使配置生效update-rc.d vncserver defaults添加計劃任務,定時重啟vnc或者系統,以防止firefox假死不出分crontab -e CentOS開機啟動VNC: 1.配置vnc /etc/sysconfig/vncservers 2.shift+g 移到最後插入下面的代碼 [code="SHELL"]VNCSERVERS="1:root"VNCSERVERARGS[1]="-geometry 800x600"3.設定vnc自動啟動 chkconfig vncserver on 4.安裝flash外掛程式 wget http://blog.firetry.com/soft/libflashplayer.so mkdir -p ~/.mozilla/plugins  cp libflashplayer.so ~/.mozilla/plugins/ 5.下載vagex 外掛程式,youtube最佳化外掛程式 wget http://vagex-debian.googlecode.com/files/youtube_video_quality_manager-1.2-fx.xpi 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.