msgbartop
A chronological documentation test project, nothing serious, really!
msgbarbottom

14 Apr 2008 Create a photo collage using imagemagick

I use imagemagick to create index images to my photo albums to get a quick overview without looking through all the pictures.

This is how I create a simple photo collage using imagemagicks montage command

montage -label '%t\n%wx%h' -resize 150x150 '*.JPG' -geometry +3+3 -tile 3x -frame 5 _Index.JPG

Tags: ,

Posted by

14 Apr 2008 Determine rkhunter false positive on Redhat

rkhunter has given several warnings (“One or more warnings have been found while checking the system.”) lately and this has forced me to check the installations repeatedly only to determine the fact that it was a false positive.
On Redhat systems and their derivatives (Fedora, CentOS…) a easy check can be performed to determine if a file has been tampered with. I’ve made this little oneliner to help me determine if any RPM packages has been altered

rpm -qas | grep -v normal > ~/rpm_check.txt

If everything is OK you should end up with a file containing a file like this

(contains no files)
(contains no files)
(contains no files)
(contains no files)
(contains no files)
(contains no files)
(contains no files)
(contains no files)

Tags: ,

Posted by

13 Apr 2008 Mount remote filesystem using ssh and sshfs

This is short howto on how you can mount a remote filesystem through ssh and access in Debian it like any other local filesystem. This is a safer method to mount remote filesystems and a user can perform it without root privileges.

First you need to install sshfs

# aptitude install fuse-utils sshfs

Install the necessary kernel module

# modprobe fuse

If you haven’t installed the ssh server package already, now is the time

# aptitude install ssh

Mounting a remote filesystem is easy

sshfs username@hostname: mountpoint

Example

create the mount point

# mkdir /mnt/remotefilesystem
# chown [username]:[groupname] /mnt/remotefilesystem/

Add yourself to the newly created fuse group

adduser [your-user] fuse

switch to your user and mount the remote filesystem.

sshfs remote-user@remote.server:/remote/directory /mnt/remote/

You can specify any directory after the colon.

$ sshfs [user@]host:[dir] mountpoint [options]

If you want to unmount your directory use the following command

fusermount -u mountpoint

Tags: , , ,

Posted by

10 Apr 2008 The Highlight Source Pro WordPress plugin is installed

I’ve now installed the Highlight Source Pro plugin for my WordPress installation to see if this is something that will make scripts and code snippets better to view and work with.

Tags: , , ,

Posted by