May 312011
 

The Domain Hoster InterNetworX (abbr. inwx) offers an XML-RPC interface to access its services. You can even register new domains. Documentation of the XML-RPC API is available for download at https://www.inwx.de/de/download/file/api-current.zip (including examples in PHP & Java plus a PDF describing the API).

There is an operational test environment (ote) to learn and test how to use the API without paying for your orders at https://api.ote.domrobot.com. You need a separate test-account to use it and you can get it on http://ote2.inwx.de.

The available objects to query and modify via XMLRPC can be found on https://github.com/pklaus/python-inwx-xmlrpc/wiki/Available-Objects and here is the overview:

Access the InterNetworX XML-RPC API via Python
May 242011
 

As I’m not a lawyer, I can’t tell you if the following pieces of advice are really needed, just enough or not necessary. I will further investigate the topic and you will be able to read about my findings here.

Deactivate Apache logging

Set the following Apache2 directives in your apache config file httpd.conf or in your virtual host configuration /etc/apache2/sites-available/yoursite:

LogFormat "%h" combined
ErrorLog /dev/null
CustomLog /dev/null combined
# or
CustomLog /dev/null " " env=doesnt_exist

Disable IP logging in Apache in order to comply to German privacy law:

An extreme measure would be the following:

May 242011
 

Mount SSH filesystems

My personal favorite: Fuse4X

http://fuse4x.org/

Use with this distribution of SSHFS: https://github.com/fuse4x/sshfs

See my dedicated blog post on SSHFS on Mac OS X 10.6.8 with Fuse4X!

Deprecated Option: MacFUSE sshfs using command line

http://code.google.com/p/macfuse/wiki/MACFUSE_FS_SSHFS

First install MacFUSE.

Then get the sshfs binaries:

cd ~/Downloads
svn co http://macfuse.googlecode.com/svn/trunk/filesystems/sshfs/binary sshfs-binaries

Now you are able to mount remote folders to a local directory. Here is an example command line:

cd ~/Downloads/sshfs-binaries
./sshfs-static-leopard user@some-host.net:/home/user/ ~/mountpoint -oauto_cache,reconnect,volname=somename,defer_permissions

The defer_permissions option is very useful as you automatically have write access if the remote user would be able to modify the content of the directories (but your local wouldn’t). I found the hint here.

May 222011
 

Redmine as Debian package:

  • The core package is redmine. Three packages (redmine-*) provide correct dependencies for mysql, pgsql, sqlite.
  • Several configurations are given as working examples in /usr/share/doc/redmine/examples.
  • Explanations of how the configuration is dealt with are given in /usr/share/doc/redmine/README.Debian.gz.
  • There is no per-instance support for plugins, but those dropped to /usr/share/redmine/vendor/plugins.

Manual and Up-To-Date Installation

Install requirements:

May 212011
 

More Loop Devices

To solve this problem:

mount: could not find any free loop device,

you have to increase the number of loop devices:

echo "options loop max_loop=64" > /etc/modprobe.d/local-loop.conf

More SWAP

SWAPFILE=/root/myswap
# Create a file to use as swap with 1024 1MiB blocks (= 1 GiB):
dd if=/dev/zero of=$SWAPFILE bs=1M count=1024
mkswap $SWAPFILE
echo "/root/myswap swap swap defaults 0 0" >> /etc/fstab
swapon -a

References

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
May 212011
 

Not available as Debian package yet as the search for cgit in the Debian packages reveals. The RFP can be found here.

Resources

VN:F [1.9.22_1171]
Rating: 6.0/10 (2 votes cast)
May 162011
 

Defined in RFC 5156

  • ::1/128 is the loopback address
  • ::/128 is the unspecified address
  • ::FFFF:0:0/96 are the IPv4-mapped addresses (indicating devices that are not IPv6-capable)
  • ::<ipv4-address>/96 are the IPv4-compatible addresses, deprecated!
  • fe80::/10 are the link-local unicast addresses
  • fc00::/7 are the unique-local addresses
  • 2001:db8::/32 are the documentation addresses. They are used for documentation purposes such as user manuals, RFCs, etc.
  • 2002::/16 are the 6to4 addresses
  • 2001::/32 are the Teredo addresses
  • ::/0 is the default unicast route address
  • ff00::/8 are multicast addresses

See “Special-Use IPv6 Addresses” (RFC 5156): http://tools.ietf.org/html/rfc5156

May 112011
 

I was using an Asus wl-500g Premium router (hardware revision #1) running DD-WRT (I think it was version v24 preSP2 [Beta] Build 14311 mini). I decided to switch over to OpenWrt. The installation was dead simple. I just downloaded the .trx firmware image for the brcm47xx target (linux 2.6) from http://downloads.openwrt.org/backfire/10.03/brcm47xx/openwrt-brcm47xx-squashfs.trx, loaded it via the dd-wrt firmware update web interface and waited for ~ 5 minutes. The box automatically rebooted and when I reconnected the network cable I had an IP from the range 192.168.1.1/24. From there, I just followed the OpenWrt setup similar to my blog post on OpenWrt on the TP-Link TL-WR1043ND router.

May 112011
 

The privacy extensions as defined in RFC4941 make your device change its IP every now and then.

Privacy addresses are not enabled by default. Their generation is activated via the sysctl directive use_tempaddr that can be set to one of the following values:

  • 0 don’t use privacy extensions.
  • 1 generate privacy addresses
  • 2 prefer privacy addresses and use them over the normal addresses.

IPv6 Privacy Extensions on Ubuntu

Activate it in Ubuntu by adding net.ipv6.conf.all.use_tempaddr=2 to /etc/sysctl.conf. Or in a one-time action (will be reset on reboot):

May 112011
 

On Debian and Ubuntu, getting IPv6 connectivity is as easy as running this command in terminal:

sudo apt-get install miredo

You should instantaneously be connected to the internet via IPv6 (provided you have a working IPv4 setup).

If you want to customize your IPv6 connectivity, you can edit the miredo configuration file /etc/miredo.conf as described in the miredo.conf man page.
By default, the Ubuntu/Debian package is configured to use the server teredo-debian.remlab.net.

Prefer IPv6 (incl. Teredo/Miredo) over IPv4

Add the following lines to your /etc/gai.conf (you can replace the whole file by this):