侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

How to Install and Configure VNC on Ubuntu 14.04

2023-11-24 星期五 / 0 评论 / 0 点赞 / 41 阅读 / 1391 字

Step One — Install Desktop Environment and VNC Server $ sudo apt-get update$ sudo apt-get install xf

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/bashxrdb $HOME/.Xresourcesstartxfce4 &----------------------------------------$ sudo chmod +x ~/.vnc/xstartup

Step Three — Create a VNC Service File

$ sudo nano /etc/init.d/vncserver------------------------------------------------------------------------#!/bin/bashPATH="$PATH:/usr/bin/"export USER="user"DISPLAY="1"DEPTH="16"GEOMETRY="1024x768"OPTIONS="-depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY}". /lib/lsb/init-functionscase "$1" instart)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;;esacexit 0------------------------------------------------------------------------$ sudo chmod +x /etc/init.d/vncserver$ sudo service vncserver start

 

PS:how-to-install-and-configure-vnc-on-ubuntu-14-04,

广告 广告

评论区