ubuntu14.04配置vnc4server
2017-07-20 13:41
393 查看
环境:
ubuntu14.04
今天花了一个上午终于理解了使用vnc4server搭建远程图形化server的方法:
其他步骤与网上的方法均大同小异,安装,开启,给权限:
要开启多个vncserver,只需要重复命令:
关闭:
不同之处在于
方案一:
方案二:
先安装
再修改
添加开机启动:
按下Super键(也叫home键或者windows键,大多数键盘其实就是windows键)
在弹出来的搜索框里面搜索并打开startup applications
点击add
在弹出来的框里面填写以下内容:
Name: vnc4server
Command: vnc4server :1
参考了以下文档,在此特别感谢各位 ๑乛◡乛๑:
http://blog.csdn.net/fisher_jiang/article/details/4192482
http://blog.163.com/thinki_cao/blog/static/83944875201303014531803/
http://www.cnblogs.com/lixigang/articles/5653405.html
http://blog.csdn.net/yangcs2009/article/details/9789845
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-14-04
ubuntu14.04
今天花了一个上午终于理解了使用vnc4server搭建远程图形化server的方法:
其他步骤与网上的方法均大同小异,安装,开启,给权限:
sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal vnc4server
sudo chmod +x ~/.vnc/xstartup开启:
vnc4server -geometry 1280x800 (此处分辨率可以自己设置)
要开启多个vncserver,只需要重复命令:
vnc4server或者使用 :1 这种方式来指定端口:
vnc4server :1 vnc4servre :2 vnc4server :3 #...
关闭:
vnc4server -kill :1
不同之处在于
sudo gedit ~/.vnc/xstartup
的配置
,只有如下这样配置,我的远程机器登录时才能正常显示gnome桌面:
方案一:
#!/bin/sh # Uncomment the following two lines for normal desktop: export XKL_XMODMAP_DISABLE=1 unset SESSION_MANAGER unset DBUS_SESSION_BUS_ADDRESS [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & gnome-session & gnome-panel & gnome-settings-daemon & metacity & nautilus & gnome-terminal &
方案二:
先安装
sudo apt-get update sudo apt-get install xfce4
再修改
#!/bin/sh export XKL_XMODMAP_DISABLE=1 unset SESSION_MANAGER unset DBUS_SESSION_BUS_ADDRESS [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & # x-session-manager & # xfdesktop & xfce4-panel & # xfce4-menu-plugin & # xfsettingsd & # xfconfd & # xfwm4 & xrdb $HOME/.Xresources startxfce4 &
添加开机启动:
按下Super键(也叫home键或者windows键,大多数键盘其实就是windows键)
在弹出来的搜索框里面搜索并打开startup applications
点击add
在弹出来的框里面填写以下内容:
Name: vnc4server
Command: vnc4server :1
参考了以下文档,在此特别感谢各位 ๑乛◡乛๑:
http://blog.csdn.net/fisher_jiang/article/details/4192482
http://blog.163.com/thinki_cao/blog/static/83944875201303014531803/
http://www.cnblogs.com/lixigang/articles/5653405.html
http://blog.csdn.net/yangcs2009/article/details/9789845
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-14-04
相关文章推荐
- Ubuntu server 14.04 安装图形界面及相关配置
- Ubuntu Server 14.04 静态IP简单配置
- Ubuntu Server 16.04(14.04)下配置LAMP环境
- 服务器安装并配置Ubuntu Server 14.04
- tomcat配置(ubuntu 14.04 server)
- ubuntu 14.04 server 下安装ZABBIX 及增加客户机配置过程
- ubuntu server 14.04 编译安装xen4.4.2配置vtpm(一)——xen4.4.2源码编译安装
- Ubuntu Server 14.04 安装配置Ganglia监控Hadoop
- ubuntu server 14.04 下 pomelo 环境配置
- Ubuntu server 14.04设置图形化界面及相关配置
- UbuntuServer14.04+CUDA7.5+CuDNNv3+Caffe+OpenCV3.0+配置
- Ubuntu14.04 Server amd64 配置 Apache+MySQL+Django
- hadoop 安装配置 Ubuntu 14.04server
- Ubuntu Server 14.04 的LAMP配置
- Ubuntu 14.04 server配置使用无线连接静态设置IP
- 1 ubuntu server 14.04 LTS环境配置
- Ubuntu14.04 server 静态ip配置
- ubuntu-server14.04 网络配置
- Ubuntu 14.04 server配置使用无线连接DHCP获取IP