ubuntu11.04 vnc-server配置
来源:互联网 发布:滚动字幕制作软件 编辑:程序博客网 时间:2024/05/21 19:44
转自:http://nuclear-imaging.info/site_content/2011/05/11/vnc-server-setup-for-ubuntu-11-04-natty-narwhal/ For the first time I was able to get VNC to work with Ubuntu with Gnome session instead of a xterm on gray background. The steps involved were exactly the same as I was following earlier, with one exception: the setup of xstartup in the ~/.vnc folder. For your xstartup file in ~/.vnc (the “.vnc” folder in your home directory), you need the following: #—————————– #!/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 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” & gnome-session & # twm & #———————— instead of uncommenting the lines as the script suggests, you change the window manager to gnome-session make sure restart vnc4server The line which got Gnome working was “gnome-session &” ======================================== Now for all the steps involved (works in Karmic Koala Alpha 2, Ubuntu 9.10, kernel 2.6.30-10) 1. Install ssh server, ssh client, VNC viewer, VNC server, and xinetd sudo apt-get install openssh-server openssh-client vnc4server xinetd vncviewer 2. Setup the ssh password for your login ssh-keygen 3. Test out the ssh server by typing in ssh localhost or ssh your_login@your_ip_address 4. Then create a vnc password sudo vncpasswd ~/.vncpasswd 5. Edit the xstartup file in ~/.vnc directory For your xstartup file in ~/.vnc (the “.vnc” folder in your home directory), you need the following: —————————– #!/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 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” & gnome-session & # twm & ———————— instead of uncommenting the lines as the script suggests, you change the window manager to gnome-session 6. Create a VNC desktop vnc4server :1 -geometry 1024×768 7. Then to tunnel into your VNC desktop, first create a SSH tunnel by logging into SSH with the comand: ssh -L 5901:your_ip_address:5901 your_username@your_ipaddress 8. Finally, load up your VNC desktop vncviewer localhost:1
- ubuntu11.04 vnc-server配置
- vnc—server配置
- vnc-server配置
- VNC Server配置实例
- Fedora VNC Server配置
- RHEL5 vnc server 配置
- 配置VNC server
- VNC Server配置
- 配置VNC server
- RHL配置VNC Server
- VNC Server配置
- vnc server 配置
- VNC server简单配置
- Linux配置VNC Server
- vnc server安装配置
- VNC Server 安装与配置
- centos vnc server配置方法
- centos vnc server配置方法
- jersey 实现restful经验总结(待续)
- 云中间件和云系统
- 快速启动ILDasm查看当前项目的IL代码
- wince ov3640 摄像头
- c/c++源代码网站
- ubuntu11.04 vnc-server配置
- o relly的perl语言入门
- digest 用户认证 response生成算法
- 使用HTML5和CSS3来创建幻灯片
- Java Swing sun官方书籍部分翻译
- Linux进程间通信方式
- 数据库语法时用到的{},,[]等各类括号分别代表什么?
- 什么是---好的架构?
- MFC作为结果静态的DLL与作为共享的DLL的区别