Ubuntu Desktop上安装VNC Server

本文介绍如何安装VNC Server,使用户能够从远程Windows客户端通过图形界面操作Ubuntu系统。首先需在Ubuntu上安装并配置VNC Server,设置密码及启动参数。接着,在Windows客户端安装VNC Viewer,输入Ubuntu服务器地址及显示编号进行连接。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

[1]Install VNC Server to operate Ubuntu with GUI from remote Windows client.
root@dlp:~# 
aptitude  -y install vnc4server  


root@dlp:~# 
su  - narwhal  
# switch to a user who set VNC

narwhal@dlp:~$ 
# set VNC password

Password:
# any password you like to set

Verify:
narwhal@dlp:~$ 
vncserver :1  
# start

xauth: file /home/narwhal/.Xauthority does not exist

New 'dlp:1 (narwhal)' desktop is dlp:1

Creating default startup script /home/narwhal/.vnc/xstartup
Starting applications specified in /home/narwhal/.vnc/xstartup
Log file is /home/narwhal/.vnc/dlp:1.log

narwhal@dlp:~$ 
vncserver -kill :1  
# stop

Killing Xvnc4 process ID 10540
narwhal@dlp:~$ 
vi  .vnc/xstartup  


# add follows

exec gnome-session &


# start with diplay number '1', screen resolution '800x600', color depth '24'

narwhal@dlp:~$ 
vncserver :1 -geometry 800x600 -depth 24  


New 'dlp:1 (narwhal)' desktop is dlp:1

Starting applications specified in /home/narwhal/.vnc/xstartup
Log file is /home/narwhal/.vnc/dlp:1.log
[2]Install VNC viewer on client computer next. Download from the site below to install. 

http://www.realvnc.com/products/free/4.1/download.html

Start VNC viewer after installing. Then following scrren is shown. Input [(Server's hostname or IP address):(display number)] like following example.
 
[3]Password is required. Input VNC password you set in the section [1].
 
[4]Just connected.
  

转载于:https://www.cnblogs.com/gispathfinder/archive/2012/01/08/2316357.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值