Saturday, April 5, 2014

Using caldav 0.2.1 with owncloud DAV services

New version caldav libraries was released recently. It didn't work from the scratch with my owncloud CalDAV. This post shows what I have changed to get it work.

Tuesday, April 1, 2014

ssh chroot jail

This post shows step by step how to create minimalistic ssh chroot jail. I use this for sharing files via scp/WinSCP.

Saturday, March 29, 2014

Disabling HDD Spindown

Recently I've noticed that my HDD stops and starts too frequently. Not only has this affect on performance (access time) but it has negative impact to it's lifetime. So I've turned off Advanced power management (APM) function.

Monday, March 17, 2014

Script for starting services and mouning filesystems

This script handles mounting of defined mountpoints and starts services via systemctl. I use it to start and mount all necessary services for my Raspberry PI.

Wednesday, March 12, 2014

Setting up fail2ban

Fail2ban is a program, that can prevent brute force attempts to your computer. Basically it counts failed login attempts and after given count is reached, it triggers an action, which usually is ban for IP address.

Thursday, January 23, 2014

Script for unmounting NFS mounts

I encountered an issue when shutting down or rebooting system with mounted NFS exports. It seems that systemd shuts down network service before all NFS mounts are unmounted and the system will hang, waiting for these mount points to be unmounted.
To prevent this, I've composed short script, which handles NFS unmounting before shutdown.

Friday, January 3, 2014

IRC notifications from remote server

Like many people, I use irssi client on remote server to connect to IRC chat. With tmux or GNU Screen you are able to be connected 24/7, and it would be great to be notified when someone is writing to you or has mentioned you on a channel.
Read more on how to setup such a scenario.