手机vnc显示无法启动服务器,vnc服务器端自动启动问题!!

大家好!

我安装了一个vncserver ,现在运行正常。

但是,每次linux 服务器启动都要,自己再一次启动服务 "vncserver".

服务器不在我的位置上,所以每次启动都很麻烦。

所以请教大家。怎么在服务器设置。每次可以自动启动vnc服务!!!

谢谢大家了!!

|

在/etc/rc2.d目录下

# vi S99vncser

写入诸如如下内容,假设你的vncserver在/usr/bin目录下:

if [ -x /usr/bin/vncserver ]; then

/usr/bin/vncserver

fi

# chmod 755 S99vncser

|

或者在 /etc/rc.d/rc.local文件里面加上这句

[ -x /usr/bin/vncserver ] && /usr/bin/vncserver

|

Server端設置

1.設置vnc server三種方法:

There are three ways this can be done. For XFree86 version 4 X servers, a loadable module is provided which adds the VNC server functionality. For other X servers it is possible to build a replacement for the native X server binary which is VNC-enabled. A third way is an inefficient but non-invasive VNC server called x0vncserver, which continuously polls any X display, allowing it to be controlled via VNC.

A.將 vnc.so 拷貝到 /usr/X11R6/lib/modules/extensions

修改 /etc/ XF86Config, 有的linux可能是 /etc/X11/ XF86Config, 增加如下:

Section "Module"

...

Load "vnc"

EndSection

...

Section "Screen"

...

Option "passwordFile" "/root/.vnc/passwd"

EndSection

重啟就可

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值