Xen: extend lvm of virtual machine

First: Make sure to shut down the virtual machine or to unmount the disk inside it. Once finished you can start to extend the logical volume on the hypervisor: lvextend -L+400G /dev/vg0/disk e2fsck -f /dev/vg0/disk resize2fs /dev/vg0/disk There might be a chance you need kpartx, growpart (provided by cloud-guest-utils) followed by resize2fs to grow the mounted partition. In case you shut down the virtual machine you may start it again with...

April 4, 2014 · 1 min

prevent TeamViewer from running on system startup

By default TeamViewer 9 starts its daemon on system startup, even if you won’t use TeamViewer in your current session. You can disable the daemon with the following command: sudo teamviewer --daemon disable In case you need TeamViewer the command teamviewer --daemon start will start the daemon.

January 20, 2014 · 1 min

set up your own sync server for Mozilla Firefox using FSyncMS on Debian

Recent versions of Firefox include the ability to sync your bookmarks, passwords, preferences, etc. with a remote server. You can choose between a server provided by Mozilla or a custom server. There seem to be two solutions to deploy a custom server: Firefox Sync Server http://docs.services.mozilla.com/howtos/run-sync.html FSyncMS https://github.com/balu-/FSyncMS/ Firefox Sync Server requires Python 2.6 and Virtualenv. Since there are no packages for Debian you will have to use make and install some libraries to get it running....

August 2, 2013 · 2 min

Virtualmin: Enable Sieve for Dovecot and Procmail

aptitude install dovecot-sieve dovecot-managesieved /etc/dovecot/conf.d/15-lda.conf # Address to use when sending rejection mails. # Default is postmaster@<your domain>. postmaster_address = mail@domain.tld protocol lda { # Space separated list of plugins to load (default is global mail_plugins). mail_plugins = $mail_plugins sieve } /etc/dovecot/conf.d/20-managesieve.conf service managesieve-login { inet_listener sieve { port = 4190 } } Edit /etc/procmailrc and fill in the DELIVER parts. I’ts important to make continued use of procmail because spam filtering is done there....

July 15, 2013 · 1 min

exchanging a defective drive in a software RAID

setup: server with configured software RAID1 and LVM. If you have configured mdadm monitoring correctly you might receive an email like the following one day: A Fail event had been detected on md device /dev/md/0. It could be related to component device /dev/sda1. This requires immediate action because one of your hard disks is possibly broken. # cat /proc/mdstat Personalities : [raid1] md1 : active raid1 sda2[0](F) sdb2[1] 2929739071 blocks super 1....

June 30, 2013 · 3 min

ownCloud webdav auth on apache with php FCGId

If you’re running ownCloud on a server with FCGId you might wonder why login to the web interface work flawlessly but your sync client keeps saying that the provided credentials aren’t correct. The problem is, that the webdav auth done via remote.php (this is actually used by the sync client) is not able to process the credentials because of FCGId. The following .htaccess in the root folder fixed this problem for me, you need to enable mod_rewrite for this to work....

June 25, 2013 · 1 min

byobu

byobu basically is a wrapper for screen or tmux and is available via the repositories. You don’t have to mess around with the various screen/tmux options anymore since byobu provides an easy to use interface. Added bonus: byobu displays status notifications like time, RAM usage or uptime in its footer. One can add or remove more notifications by pressing F9 and selecting “Toggle status notifications”.

June 20, 2013 · 1 min

apt-listchanges

apt-listchanges is a small tool which shows changelog entries for Debian packages. You can install it from the repositories: aptitude install apt-listchanges In case you ever want to make changes to its configuration: dpkg-reconfigure apt-listchanges If configured correctly every aptitude upgrade will now show the corresponding changelogs for each package with the option to abort install. It’s even possible to mail the changelogs to a provided email address.

June 10, 2013 · 1 min

create and enlarge logical volume

lvcreate -L4G --name=disk vg0 mkfs.ext4 /dev/vg0/disk lvextend -L200G /dev/vg0/disk e2fsck -f /dev/vg0/disk resize2fs /dev/vg0/disk

June 7, 2013 · 1 min

Cuddle: bash download manager

I’ve always been looking for a command-line based download manager but the few available solutions didn’t satisfy my requirements. Today I stumbled upon Cuddle which code is somewhat old (files on SourceForge are from 2007) but seems to be the most simple and usable tool I have seen so fare. Cuddle makes use of Wget , provides a download queue, supports multiple downloads and allows the usage of wgets limit-rate feature....

June 7, 2013 · 1 min