Set a custom resolution with xrandr

Just a note for me trying to get a screen working with its native resolution when xrandr refuses to auto-detect it: xrandr --newmode "1680x1050_custom" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync xrandr --addmode VGA1 1680x1050_custom xrandr --output VGA1 --mode 1680x1050_custom --above LVDS1xrandr --newmode "1680x1050_custom" 146.25 1680 1784 1960 2240 1050 1053 Continue reading →

Downloading all files from a Amazon S3 bucket

I was trying to download all files from an Amazon S3 bucket, and did not feel like clicking through all of the files. Here is the little Python(2) script I came up with: import urllib2   print("Retrieving file list ...") url = urllib2.urlopen('https://s3.amazonaws.com/tripdata?max-keys=9999999') data = url.read() url.close()   print("Parsing file list ...") import xml.etree.ElementTree e Continue reading →

NFS Automount / Autofs Timeout

Recently, we had an issue where on one machine, a single NFS mountpoint was not mountable (in our case via automount/autofs). Other mountpoints from the same server worked and the same mountpoint worked on other servers. So a very mysterious issue indeed. It turned out that this was caused by a server problem, i.e., the Continue reading →

MySQL: Install locally (not as root) from binaries

Under Ubuntu, I have tried to setup MySQL from binaries for a local user (not root) with another MySQL instance already running. This works, but is documented rather vaguely (I did not find anything that documented the whole process). So I will sum up the solution I have come up with here: download a MySQL Continue reading →

Incremental Backups on Ubuntu using Duplicity with Samba

Based on Ubuntu 12.04, Samba client [1] and Duplicity [2]. Mount samba (see [1]) install cifs-utils sudo apt-get install cifs-utilssudo apt-get install cifs-utils create file /home/your_username/Documents/.backup-samba-credentials with content username=your_samba_username password=***username=your_samba_username password=*** create mount directory mkdir /home/your_username/backupmkdir /home/your_username/backup edit /etc/fstab # samba - backup - kali //samba_server_ip/your_samba_username /home/your_username/backup cifs credentials=/home/your_username/Documents/.backup-samba-credentials,uid=1000,gid=1000,noauto,users 0 0# samba - backup - Continue reading →

Apache, Tomcat and Gzip

I wanted GZipped packets arriving at the Apache Http Server to be uncompressed and redirected to Tomcat. I am now using : mod_proxy_http, to connect Apapche with Tomcat and mod_deflate, to uncompress incoming requests. I am running a Ubuntu. Let us say we are running a webapp at http://localhost:8080/test. I did the following to setup Continue reading →

Ubuntu Printer Management : CUPS

I was trying to get a HP LaserJet 4250 to work on my Ubuntu machine (12.4.1 LTS). It turned out that printing two pages on one sheet in addition to duplex printing would always result in four pages on one sheet with no content on the back. I have no idea why. I was able Continue reading →

My Ubuntu 12.04 LTS Setup

I setup Ubuntu 12.04 LTS from scratch on a Thinkpad x220. Here is a list of things I did: ntfs: I use an ntfs partition to share files with Windows. I also have some executables there. By default Ubuntu will mount ntfs partitions such that executables are not runnable. To make this work, follow this Continue reading →

Hadoop 1.0.4 - Cluster Setup

I have set up a Hadoop cluster lately on a single node with a few recommended modifications. I compiled the configuration scripts and a few minimal notes. Those are attached to this post: 20121218_hadoop-setup.tar.gz

Ubuntu 12.04: ACPI

I own a Lenovo X220 and am Ubutnu 12.04 at the moment with a the i3 window manager. When switching to i3, several things did not work anymore including suspending when closing the lid. I tried to make that work again and found that the acpid daemon was installed on Ubuntu which allows to listen Continue reading →