免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3463 | 回复: 3
打印 上一主题 下一主题

[OpenBSD] vncserver,在ob下rc.local开机启动脚本问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-19 10:34 |只看该作者 |倒序浏览
装的是tightvnc,我想让它开机wgob用户启动,rc.local如下:
---------------------
#       $OpenBSD: rc.local,v 1.39 2006/07/28 20:19:46 sturm Exp $

# Site-specific startup actions, daemons, and other things which
# can be done AFTER your system goes into securemode.  For actions
# which should be done BEFORE your system has gone into securemode
# please see /etc/rc.securelevel.

echo -n 'starting local daemons:'

# Add your local startup actions here.
if [ -x /usr/local/sbin/pure-ftpd ]; then
   echo Starting Pure-FTPd
   /usr/local/sbin/pure-config.pl /etc/pure-ftpd.conf
fi
if [ -x /usr/local/bin/vncserver ]; then
   echo Starting Vncserver for wgob
   su wgob -c '/usr/local/bin/vncserver :1'
fi
-------------------
可是没有效果,pure-ftpd启动正常,vncserver路径是正确的,手动在终端输入命令可以启动,请高手指教!

[ 本帖最后由 For.you 于 2009-3-19 10:38 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2009-03-20 08:56 |只看该作者
顶一下

论坛徽章:
0
3 [报告]
发表于 2009-03-21 09:30 |只看该作者
机器启动时提示:vncserver: couldn't find "xauth" on your PATH,我看了我的.profile的PATH有这行/usr/X11R6/bin,而xauth就是这目录里/usr/X11R6/bin/xauth,我这么让它在机器启动时,启动呢

论坛徽章:
0
4 [报告]
发表于 2009-10-31 16:15 |只看该作者

回复 #1 For.you 的帖子

刚碰到同样的问题,搞了两天多才弄好
你的/etc/sysconfig/vncservers文件里是不是这样设置的
---------------------------
VNCSERVERS="2:root"
VNCSERVERARGS[1]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"
---------------------------
我的就是这样设后开机不能自动启动的,把第二行加#号注了就好了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP