QNAP Mounting RAID6 after reboot and "DISK MISSING"

Quick version State: When QNAP boots into the initialization dialog (the one you see when you first setup your QNAP) and then switches to "DISK MISSING" screen but SSH can still be used to connect to it (using the old credentials *strange*) Goal: Mount your RAID and backup all data! Solution: # assemble your RAID Continue reading →

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 →

Disable CheckDisk

I have been working with an SSD hard drive. All the sudden Windows reported some problems resulting in a CheckDisk run. This process scrambled and moved a lot of file without any file extensions to found.xxx folders. So just in case I was looking for a way to disable automatic executions of CheckDisk and found Continue reading →

tn5250j: a 5250 terminal emulator for the AS/400

For archiving purposes: The tn5250j is a 5250 terminal emulator for the AS/400 written in Java.

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 →