Posts from 2012-01

3Dconnexion SpaceMouse Pro with Ubuntu 11.10

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,...

Read on

Logitech G110 on Ubuntu Linux

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

Read on

New Linux Kernel 3.3 Features

What Linux 3.3 will bring:

  • A new Ethernet teaming driver - a userspace-driven alternative to the existing bonding driver
  • Integration of Open vSwitch
  • Faster resizing of ext4 partitions
  • Better HDMI audio support for Radion and AMD graphics cards
  • "Hot Replace" for software RAID (see 1 and 2)
  • ... much more

Resources

Read on

Installing iRoot from TATA Institute on Mac OS X

iRoot is a product of the India-based Neutrino Observatory collaboration lead by Prof.Naba Mondal at the Tata Institute of Fundamental Research.
It is a simple plotting and analysis tool based on the popular ROOT from CERN and is primarily intended for analysis using the TTree structures in ROOT. iRoot is supported...

Read on

DB WebSign with Mac OS X 10.7

I ordered a WebSign banking smart card for Deutsche Bank in January 2012 and I just got it. So the first thing, I did, was checking what it actually is using pcsc_scan:

philipp@lion:~$ pcsc_scan 
PC/SC device scanner
V 1.4.18 (c) 2001-2011, Ludovic Rousseau <ludovic.rousseau@free.fr>
Compiled with PC/SC lite version: 1.4.0
Plug'n play...

Read on

Feitian PKI Smartcard (FTCOS / PK-01C)

Features:

  • PIN code security.
  • Support ISO 7816 features / 64KB data space.
  • Support RSA keys up to 2048bit / standard X.509 v3 certificates.
  • On-board DES, 3DES, MD5, SHA-1, SHA-256, RSA 1024,RSA 2048 algorithms.
  • OpenSC compatible (GNU/Linux, Mac OS X, Windows)
  • Both PKCS#11 and MS-CAPI interfaces.
  • Hardware random number generator.

Details

The PKI Smartcard works perfectly for me in the...

Read on

IPv6 Tools on the Command Line

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...

Read on

VPN with tinc and IPv6 (Using OpenWrt Routers)

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...

Read on

SQLite DB Introspection

If you have an SQLite database file and want to check its structure (programmatically)

SELECT * FROM sqlite_master;

To do this via Python as simple as possible, run:

conn = sqlite3.connect("your/database.sqlite")
c = conn

Read on

SQL

http://en.wikipedia.org/wiki/SQL

search using SQL

SELECT * from bash_history where  command LIKE '%modprobe%'

% is the wildcard character in SQL!

SQlite specifics

http://www.sqlite.org/lang.html

...

Read on

Compile MJPG-Streamer from Source on Ubuntu 11.10

Instead of downloading an old .deb package and installing it using sudo dpkg -i mjpg-streamer you can also just get the source, compile and run:

sudo apt-get install libjpeg-dev subversion imagemagick
cd ~/Downloads/
svn co https://mjpg-streamer.svn.sourceforge.net/svnroot/mjpg-streamer mjpg-streamer
cd mjpg-streamer/mjpg-streamer
make clean all

To try a first start, run:

export LD_LIBRARY_PATH=.
./mjpg_streamer...

Read on

Installing the newer libccid v1.4.4 on Mac OS X 10.7

I tried libccid v1.4.5 before but couldn't get it to compile. Here are all the needed steps again as Terminal commands to get 1.4.4. to work:

cd ~/Downloads
curl -k -O https://alioth.debian.org/frs/download.php/3579/ccid-1.4.4.tar.bz2
tar -xf ccid-1.4.4.tar.bz2
cd ccid-1.4.4
sed -i '.bak' 's/-arch i386 -arch x86_64/-arch x86_64/g' ./MacOSX/configure
./MacOSX/configure 
make
sudo make install</code>

If anyone is interested,...

Read on