Faztek's unnofficial Blog

My first blog is dedicated to Internet hosting software.

quinta-feira, setembro 13, 2007

Debian hints

Debian hints is this, a short article with some hints about Debian, a very flexy distro of Linux.

Search what is the package with a particular file (in this case /usr/include/asm):
wolf:~# for X in `dpkg -l | grep ^i | awk '{print $2}'` ; do dpkg -L $X > /dev/null 2> /dev/null ; [ $? != 0 ] && continue ; echo :::$X ; dpkg -L $X | grep /usr/include/asm ; done
'dpkg -l' lists all packages; 'dpkg -L' lists all files in a package.

Using smart-hosts:
your_ISP_id@sapo:your_password ==>use:smarthost==> your_email_id@your_provider_smtp_cname:your_provider_password
Configure your Exim4 (vi /etc/exim4/update-exim4.conf.conf), then choose the propper 'dc_smarthost'.