Posts from 2011-04

Cisco PAP2T - A VoIP adapter for 2 telephone lines

The Cisco / Linksys PAP2T lets you connect your analogue phones to VoIP services via SIP.

How to configure it: http://spakonfig.de/

Currently it costs ~40 EUR in Germany: http://geizhals.at/deutschland/a212387.html

Cisco SPA-3102

An alternative is the Cisco SPA-3102 which also connects your phone to a classical landline connection (for failover /...

Read on

Install ArchLinuxARM on the Seagate GoFlex Home

Attention! This is an advanced topic! Do not engage in any activity if you're not cool with the Linux command line and ready to do something to your GoFlex Home that Seagate did not...

Read on

[fix] Wireshark error: There are no interfaces on which a capture can be done.

I got the following error message when trying to open a network interface for capture using Wireshark on Mac OS X (Wireshark 1.5.1 Intel 64 beta and 1.4.6 Intel 64 show this behaviour):

There are no interfaces on which a capture can be done.

To solve the problem open a Terminal and...

Read on

Spider of Archive.org: Referer and User Agent

Today the spider of the Archive was accessing my site. It looks like this in the server logs:

207.241.226.200 - - [28/Apr/2011:07:12:07 +0200] "GET /robots.txt HTTP/1.1" 200 864 "-" "ia_archiver(OS-Wayback)"
207.241.226.200 - - [28/Apr/2011:07:12:07 +0200] "GET / HTTP/1.1" 200 86476 "-" "ia_archiver(OS-Wayback)"

So the referer is - and the user...

Read on

128x64 ks0108 based Graphical Display using GLCD2USB on OpenWrt / Raspbian / Ubuntu

This post is about GLCD2USB by Till Harbaum, a free electronics project to connect (ks0108 based) graphic LCDs via USB to a PC (or to a OpenWrt router in my case).

Assembly

All parts ready to shop in a Reichelt Shopping Cart (Germany). A cheaper variant of the LCD can be...

Read on

[fix] mod_fcgid: HTTP request length xyz (so far) exceeds MaxRequestLen (131072)

I found the following problem in the apache2 error log:

[Tue Apr 26 21:47:31 2011] [warn] [client 66.187.211.41] mod_fcgid: HTTP request length 132101 (so far) exceeds MaxRequestLen (131072), referer: http://example.com/upload.php?post_id=38&type=image&

It can occur when uploading a file that is too large on an Apache web server with mod_fcgid enabled. The solution...

Read on

Have a look into an .ipk file (used by the ipkg or opkg manager)

An .ipk file is basically just a .tar.gz file. So you can unpack it using the tar command:

tar xvfz some-package.ipk
# or with newer tar versions:
tar -xf some-package.ipk

Some .ipk files may also be of a different archive format so that you need the following command to unpack:

ar...

Read on

OpenWrt: Configure WiFi Client as WAN and set up a 2nd AP to redistribute the WAN-Access

This is a nice thing to do if you are in a hotel and want to redistribute a single WiFi connection to other computers.

The setup works as follows: The WiFi with the SSID Telekom is the one being provided in the hotel. Here we can connect to it without encryption,...

Read on

SSD Optimizations on Mac OS X

Firefox Cache

To disable the the Firefox cache on the disk (SSD) and move it to your RAM, follow these steps:

  • Go to about:config and set browser.cache.disk.enable to false
  • as well as browser.cache.memory.enable to true.

You can check what the cache is doing by going to about:cache

Set the noatime option on the root filesystem

<div...

Read on

Web Interfaces for the Bind DNS Server

API solutions:

Not a...

Read on

OpenWrt on a TP-Link TL-WR1043ND Gigabit Router

About the Hardware

The TP-Link TL-WR1043ND contains a great set of hardware for its price:

CPU Ram Flash Network Gigabit USB Serial JTag
Atheros AR9132@400MHz (MIPS) 32MB 8MB 4+1 Yes 1 x 2.0 Yes Yes

Please refer to http://wiki.openwrt.org/toh/tp-link/tl-wr1043nd#hardware for further details on the hardware.

My hardware version is (DE)v1.0.

<img alt="" class="alignnone size-medium wp-image-3246" height="130" src="/wp-content/uploads/TP-Link_TL-WR1043ND_back-side_hidden-300x130.jpg"...

Read on

iSCSI on Ubuntu Linux

iSCSI is a software system (may be implemented in hardware) to mount remote block level devices locally. It does not provide a remote filesystem and thus is independent of the filesystem you might want to use on top of it.

iSCSI Target : PC that offers a block device to be...

Read on

Seagate FreeAgent DockStar running Debian and Seagate FreeAgent GoFlex Home running PlugboxLinux

The Seagate FreeAgent DockStar

You can install Debian on the Seagate FreeAgent DockStar. There was a time when the device cost only ~ 20 EUR. Currently it is at 50 EUR in Germany.

resources

Read on

Bind Multiple IPs To One Physical Interface on Mac OS X

Via the System Preferences: Network pane

  • Go to System PreferencesNetwork.
  • Click on Ethernet (or AirPort)
  • Click on the Configuration WheelDuplicate Service...

You can now configure each instance with different settings, and you're done.

On the Terminal

If you just need to quickly assign an IP/subnet alias to an interface, you can do...

Read on

Get your own DNS server up and running with Bind9 on Ubuntu or Debian

The goal of this article is to describe how to setup your own DNS server to serve the domain name service entries for a TLD (example.com). In the last part of the article I describe how to increase the speed of the system and the security in...

Read on

[solved] /var/log/syslog missing inside LXC container

This can be solved by simply installing the package syslogd:

su
apt-get install syslogd

resources

...

Read on

Create the latest FritzBox! Firmware for the Speedport W 900V

Installation of the Tool download_speed-to-fritz.sh

First, get the script download_speed-to-fritz.sh. Run it and install all required tools.

cd ~/Downloads
wget https://freetzlinux.svn.sourceforge.net/svnroot/freetzlinux/download_speed-to-fritz.sh.tar.gz
tar -xf download_speed-to-fritz.sh.tar.gz
./download_speed-to-fritz.sh

Configuration and Firmware Creation

Setup:

  • Choose Hardware Type → Speedport W900V
  • Select a special AVM firmware → yes, choose 7170 19138 - pre-release

Exit the menuconfig and the firmware creation will begin.

At first,...

Read on

How to run a .sh script (or perl or python script) on Mac OS X by (double) clicking on the file

  • Rename the shellscript from .sh to .command, then associate it with Terminal.app
  • Use Platypus to create a .app from the shellscript
    This is a great tool to turn scripts (shell, perl, python) into an OS X application. Many features supported!

resources

...

Read on

Fix this error: warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied

Problem: The password that I used to authenticate for the SMTP server was rejected:

Apr  5 20:04:55 lion postfix/smtpd[7607]: connect from client.com[ww.xx.yy.zz]
Apr  5 20:04:55 lion postfix/smtpd[7607]: warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied
Apr  5 20:04:55 lion postfix/smtpd[7607]: warning: SASL authentication failure: Password...

Read on

Fix sshfs with MacFUSE on Mac OS X 10.6.7 and 10.6.8 Snow Leopard

UPDATE 2011-07-12 Use Fuse4X instead of MacFUSE!!! I wrote a new blog post on the topic: SSHFS on Mac OS X 10.6.8 with Fuse4X.. Thanks Markus for your hint to the Fuse4X project.

update:...

Read on

Install the PECL Upload Progress Library for Drupal 7 on Debian squeeze

If you take a look at the status report page of a Drupal 7 installation on Debian squeeze you might notice that the PECL Upload Progress Library is reported to be missing. Here is how to get it installed:

su
# pecl is contained in the package php-pear and needs...

Read on

(Automated) Manual Backup of a Drupal 7 Website (Including the Database)

Did you ever want to create a backup of both, your drupal 7 installation files and the associated mysql database? Here is how you can do it with almost no configuration.

#!/bin/sh

#############################################################################
#              ...

Read on

Create a git repo from .tar.gz files with versions as commits

Say you have a bunch of .tar.gz files, each representing a certain version of a program source code. If you want to compare their contents and see what changed, git would help a lot.

So I wrote a script that would do the work for me and create a repository for...

Read on

Install the Apache2 mod_pagespeed to Improve Performance

mod_pagespeed is an apache2 module made by Google to improve the speed of website delivery.

Download of the 32 bit version:

wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_i386.deb

Download of the 64 bit version:

wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_amd64.deb

Installation of the package:

dpkg -i mod-pagespeed-beta_current_*.deb
apt-get -f install

Restart Apache:

/etc/init.d/apache2 restart

If you like, change /etc/apache2/mods-available/pagespeed.conf. according to...

Read on