Articles by stefbon

  • Thoughts on Monitoring file changes with Linux over the network

    linux Author: stefbonTags: , , , , , , Comments: 1

    Monitoring a directory for changes with Linux is possible through the well-known mechanism inotify. With inotify it's possible to set a watch on a directory, configure it to watch events on the contents, and you'll receive messages on a file descriptor when something happens. This works perfectly when the directory is on local storage, like a hard drive, SSD or a USB drive, But it is not sufficient when the directory is on a network filesystem when the storage is on another computer. Another user working in the same directory, connected via the same or another filesystem, can remove a file and the watch you've set on it will not get notified.

  • Browsing the Windows network with your linux machine with automatic mounting and discovery of all hosts and shares.

    Author: stefbonTags: , , Comments: 0

    An attempt to complete automatic discovery and mounting of SMB (Windows and Samba) networkshares For some time I've been looking for a good way to let my computer discover the Windows network and other networkservices like SSH and FTP and mount shares on demand. After trying the kioslaves in the desktop of my choice (KDE) and the FUSE programs Fusesmb and SmbNetFs, I was not really satisfied. There had to be an way to let my computer discover all the workgroups/domains, the hosts and the shares, and mount a share on a hosts on demand.This contruction does that exactly, for the networkservices SMB ("Windows Neighboorhoud") and SSH. Support for FTP is underway. 

  • Entering A Safe Mirror When Logging In With Unionfs And Chroot

    Author: stefbonTags: , , Comments: 1

    Entering A Safe Mirror When Logging In With Unionfs And Chroot When reading a 'hint' on the website of LinuxFromScratch I discovered the special capabilities of unionfs, specially in combination with chroot. Later I read a HowTo on a wikiwebsite of Gentoo, about entering a chrooted homedirectory when using a special script as shell. Combining these two brings me to using a chrooted environment, which you enter when logging in as a special user. This environment is a exact copy (mirror) of the system you're working on. Because you're in safe copy of the real system, you can do whatever you like, it will never change the system, everything stays inside the cache (the readwrite branch).

  • Backing Up With rsync And Managing Previous Versions/History

    Author: stefbonTags: Comments: 14

    Backing Up With rsync And Managing Previous Versions/History This howto describes a method doing backups with rsync. This is done before, but this howto is also about managing previous versions, by copying to be changed and deleted items first to a history/version tree.

  • Integration of dbus and KDE: starting and stopping the session part of dbus with KDM.

    Author: stefbonTags: Comments: 0

    Integration of dbus and KDE: starting and stopping the session part of dbus with KDM Since some time now a lot of applications make use of D-BUS. This is the case with KDE 3.5, the current stable release of KDE. With the upcomming KDE 4, D-BUS is getting more important, replacing DCOP. In this howto I want to describe a way to start and stop the user and session dependent part of dbus.

  • Creating A Safe Directory With PAM And EncFS

    Author: stefbonTags: Comments: 5

    Creating A Safe Directory With PAM And EncFS This HowTo is about creating a user-session-safe directory which offers security on- and offline. This is done with PAM, a module named pam_script and EncFS ("Encrypted Filesystem"). This safe directory is used to store credentials and other sensitive information during a session. When a usersession is ended, in the worst case an encrypted directory remains on the harddrive. In the best case everything is removed. This construction is only meant to store information during a session, not for documents or any other valid information.