Posts with the category Ubuntu 9.04

IPv6

This blog post has grown to large. Please refer to the more detailed posts on IPv6 tagged with ipv6:

https://blog.philippklaus.de/tag/ipv6/

DNS entries for IPv6 ready web sites

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

  • A record: normal domain to ip address resolution
  • MX record: email server lookup, must resolve to a server address that is resolved to an IP...

Read on

Nintendo Wii Remote

Alternative Hardware:

Sony Playstation Move http://en.wikipedia.org/wiki/PlayStation_Move. To buy it in Germany: http://geizhals.at/deutschland/a543585.html

building the Sensor Bar

http://wiibrew.org/wiki/Wiimote/Pointing
http://doctabu.livejournal.com/64758.html
http://terbidium.com/content/projects/wiihacks/usb_sensorbar.php

WiiPresent (for OpenOffice.org / Evince / Adobe Reader)

http://dag.wieers.com/home-made/wiipresent/
http://blog.jorgeivanmeza.com/2009/07/instalacion-de-wiipresent-en-linux-ubuntu-9-04-un-largo-camino/

sudo aptitude install bluez bluez-compat

cd ~/Downloads
wget http://sourceforge.net/projects/libwiimote/files/libwiimote/0.4/libwiimote-0.4.tgz/download
tar -xf libwiimote-0.4.tgz
cd libwiimote-0.4

change hci_remote_name to hci_read_remote_name in the following...

Read on

Anonymising Internet Usage

with Tor

http://wiki.ubuntuusers.de/Tor
https://help.ubuntu.com/community/TOR

installation http://wiki.ubuntuusers.de/Tor/Installation

gpg --keyserver subkeys.pgp.net --recv-keys 0x94C09C7F
gpg --export 0x94C09C7F | sudo apt-key add -
echo "deb http://mirror.noreply.org/pub/tor jaunty main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update 
sudo apt-get install tor

setup of a HTTP-Proxy for tor Tor being a Socks-Proxy (not a HTTP-Proxy) means you can't...

Read on

Remove Ubuntu branding (Menu Icon on gnome-panel etc.)

remove the definitions of gnome-about and ubuntu-about

Delete the files gnome-about.desktop and ubuntu-about.desktop from /usr/share/applications

sudo rm /usr/share/applications/gnome-about.desktop
sudo rm /usr/share/applications/ubuntu-about.desktop

or less radical: move the files (to ~/tmp/):

sudo mv /usr/share/applications/gnome-about.desktop ~/tmp/
sudo mv /usr/share/applications/ubuntu-about.desktop ~/tmp/

or even softer: edit these *.desktop files and add the line NoDisplay=true.

To apply changes / see...

Read on

RDP with Linux: rdesktop / xfreerdp

Alternative: xfreerdp!


Connect to a Windows PC Remotely using rdesktop

Examples, ticks & tricks: http://linuxwiki.de/rdesktop

Set up the connection on the windows computer according to http://www.fz-juelich.de/jsc/sicherheit/docs/win/inf-xp/xp-arbeitsplatz-remote.htm
and use rdesktop

Command to connect (yet to be extended):

rdesktop

If you with no parameters it shows you its options:

philipp@lion:~$ rdesktop
rdesktop:...

Read on

Netbeans IDE

https://help.ubuntu.com/community/Netbeans#Installation%20of%20NetBeans%20from%20Ubuntu%20Packages

sudo apt-get install netbeans

or install latest version

http://bits.netbeans.org/download/trunk/nightly/latest/
http://wiki.netbeans.org/InstallingNetbeans6.0OnUbuntu7.10

Ensure your repository's are up-to-date.

sudo apt-get update

Install the JDK 6.0 and Java-plugin for Firefox using the terminal:

sudo apt-get install sun-java6-jdk sun-java6-plugin

Update the Java alternatives so Suns virtual machines is the default:-

sudo...

Read on

VirtualBox Images of Operating Systems

If you would like to get ready-to-run images of preinstalled OSs in VirtualBox images you might want to take a look at the following sites.

virtualbox.wordpress.com

http://virtualbox.wordpress.com/images

Requirements: You have to have Java v6 installed and get the Java software registerimage from http://virtualbox.wordpress.com/tag/registerimage/.

example: damn small linux

http://virtualbox.wordpress.com/images/damn-small/

cd...

Read on

Upgrading from Ubuntu 8.10 to Ubuntu 9.04

http://www.ubuntu.com/getubuntu/releasenotes/904#Upgrading
Upgrade using the Update Manager.

Fix a configuration issue with Gnome Power Manager

"The configuration defaults for GNOME Power Manager have not been installed correctly. Please contact your computer administrator." what helped:

sudo dpkg --configure -a

Ctrl-Alt-Backspace disabled by default in Xorg

To reenable the [Ctrl]-[Alt]-[Backspace] key combination to force a restart of...

Read on

Run Script Triggered by Kernel Upgrade

http://www.tuxyturvy.com/blog/index.php?/archives/48-Automating-VMware-modules-reinstall-after-Linux-kernel-upgrades.html
http://www.debianhelp.co.uk/boot.htm (← about the debian /ubuntu startup process)

myTool is what you want to set up after a kernel upgrade

#!/bin/bash
if [ ! -e /lib/modules/`uname -r`/misc/.myTool_installed ]; then
        /usr/bin/vmware-config.pl --default
 ...

Read on

Get VolUp/VolDown keys on Cherry G85 keyboard to work

To get my cherry G85 to work properly including the additional audio keys I have to do the following:

To change the channels which your MM keys control, go to your main Gnome menu and find: Applications → System Tools → Configuration Editor (gconf-editor)

  • Set the value of /desktop/gnome/sound/default_mixer_device to alsamixer:hw:0
  • Edit /desktop/gnome/sound/default_mixer_tracks and...

Read on

Set up Advanced Networking without Network Nanager

failback connection (routing):
https://help.ubuntu.com/community/InternetAndNetworking/DualHomedGatewayDHCP
advanced routing: http://lartc.org/howto/
secondary virtual interface on one physical interface: http://www.ubuntugeek.com/ubuntu-networking-configuration-using-command-line.html
default gateway: http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/
static DNS with DHCP: https://help.ubuntu.com/community/StaticDnsWithDhcp and http://ubuntuforums.org/showthread.php?t=544383#2

multi homing (using two internet connections at the same time) using policy routing: http://www.debian-administration.org/article/Policy_routing

plan:

  • redundant internet connections (but with default network...

Read on

MuseScore - a Free WYSIWYG Music Notation Program

http://www.musescore.org/
MuseScore is a free cross-platform WYSIWYG music notation program.

stable releases: https://launchpad.net/~mscore-ubuntu/+archive/mscore-stable
prereleases: https://launchpad.net/~mscore-ubuntu/+archive/ppa

sudo aptitude install mscore
...

Read on

The screen command - A versatile tool

With screen you can run an SSH command without interrupting the execution when the connection is lost. In case of a connection loss, all you have to do is to reconnected to the SSH host again when a connection is available and attach to the former screen session again.

Install screen:

<div...

Read on

Delete old & unused Kernels

You could also use the "System Clean Up Tool": https://wiki.ubuntu.com/SystemCleanUpTool

List all installed kernels:

dpkg --list | grep linux-image

Then remove the kernel(s) you don't need anymore. e.g.:

sudo aptitude remove linux-image-2.6.28-11-generic

This automatically removes all kernel modules depending on this kernel image and the kernel headers. It also...

Read on

Renaming Network Interfaces (When Changing Network Cards)

When I inserted a new network card into my Linux computer, the new network interface was named with an incremented number at the end. I didn't want that as my network setup (firewall rules etc.) were set up for the former name. So I had to change the configuration to rename...

Read on

OpenJDK and Sun Java on Ubuntu 9.04

https://help.ubuntu.com/community/Java

install openjdk:

sudo aptitude install openjdk-6-jre

install sun java v6

sudo aptitude install sun-java6-bin

Choosing the default Java to use

Just installing new Java flavours does not change the default Java pointed to by /usr/bin/java. You must explicitly set this:

to see the current configuration and possibilities:

sudo update-java-alternatives -l

to...

Read on

strace - Watch File Access of any Executable

To trace files that a certain software opens, run:
strace -e trace=open -o my_progam.log my_program
# Or include access as well:
strace -e trace=open,access my_program
# Log a CDROM autorun:
strace -o out.txt -f ./cdrom/autorun
# Analyze log file for operations setting a SUID bit:
grep '...

Read on

Find out UUID of your Partitions

Run blkid:

blkid
    /dev/sda1: UUID=”1c9e4ae2-0ddc-4e3c-8758-4cdd6c90407a” SEC_TYPE=”ext2″ TYPE=”ext3″
    /dev/sda5: UUID=”a647ea33-74ee-4123-84bf-7edc32e2e39b” TYPE=”swap”
...

Read on

Gnome Office

GNOME Office is a free office suite for GNOME which consists of:

  • AbiWord word processor
  • Evolution groupware and e-mail application
  • Gnumeric spreadsheet
  • GNOME-DB, software that provides database connectivity.

The Debian project includes additional applications in this list:

  • Dia diagram editor
  • GIMP raster graphics editor
  • Inkscape vector graphics editor
  • XSane graphical frontend of scanner access
  • Planner project management tool
  • GnuCash (Finanzverwaltung)

You can...

Read on

DNS Lookup on The Terminal

Use the CLI programs host or dig to resolve domain names to IPs (and get some more information).

So when you run host example.com for example you will get the answer

example.com has address 192.0.32.10
example.com has IPv6 address 2620:0:2d0:200::10

The output of the run of dig example.com is more detailed:

<pre...

Read on

Make SSHd React Faster on Connect

If your ssh connection is established only with a delay of about 2-4 seconds (even when you are connected to a fast network), you can try the tips in this post.

What to try first

Debug you ssh connection: using ssh philipp@lion.ath.cx -p 28 -vvv (note the -vvv switch at the end).
Often...

Read on

search for an alternative to google calendar and address book

oGroupWare

http://wiki.ubuntuusers.de/egroupware
howto: http://www.ubuntugeek.com/egroupware-web-based-groupware-suite-setup.html
debian howto: http://www.debianadmin.com/egroupware-installation-and-configuration-with-screenshots.html

Citadel

Funambol

https://wiki.edubuntu.org/marckaplan/funambol
http://chinnathambi.com/2008/07/22/blackberry-sync-with-evolution-on-linux-using-funambol-step-by-step-instructions/
http://wiki.ubuntuusers.de/Funambol

...

Read on

Search for Strings Inside Files

To search for the string Find me inside text files in the working directory on a UNIX computer, do:

grep "Find me" *.*

or if you want to search in all subdirectories too:

ls `find . -type f -print  | xargs grep -l -s "Find me"`

If you want...

Read on

Guitar Tools

http://de.wikibooks.org/wiki/Gitarre:_Freeware_f%C3%BCr_Gitarristen

Tuning

Free Music Instrument Tuner: http://home.gna.org/fmit/

sudo aptitude install fmit

AP Tuner for Windows v3.08: http://www.aptuner.com/cgi-bin/aptuner/apmain.html

...

Read on

Check Health of Software-RAID using mdadm

This article is about the data consistency health of your Raid. To check the physical health of the HDDs please use smartmontools to check the SMART status of your hard drives.

The simplest possibility to find out something about the status is to read the content of the special file...

Read on

Create ISO Image of non-copy-protected DVDs / CDs

Using dd

dd if=/dev/sr0 of=~/image.iso

Using readom

Usually a better choice compared with dd is readom (read optical media). It has built in error checking.

sudo umount /dev/sr0
readom dev=/dev/sr0 f=~/image.iso

Burn .iso to a CD/DVD

If you want to write the ISO to a disk afterwards, then you should be using wodim:

<div...

Read on

Install the Collaboration Tool Gobby and its Server infinoted

sudo apt-get install gobby

Open gobby and create a session, tell your collaborators your IP, port and password and start working on documents together.

install newer version using launchpad PPD

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com CFB6301E
echo "deb http://ppa.launchpad.net/infinote/ppa/ubuntu jaunty main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update 
sudo...

Read on

Recover Linux Account when You Forgot the Password

http://www.ubuntugeek.com/howtorecover-your-username-and-passwordfix-grub-21-error-in-ubuntu.html

If you have a Linux machine and forgot the password you set during the installation process or if one of your friends gave you his old computer including a Linux installation without giving providing you his user name and password you can use this tutorial to help you...

Read on

Freeciv - Civilisations Game

http://freeciv.wikia.com/wiki/Main_Page
Freeciv is an empire-building strategy game inspired by the history of human civilization.

sudo aptitude install freeciv-client-gtk

run using

civclient
...

Read on

tinc vpn - with automatic full mesh routing

tinc is a Virtual Private Network (VPN) daemon that uses tunnelling and encryption to create a secure private network between hosts on the Internet. It runs on many platforms including Linux, FreeBSD, OpenBSD, NetBSD, MacOS/X, Solaris, Windows 2000, XP, Vista and Windows 7.

The installation of tinc on Ubuntu Linux is...

Read on

CLI for the NetworkManager

NetworkManager has a DBUS API, so other applications can use DBUS to communicate with it and change its settings. I found three different ways to do this on the command line using a CLI (command line interface):

nmcli (NetworkManagerCmdline)

As of 2010-12-18 the most actively maintained project is nmcli: http://fedoraproject.org/wiki/Features/NetworkManagerCmdline.

Compare nmcli...

Read on

Restore network-manager

When you previously removed the network manager you might want it back some day for some reason. Here's how to do it:

Remove interface definitions from /etc/network/interfaces and reinstall network-manager:

sudo apt-get install network-manager
...

Read on

Remove openjdk and install sun-jdk

For 9.04 jaunty: http://ubuntuguide.org/wiki/Ubuntu:Jaunty#Java_Runtime_Environment_.28JRE.29_for_Firefox_plug-in
For 11.04 natty: http://ubuntuguide.org/wiki/Ubuntu:Natty#Java_Runtime_Environment_.28JRE.29_for_Firefox_plug-in

# remove the previous openjdk
# (may have to be adjusted for newer Ubuntu versions such as natty):
sudo apt-get remove icedtea6-plugin openjdk-6-jre icedtea-6-jre-cacao ca-certificates-java openjdk-6-jre-headless openjdk-6-jre-lib
sudo apt-get install sun-java6-jre sun-java6-plugin
...

Read on

Grab Content of the ZDF Mediathek

http://zdfmediathk.sourceforge.net/

cd ~/Downloads
wget http://downloads.sourceforge.net/project/zdfmediathk/Mediathek/Mediathek%201.2.0/Mediathek_mit_lib_1.2.0.zip?use_mirror=surfnet
unzip Mediathek_mit_lib_1.2.0.zip

start with

java -jar ~/Downloads/Mediathek.jar

rtmpdump

http://www.sempervideo.de/?p=3751 http://lkcl.net/rtmp/

cd ~/Downloads
wget http://lkcl.net/rtmp/rtmpdump-v1.6.tar.gz
tar -xf rtmpdump-v1.6.tar.gz
cd rtmpdump/
make

example usage

protocol may be rtmp or rtmpe (encrypted)

./rtmpdump_x86 -o /home/philipp/Desktop/output.mp4 --host ondemand.flash.zdf.newmedia.nacamar.net --port 1935 --protocol rtmp --playpath mp4:zdf/data-sec/quicktime/geoloc_zdf-de/09/07/090727_die_bombe_1_dok_vh.mp4 --swfUrl http://www.zdf.de/ZDFmediathek/flash/player.swf --tcUrl rtmp://ondemand.flash.zdf.newmedia.nacamar.net/zdf --pageUrl http://www.zdf.de/ZDFmediathek/7tagerueckblick?inPopup=true --app zdf...

Read on

record what your screen displays... with recordMyDesktop

recordMyDesktop is a commandline tool, written in C, that can be used to create a screen cast. Very useful tips can be found on: http://recordmydesktop.sourceforge.net/rug/toc.php.

There are two frontends for recordMyDesktop, written in Python:

  • gtk-recordMyDesktop (pyGtk) and
  • qt-recordMyDesktop (pyQt4).

The installation of gtk-recordmydesktop on Ubuntu works as follows:

sudo aptitude install recordmydesktop...

Read on

Merkaartor

http://wiki.ubuntuusers.de/OpenStreetMap/Programme#Merkaartor

sudo aptitude install merkaartoor
...

Read on

Autostart on Ubuntu

Xorg Server Autostart:

Check xinit(1) man page for further details.
System wide autostart: /etc/X11/xinit/xinitrc
User specific autostart: ~/.xinitrc

Gnome

http://wiki.ubuntuusers.de/Autostart

Gnome user specific:
System → Einstellungen → Sitzungen → Startprogramm

Gnome system wide:
Create a file e.g. MyProgram.desktop in the directory /etc/xdg/autostart:

[Desktop Entry]
Encoding=UTF-8
Name=MyProgram
Exec=command to be executed
<span...

Read on

Editors for Vector Graphics: inkscape, dia and xfig

Inkscape

documentation: http://www.inkscape.org/doc/index.php

sudo apt-get install inkscape

dia

sudo apt-get install dia

If you want to create an eps image to use with the LaTeX package psfrag, export the image to eps using ps fonts!

xfig

A great vector graphics tool! http://www.xfig.org/

sudo aptitude install xfig

usermanual: http://xfig.org/userman/

...

Read on

Neo2 Layout

The official project

http://www.neo-layout.org/

More projects around neo

Installing NEO2 on Ubuntu 8.10 (with root permissions)

sudo su
co https://svn.neo-layout.org ~/neo
cp /usr/share/X11/xkb/symbols/de /usr/share/X11/xkb/symbols/de.bcp
cp ~/neo/linux/X/de /usr/share/X11/xkb/symbols/xx

Using NEO on Linux

Change to the NEO2 Layout:

setxkbmap de neo

Change back to the default German layout:

setxkbmap de

KTouch Typing...

Read on

Problems with scp / gvfs caused by ~.bashrc

Output in printed by statements in your ~/.bashrc for non-interactive sessions causes scp and sftp actions to fail! So please do not put output to the .bashrc.

You can however test if the session is interactive or not. An example: If you want to start screen depending on whether we connect using an...

Read on

Check Open Ports on Local Machine Using Netstat

run netstat like this:

sudo netstat -lntup

and you get an output like this:

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State     ...

Read on

JOSM Java OpenStreetMap Editor

Resources

Installation

Tested Version

To install the tested (stable) version of JOSM, get the JOSM log...

Read on

Change Default Application (the one being opend on double click on a file)

  • right click a file
  • select properties
  • open open with tab
  • select you favourite application
...

Read on

Installing Google Chrome on Ubuntu 9.04

http://ubuntublog.ch/applikationen/google-chrome-fuer-ubuntu

sudo gedit /etc/apt/sources.list

Then add to the file:

# Google Chrome
deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu intrepid main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu intrepid main

And add the sign-key to you keyring:

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xfbef0d696de1c72ba5a835fe5a9bf3bb4e5e17b5

Then update and install:

sudo apt-get...

Read on

Use smartmontools to monitor S.M.A.R.T. status of your HDDs

The S.M.A.R.T. status is not a perfect measure of your hdd health but it can sometimes provide pre-failure notification. Here is how to check the S.M.A.R.T. status on Ubuntu:

Install the smartmontools using:

sudo aptitude install smartmontools

To display all the S.M.A.R.T. information for an IDE drive, run

sudo smartctl...

Read on

HTML editors

Quanta Plus Bluefish Screem Nvu Kompozer

gPHPEdit

If you have a personal preference or another editor, please comment!

...

Read on

Set up an SMTP Server Without Authentification

http://wiki.ubuntuusers.de/Postfix#Grundkonfiguration

I don't like to set up an SMTP server without authentification but I needed it for a special hardware, the Koukaam NETIO 230A. It sends reports of its operation via unauthenticated SMTP emails.

sudo aptitude install postfix
...

Read on

list all users on the system

cat /etc/passwd | cut -d":" -f1
...

Read on

FFGTK - a Fax / CAPI Client for Fritz!Box Fon

update 2011-02-14:

A recent version of ffgtk is contained in the repository ppa:stevi/ppa. To install it on Ubuntu 10.10 maverick do:

sudo add-apt-repository ppa:stevi/ppa
sudo aptitude update && sudo aptitude install ffgtk libcapi20

Then run ffgtk on the terminal and set up your box. (I had to use the auto detected...

Read on

Shutdown System Automatically Later

You might want to have some entertainment while falling asleep...

To shutdown the system in 30 minutes time:

sudo shutdown -P +30

cancel shutdown during that time:

sudo shutdown -c
...

Read on

Gedit Plugin to Search and Replace using Regular Expressions

found here: http://live.gnome.org/Gedit/Plugins
http://halfhourhacks.blogspot.com/2008/03/gedit-regular-expression-plugin.html

cd .gnome2/gedit/plugins
wget http://neednom.com/bfisher/blog/geditplugin/regex_replace.tar.gz
tar -xf regex_replace.tar.gz
rm regex_replace.tar.gz

Then open gedit and select Edit → Preferences → Plugins and activate the regex plugin

...

Read on

OpenDNS - The better DNS-Server

https://www.opendns.com

Servers: 208.67.222.222 and 208.67.220.220

(Fast alternative: google dns, servers: 8.8.8.8 and 8.8.4.4. I use the google DNS servers when going online via my mobile phone using 3G network. It is by far faster than the DNS server of the network provider.)

Perl client to update the openDNS IP (if...

Read on

One Time Use Email Addresses

One time use email addresses can prevent your real email mailbox from beeing flooded with spam.

http://spamgourmet.com/

...

Read on

Use DPMS from terminal to blank / supend / turn off the screen

Blank the screen (or activate the screensaver). You need the 1-sec delay.

sleep 1; xset s activate

switch the screen OFF after a delay of one second

sleep 1; xset dpms force off

other states: standby, suspend, or on

Resources

...

Read on

Resetup Skype

As I thought there were general problems I reinstalled skype from medibuntu repo:

sudo dpkg -r skype
sudo -i
echo "deb http://packages.medibuntu.org/ jaunty free non-free"  >> /etc/apt/sources.list
apt-get update
apt-get install medibuntu-keyring
apt-get update
apt-get install skype

effectively just the settings were wrong: and set Skype OptionsSound Devices to:

  • SoundIn: QuickCam (plughw)
  • SoundOut: pulse
  • Ringing: pulse
...

Read on

Chinese Input in LaTeX

You need at least:

sudo aptitude install latex-cjk-chinese

or install all chinese related packages:

sudo aptitude install latex-cjk-all

http://ubuntuforums.org/showthread.php?t=350101

\documentclass{article}
\usepackage{CJKutf8}
\begin{document}
\begin{CJK*}{UTF8}{song}
这是一个测试
\end{CJK*} (this is a test)
\end{document}

The above LaTeX code...

Read on

Hauppauge Nova-T USB2 DVB-T Stick

http://wiki.ubuntuusers.de/Hauppauge_WinTV_Nova-T_Stick

First we want to find out something about the hardware.
Using dmesg we find:

dib0700: loaded with support for 8 different device-types
dvb-usb: found a 'Hauppauge Nova-T Stick' in <span...

Read on

Symbolic Link to a Folder

For convenience I want a link shortcut to my folder /home/philipp/something/deeply/stapled in the root folder / in order to have faster access to it (on the terminal):

sudo ln -s /home/philipp/something/deeply/stapled /shortcut

Now I can get to /home/philipp/something/deeply/stapled using the short form /shortcut

...

Read on

xfig complains about missing fig2dev

solution:

sudo apt-get install transfig
...

Read on

Save Websites to Mirror a Browsable Version Using wget or webhttrack

using wget

http://www.boutell.com/newfaq/creating/mirroring.html
http://ubuntuforums.org/showthread.php?t=654722&page=2

wget -m -k -K -E http://example.com/

If this command seems to run forever, there may be parts of the site that generate an infinite series of different URLs. You can combat this in many ways, the simplest being to use the -l option to specify...

Read on

Network Bandwidth Monitoring Tools

Commonly used tools to monitor or test network bandwith are:

  • bmon
  • bwbar
  • bwm
  • bwm-ng
  • iftop
  • iperf
  • ipfm
  • ttcp
  • speedometer
  • cbm
  • ibmonitor
  • pktstat
  • mactrack
  • MRTG
  • Cacti

bmon

I really like bmon for monitoring; it's a light-weight real-time CLI bandwidth monitor. Its status output is given for the individual network interfaces on your computer.

sudo aptitude install bmon

sudo bmon

Press g for console graphics and d for detailed stats.

Speedometer

http://excess.org/speedometer/...

Read on

Delete Downloaded Packages After Installation (Clean Package Cache)

If you're out of hard disk space on the root partition then set up you system to delete packages after installing:

sudo synaptic

Settings → Preferences → Files → Delete downloaded packages after installation, also click Delete Cached Package Files.

delete package files after installation using command line

On the command line...

Read on

Sweet Home 3D

http://www.sweethome3d.eu

run with Java Web Start

cd ~/Downloads
wget http://www.sweethome3d.eu/SweetHome3D.jnlp
javaws SweetHome3D.jnlp

or the original java one:

cd ~/Downloads
/usr/lib/jvm/java-6-sun-1.6.0.13/jre/javaws/javaws ./SweetHome3D.jnlp

and run using

cd ~/Downloads/
javaws SweetHome3D.jnlp

or if the above does not work, use:

install and run including Java VM

cd ~/Downloads
wget http://prdownloads.sourceforge.net/sweethome3d/SweetHome3D-2.0-linux-x86.tgz
tar -xf SweetHome3D-2.0-linux-x86.tgz

and run

cd ~/Downloads/SweetHome3D-2.0
./SweetHome3D

add extra...

Read on

Use the tool x2x to use your mouse and keyboard as input for a differenct computer — works well!

With the very small toolx2x you can move your mouse to the left edge of your local screen and will continue to move over to the remote desplay. Your keyboard works on both computers as well, and you can even copy-paste between the two computers. It looks like the...

Read on

Uninstall the Proprietary Nvidia Driver

For my Nvidia Geforce 8600 GT in order to uninstall the driver I have to run the following command and restart:

sudo aptitude remove nvidia-glx-180
...

Read on

Create Desktop and Menu Entries

freedesktop Desktop Entry Specification freedesktop Icon Theme Specification gnome Desktop Entry Files

You have to create a .desktop file and save it to /usr/share/applications/somefile.desktop.

icons are searched in the following folders (in that order): XDG_DATA_DIRS/icons /usr/share/pixmaps

...

Read on

Writer 2 LaTeX

http://www.ooowiki.de/Writer2LaTeX

There is an export plugin for OpenOffice.org Writer application. It uses Java and works for Writer >=v3.1 as Extension. Install like this:

sudo aptitude install openoffice.org-writer2latex

To export a Writer document do: File → Export → As LaTeX 2e ...

...

Read on

Get rid of annoying rubber error: DeprecationWarning: md5 ...

https://bugzilla.redhat.com/show_bug.cgi?id=506053
the patch is: http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=python2.6.patch;att=1;bug=520048

To get rid of the annoying rubber deprecation warning of a deprecated use of the md5 library, open /usr/share/rubber/rubber/util.py and change:

import md5
m = md5.new()

to

import hashlib
m = hashlib<span...

Read on

Ubuntu's Automatic File System Checks

http://wiki.ubuntuusers.de/Dateisystemcheck

Fix errors automatically on startup

sudo gedit /etc/default/rcS

and change FSCKFIX=no to FSCKFIX=yes

Force a check of all ext3 partitions on next startup

sudo touch /forcefsck

View results of previous filesystem checks

less /var/log/fsck/checkroot
less /var/log/fsck/checkfs
...

Read on

Ifconfig - dissected and demystified

http://linuxhelp.blogspot.com/2006/11/ifconfig-dissected-and-demystified.html

eth0      Link encap:Ethernet  HWaddr 00:70:40:42:8A:60
       inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
       UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
       RX packets:160889...

Read on

Empty Gnome Trash using Terminal

I connected my old notebook hard disk to my desktop computer (as the HDD was exchanged). To expunge the trash folder I did:

cd /media/disk/home/philipp/.local/share/Trash/info/
ls
rm -rf *
cd /media/disk/home/philipp/.local/share/Trash/files/
ls
rm -rf *
...

Read on

Input Methods for Chinese (SCIM-Bridge)

update (2010-10): Please consider https://blog.philippklaus.de/2010/10/chinese-input-using-ibus/ for Chinese input on more recent versions of Ubuntu.


http://en.wikipedia.org/wiki/Chinese_input_methods_for_computers#Pronunciation
http://en.wikipedia.org/wiki/Pinyin_method#Implementations

http://www.scim-im.org/

https://help.ubuntu.com/community/SCIM
https://wiki.ubuntu.com/InputMethods/SCIM/Setup

Install scim:

sudo aptitude install scim-pinyin
sudo aptitude install language-pack-gnome-en-base gnome-user-guide-en language-pack-gnome-en

Enable support for complex character input (System → Administration → Language Support)

https://help.ubuntu.com/community/SCIM#Using
SCIM should now start along...

Read on

Set Up Public/Private Key Authentication for SSH to Connect from Laptop ↔ Desktop Without a Password Prompt

On both Linux/Unix computers you have to make sure they have a public key ~/.ssh/id_rsa.pub. If it is not there yet, run:

ssh-keygen -t rsa -b 4096

The desktop should be able to connect to the laptop with no password: (we work on the desktop here):

scp ~/.ssh/id_rsa.pub philipp@laptop:~/tmp-key.pub
ssh philipp@laptop
cat...

Read on

React when Network Interface is slow (as in half-duplex mode etc.)

Analyse the situation by taking a look at the configuration and stats:

ifconfig -a
netstat -s

Check if your gateway and DNS servers are reachable. If only one of the dns servers is not reachable edit /etc/resolv.conf manually (will be overwritten by next network change).

To set the network interface eth1 to 100MBits...

Read on

Searching For Files Inside Not-Installed Packages

If you want to search for a file contained in any installable package that you have not yet installed, you can search for it using apt-file search:

sudo apt-get install apt-file
sudo apt-file update
sudo apt-file search 'file'

Resources

...

Read on

Vimperator – Firefox Plugin

The most important command:

:help

Get the normal Firefox menu back:

set guioptions+=mT
...

Read on

Barcode Technology (QRCode etc.)

For on overview of different barcode technologies and types see: http://en.wikipedia.org/wiki/Barcode

gnu barcode

http://www.gnu.org/software/barcode/

sudo apt-get install barcode

perl barcode

http://search.cpan.org/~kwitknr/GD-Barcode-1.15/

GD::Barcode creates barcode images. It supports the following barcode formats:

  • COOP2of5,
  • Code39,
  • EAN13 (JAN13),
  • EAN8 (JAN8),
  • IATA2of5,
  • ITF (Interleaved2of5),
  • Industrial2of5,
  • Matrix2of5,
  • NW7,
  • QRcode,
  • UPC-A and
  • UPC-E.

Install this Perl...

Read on

Send `net send` commands like on Windows using Linux

On Windows Systems you can send short messages using the net send command. This is also possible using smbclient on Linux:

smbclient -M Hostname_or_IP "nachricht"

You can also pipe-in the text to send:

echo "Nachrichtentext" | smbclient -M Hostname_or_IP

Or directly send textfiles up to 1.6 KB:

cat msg.txt...

Read on

Update the Turboprint Installation

amd64: http://www.zedonet.com/index.php?en_p_turboprint_download_uni=&arch=1&dist=0
i386: http://www.zedonet.com/index.php?en_p_turboprint_download_uni=&arch=0&dist=0

Update the Turboprint installation:

cd ~/Downloads/
wget http://www.turboprint.info/tp2/turboprint_2.20-1_amd64.deb
sudo dpkg -i turboprint_2.20-1_amd64.deb
...

Read on

Read and Convert NFO Files (Codepage 437)

http://de.wikipedia.org/wiki/Codepage_437

convert to UTF8 with iconv

to convert a file from Codepage 437 to UTF8 do:

iconv -f 437 -t UTF8 your_nfo_file.nfo | less

nfoview

http://home.gna.org/nfoview/

sudo aptitude install nfoview
...

Read on

No Beep on Reboot

http://ubuntuforums.org/showthread.php?t=1177256

sudo gedit /etc/modprobe.d/blacklist.conf

Then add those two lines to the blacklist and click save:

#Stop PC speaker
blacklist pcspkr
...

Read on

How To Apply a Patch to Source Code

Learn by example:
Get a sourcecode package and a .diff.gz file and patch the source. The package is sane-backends_1.0.19.orig.tar.gz and the patch sane-backends_1.0.19-23ubuntu7.diff.gz:

cd ~/Downloads/
wget https://launchpad.net/ubuntu/jaunty/+source/sane-backends/1.0.19-23ubuntu7/+files/sane-backends_1.0.19.orig.tar.gz
tar -xf sane-backends_1.0.19.orig.tar.gz
wget https://launchpad.net/ubuntu/jaunty/+source/sane-backends/1.0.19-23ubuntu7/+files/sane-backends_1.0.19-23ubuntu7.diff.gz
gunzip sane-backends_1.0.19-23ubuntu7.diff.gz
cd sane-backends-1.0.19/
patch -p1 < ../sane-backends_1.0.19-23ubuntu7.diff

An important parameter of patch is -p. It can be used if you apply a patch in...

Read on

Share Internet Connection

http://ph.ubuntuforums.com/showthread.php?t=335465

install needed packages:

sudo aptitude install dnsmasq ipmasq dhcp3-server

configure network/interfaces

auto lo
iface lo inet loopback
auto eth0
auto eth1
iface eth1 inet static
  address 192.168.0.1
  netmask 255.255.255.0
  broadcast 192.168.0.255
  wireless-mode master
  wireless-essid HDFredistribution

dhcp

Change in /etc/default/dhcp3-server the line INTERFACES="" to INTERFACES="eth1"

In /etc/dhcp3/dhcpd.conf comment out the...

Read on

Set up NetworkManager for VPN

http://wiki.ubuntuusers.de/NetworkManager#VPN

sudo aptitude install network-manager-openvpn network-manager-pptp network-manager-vpnc
...

Read on

gLabels

http://glabels.sourceforge.net/
gLabels is a program for creating labels and business cards. Works well!

sudo apt-get install glabels
...

Read on

Test Network Speed Using netcat

http://deice.daug.net/netcat_speed.html
http://www.linuxhomenetworking.com/forums/showthread.php?t=18736
http://lxer.com/module/forums/t/26336/
good (short!): http://www.odium.com.au/?p=78

listen on machine A:

nc -v -v -l -n -p 2222 >/dev/null

on newer versions of netcat (Ubuntu 10.04) you must use

nc.traditional -v -v -l -n -p 2222 >/dev/null

Send from machine B:

time yes|nc -v -v -n tklaus.selfip.org 2222 >/dev/null

waiting...

Read on

Quickshare Folder using SMB and Discover SMB Shares on the Command Line

Gnome 'Share this folder'

Right click the folder you want to share in Gnome → sharing options → Share this folder (maybe this requires the installation of package samba, after installation log out and on again).

Allow SMB Connections In Your Firewall

After configuring firestarter to allow SMB, sudo iptables-save contains:

-A...

Read on

Set up gedit for use with C++

The post describes the setup for gedit to get most out of it for C++ development.

Activate gedit plugins using Edit → Preferences in gedit.

Smart indentation plugin for C/C++/Java

http://live.gnome.org/Gedit/Plugins?action=AttachFile&do=view&target=csmartindent.tar.gz

Function browser

http://sourceforge.net/projects/gedit-funcbrows/

The Ubuntu package gedit-plugins including an embedded terminal

to get an integrated terminal, get the package gedit-plugins. This...

Read on

Rhythmbox Plugins and Tools

http://live.gnome.org/Rhythmbox/RelatedTools
http://live.gnome.org/RhythmboxPlugins/ThirdParty

Rhythmbox DLNA/UPnP sharing and Control plugin

http://coherence-project.org/wiki/RhythmBox

to get this plugin to work I had to do:

sudo apt-get install python-coherence

Rhythmbox XSLT - convert Rhythmbox xml library file to xhtml

http://www.webdez.net/hacks/rbxml2html

requirements:

  • Perl
  • XML::LibXSLT Perl module

install like this:

sudo aptitude install libxml-libxslt-perl
cd ~/Downloads
wget http://downloads.dub.webdez.net/rbxml2html-0.03.tar.gz
tar -xf rbxml2html-0.03.tar.gz

usage: the pearl...

Read on

New Certificate for University WiFi Authentication

The certificate needed for 802.1X auth for the WiFi network FLUGHAFEN of University of Frankfurt has changed. To get the new certificate ("Deutsche Telekom Root CA 2") run:

cd ~/Downloads/
wget http://www.pki.dfn.de/fileadmin/PKI/zertifikate/deutsche-telekom-root-ca-2.der
sudo mv deutsche-telekom-root-ca-2.der /etc/cert

and set the new certificate in network manager.

resources

...

Read on

lighttpd webserver

http://www.lighttpd.net/
documentation: http://redmine.lighttpd.net/wiki/lighttpd
http://www.ubuntugeek.com/lighttpd-webserver-setup-with-php5-and-mysql-support.html
https://wiki.ubuntu.com/Lighttpd%2BPHP
http://wiki.ubuntuusers.de/Lighttpd

Installation

sudo apt-get install lighttpd

The webdocuments root folder is /var/www. Refer to the ubuntugeek.com site for more features (php etc) .

change ownership of /var/www in order to be able to put files there as normal user

sudo chown philipp /var/www
sudo chgrp philipp...

Read on

Add GUI for lm-sensors to the Panel

http://wiki.ubuntu-forum.de/index.php/Lm-sensors (German)

sudo apt-get install sensors-applet

Right click on the panel → Add to Panel → Hardware Sensors Monitor

...

Read on

Use the tool `ip` to examine your network status

http://lartc.org/howto/lartc.iproute2.explore.html

The most useful three commands are:

ip link list
ip address show
ip route show
...

Read on

Statistical Data - Open Access

German Statistics: http://www.destatis.de
German made European Statistics: http://www.eds-destatis.de
European Statistics: http://epp.eurostat.ec.europa.eu/portal/page/portal/eurostat/home/

http://www.osor.eu/news/eurostat-considers-to-publish-more-open-source-tools-using-eupl

GIS

The Open Source Geospatial Foundation http://www.osgeo.org/
good overview http://www.giswiki.org/wiki/Open_Source_GIS#Open_Source_GIS_.28allgemein.29
many, many links... http://opensourcegis.org/
GRASS GIS http://grass.itc.it/
http://www.mapbender.org/Main_Page especially http://wms.wheregroup.com/mapbender2/frames/index.php?&gui_id=mapbender
GDAL - Geospatial Data Abstraction Library http://www.gdal.org/

...

Read on

Calc 2 LaTeX Plugin for OpenOffice.org

http://www.ooowiki.de/Calc2LaTeX
http://calc2latex.sourceforge.net/

update 2011-06-18: For LibreOffice, the extensions can be found on http://libreplanet.org/wiki/Group:OpenOfficeExtensions/List. Calc2LaTeX, however, is not in this list and can still downloaded as before:

Get the extension from http://extensions.services.openoffice.org/project/calc2latex and install by double clicking or do it all on the terminal:

cd ~/Downloads
wget http://extensions.services.openoffice.org/files/1739/0/Calc2LaTeX.oxt
oowriter Calc2LaTeX.oxt
...

Read on

Ghex Hex Editor

A graphical hex editor:

sudo aptitude install ghex

Alternative on the terminal: hexdump

...

Read on

ddclient - a DynDNS Client on Ubuntu Linux

https://help.ubuntu.com/community/DynamicDNS
http://wiki.ubuntuusers.de/DynDNS-Clients

Install ddclient:

sudo aptitude install ddclient

Now configure the program:

sudo gedit /etc/ddclient.conf

Enter your DynDNS account data and computer setup:

pid=/var/run/ddclient.pid
protocol=dyndns2
use=if, if=eth2 # the mode and network interface
# DynDNS account:
server=members.dyndns.org
login=philippk
password='sdf1dpw'
philippk.ath.cx

And set ddclient to run automatically on startup:

sudo gedit /etc/default/ddclient

Set the mode of ddclient...

Read on

Using HP PSC 2210 with Ubuntu Linux

FAX functionality using HylaFax

sudo aptitude install hylafax-client

This installes the following binaries: textfmt, faxalter, faxcover, faxmail, faxrm, faxstat, sendfax, sendpage, edit-faxcover

To send a fax from your terminal, run (-n : no coverpage, -d : destination):

sendfax -n -d0711123456 brief.ps

scanning

Switch the device off and on again in the case...

Read on

HP PSC 2210 scanning

This post has been replaced by → Using HP PSC 2210 with Ubuntu Linux

...

Read on