How to Install and Configure VNC on Ubuntu 14.04
2017-03-02 00:00
686 查看
摘要: How to Install and Configure VNC on Ubuntu 14.04
Step One — Install Desktop Environment and VNC Server
Step Two — Configure VNC Server
Step Three — Create a VNC Service File
PS:how-to-install-and-configure-vnc-on-ubuntu-14-04,
Step One — Install Desktop Environment and VNC Server
$ sudo apt-get update $ sudo apt-get install xfce4 xfce4-goodies tightvncserver
Step Two — Configure VNC Server
$ sudo mv ~/.vnc/xstartup ~/.vnc/xstartup.bak $ sudo nano ~/.vnc/xstartup ---------------------------------------- #!/bin/bash xrdb $HOME/.Xresources startxfce4 & ---------------------------------------- $ sudo chmod +x ~/.vnc/xstartup
Step Three — Create a VNC Service File
$ sudo nano /etc/init.d/vncserver ------------------------------------------------------------------------ #!/bin/bash PATH="$PATH:/usr/bin/" export USER="user" DISPLAY="1" DEPTH="16" GEOMETRY="1024x768" OPTIONS="-depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY}" . /lib/lsb/init-functions case "$1" in start) log_action_begin_msg "Starting vncserver for user '${USER}' on localhost:${DISPLAY}" su ${USER} -c "/usr/bin/vncserver ${OPTIONS}" ;; stop) log_action_begin_msg "Stopping vncserver for user '${USER}' on localhost:${DISPLAY}" su ${USER} -c "/usr/bin/vncserver -kill :${DISPLAY}" ;; restart) $0 stop $0 start ;; esac exit 0 ------------------------------------------------------------------------ $ sudo chmod +x /etc/init.d/vncserver $ sudo service vncserver start
PS:how-to-install-and-configure-vnc-on-ubuntu-14-04,
相关文章推荐
- How To Install and Use Memcache on Ubuntu 14.04
- Howto Install and Configure ROS on Ubuntu
- How To Install ElasticSearch,Logstash and Kibana(ELK Stack)on Ubuntu 14.04
- How To Install Elasticsearch, Logstash, and Kibana (ELK Stack) on Ubuntu 14.04
- Howto Install and Configure PCL on Ubuntu
- How to Configure and Install ownCloud on Ubuntu 16.04
- How To Install VNC Server On Ubuntu 14.04
- Howto Install and Configure Doxygen for QtCreator on Ubuntu
- Ubuntu 14.04安装PostgreSQL How To Install and Use PostgreSQL on Ubuntu 14.04
- How to Install and Configure Bind 9 (DNS Server) on Ubuntu / Debian System
- How to install and configure Apache, PHP, MySql and phpMyadmin on ubuntu
- Howto Install and Configure VTK on Ubuntu
- How to Install and Use Python Pip on Ubuntu 14.04 and pip install pytz
- how-to-install-vnc-server-on-ubuntu-14.04
- How To Install Elasticsearch 1.7, Logstash 1.5, and Kibana 4.1 (ELK Stack) on Ubuntu 14.04
- How To Install Elasticsearch, Logstash, and Kibana (ELK Stack) on Ubuntu 14.04