Ubuntu 配置vncserver(10.04~12.04通用)
2013-05-30 09:34
281 查看
1. 安装gonme核心包(如果是字符界面的话)
apt-get install x-window-system-core
apt-get install gnome-core (下载完成后需要安装dgm,不能选择lightdgm,不然重启以后不能登陆桌面了)
apt-get install metacity
apt-get install gnome-desktop-environment (optional)
2.安装vnc4server
apt-get install vnc4server
3.设置vncserver密码
# vncpasswd
Password: ******
Verify:*****
4.启动VNC server
# vncserver
# vncserver -kill :1 (:1表示5901端口)
5.修改~/.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 &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
gnome-session-fallback &
6.登录时更换为经典界面。
apt-get install x-window-system-core
apt-get install gnome-core (下载完成后需要安装dgm,不能选择lightdgm,不然重启以后不能登陆桌面了)
apt-get install metacity
apt-get install gnome-desktop-environment (optional)
2.安装vnc4server
apt-get install vnc4server
3.设置vncserver密码
# vncpasswd
Password: ******
Verify:*****
4.启动VNC server
# vncserver
# vncserver -kill :1 (:1表示5901端口)
5.修改~/.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 &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
gnome-session-fallback &
6.登录时更换为经典界面。
相关文章推荐
- 【转载】Ubuntu 12.04 Desktop下vncserver配置:Unity以及Xfce4桌面环境
- [Linux] Ubuntu 12.04 Desktop下vncserver配置:Unity以及Xfce4桌面
- ubuntu 10.04安装和配置Samba
- ubuntu 12.04 桌面版 dhcp server 配置过程
- Ubuntu 12.04的配置
- ubuntu 12.04配置SSH---为远程登录会话和其它网络服务提供的协议
- Ubuntu10.04下的TFTP配置
- ubuntu 12.04安装配置samba
- 环境: ubuntu 12.04 上C / C++, OpenGL, Android, NDK,Ogre环境配置(此贴作废,配置看我新贴)
- ubuntu 12.04下的apache+mysql+php配置
- Ubuntu 12.04 Desktop配置XAMPP【转】
- 解析阿里云ubuntu12.04环境下配置Apache+PHP+PHPmyadmin+MYsql
- SVN+SSH 服務器創建及客戶端配置.(ubuntu 12.04)
- ubuntu 12.04配置NFS服务
- Ubuntu 12.04 中安装和配置 Java JDK
- (总结)Ubuntu Server 12.04 静态IP简洁配置
- ubuntu 12.04 安装配置 JDK 7
- ubuntu 10.04 下 samba 服务的配置
- WIN7中安装的VMware WS+Ubuntu10.04上网配置