ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Solaris 10配置VNCServer

Solaris 10配置VNCServer

原创 Linux操作系统 作者:perfychi 时间:2014-11-11 17:59:59 0 删除 编辑
From:http://blog.chinaunix.net/uid-15108676-id-2975916.html
1.查看软件
# pkginfo -i SUNWxvnc
system      SUNWxvnc X11/VNC server
 
2.配置GDM
# vi /etc/X11/gdm/gdm.conf
在文件最后加上以下内容:
[xdmcp]
Enable=true
[security]
DisallowTCP=false
AllowRoot=true
AllowRemoteRoot=true
 
3.开启cde-login或gdm2-login
# svcadm enable svc:/application/graphical-login/cde-login:defalut
# svcadm enable svc:/application/gdm2-login:defalut
查看状态
# svcs svn:/application/graphical-login/cde-login:defalut
# svcs svn:/application/gdm2-login:defalut
 
4.修改/etc/services
增加一行
vnc-server    5900/tcp
 
5.开启xvnc-inetd
# svcadm enable svc:/application/x11/xvnc-inetd:default
查看状态
# svcs svc:/application/x11/xvnc-inetd:default
修改xvnc-inetd属性
  把inetd/wait改为true,这样每次连接上的界面和上次离开时保持一样。
  inetd/wait               boolean         true
# svccfg -s xvnc-inetd
svc:/application/x11/xvnc-inetd>editprop
增加一行
setprop inetd/wait = boolean: (true)
重新启动服务
# svcadm disable svc:/application/x11/xvnc-inetd:default
# svcadm enable svc:/application/x11/xvnc-inetd:default
 
6.激活root用户登录
默认root用户不能在VNC登录,注释/etc/default/login
CONSOLE=/dev/console
后,才能登录。
 
7.用VNCViewer连接主机
直接输入IP,不需要输入端口号

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/27042095/viewspace-1328767/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2012-06-06

  • 博文量
    484
  • 访问量
    2974982