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

Exclude LaTeX files from syncing with Seafile

If you’re working with LaTeX and store you tex-Files in a Seafile repository you might end up with tons of files which are generated by the LaTeX compiler. Since they don’t need to be tracked by Seafile I came up with the following solution. Place a file called seafile-ignore.txt in the root of your library and fill it with this: ## exclude LaTeX compile files from syncing *latex*/*.acn *latex*/*.acr *latex*/*.alg *latex*/*....

November 16, 2013

php5-mcrypt not working after upgrade to Ubuntu 13.10

If you are using the php5-mcrypt library in your projects you might experience that it’s no longer working after you have upgraded Ubuntu to 13.10. You can fix this with the following three commands I have found on stackoverflow [1]: sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available sudo php5enmod mcrypt sudo service apache2 restart [1] http://stackoverflow.com/questions/19446679/mcrypt-not-present-after-ubuntu-upgrade-to-13-10

October 21, 2013

USB-Keyboard not working to enter passphrase for encrypted LVM on Ubuntu 13.10

Ubuntu 13.10 was released a few days ago and I upgraded one of my machines. Everything went fine until I had to reboot. Choosing entries in the grub menu worked flawlessly but as soon as I had to enter my passphrase to unlock my encrypted partitions my keyboard (USB) no longer was working – it was dead. As I don’t have the option to use a PS/2-Keyboard (not owning such a keyboard, machine has no PS/2 port) I was locked out of my system....

October 21, 2013

backup your ownCloud contacts via cron

If you ever wondered if there is a way to automatically backup your ownCloud contacts via cron here is the solution: <?php date_default_timezone_set('Europe/Berlin'); error_reporting(E_ALL); $date = date('Y-m-d-h-i-s'); $user = 'your_owncloud_username'; $password = 'your_owncloud_password'; $cmd = "wget --no-check-certificate --user=".$user." --password=".$password." -O ".$date."_contacts_".$user.".vcf https://your.owncloud.tld/remote.php/carddav/addressbooks/".$user."/contacts?export"; $dump = exec(escapeshellcmd($cmd)); ?> You just need to fill in your credentials and modify the path to your ownCloud installation.

August 7, 2013

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

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

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

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

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