Jan 202013
 

Ubuntu

Installation

sudo apt-get install vlan
sudo su -c 'echo "8021q" >> /etc/modules'
sudo modprobe 8021q

Usage and Configuration

# adding a vlan to a network interface:
ip link add link eth0 name eth0.10 type vlan id 10
# configuring the vlan:
ip addr add 10.0.0.1/24 brd 10.0.0.255 dev eth0.10
ip link set dev eth0.10 up

Make it permanent by adding the following lines to /etc/network/interfaces :

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
Mar 092012
 

You can use lxsndtest on Linux based computers to test the performance and quality of your soundcard. You should read its user guide for help on installation and usage.

lxsndtest ist based on the older xsndtest (which you can compile using some hints from this build formula for Gentoo).

You may use speaker-test to check your speakers.

References

Mar 032012
 

The following collection of commands shows how to migrate your partition formatted with ext3 to an ext4 filesystem. The safest way is to do this when the partition is unmounted. However, if the partition to convert is where the root filesystem of your Linux distro is stored and you don’t have access / time to boot from a Live CD, you can also do the conversion while simply remounting the root filesystem read-only.

I’m not going to go into detail why you would want to migrate to ext4. Check Wikipedia et.al. for good reasons.

Mar 022012
 

Installation on Ubuntu / Debian:

sudo apt-get update && sudo apt-get install radvd

A typical radvd configuration file /etc/radvd.conf to advertise the prefix 2001:db8:2530:fa13::/64 for autoconfiguration on the network connected to the interface eth0 and to advertise the machine running radvd as a router for the local network (based on the routes on this host) would look like this:

interface eth0
{
    AdvSendAdvert on;
    AdvManagedFlag off;
    AdvOtherConfigFlag off;

    prefix 2001:db8:2530:fa13::/64
    {
            AdvOnLink on;
            AdvAutonomous on;
            AdvRouterAddr off;
    };
};

Resources

Mar 012012
 

Installation

On Ubuntu / Debian:

sudo apt-get update && sudo apt-get install autossh

On Arch Linux:

sudo pacman -S autossh

On Mac OS X:

brew install autossh

Usage

Let’s suppose you want to use a reverse tunnel using SSH with a command such as

ssh user@some-host.com -R 5022:localhost:22

So instead you should type the following (where -M 5122 is a port on the remote machine that autossh uses to monitor the connection):

autossh -M 5122 -N -R 5022:localhost:22 user@some-host.com

or let autossh rely on the built in connection monitoring capabilities of SSH; also start autossh as a daemon (-f) which only works if you have your SSH key on the remote machine:

Jan 252012
 

Installing the Proprietary Driver

mkdir -p ~/Downloads/3D3dxware-linux-v1-6-0.x86_64
cd ~/Downloads/3D3dxware-linux-v1-6-0.x86_64
# ↓ Get the latest from http://www.3dconnexion.com/service/drivers.html
wget http://3dconnexion.s3.amazonaws.com/79108370-9342-3437-a063-4ed4c07cfa86?response-content-disposition=attachment%3Bfilename%3D3dxware-linux-v1-6-0.x86_64.tar.gz&AWSAccessKeyId=AKIAIR6EKS4F6GZY347Q&Expires=1327508645&Signature=s%2F7R8LHm39hXO4hxL8Igh%2FpUDfE%3D
tar -xf 3dxware-linux-v1-6-0.x86_64.tar.gz
sudo ./install-3dxunix.sh

And answer the questions in the following way:

  • Enter (Continue)
  • 4 (Linux)
  • Enter (start with every system start via /etc/inittab)
  • 1 (USB device)

Unfortunately, the driver needs an older version of a library which is not being shipped with Ubuntu 11.10 anymore (/usr/lib/libXm.so.3):

$ sudo /etc/3DxWare/daemon/3dxsrv -d usb
/etc/3DxWare/daemon/3dxsrv: error while loading shared libraries: libXm.so.3: cannot open shared object file: No such file or directory

Jan 232012
 

There is a nice tool to configure the keyboard including a kernel driver provided by the Gnome15 project. Here is how you install it:

echo '-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.5 (GNU/Linux)

mQGiBE3HD/cRBACcaW+ghDnPPCDtkuq3QWkGE3hRgfmnbtgLjC3oMqQ+03Pqsy1o
IHI5XysykjsigP9RECWXjklKEanaCA9susiQgXE9oFROBeD9055r3rtFf4yXi6YJ
KHgaISFRBMAGmxBg+tYMoc2tzHYmEhfS5fJUigOjtyvdtWlYG0cW4bP46wCgpooY
RQDp9hYkpOcXRzY8nBbQ55ED/Rp8pVLrMkIu9pzNw5uYLyWHonrOsaUsXkvy9u51
yza0TbkkKAT/NOy2cQy8E9lBtAlMLSafMDgWjmCPouoMWviMnUKx/gOL3kCsO79V
ZCONULeU9DVjB3AbcARLVL+qgMdMYHzKcRsIMl7i0Wq3asEoRUw1tatsTpaxi9Rs
lhSgA/9SJFP3EW8wBm2BeBXk5NjDyMlRRCtDYfFx7NilYxoRVc/TUkKiwEHAvi8D
7PsL4ofC5eNtXxCoGKeBXct3dfMiuJhlCSrqZbJHJZK7nVPzVgmhB8TfCsxkNh03
udK61atVUNq54zgQonz6oX/EZHuQe0VnVENULmeGmkaimsfZc7Q+aG9tZTp0YW5r
dGFydGEgT0JTIFByb2plY3QgPGhvbWU6dGFua3RhcnRhQGJ1aWxkLm9wZW5zdXNl
Lm9yZz6IZgQTEQIAJgUCTccP9wIbAwUJBB6wAAYLCQgHAwIEFQIIAwQWAgMBAh4B
AheAAAoJEGi0IqJ7r+i3TAYAnRDUZs0j0fETb6pASV43YffPBYxmAJ9S4pvAF78v
g9JASGgZ5RkRkKQVdohGBBMRAgAGBQJNxw/3AAoJEDswEbdrnWUjXb8AoIhjj7DO
yDOm3DM8+NT2Lm78SJijAKCEFeZrWc4R/bw6+vAYVLUNVWFzHA==
=KcVR
-----END PGP PUBLIC KEY BLOCK-----' | sudo apt-key add -
sudo sh -c "echo deb http://www.gnome15.org:9999/$(lsb_release -cs) ./ >> /etc/apt/sources.list"
sudo apt-get update
sudo apt-get install gnome15-ubuntu gnome15-kernel

Reboot.

Run g15-config and set Driver to Kernel Drivers.

Resources

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

Linux

neighbour discovery:

# trigger the discovery
ping6 -c2 -I eth0 ff02::1
# print the results:
ip -6 neigh

Or with the network interface specified in a shell variable and the commands put in a single command line:

IFACE=eth0
ping6 -c2 -I $IFACE ff02::1 && echo -e "\nIPv6 Neighbours:\n" && ip -6 neigh

Mac OS X

Neighbour discovery (command for IPv4 was arp -a -n):

ndp -a -n  # the -n prevents ndp from reverse looking up the IPs

Windows

Most of the standard network utilities of Windows will also work for IPv6 related matters. Standard utiilties are:

Jan 152012
 

The vpn software tinc has full support for IPv6 according to its projects’ web site.

Here are the features in short:

  • Encryption, authentication and compression
  • Automatic full mesh routing
  • Easily expand your VPN
  • Ability to bridge ethernet segments (check this)
  • Runs on many operating systems and supports IPv6

Installing tinc

On OpenWrt Routers:

opkg update
opkg install tinc

On Ubuntu / Debian:

sudo apt-get update && sudo apt-get install tinc

On Mac OS X using Homebrew (you also need TunTap for OS X):