Even If It Kills Me
十月 31, 2007
by latteye
0 comments

朋克,歌手一般。倒是封面我特别喜欢。
十月 26, 2007
by latteye
0 comments
有两台机器的 Winbind ID 与真实的用户映射关系混乱了。虽然不知道是什么引起的,但感觉 Winbind 还是很容易有这个 Bug 的。
如何解决呢?
Winbind 将所有的缓存信息都保存在了 tdb 文件中。只要将 tdb 全部删除,重启 Winbind 服务即可。默认 tdb 文件保存在 /var/cache/samba/ 目录。
在重启 Winbind 之后,就会发现所有域用户文件属性变成了 uid 显示。而不是用户名。执行:
id username
之后, Winbind 重新向 PDC 请求信息。这时重新建立 UID 与用户直接的关系。
需要注意的是,某些以特定用户运行的程序可能这时需要重启,由于用户映射的改变,可能会导致权限问题。
关于 Winbind ,您可以参考 此文 。
十月 23, 2007
by latteye
0 comments
$ ssh-host-config
Overwrite existing /etc/ssh_config file? (yes/no) yes
Generating /etc/ssh_config file
Overwrite existing /etc/sshd_config file? (yes/no) yes
Privilege separation is set to yes by default since OpenSSH 3.3.
However, this requires a non-privileged account called ’sshd’.
For more info on privilege separation read /usr/share/doc/openssh/README.privsep
.
(全文…)
十月 12, 2007
by latteye
0 comments
今天遇到了这个问题,在官方上看到了解释,问题解决。
下面简单说一下官方解释。
I can see my repository in a web browser, but ’svn checkout’ gives me an error about “301 Moved Permanently”. What’s wrong?
It means your httpd.conf is misconfigured. Usually this error happens when you’ve defined the Subversion virtual “location” to exist within two different scopes at the same time.
For example, if you’ve exported a repository as
, but you’ve also set your DocumentRoot to be /www, then you’re in trouble. When the request comes in for /www/foo/bar, apache doesn’t know whether to find a real file named /foo/bar within your DocumentRoot, or whether to ask mod_dav_svn to fetch a file /bar from the /www/foo repository. Usually the former case wins, and hence the “Moved Permanently” error.The solution is to make sure your repository
does not overlap or live within any areas already exported as normal web shares. It’s also possible that you have an object in the web root which has the same name as your repository URL. For example, imagine your web server’s document root is /var/www and your Subversion repository is located at /home/svn/repo. You then configure Apache to serve the repository at http://localhost/myrepo. If you then create the directory /var/www/myrepo/ this will cause a 301 error to occur.
十月 11, 2007
by latteye
3 comments
写在开头的话
其实这个实验还没有做完,一方面虚拟机环境里面有些内容已经很难实现(可能是先天缺陷),有空的时候我会对这个实验进行抓包,来给自己排错。但目前由于公司环境需求,我必须进行 Subversion 的学习了。
一、网络架构
必须模拟出两个网段来做这个实验。于是就有了这样的结构:
点击图片查看大图。
我们将网段分为了三个:
10.10.0.0/24:模拟公网网段,两个网关可以在这里互相访问。
172.16.1.0/24:Left子网。
172.16.2.0/24:Right子网。
通常我们在做实验的时候,将两个子网分别命名为 Left、Right。
十月 9, 2007
by latteye
0 comments
十月八日狂风暴雨啊!
回家的时候看到一只小猫窝在楼梯口的一个角落里面。回了屋子和无敌小熊打了个电话,就决定把猫抱回来了。带好了手套(怕被猫咬……)偶就下楼了。
到了底楼,电梯门一开,就看到那只猫就在电梯门口,然后不断的往我腿上蹭啊蹭啊蹭啊蹭啊%…………
没费多大功夫就把猫弄回来了。
十月 2, 2007
by latteye
0 comments
提供了试听之后,服务器的流量就一直保持每天1G,实在是吃不消了。以后宁愿提供 tar 包。
(全文…)