Chaos Mind getting into order

Archive for the ‘Linux’ Category

Quick guide for mounting FTP directory using curlftpfs on a Debian Lenny system

1 – install curlftpfs
 aptitude install curlftpfs

2 – create mount point:
  make  /mnt/ftp-dir
3 – add this line in /etcfstab: /mnt/ftp-dir fuse rw,uid=0,noauto 0 0

4 – add some security for authentication. Create file /root/.netrc
    login ftp-user
    password ftp-pass

Note: May not suit your needs. I would recommend you to read those pages:


Problem found in the /var/log/syslog:

postfix/smtpd[4183]: warning: database /etc/aliases.db is older than source file /etc/aliases


  • As root, erase the /etc/aliases.db file and create a new one:
    # rm /etc/aliases.db
    # newaliases


I got an error today trying to upgrade a gentoo cluster:

[blocks B ] >=sys-fs/udev-126 (“>=sys-fs/udev-126” is blocking


emerge -u cryptsetup

Done! After try to reboot to check if the udev detects all your network devices correctly.

Etiquetas: ,

I’ve been using for a while the VMWare Server 2.x for Linux and I’m quite happy with it. Unfortunately, this free product doesn’t offer some useful functionalities like cloning a virtual machine. It’s a pity because it’s time consuming to create all the virtual machines from scratch.

Fortunately, cloning a virtual machine is easy process but doing it manually it’s not free of error-proning. So, I created a small and simple bash script to handle this process automatically, smoothly and clean. The script, called vmclone (oh, I’m so original!!), is available at my github account for the public to use it.

Let me warn you: it’s a very simple bash script that suits my needs and may not suit yours. Feel free to modify it and to send me some feedback or suggestions in order to improve it.

Have fun! 🙂

Linux Jornal is giving FREE digital copy of Linux Journal’s System Administration Special Edition (PDF Download). Go get it!
It has a LOT of interesting stuff.

I’m using Debian Lenny on a VMWare virtual machine and sometimes I’m getting this message:

Clocksource tsc unstable (delta = 3057923951 ns)

To fix this, just add acpi=off at the kernel boot line at your grub/lilo configuration.

Etiquetas: ,

I found at my /var/log/syslog:

syslog-ng[4102]: Internal error, duplicate configuration elements refer to the same persistent config; name=’affile_dd_writers(/dev/tty12)’

So I checked my /etc/syslog-ng/syslog-ng.conf and I found that:

$ grep ‘/dev/tty12’ /etc/syslog-ng/syslog-ng.conf
destination kern { file(“/var/log/kern.log”); file(“/dev/tty12”); };
destination console_all { file(“/dev/tty12”); };

After reading docs, I didn’t find any destination having 2 files entries. Great 🙂 It looks like a typo. So I made some changes (a easy one):

$ diff /etc/syslog-ng/syslog-ng.conf.bak /etc/syslog-ng/syslog-ng.conf
< destination kern { file(“/var/log/kern.log”); file(“/dev/tty12”); };

> destination kern { file(“/var/log/kern.log”); };
> destination kern { file(“/dev/tty12”); };

Ok, got it working again.

Etiquetas: , ,