ubuntu14.04配置vnc4server
来源:互联网 发布:瓷砖计算软件 编辑:程序博客网 时间:2024/06/14 03:08
环境:
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 :1vnc4servre :2vnc4server :3#...
关闭:
vnc4server -kill :1
不同之处在于
sudo gedit ~/.vnc/xstartup
的配置
,只有如下这样配置,我的远程机器登录时才能正常显示gnome桌面:
方案一:
#!/bin/sh# Uncomment the following two lines for normal desktop:export XKL_XMODMAP_DISABLE=1unset SESSION_MANAGERunset DBUS_SESSION_BUS_ADDRESS[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresourcesxsetroot -solid greyvncconfig -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
阅读全文
0 0
- ubuntu14.04配置vnc4server
- ubuntu13.04 配置 vnc4server
- windows远程连接Ubuntu14.04—vnc4server
- 在ubuntu7.04下配置vnc4server远程桌面
- Ubuntu vnc4server安装配置
- Ubuntu 配置 vnc4server
- ubuntu10.04|vnc4server
- ubuntu10.04|vnc4server
- ubuntu7.10配置vnc4server远程桌面
- Ubuntu14.04 配置
- ubuntu14.04 配置cuda
- Ubuntu14.04环境配置
- Ubuntu14.04配置opencv
- ubuntu14.04-PHP配置
- ubuntu14.04 nginx配置
- Ubuntu14.04配置vim
- Ubuntu14.04上网配置
- ubuntu14.04配置vnc
- Windows7连接VPN(PPTP类型)
- Mac下使用iTerm2让SSH记录远程服务器账号和密码
- 欢迎使用CSDN-markdown编辑器
- 过滤器(Filter)和监听器(Listener)
- uikit——UIView——tag
- ubuntu14.04配置vnc4server
- 把软件锁定到任务栏之后图标不正常显示
- JavaWeb的两种开发模式
- 使用Espresso写测试案例
- git 命令行指令基本操作
- 实现基本交互Oc
- 分类softmax函数
- 前端开发中的cookie使用总结。
- HTTP以及其与HTTPS的区别、javaweb