Apr 262012
 

I found an interesting plugin called IntranetSubNetwork on the Piwik trac ticket #1054. I was thinking that this would be perfect to adopt it to my needs to determine between IPv4 and IPv6 users on my site. Those needs were already specified in a feature suggestion for Piwik.

So I took the plugin and put it on a Github repository: pklaus / IntranetSubNetwork.

With the plugin you’re able to assign each visitor to a ‘network category’ according to the range his or her IP belongs to. The network category name will then be stored in the Piwik database in the column location_ip of the table piwik_log_visit.

Piwik Plugin IntranetSubNetwork: Show IPv4 vs. IPv6 Statistics
Apr 232012
 

I needed an easy way to switch power outlets on and off remotely. So I bought a Koukaam NETIO230A and wrote a Python module to communicate with it via TCP. Now I added a Bottle based web app written in Python that uses that class to interact with the NETIO230A. It consists of an API (not very elaborate yet) and a single page that uses the API via AJAX.

Here is the finished Bottle code: webserver.py. And here is a screenshot of how the app looks:

Screenshot of the NETIO230A bottle web app

Apr 222012
 

This is largely based on http://unquietwiki.com/ipv6/tinc_quagga_ipv6.html.

Enabling Quagga and Its Daemons

The installation of Quagga and ospf6d is different on Debian/Ubuntu and on OpenWrt systems. The configuration files can be the same (in structure).

/etc/quagga/daemons (Debian/Ubuntu systems)

zebra=yes
bgpd=no
ospfd=no
ospf6d=yes
ripd=no
ripngd=no
isisd=no
Configuration of OSPF6d

/etc/quagga/ospf6d.conf

Apr 212012
 

The Huawei E352s-5 is being marketed as web’n'walk Stick Fusion III by German Telekom. This blog post describes how to use it on Linux systems with the distributions Ubuntu and OpenWrt.

The Features First

  • Supported Modem Standards: HSPA+, HSUPA, HSDPA, UMTS, EDGE, GPRS
  • Highest speeds with HSPA+: up to 21 MBit/s download and 5.76 MBit/s upload
  • Quad Band
  • Interface: USB 2.0
  • Includes a microSD card slot
  • Includes an external antenna connector (CRC9 type)
  • Includes a USB cable
  • Size (HBT in mm): ca. 68 x 26 x 12,3
  • Weight: ~ 30 g
Apr 162012
 

I used the built-in SD card reader to install Arch Linux from an SD card. The Arch Linux Wiki holds quite a few comments on what to take care of on the EEE PC 900.

The next steps were:

  • I upgraded to Grub2 (Yes, Arch Linux still uses Grub v1 as its standard bootloader).
  • Installed the command line tools htop, bmon, iperf.
  • Installed wicd, a network connection manager.
  • Installed Gnome (at least the most essential parts).
  • Installed GDM and set up the system to use it.
  • Installed Yaourt by adding the unofficial user repository [archlinuxfr] to my /etc/pacman.conf.
Apr 142012
 

This is my collection of links on the subject:

Apr 132012
 

Let’s suppose you have a device that has remote logging capabilities like the Switch TL-SG3210. In this case you may want to set up a machine on your local network to receive these log messages and store them permanently.

On Linux you have the choice between rsyslog and syslog-ng.

Syslog-ng Log Host on Arch Linux

https://wiki.archlinux.org/index.php/Syslog-ng#Configuring_as_a_loghost

With the following terminal commands you can set up your Arch Linux based machine as a log host. Log filenames will be based on the FQDN of the remote host, and located in /var/log/remote/:

Apr 122012
 
Processor RAM Flash Memory
400 MHz ARM9E-JS 64MiB 128MiB

The Radio has a two-way, bi-amplified mono speaker. The operating system is SqueezeOS.

Software Alternatives to the Logitech Hardware

http://superuser.com/questions/10471/linux-mpd-player-alternatives-for-a-network-music-server-player

Resources

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

What you have to do:

  1. Remove the staples of your leaflet.
  2. Create a new folder for your images to scan.
  3. Scan the batch of leaflet pages as PNG image files.
    1. First scan the outer pages starting with the cover.
    2. Then scan the inner pages starting with the cover.
  4. Run the script convert.sh (see above) in the folder containing the *.PNG images.
  5. Staple the leaflet again.
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
Apr 042012
 

iperf can help you test the bandwidth of your network setup via a TCP connection:

# On one computer:
iperf -s -w 2M -i 1 -p 2222
# On the other computer:
iperf -c the.one.computer.local -w 2M -i 1 -p 2222

Or test via UDP (be careful, this is more likely to have a negative impact on your network):

# On one computer
iperf -s -u -i 1 -p 2222
# On the other computer:
iperf -c the.one.computer.local -u -b 300M -i 1 -p 2222

This will show you jitter, and the percentage of lost datagrams.