sigmoid

..oo..oo..oo..oo..oo..oo..

Browsing Posts in linux

Here is a bash script I wrote to enter and exit a chrooted environment on my Gentoo. #!/bin/bash # define here the chroot jail path CHROOT=/home/chroot-jail start() { echo “Mounting chroot dirs” # This allows DNS lookups via your system’s networking cp -L /etc/resolv.conf ${CHROOT}/etc/ mount -o bind /proc ${CHROOT}/proc mount -o bind /proc/bus/usb ${CHROOT}/proc/bus/usb […]

I like to keep logs and since space is cheap, why not just keep 2 or 3, or maybe 10 years of logs? That’s all fine, but soon the logging directories will become cluttered. Well, there are plenty of ways to keep everything tidy and clean, but even a separate backup isn’t very suitable for […]

To login to remote hosts via ssh without having to type your password all the time, one way is to use Public Key authentication. The easiest way is to copy from your client machine the public key, for instance the contents of ~/.ssh/id_rsa.pub, into the .ssh/authorized_keys of the remote host. To do this use the […]

When moving many files across the wire, for example via ftp, sometimes files get corrupted or are transferred partially. Just because two files have the same size it does not mean that they have successfully been transferred. This problem can manifest itself when moving many thousands of files. I usually use either of two methods […]

Using the LGR encoding for writing greek in latex documents on gentoo presumably should be fairly straight forward, but it took me a bit of searching before I figured it out. I’m using app-text/texlive, but I have not had greek language support (duh!). The error I was getting looked like this: kpathsea: Running mktextfm grmn1095 […]