Posts with the category Ubuntu 11.10

VLAN – on Ubuntu, Arch Linux and Mac OS X

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

Read on

Using the Huawei E352s-5 UMTS USB Modem Stick with Ubuntu and OpenWrt

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

Read on

Sound Card Test using Linux

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

Read on

Migrate Existing ext3 Filesystem to ext4

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

Read on

radvd – The Linux IPv6 Router Advertisement Daemon

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

Read on

Keeping SSH Tunnels Open Reliably

A (reverse) SSH tunnel can help you being reachable from outside a NATed network or behind a firewall. Keeping the tunnel open when your IP address changes or Internet connection is shaky can be taken care of by autossh. See below for the instructions.

Installation

On Ubuntu / Debian:

sudo apt-get update...

Read on

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

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

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

Removing Dropbox on Ubuntu – for a Single User or Entirely

Delete your users's Dropbox settings and the Dropbox folder itself:

rm -rf ~/.dropbox
rm -rf ~/.dropbox-dist 
rm ~/Dropbox

Also remove the dropbox package installed on your machine:

sudo apt-get remove nautilus-dropbox
...

Read on

Unity over NX Remote Sessions

If you want to start a certain desktop environment when connecting to a Ubuntu Linux machine running a FreeNX or NeatX NX server, you have to change the command to be run remotely:

For a 2D Unity session:

gnome-session --session=2d-ubuntu

For a 2D Gnome session:

gnome-session --session=2d-gnome

Resources

...

Read on

Automized Extraction of Transactions on the ING-DiBa Online Banking Website

This is an iMacros script to extract transaction details on the online banking website of the German branch of the bank ING-DiBa. As this is mostly interesting to Germans, the following blog post is in German. If you want to read it in English, consider translating it using Google...

Read on

Mount Google Storage as a Filesystem

google-storage-fs – a solution using FUSE

I was trying this with Fuse4X on Mac OS X:

cd ~/Downloads
git clone git://github.com/richizo/google-storage-fs.git
pip install fusepy
pip install boto
mkdir ~/mountpoint
~/Downloads/google-storage-fs/src/gsfs.py -f ../gsfs.ini ~/mountpoint

I didn't know what to do when I encountered this problem:

Traceback (most recent call last):
File "./gsfs.py", line 48, in...

Read on

YaCy on Ubuntu 11.10

Installation

echo "deb http://debian.yacy.net ./" | sudo tee /etc/apt/sources.list.d/yacy.list
sudo apt-get update
sudo apt-get install yacy

This will also set up a startup script /etc/init.d/yacy.

The search site will be available on http://localhost:8090/.

Resources

http://www.yacy-websuche.de/wiki/index.php/En:DebianInstall

...

Read on

Install NX Server NeatX on Ubuntu 11.10

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:freenx-team

As long as oneiric is not in the list of http://ppa.launchpad.net/freenx-team/ppa/ubuntu/dists/ you have to tell your packages sources to download and install the packages for lucid 10.04:
sudo sed -i 's/oneiric/lucid/g' /etc/apt/sources.list.d/freenx-team-ppa-oneiric.list

sudo vi /etc/apt/sources.list.d/freenx-team-ppa-oneiric.list
sudo apt-get update
sudo apt-get install neatx-server

Resources

  • This is a...

Read on

Sort Installed .deb Packages by Size

GUI options

The easy GUI way is to use Synaptic and enable the "Installed Size" column by going to Settings → Preferences → Columns and Fonts.

You can then go to the "Status" filters and select the "Installed" filter then click on the column you want to sort by. It's interestingly...

Read on

Solve a problem with USB HDDs on Ubuntu 11.10

[ 3.086754] scsi 16:0:0:1: CD-ROM Virtual CDROM PQ: 0 ANSI: 0
[ 3.282066] sr 16:0:0:1: Attached scsi...

Read on

Data Recovery on Linux using TestDisk

Recover Files using TestDisk

Mount the partition with the lost files read only:

sudo mount -o remount,ro /dev/sdX

Install the requirements, the TestDisk suite:

sudo apt-get install testdisk

Start analysing:

sudo testdisk /dev/sdX
  1. Select your disk and enter Proceed.
  2. TeskDisk tries to find the correct partition type. If you are sure, the...

Read on

Update the Firmware of an OCZ Agility 3 SSD via the Linux Command Line

Boot a Linux system (not from the SSD itself!). For example a Ubuntu Live distribution. Run the following commands in your terminal (consider choosing a later firmware version if available from OCZ):

cd ~/Downloads
wget http://www.ocztechnology.com/files/ssd_tools/fwupd_v2.12.05.tar.gz
tar -xf fwupd_v2.12.05.tar.gz
sudo su
### The next step is flashing the SSD:
~/Downloads/fwupd_v2.12.05/linux64/fwupd –log /dev/sd?
# ( ↑...

Read on

Install Brother DCP-7054DN on Ubuntu Connected via Ethernet

Scanning

These instructions are for 64-bit Ubuntu. (If you're using 32bit, download the i386 .deb package and you also don't have to copy the three files from /usr/lib64 then...)

sudo apt-get install xsane sane-utils xsane-common
cd ~/Downloads
wget http://pub.brother.com/pub/com/bsc/linux/dlf/brscan4-0.3.0-2.amd64.deb
sudo dpkg -i brscan4-0.3.0-2.amd64.deb
sudo cp /usr/lib64/sane/libsane-brother4.so.1.0.7 /usr/lib/sane/
sudo cp /usr/lib64/sane/libsane-brother4.so /usr/lib/sane/
sudo cp /usr/lib64/sane/libsane-brother4.so.1 /usr/lib/sane/
brsaneconfig4 -a...

Read on

AutoFS with SSHFS on Ubuntu 11.10

AutoFS is a convenient tool to mount remote filesystems automagically.

Installation:

sudo apt-get install autofs sshfs
ssh-keygen

Entire content of my /etc/auto.master:

/net    /etc/auto.sshfs --timeout=120 --ghost

Entire content of my /etc/auto.sshfs

Documents   fstype=fuse,rw,allow_other,IdentityFile=/home<span...

Read on