Howto

共 127 篇文章。

magic to build package on different FreeBSD versions

Development

Sometimes you may need to build some packages for older/newer versions of FreeBSD. That is simple if you use jail and other mechanisms.

In order to be successful, you need a “Full jail” say ordinary jail, installed with binary that is built from the target version of FreeBSD. For instance, build a 6.0 userland by sync’ing code to -HEAD.

Secondly, you need to replace two files in the jail: uname(1) and sysctl(1). What you have to do is to use sed to replace both FreeBSD version and __FreeBSDVersion (say, kern.osreldate), according to porters’ handbook.

阅读全文… ( 本文约 201 字,阅读大致需要 1 分钟 )

Using ssh-agent(1) to ease usage of SSH key authentication

Security

Many SSH clients supports “key agent” or “authentication agent”, which holds private key for you, and ease the authentication process.

By default, OpenSSH does not enable this. You can easily use ssh-agent(1) to accomplish the mission.

ssh-agent startx

The above command will start X session with ssh-agent. This means that you can add private key to the agent.

ssh-add ~/.ssh/id_dsa

Add your own ssh key.

Then ssh authentications will be accomplished automatically. Note that you may need to use ssh -A in certain configurations.

参与评论

eAccelerator

Development

A GPL’ed (say, it’s not OpenSource, but the source code is available publicly) PHP accelerator has been evaluated at lab, which is called eAccelerator. I should adjust my claim that this sort of application is not useful.

During my test, the accelerator has improved the TPS by about 50%, and is quite impressive.

In order to install this on FreeBSd, you should have installed PHP from ports, and go to www/eaccelerator and ``make install’'.

阅读全文… ( 本文约 96 字,阅读大致需要 1 分钟 )

How to disable Outlook's level 1 attachment blocking feature

Security

I’d say I really dislike this feature, it always prevent me from being able to receive attachments and does not actually block virii since I have some carefully designed security mechanisms installed on my computer.

Of course someone may say “Outlook sucks, don’t use it!” but I won’t say that. Outlook is a great product that is very safe if you have configured it *CORRECTLY*. The feature of the attachment blocking, while may be useful for not experienced users, will harm users that is experienced and is highly security-aware when communicating with non-experienced folks.

阅读全文… ( 本文约 199 字,阅读大致需要 1 分钟 )

How to enable Python2.4 for WinCVS?

Development

Because sometimes I use Windows for daily desktop (the company’s IM system can’t run on FreeBSD and that’s the only reason why I can’t use FreeBSD as desktop at company) I have adopted WinCVS as development tool.

Unfortunatelly, when I have started WinCVS, it complained that it can’t find python (the version I have installed is 2.4). After searching the disk I figured out that the file exists in windows/system32/, not python24/dll. Corrected this setting and WinCVS appears to work correctly.

阅读全文… ( 本文约 98 字,阅读大致需要 1 分钟 )

You must do mount_devfs before jailing!

Development

Today I start to build a package set for corporation’s production servers. However, perl 5.8 build was stopped with a strange error.

I went into investigating what is happening. Finally I found that I should have mount_devfs’ed before jailing the builder :-( What a shame…

参与评论