- 主题:在 Ubuntu 7.10 下 svn 装 kbs2.0 的几个问题
目前可以确定的是 make 是没问题的, 仿照 FedoraCore 下的方法把该装的包都装上,
并且小改了一下 contrib/build-redhat.sh, 用这个脚本搞定的
在 make install 的时候, 最后显示是
libtool: install: warning: relinking `libphpbbslib.la'
也不知道到底是不是装好了, 看了看 $BBSHOME 下的东西, 似乎是都齐了, 请问这里
是正常的么? 如果不正常那后面的估计也都有问题了.
继续将 $BBSHOME 下所有文件 chown, 到 /usr/www/ 下 svn checkout www2, 改名,
一切正常
以上均为 sudo 执行的
在启动系统时开始出问题, 在 $BBSHOME/bin 下执行 sudo ./miscd daemon, 没提示,
但是 ps aux 看不到 miscd 这个进程, 请问此问题何解? 如果不 sudo, 则会提示
can't load sysconf image!
// 上面那个提示可能是我没用 bbs 这个帐号导致, 但是用 bbs 帐号开 miscd 的结果
跟 sudo 后一样没任何反应
对 Web, 能看到 index.html 这个页面, 点匿名登陆后提示
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /var/www/html/www2-funcs.php on line 14
Fatal error: Call to undefined function bbs_ext_initialized() in /var/www/html/www2-funcs.php on line 15
查看了一下 www2-funcs.php, 14 行是 chdir(BBSHOME), 请问这个 BBSHOME 是哪里
定义的? 还是只是因为 miscd 以及其他的东西没起来导致? 本人几乎不会 php, 可能
问超级白痴问题了 :(
--
FROM 222.66.195.*
【 在 foxban (未毕业的码农) 的大作中提到: 】
: 正常
哦, 那还好, 看最后一个 Warning 吓死了
: 看一下site.h里面的uid和gid是否跟系统里面的bbs用户id相符
相符, 都是 501
: 看一下apache配置文件中uid和gid的设置
: ...................
er. 这个可以回头再看么? 我还不太清楚这个怎么弄还, 只是想先把 telnet 模式启起来
跟这个无关吧?
--
FROM 222.66.195.*
我不是用的 bbs 帐号去启的, 所以有这个问题, 但是换 bbs 帐号或者用 sudo 后没任何
提示, ps aux 也看不到启动了的进程
【 在 cnbird (阿七) 的大作中提到: 】
: 这个?
: 发信人: fancyrabbit (兔兔猫★Initial F★等量叠加纠缠), 信区: BBSMan_Dev
: 标 题: Re: 继续请教:
: ...................
--
FROM 222.66.195.*
er. 土问一下这个 error.log 在哪里?
我用 sudo ./miscd daemon 2>error.log 强制转换输出后看 error.log 是一个空文件
【 在 cnbird (阿七) 的大作中提到: 】
: sudo 启动miscd后看error.log?
--
FROM 222.66.195.*
这里没有, $BBSHOME/log 下也没有 :(
【 在 cnbird (阿七) 的大作中提到: 】
: $BBSHOME目录下
--
FROM 222.66.195.*
好吧 -,-
不过, 貌似 dev.kcn.cn 和 /doc/ 下都没说 Debian 怎么弄, 在精华区里? 我去找找先
// update
找到了, 回头继续一次...
【 在 cnbird (阿七) 的大作中提到: 】
: 哦,那你还是按照Debian安装方法再装一遍吧,我觉得...
--
修改:whusnoopy FROM 222.66.195.*
FROM 222.66.195.*
前面问题是我 sb 了, 直接在 $BBSHOME 下 chown -R bbs:bbs *, 结果只是该目录下的
被改了, 子目录没改我也没检查
php 的也弄好了
现在的问题是:
ssh, 我直接在 Ubuntu 7.10 的源里装的, 版本是 1.4.6, 里面很多文件位置跟
INSTALL.ssh 里有出入, 不过至少我还是找到了 sshd_config 并 cp 到了正确位置, 后
面的 ssh-keygen 后面没 1, 运行后生成的文件在 .ssh/ 文件夹下只有 id_rsa 和
id_rsa.pub
对 sshd_config 的改动也有问题, 启动时总是提示我
etc/sshd_config line 9: Bad configuration opition: protocol
那一行是 HostKey, 这个配置文件里很奇怪的还有两行 HostKey 的配置
【 在 whusnoopy (Snoopy) 的大作中提到: 】
: 目前可以确定的是 make 是没问题的, 仿照 FedoraCore 下的方法把该装的包都装上,
: 并且小改了一下 contrib/build-redhat.sh, 用这个脚本搞定的
: 在 make install 的时候, 最后显示是
: ...................
--
FROM 220.196.18.*
所有配置文件是指? 这是 sshd_config 的所有内容:
# Package generated configuration file
# See the sshd(8) manpage for details
# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes
# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 3600
ServerKeyBits 768
# Logging
SyslogFacility AUTH
LogLevel INFO
# Authentication:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes
RSAAuthentication yes
PubkeyAuthentication yes
#AuthorizedKeysFile %h/.ssh/authorized_keys
# Don't read the user's ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# For this to work you will also need host keys in /etc/ssh_known_hosts
RhostsRSAAuthentication no
# similar for protocol version 2
HostbasedAuthentication no
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
#IgnoreUserKnownHosts yes
# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no
# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no
# Change to no to disable tunnelled clear text passwords
#PasswordAuthentication yes
# Kerberos options
#KerberosAuthentication no
#KerberosGetAFSToken no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
#UseLogin no
#MaxStartups 10:30:60
#Banner /etc/issue.net
# Allow client to pass locale environment variables
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
UsePAM yes
【 在 atppp (Big Mouse) 的大作中提到: 】
: 这个命令还有一个问题是$BBSHOME下的.PASSWDS .BOARDS没有chown到,*不包含隐藏文件的
: 贴所有配置文件,你说了一大堆还是不知道你再说啥。。:)
--
FROM 220.196.18.*
er. 我看 INSTALL 里说不推荐 touch 一个空文件然后弄...
thx, 小白仍需努力啊...
【 在 atppp (Big Mouse) 的大作中提到: 】
: sshd_config可以是空的,不用这么复杂。你的配置太高级了,当初port ssh到kbs的家伙
: 没有你这么高级。
: 搜标题
: ...................
--
FROM 220.196.18.*
er... 好吧, 我错了 :( 数错两行... 我这也是个眼神啊
【 在 atppp (Big Mouse) 的大作中提到: 】
: 根据你后面贴的文件,第九行是Protocol,不是HostKey,orz您数数数错了。。
: 其实就是这个配置不认而已,kbs的ssh部分没这么高级。。
--
FROM 220.196.18.*