Posts

Showing posts from October, 2009

Windows App Store / apt-get for Windows

I don't see myself switching back to Windows, but these could turn out useful at work or with family. Windows software installation is no fun after getting used to Debian Linux or macports. These tools together could be a poor mans apt-get for Windows: PcDecrapifier - To unload the unwanted preloaded software. Ninite - To easily load all the common software. BaseShield - An alternative to Ninite, perhaps.

public samba share

I've often found it difficult to set up a public shared directory using Samba, so that windows workstations could access it easily without passwords or anything. This time I tried these excellent instructions and it worked right away on a debian lenny/sid box and Windows XP. Configuring anonymous public shares with Samba 3 Let's recap that with Ubuntu 15.10 and Windows 7 amd64 SP1 # prepare directory sudo mkdir /opt/share sudo chown nobody:nogroup . # install samba sudo aptitude install samba # add samba share sudo sh -c "cat >> /etc/samba/smb.conf <<EOF [share]         comment = Public Shares         browsable = yes         path = /opt/share         public = yes         writable = yes         guest ok = yes EOF # configure anonymous access, sudo sed -i '/^\[global\]$/a \     guest account = nobody' /etc/samba/smb.conf

Subversion repository fix

A locally accessed subversion repository is a bit fragile on unix permissions. It might work fine for first 1000 revisions, and then suddenly all svn operations fail with an error: svn: Can't move '/home/svn/...' to '/home/svn/...': Permission denied Fortunately this is easy to fix by making sure the - shared directories have group 'svn' - shared directories have mode 2775 - and that the svn is always invoked with umask 002 The umask is easy to enforce by installing a wrapper for the svn binary, which sets the umask and exec's the original binary.

easy debian server monitoring

Finally I ran into a tool to quickly set up monitoring of a Debian server. " aptitude install munin " It graphs more than I was hoping for, including: disk space, cpu load, network and even disk smart parameters. Basic configuration of alerts is simple, edit /etc/munin/munin.conf - Uncomment and edit a contact -line - Determine name of plugin to configure, for example "cpu" - it's the suffix after hyphen in the detail view URL. - Determine name of the field to configure, for example "user" - The fields are listed in the bottom of the detail view. Add the warning and critical limits in [localhost.localdomain] section, for example: cpu.user.warning 200 cpu.user.critical 200