linux

You are currently browsing articles tagged linux.

~# mkdir ~/tmp && cd ~/tmp
~# apt-get install dpkg-dev
~# apt-get source lighttpd
~# apt-get build-dep lighttpd
~# wget http://www.linux.com.cn/modcache/lighttpd-1.4.19.modcache.v.1.6.0.patch
~# cd lighttpd-1.4.19
~# patch -p0 < ../lighttpd-1.4.19.modcache.v.1.6.0.patch
~# echo debian/tmp/usr/lib/lighttpd/mod_cache.so > debian/lighttpd.install
~# dpkg-buildpackage  -uc -b
~# ls -l ../*.deb

Install the debian packages with dpkg and enjoy :-)

Reference Links:
- APT HOWTO – Working with source packages

Tags: , ,

On Linux or Unix systems perform recursively a command on items might contain white space, quote marks, or backslashes can be a problem when using find | xargs combination.

To solve this you may use:

find -type d -print0 | xargs -0 <command>
find -type f -print0 | xargs -0 <command>

For example to fix recursively permission:

find -type d -print0 | xargs -0 chmod 755
find -type f -print0 | xargs -0 chmod 644

Tags: , ,