安装远程桌面,VNC Server on FreeBSD + VNC Viewer on Windows !
来源:互联网 发布:美的电磁炉网络专供 编辑:程序博客网 时间:2024/04/30 14:38
一直都在思考*NIX下面如何远程桌面,发现VNC实在是一个很好的东东,在*NIX平台上的性能表现远超过于Windows平台上面!
下面就以FreeBSD为例子来说明如何建立Remote Desktop:
1) FreeBSD + X-Window(xorg) + Gnome Desktop + VNCServer
2) Windows + RealVNC Viewer Free Edition
安装FreeBSD, xorg, Gnome不作过多叙述了,直入主题!
FreeBSD# cd /usr/ports/net/vnc
FreeBSD# make
FreeBSD# make install
FreeBSD# make clean distclean
完成后,可以用 which vncserver 查看路径为:/usr/local/bin/vncserver
在自己的home目录下面新建一个目录:
[xport@FreeBSD ~] $ mkdir .vnc
[xport@FreeBSD ~] $ cd .vnc
[xport@FreeBSD ~/.vnc] $
启动vncserver,第一次启动会为你的session设定密码:
[xport@FreeBSD ~/.vnc] $ vncserver
You will require a password to access your desktops.
Password:<--输入密码
Verify: <--确认密码
xauth: creating new authority file /home/xport/.Xauthority
New 'X' desktop is xport.localdomain:1
Creating default startup script /home/xport/.vnc/xstartup <--这个文件很重要,接下来会修改它!
Starting applications specified in /home/xport/.vnc/xstartup
Log file is /home/dan/.vnc/xport.localdomain:1.log
如果要关闭vncserver,用下面的方法:
[xport@FreeBSD ~/.vnc] $ vncserver -kill :1
[xport@FreeBSD ~/.vnc] $ ls -al
total 16
-rw-r--r-- 1 xport users 10382 Oct 11 23:20 FreeBSD.localdomain:1.log
-rw------- 1 xport users 8 Oct 11 23:09 passwd
-rwxr-xr-x 1 xport users 184 Oct 11 23:11 xstartup
接下来修改xstartup:
[xport@FreeBSD ~/.vnc] vi xstartup
# 修改成下面的内容
#!/bin/sh
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
# 下面的2行是vncserver第一次启动的时候产生的,为了使用Gnome,我把它们给
# 注释掉了
# xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
# twm &
gnome-session & <--这个是我增加的,不要忘了后面的&
好了,再次启动vncserver吧!
[xport@FreeBSD ~/.vnc] $ vncserver
New 'FreeBSD.localdomain:1 (xport)' desktop is FreeBSD.localdomain:1
Starting applications specified in /home/xport/.vnc/xstartup
Log file is /home/xport/.vnc/FreeBSD.localdomain:1.log
[xport@FreeBSD ~/.vnc] $
好现在我们从Windows下面连接FreeBSD:
输入密码:
进入Gnome,我启动了Eclipse IDE:
哈哈,感觉这样运行比较爽!
- 安装远程桌面,VNC Server on FreeBSD + VNC Viewer on Windows !
- 安装远程桌面,VNC Server on FreeBSD + VNC Viewer on Windows !
- 安装远程桌面,VNC Server on FreeBSD + VNC Viewer on Windows !
- 安装远程桌面,VNC Server on FreeBSD + VNC Viewer on Windows !
- install vnc server on debian
- VNC Server on Ubuntu 14.04
- vnc server/viewer设置
- centOS远程桌面 VNC-Server
- [linux]vnc server and vnc viewer
- VNC server on OpenSolaris 2008,05
- Test VNC Server on XserverSanityGnome-s10u11b10-x86
- Run a VNC server on Android device
- Install VNC Server On CentOS 6.4
- Automatically start VNC server on startup
- VNC-Server installation on CentOS 7
- CentOS安装远程桌面VNC
- Vnc on Ubuntu
- vnc service on ubuntu
- Trac - wiki恢复历史版本
- 书讯 -- 一致化对象与数据的存取 LINQ
- 校正srt字幕文件的时间[java源码]
- 字节对齐的问题浅谈
- 书讯 -- Microsoft Windows Workflow Foundation Step by Step
- 安装远程桌面,VNC Server on FreeBSD + VNC Viewer on Windows !
- Getting Started with Winsock - Windows Socket 2 API 教程文档 - WinSock API 参考 - HackerJLY
- 打造Windows环境中的VI编辑器环境!
- com.qsoft.commons.beanutils源代码(.net版本的org.apache.commons.beanutils)
- Apache的ANT Project的主页访问的时候总是出现问题,还是把它的镜像站点记下来的好!
- 书讯 -- Essential Business Process Modeling
- [收藏] Linux中系统服务/守护进程 (daemon) 的详细说明
- 一个有意思的测试,看看什么样的Linux发行版最适合自己!我的测试结果是:Debian !
- Windows Embedded CE 6.0开发初体验(四)跑个应用程序先