打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
ubuntu14.04 配置VNC服务,亲测可用

1.更新系统 apt-get update -y apt-get upgrade -y 


2. 安装gnome环境相关,sudo apt-get install ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal


3. 安装vncserver, sudo apt-get install vnc4server

4.  给当前用户设置vnc登录密码:
 vncpasswd   


5. 启动vncserver,生成.vnc文件和xstartup文件

6.  修改.vnc/xstartup文件

#!/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 &
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
#gnome-session-fallback &
export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS


xsetroot -solid grey
vncconfig -iconic &
gnome-session &

gnome-panel &
gnome-settings-gaemon &
metacity &
nautilus &
gnome-terminal &

7. 配置完毕后,启动vncserver

    vncserver -geometry 1280x1024

启动后,记住vncserver的端口号


=========windows下进行vnc访问

1. 下载vncviewer客户端,输入Ip: 192.168.1.100:1(冒号后面的是7中生成的端口号)

2. 输入密码即可


=========Linux下进行vnc访问

1、安装VNC客户程序:
sudo apt-get install vnc4-common xvnc4viewer  

2、 然后你就通过Terminal Server Client登录了:Applications -> Internet -> Terminal Server Client;Computer为:服务器IP:display#,例如:192.168.10.36:1;protocol选择:VNC。 
或者命令行:

vncviewer 
192.168.2.103:1  



本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Ubuntu16.04 用VNC链接 GNOME 桌面
云服务器ECS安装VNC实现图形化访问
windows下通过VNC图形化访问Ubuntu桌面环境
Ubuntu安装VNC
ubuntu安装vncserver实现图形化访问
多人VNC远程桌面服务配置
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服