How to Install a VNC Server in Ubuntu
来源:互联网 发布:淘宝客返利网源码 编辑:程序博客网 时间:2024/06/02 00:15
1
Open a Terminal window. The Terminal window can be found under "Start" > "Utilities."
Download vnc4server and xinetd:
sudo apt-get install vnc4server xinetd
Start the vnc4server:
vnc4server
You will be prompted for a password. This password will be used to log into the VNC session.
After providing a password, you will get output that looks like:
New 'laptop:3 (laptop)' desktop is laptop:3
Take notice of the number after the colon (:), in this case it is "3."
Starting the vnc4server will cause a .vnc directory to be placed in your home directory.
Stop the vnc4server
vnc4server -kill :3
Replace the number "3" with the number from Step 3.
Open the .vnc/xstartup file for editing:
gedit ~/.vnc/xstartup
The file will look like:
#!/bin/sh
# Uncomment the following two lines for normal desktop:
#unset SESSION_MANAGER
#exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
Change the .vnc/xstartup file and save it.
Uncomment the lines that start with unset and exec. Comment out the lines that start with xsetroot, vncconfig, xterm and twm.
The final file should look like:
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
#xsetroot -solid grey
#vncconfig -iconic &
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
Change the permissions on the /etc/X11/xinit/xinitrc file to make it executable:
sudo chmod 755 /etc/X11/xinit/xinitrc
Start the vnc4server:
vnc4server
Again, remember the number after the colon (:).
Log into your remote desktop to check the configuration:
vncviewer localhost:3
Provide the password that you chose in Step 3.
- How to Install a VNC Server in Ubuntu
- How to Install a VNC Server in Ubuntu
- How To Install VNC Server On Ubuntu 14.04
- How to install VNC server on ubuntu 14.04
- How to install VNC on Ubuntu
- how to install a vncserver or vncviewer in Ubuntu
- How to install Deluge on a Ubuntu Server
- How to Install and Configure a VNC Server on RedHat Enterprise Linux (RHEL) 6
- How To Install / Configure VNC Server On CentOS 7.
- How to install Mysql in linux server
- How to install Skype in Ubuntu 7.10?
- How to install & uninstall software in ubuntu
- how to install java in ubuntu
- How To Install VirtualBox 4.0 In Ubuntu
- How to Install Older Kernel in Ubuntu
- how to install git1.8.0 in Ubuntu
- how to install dictionary in ubuntu.
- How to install opencv in Ubuntu
- Ubuntu环境变量设置
- python readline()函数
- “cunit” package in Ubuntu
- ubuntu NFS sfu配置指南
- Ubuntu8.04 和 8.10 NFS客户端 internal error BUG的解决[转]
- How to Install a VNC Server in Ubuntu
- Ubuntu内核编译简单过程
- android蓝牙传输文件时的文件格式限制及其解决方法
- 拥有属于自己的SVN(Google SVN)[转]
- NetBSD 软件安装
- Ubuntu 10.04禁止从桌面启动
- mount: wrong fs type, bad option, bad superblock on 192.168.20.23:/xx xx[z]
- PHY管理接口(MDIO)[z]
- ubuntu 10.04 中文输入法fcitx