Solaris 10 安装 配置VNC server 显示图形化桌面
博文链接 : http://blog.itpub.net/29475508/viewspace-1750038/
查看软件包SUNWxvnc是否安装
[root@solaris186:/]# pkginfo SUNWxvnc
![](/attachment/201507/24/29475508_1437740549WfTT.jpg)
挂载光盘,安装软件包
[root@solaris186:/]# pkgadd -d /cdrom/sol_10_910_x86/Solaris_10/Product SUNWxvnc
![](/attachment/201507/24/29475508_1437740700ctIt.jpg)
再次查看,软件包 SUNWvnc 已经安装
[root@solaris186:/]# pkginfo SUNWxvnc
![](/attachment/201507/24/29475508_1437740432L3uD.jpg)
编辑/etc/profile,在PATH中增加路径 /usr/local/bin 和 /usr/openwin/bin
[root@solaris186:/]# vi /etc/profile
export PATH=$PATH:/usr/X11/bin:/usr/openwin/bin
断开连接重新登录或source一下使 配置生效
[root@solaris186:/]# source /etc/profile
[root@solaris186:/]# echo $PATH
![](/attachment/201507/24/29475508_14377417324wTC.jpg)
启动vncserver 设置用户密码
[root@solaris186:/]# vncserver
![](/attachment/201507/24/29475508_1437741980vJJC.jpg)
修改图形化显示
编辑$HOME/.vnc/xstartup 注释掉 xsetroot -solid grey 和 twm &
增加一行 /usr/bin/gnome-session &
[root@solaris186:/]# vi .vnc/xstartup
![](/attachment/201507/24/29475508_1437742339VC9k.jpg)
杀掉已经启动的 进程
[root@solaris186:/]# vncserver -kill solaris186:1
![](/attachment/201507/24/29475508_1437742651J1AY.jpg)
或者通过ps -ef 查看已经启动的进程号 直接kill掉
[root@solaris186:/]# ps -ef | grep Xvnc | grep -v grep
![](/attachment/201507/24/29475508_1437742469u2I7.jpg)
[root@solaris186:/]# kill 908
重新启动vncserver
[root@solaris186:/]# vncserver
![](/attachment/201507/24/29475508_1437742714k3G9.jpg)
客户端登录查看
![](/attachment/201507/24/29475508_1437742784p6Hg.jpg)
![](/attachment/201507/24/29475508_143774279185og.jpg)
![](/attachment/201507/24/29475508_1437742799WJIL.jpg)
吕星昊
2015.7.24
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29475508/viewspace-1750038/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29475508/viewspace-1750038/