Posts with the category Ubuntu 9.10

PostgreSQL

http://www.postgresql.org/
documentation with user comments: http://www.postgresql.org/docs/8.4/interactive/index.html

install on Ubuntu

http://wiki.ubuntuusers.de/PostgreSQL (German)
https://help.ubuntu.com/community/PostgreSQL

sudo apt-get install postgresql

pgAdmin III is a handy GUI for PostgreSQL, it is essential to beginners. To install it, type at the command line:

sudo apt-get install pgadmin3

Setup: Now you have to set the password for the...

Read on

Install Picasa (by Google)

http://wiki.ubuntuusers.de/picasa
http://picasa.google.com/intl/de/linux/download.html#picasa30
http://www.google.com/linuxrepositories/testrepo.html
http://www.google.com/linuxrepositories/apt.html

add the following entry to /etc/apt/sources.list

# Google software repository
deb http://dl.google.com/linux/deb/ stable non-free main

or if you want to access newer software use the following lines ( http://www.google.com/linuxrepositories/testrepo.html ) :

# Google repository
deb http://dl.google.com/linux/deb/ <span...

Read on

HowTo generate secure passwords using pwgen

http://wiki.ubuntuusers.de/Shell/pwgen

sudo aptitude install pwgen

pwgen can generate safe passwords for you. It is a command line tool and can be used like this:

pwgen -s -y 8 1

-s means create a secure password, -y means it should contain at least one special character, 8 means it...

Read on

digiKam

digiKam is a great software to manage your digital photographs. I like it especially because it does not depend that much on a database / proprietary ways to store information about the photos as it saves most information directly to the files.

sudo aptitude install digikam digikam-doc

To install...

Read on

Mount T-Online Mediencenter via WebDAV

This blog post describes how to mount the T-Online Mediencenter via WebDAV on Ubuntu Linux and on Windows 7 (64bit).

Resources

How To for Mac OS X

  1. Open Finder.
  2. Press [⌘]-[k].
  3. Connect to https://webdav.mediencenter.t-online.de
  4. Enter email address and password.

How To for Ubuntu Linux

First, install the required package davfs2:

sudo...

Read on

Mount a GMail account as Filesystem using gmailfs

Warning: my experience with gmailfs was not excellent! It was a bit slow and you always risk to lose data you stored on that account.


based on IMAP: http://sr71.net/projects/gmailfs/
(it used to be http://richard.jones.name/google-hacks/gmail-filesystem/gmail-filesystem.html but this was based on the Webinterface and that changed often)

gmailfs works with FUSE....

Read on

POV-Ray

http://wiki.ubuntuusers.de/POV-ray

installation of povray itself:

sudo aptitude install povray povray-includes povray-examples povray-doc

as well as the graphical modeler:

sudo aptitude install kpovmodeler

usage

A file created by POV-Ray: http://de.wikipedia.org/wiki/Datei:Mug_and_Torus_morph.gif
http://gist.github.com/376217

General command line to render a scene (still has to be adopted for the file in question):

povray...

Read on

conglomerate - an xml editor

http://www.conglomerate.org/

sudo aptitude install conglomerate
...

Read on

Install QlandkarteGT

https://launchpad.net/~mms-prodeia/+archive/ppa
http://www.prodeia.de/wordpress/category/software/

sudo add-apt-repository ppa:mms-prodeia/ppa
sudo aptitude update
sudo aptitude install qlandkartegt
...

Read on

Apply a Lowpass Filter to an mp3 Audio File

A lowpass filter can be applied using the command line tool sox. It tool can be installed like this on Ubuntu:

sudo aptitude install pacpl sox

Convert the audiofile to wave first (using Perl Audio Converter as sox has no mp3 support compiled in on Ubuntu systems):

pacpl --to...

Read on

Software for the GenBank database

http://www.ncbi.nlm.nih.gov/Genbank/
http://en.wikipedia.org/wiki/List_of_sequence_alignment_software

...

Read on

Grub2: Permanently add `noapic` to the Boot Parameters

Edit the grub defaults file:

sudo gedit /etc/default/grub

and add noapic to GRUB_CMDLINE_LINUX_DEFAULT. Afterwards run sudo update-grub2 to recreate the list of boot entries (including the noapic option).

resources

...

Read on

Advanced Usage of ethtool

There exist a comparison of ethtool in linux with the equivalents in solaris command-by-command... It's great!

not available anymore... but here is an archived version: https://web.archive.org/web/20120918092833/http://hub.opensolaris.org/bin/view/Project+brussels/ethtool-dladm-comparison

...

Read on

Generate a Hardware Profile

http://www.tech-recipes.com/rx/2771/ubuntu_generate_hardware_profile_system/

sudo lshw -html > hardwareprofile.html
...

Read on

Create an Image of a Copy Protected Audio CD Using readom

http://linux.die.net/man/1/readom
http://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-dd-copy-protected-disc-784767/

use the option -clone!

readom dev=/dev/sr0 -clone f=audio-loops.iso
...

Read on

Remove the 5% root quota of an ext2 / ext3 partition

Usually 5% of the storage of an ext2 or ext3 volume are reserved for the root user. You can use tune2fs to make that space available to other users!

tune2fs -m 0 /dev/sdb1

Only do this for non-system partitions (as you might need the "root quota" to recover from full...

Read on

Set up a Samba Share for the KONICA MINOLTA magicolor 4690mf

This blog post documents the steps needed to set up a Samba Windows share on a Ubuntu based computer in order to let the Konica Minolta magicolor 4690mf scanner save scanned images directly to that folder.

Main resource: http://wiki.ubuntuusers.de/Samba_server (German)

sudo aptitude install samba-common samba

You might also install the...

Read on

GMapCatcher - an Offline Maps Viewer

update 2011-03: Google Maps is no longer supported.

http://code.google.com/p/gmapcatcher/
GMapCatcher is an offline maps viewer. It downloads CloudMade, OpenStreetMap or Google Map tiles automatically, display them using a specific GUI. User can view the maps while offline.

get svn version

cd ~/Downloads
svn checkout http://gmapcatcher.googlecode.com/svn/trunk gmapcatcher

run

~/Downloads/gmapcatcher/maps.py
...

Read on

Install your own Wikidot Wiki

http://www.wikidot.org/installation-guide

requirements

  • PostgreSQL 8.3
  • PHP 5.2+
  • Lighttpd 1.4 or 1.5
  • ImageMagick
  • LaTeX
  • PHP gd extension
  • PHP tidy extension
  • PEAR
  • file
  • git

To install all these:

sudo aptitude install postgresql-8.3 php5-cgi php5-cli php5-pgsql lighttpd imagemagick tetex-bin tetex-extra gs-gpl  php5-gd php5-tidy php-pear file git-core

Installation of Wikidot

http://www.wikidot.org/debian-packages

cd ~/Downloads
wget http://www.wikidot.org/local--files/debian-packages/wikidot_0.90_all.deb
sudo dpkg -i wikidot_0.90_all.deb

if it complains about missing packages...

Read on

Set Paper Size of the Ubuntu System Globally

http://andreas.scherbaum.la/blog/archives/557-Papierformat-A4-oder-Letter-in-einer-Ubuntu-Installation.html
To change the paper format from or to letter resp. a4 for the Ubuntu installation do:

sudo dpkg-reconfigure libpaper1
sudo /etc/init.d/cups restart
...

Read on

Solve Boot Problems: The Kernel Did Not Find the Root Partition Using its UUID

On startup the system hung because the root UUID was not found. http://ubuntuforums.org/showthread.php?p=9020811#post9020811

So when I ran sudo blkid — executed from a live cd — it didn't show the root partition (all other partitions UUIDs were listed).

But tune2fs showed me its UUID

sudo tune2fs -l /dev/sda2

So I tried...

Read on

Install Opera

http://wiki.ubuntuusers.de/OPERA
http://www.opera.com/support/kb/view/841/
https://help.ubuntu.com/community/OperaBrowser

installation

install Opera https://help.ubuntu.com/community/OperaBrowser

sudo -i
echo "deb http://deb.opera.com/opera/ stable non-free"  >> /etc/apt/sources.list
wget -q http://deb.opera.com/archive.key -O- | sudo apt-key add -
aptitude update
aptitude install opera
...

Read on

Recompile the Ubuntu Kernel

http://wiki.ubuntuusers.de/Kernel
http://wiki.ubuntuusers.de/Baustelle/Kernel/Kompilierung
https://wiki.ubuntu.com/KernelTeam/KernelGitGuide

To recompile the Ubuntu kernel start with:

git clone git://kernel.ubuntu.com/ubuntu/ubuntu-karmic.git

change config

Depending on the libraries that you will need, do configure the kernel using one of the following:

using ncurses (sudo aptitude install libncurses5-dev)

make menuconfig

using GTK (sudo aptitude install libgtk2.0-dev libglib2.0-dev libglade2-dev)

make gconfig

using...

Read on

Install Google Chrome

https://launchpad.net/chromium-project

To add the gpg key and the ppa repository at once (works with Ubuntu>=9.10), do:

sudo add-apt-repository ppa:chromium-daily

This is for the daily builds. If you want the beta versions instead, use:

sudo add-apt-repository ppa:chromium-daily/beta

Then install:

sudo aptitude install chromium-browser-l10n
...

Read on

Set up a Unix User Account with SFTP Access but no other Rights (such as Shell Access)

An easier solution just by setting a line in the configuration of the ssd daemon can be found in the blog post Chroot SFTP users.

http://forum.ubuntuusers.de/post/1884322/
http://manpages.ubuntu.com/manpages/karmic/man1/scponly.1.
http://wiki.ubuntuusers.de/scponly
http://sublimation.org/scponly/wiki/index.php/Main_Page

sudo aptitude install scponly

configuration:

sudo -s
cd /usr/share/doc/scponly/setup_chroot
gunzip setup_chroot.sh.gz
chmod +x setup_chroot.sh
./setup_chroot.sh

this adds the user etc...

sudo...

Read on

Find out To What Package a File Belongs & What Files Belong to a Package

http://wiki.ubuntuusers.de/apt-get#Zuordnung-von-Paketen-und-Dateien
http://www.debian.org/doc/manuals/apt-howto/ch-search.de.html#s-apt-file

dpkg -S

Find out the files that belong to an installed package.

dpkg -S packagename

apt-file

sudo apt-file update
apt-file search filename

Works like dpkg -S but also shows not installed packages that contain the file.

apt-file list packagename
...

Read on

Restore Grub2

http://wiki.ubuntuusers.de/Grub_2#GRUB-2-wiederherstellen
After an installation of Windows 7, Grub2 would not start any more as Windows overwrote the boot loader section. So i did the following:

  1. Boot the Ubuntu Live CD.
  2. Find out correct disc and mount the root partition:

    sudo fdisk -l
    sudo mount /dev/sda2 /mnt
    
  3. If you have a separate boot partition...

Read on

Get Microsoft Office 2007 Fonts

http://www.oooninja.com/2008/01/calibri-linux-vista-fonts-download.html
http://embraceubuntu.com/2007/09/16/installing-vista-fonts-in-ubuntu

MS Vista/ Office 2007 Windows 95-XP era Linux OpenOffice.org
Calibri Arial/Arial Black DejaVu Sans Serif Bitstream Vera Sans
Cambria Times New Roman/Georgia/Impact/Lucida Bold(?) DejaVu Serif (Bold) Bitstream Vera Serif
Candara Trebuchet MS
Consolas Lucida Console/Courier New DejaVu Bitstream Vera Mono
Constantia Book Antiqua/Palatino Linotype/Tahoma
Corbel Trebuchet MS(?)/Verdana
sudo aptitude install cabextract
cd "/raid/downloads/fonts/4 Microsoft Fonts/Office 2007 (extracted from Powerpoint Viewer 2007)"
wget http://download.microsoft.com/download/f/5/a/f5a3df76-d856-4a61-a6bd-722f52a5be26/PowerPointViewer.exe
cabextract -F ppviewer.cab PowerPointViewer.exe
sudo mkdir...

Read on

gpointing-device-settings – Manage Synaptic Touchpads on Linux

gpointing-device-settings lets you manage your Synaptic touchpads etc. (gsynaptics is deprecated, use gpointing-device-settings instead):

sudo apt-get update && sudo apt-get install gpointing-device-settings
...

Read on

Get sound working again after Suspending on a HP nx8220 notebook

http://www.emmolution.org/?p=144

sudo alsa force-reload
...

Read on

Re-Enable Graphical Icons in the Gnome Menu

Somehow the icons for all entries in the Gnome menu were missing. Maybe I produced this mess or it was Gnome that changed the defaults... Whatever, I don't know. But here is how you get them back:

enable:

gconftool -s --type bool /desktop/gnome/interface/menus_have_icons true

disable:

gconftool -s --type bool /desktop/gnome/interface/menus_have_icons...

Read on

A Stopwatch on the Terminal

Using the bash builtin command time

You can just use the following terminal command to start the stopwatch:

time read -sn1

and press [Enter] when you want to take the time. As the output of the time command is a bit verbose, you may want the time command to only print...

Read on

gedit Markdown plugin

For an up-to-date version of the information about the gedit Markdown plugin go to the new blog post Markdown for the Gedit Text Editor on Ubuntu 11.04.

If you frequently have to create Markdown documents, you might want your text editor of choice to support you. M Fleury developed...

Read on

Speed up your Ubuntu karmic system

http://www.n00bsonubuntu.com/tips/improvebootinternetkarmic

  • enable preload: sudo apt-get install -y preload (more: http://wiki.ubuntuusers.de/tuning#Preload. Change settings using sudo gedit /etc/preload.conf and display the log file using sudo cat /var/log/preload.log. A more extensive state file can be accessed on: /var/lib/preload/preload.state.)
  • disable Pango smoothing on Firefox export MOZ_DISABLE_PANGO=1. Put this in your ~/.bash_profile or ~/.bashrc.
  • start...

Read on

SSH Welcome Banner

To warn unauthorized users logging in via ssh, you can add a ssh banner.

echo "Banner /etc/issue.net" | sudo tee -a /etc/ssh/sshd_config > /dev/null
cat << EOF | sudo tee /etc/issue.net
***************************************************************************
          ...

Read on

AqBanking CLI

AqBanking is used as a backend for gnucash and therefore very mature. It features a CLI to query CSV files of transactions and more.

There is a newer blog post on this subject: AqBanking CLI on Mac OS...

Read on

Delete Wine Launcher Files from Gnome Menu

To delete a launcher for an installed Windows program via Wine just remove it from the directory ~/.local/share/applications/wine/Programs.

...

Read on

Aiptek HP 12000u Tablet on Ubuntu 9.10 karmic

The tablet works well with Ubuntu karmic, this blog post describes my settings.

technical data

  • Aiptek HyperPen 12000 U
  • Dimensions 38.5 x 34.7 x 1.2 cm
  • Work Area 304 x 228 mm
  • Maximum Resolution 3048 lines/inch - 120 lines/mm
  • Accuracy 0.2 mm (or 0.422 mm ?)
  • Detection Distance maximum 8 mm
  • Pressure Sensitivity 512 stages
  • Number of Macro Keys...

Read on

Composing Music

NoteEdit

http://noteedit.berlios.de/
http://www.linux-user.de/ausgabe/2002/04/030-noteedit/noteedit.html

sudo apt-get install noteedit

LMMS

http://lmms.sourceforge.net/home.php
http://lmms.sourceforge.net/wiki/index.php?title=Main_Page

commercial Windows software

Sibelius

http://appdb.winehq.org/objectManager.php?sClass=application&iId=1124

FL Studio

http://appdb.winehq.org/objectManager.php?sClass=application&iId=178

good supplement: halion player with complete halion 3 sound database

...

Read on

Text to Speech

festival

manual: http://www.cstr.ed.ac.uk/projects/festival/manual/
excellent

echo "Hello world!" | festival --tts

espeak

better than recite but not excellent

recite

resources

http://wiki.ubuntuusers.de/Baustelle/Text-To-Speech

...

Read on

Hauppauge Nova-T USB2 DVB-T Stick – again

may need libxine1-ffmpeg and/or libavcodec-unstripped-52 to work:

sudo aptitude install libxine1-ffmpeg libavcodec-unstripped-52

Also check out my older blog post on the Nova-T USB2.

...

Read on

'remove duplicates plugin' - A Plugin for evolution to Remove Duplicate Email Messages

http://www.siltala.net/2007/11/18/getting-rid-of-duplicate-messages-in-evolution/
http://www.gnome.org/~carlosg/stuff/evolution/

cd ~/Downloads
wget http://www.gnome.org/~carlosg/stuff/evolution/remove-duplicates-plugin-0.0.4.tar.gz
tar -xf remove-duplicates-plugin-0.0.4.tar.gz
cd remove-duplicates-plugin-0.0.4
./configure
make
sudo make install

Could not successfully run the ./configure script. :(

...

Read on

Convert mbox to Maildir

A link collection for howtos to convert mail stored in the mbox format to the Maildir format:

Perl Scripts

Combinations of Scripts

Read on

Have a look at your MBR using `dd`, `hexdump` and `file`

With two little tools (dd and hexdump) you can use your command line to inspect / investigate the master boot record of a hard disk.

The command is

sudo dd if=/dev/sda bs=512 count=1 | hexdump -C

where /dev/sda is the hard disk you want to inspect.

So here I provide an example...

Read on

Read and Redirect Local System Mail to `/var/mail/USERNAME`

Read Local Emails Using Evolution

  1. Start Evolution
  2. Edit → Preferences → Add
    (replace "USERNAME" with your login user name):
  3. Name: USERNAME@localhost
  4. Fullname: USERNAME
  5. Server type: Local Delivery
  6. Path: /var/mail/USERNAME
  7. Sending Mail: sendmail

Read Local Emails Using mutt

http://wiki.ubuntuusers.de/Mutt

start Mutt using

mutt

you will end in the mbox dir /var/mail/USERNAME. After reading the messages, they are...

Read on

Eliminate delay when opening the Gnome printer dialog on Ubuntu 9.10

Ubuntu 9.10 has a bug that lets the gnome printer dialog wait for several seconds when opened: https://bugs.launchpad.net/ubuntu/+source/gtk+2.0/+bug/475845/comments/29

Workaround:

sudo gedit /etc/cups/cupsd.conf

then comment out the line including /var/run/cups/cups.sock and leave this line untouched: Listen localhost:631.

Works flawlessly. The delay is gone and I can print as before.

...

Read on

Little tricks to speed up Ubuntu 9.10 karmic koala

Tips found on: http://www.n00bsonubuntu.com/tips/improvebootinternetkarmic
If you want to know how those tricks work, have a look at the link above!

  • enable preload: sudo apt-get install -y preload
    Find detailed information on preload here.
  • disable Pango smoothing on Firefox export MOZ_DISABLE_PANGO=1. Put this in your ~/.bash_profile or ~/.bashrc.
  • start Firefox and...

Read on

Repair Broken ZIP Files

Options to repair broken zip files on Ubuntu Linux include the following:

  • Winrar runs perfectly with WINE
  • ZIP Repair runs with WINE
  • zip -F [or -FF, depending on how broken it is] broken.zip --out repaired.zip
...

Read on

Tools For The DjVu File Format

creation

  • with gscan2pdf (needs the package djvulibre-bin to create DjVu files)
  • JPEGs: convert them to separate pages in DjVu format using an encoder like cjb2 or cpaldjvu
  • use pdf2djvu to convert PDFs: pdf2djvu mypdf.pdf -o mydjvu.djvu

editing

  • djvused (multi-purpose DjVu document editor) man page
...

Read on

Git for Synchronization and Backup

Git might be used as a back up system. There used to be an article on this topic on http://www.bytetrap.com/blog/2008/11/24/backup-and-synchronization-git/. Unfortunately it is not available any more. Here are the main headlines:

  • Why git, not rsync
  • What folders / files to exclude ( to be set in .gitignore )
  • How to do it
  • Pros...

Read on

eqonomize - A software for your private bookkeeping

http://eqonomize.sourceforge.net

When you want to use a software to keep track of your personal household income and expenses, eqonomize is a good software to go. To me, gnucash seems to be too complex for that purpose.

sudo aptitude install eqonomize
...

Read on

Series60 Remote

__update:__ now there is a .deb package! go to downloads and get the .deb

cd ~/Downloads
wget http://series60-remote.sourceforge.net/counter/getfile.php?id=12
sudo dpkg -i series60-remote*deb

original post:
http://series60-remote.sourceforge.net/
found here

sudo aptitude install python python-obexftp python-matplotlib python-bluez python-qt4 python-qt4-sql sqlite3 libqt4-sql-sqlite
cd ~/Downloads
wget http://downloads.sourceforge.net/project/series60-remote/series60-remote/0.3.90/series60-remote-0.3.90.tar.gz?use_mirror=ovh
tar -xf series60-remote-0.3.90.tar.gz
cd series60-remote-0.3.90/

You can test the installation before you install it:

<div...

Read on

when - a tool to administer your schedule

http://www.lightandmatter.com/when/when.html

when is a perl script to administer your schedule.

Its data backend is a simple text file!

...

Read on

RawTherapee

http://www.rawtherapee.com/

RawTherapee is an excellent RAW picture processing software written in C++ its license is the GPL.

Included in the standard sources of Ubuntu: http://packages.ubuntu.com/rawtherapee.

...

Read on

mkisofs

To produce an ISO image of a directory (with -J Joliet extensions; with -r Rockridge extensions; with -R Rockridge extensions preserving rights and ownerships; with -V to set the Volume-ID)

mkisofs -J -R -o image.iso -V "Data Backup" folder/data

More information to be found in Linux User, 6/2006 p....

Read on

wikimatrix - Compare Different Wiki Software Systems

The Wikipedia software - Mediawiki - is very good and stable but it is not always the best choice for a wiki system. Check wikimatrix.org for a detailed comparison of wiki software.

...

Read on

Treeline - Organize Your Notes

Nice program to organize notes. The software is written in Python and uses PyQT for the GUI.

http://treeline.bellz.org/

...

Read on

LaCie 4L / LightScribe Software on Linux

http://www.lacie.com/products/product.htm?pid=10803

Resources

...

Read on

RSIBreak - enforce pauses when working with the computer

http://www.rsibreak.org/index.php

sudo aptitude install rsibreak

alternative: workrave http://www.workrave.org/welcome/

sudo aptitude install workrave
...

Read on

Genealogy on Linux using GRAMPS

Installation:

sudo aptitude install gramps

Start the program in German when the rest of my distribution is in English:

LANG=de_de.utf8 && gramps

Resources

...

Read on

Flash BIOS via flashrom Linux Tool

http://www.flashrom.org
http://wiki.ubuntuusers.de/BIOS_aktualisieren (German)

check current BIOS version:

sudo aptitude install dmidecode flashrom

To get the bios version run:

sudo dmidecode -s bios-version

When I run flashrom on my laptop (HP nx8220) I get:

$ flashrom
flashrom v0.9.1-r706
No coreboot table found.
Found chipset "Intel ICH6-M", enabling flash write... OK.
This...

Read on

Formatting a USB stick on Ubuntu: Spaceloop XL 8GB bz CnMemory

Newly bought the MBR contained:

philipp@lion:~$ sudo dd if=/dev/sdb bs=512 count=1 | hexdump -C
[sudo] password for philipp: 
1+0 records in
1+0 records out
512 bytes (512 B) copied, 4.8121e-05 s, 10.6 MB/s
00000000  eb 58 90 4d 53 44 4f 53  35 2e 30 00 02 08 22 00 ...

Read on

Tryout the New Ubuntu Programming Environment: quickly

https://wiki.ubuntu.com/Quickly

sudo apt-get install quickly


quickly tutorial ubuntu-project
...

Read on

Problems on HP nx8220 with Audio Playback (I Assume its pulseaudio)

To start new with pulseaudio:

pulseaudio --kill
rm -rf ~/.pulse ~/.pulse-cookie
pulseaudio --start

Then check access to the soundcard:

sudo lsof | grep /dev/snd

which returns:

pulseaudi 5173     philipp   20u      CHR     116,10    ...

Read on

Remove xsplash introduced by Ubuntu karmic koala

To remove the new splashscreen introduced in karmic koala run:

sudo apt-get remove xsplash ubuntu-xsplash-artwork
...

Read on

Deactivate gdm Start Sound

http://forum.ubuntuusers.de/post/2207175/
http://ubuntuforums.org/showpost.php?p=8367187

Sound after login: System → Preferences → Startup Applications → GNOME-Login-Sound : remove check

To disable the system ready drums:

sudo mv /usr/share/sounds/ubuntu/stereo/system-ready.ogg /usr/share/sounds/ubuntu/stereo/system-ready-off.ogg

Enter The gdm Configuration (not related to the deactivation of the start sound mentioned above)

Log off and change to a virtual...

Read on

Workaround for problems with constantly changing resolv.conf

When you don't want other software (like network manager) to mess with your DNS server settings, make /etc/resolv.conf immutable:

sudo chattr +i /etc/resolv.conf

It can be undone like this:

sudo chattr -i /etc/resolv.conf

resources

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

...

Read on

ArgoUML

  1. Download ArgoUML-0.xx.tar.gz
  2. Decompress it into your ~/bin/ (or /bin) directory
  3. and then create a symlink to argouml.sh in ~/bin/:
    ln -s $HOME/bin/argouml-0.28/argouml.sh $HOME/bin/argouml
  4. Now run the app by executing argouml

or run the webstart:

javaws http://argouml-downloads.tigris.org/jws/argouml-latest-stable.jnlp

resources

...

Read on

Forbid root Login via SSH

Edit the configuration file of the SSH daemon:

sudo gedit /etc/ssh/sshd_config

Change the line containing PermitRootLogin yes to PermitRootLogin no , save the file and restart the SSH server.

sudo /etc/init.d/ssh restart
...

Read on

Fix line endings in text files created on Microsoft (Dos) based platfoms to for Unix and Linux

Use dos2unix from the tofrodos package to convert files with Windows (DOS) style CRLF (carriage return and line feed) line endings to Unix style LF (linefeed only) line endings. Install as follows:

sudo aptitude install tofrodos

How you use the tool:

dos2unix dosfile.txt
...

Read on

Convert Text Between Different Encodings Using iconv

If you want to convert files from one encoding to another you want to use the tool iconv:

iconv -f WINDOWS-1252 -t UTF-8 about.txt  > about.utf.txt

The above command converts the about.txt input file from the old West-European encoding ISO-8859-1 to UTF-8 and saves the result to about.utf.txt.

The command...

Read on

Change network setup from DHCP setup to a static IP configuration

My network interface is a Intel PRO/1000 PT Dual-Port-Server-Adapter (PCIe x4) (chipset: Intel 82571GB). It provides two physical links that I use both: One for my private subnet and one as the public interface to the public network (Internet via 100Mbit Ethernet at KHG, University of Frankfurt am Main). I...

Read on

Change The "Ubuntu icon" in the Upper Left Hand Corner of the Gnome Desktop

http://ubuntuforums.org/showthread.php?p=8072951#post8072951

Press Alt + F2. Enter gconf-editor and press enter.

Go to apps → panel → objects and select the menu_bar. On the right of the window, check the box that says use_custom_icon. Then, right click the entry that says custom_icon. Select Edit Key and enter the path to your preferred icon.

...

Read on

wiipresent

wiipresent is a tool by Dag Wieers to use a Nintendo Wii Remote as input device to switch forwards and backwards in your presentation when you give a talk.

Here is how you install it on Ubuntu 9.10:

sudo aptitude install bluez bluez-compat
sudo aptitude install libcwiimote-0.4 libcwiimote-dev libxtst-dev asciidoc
cd ~/Downloads/
wget...

Read on

Compiz Plugin: Grid - adjust windows automatically / Tiling Window Manager

The plugin: http://wiki.compiz.org/Plugins/Grid

More resources:

Alternatives:

...

Read on

Test Speed Of Partitions (and therefore also Hard Disk Drives)

hdparm

The command sudo hdparm -t /dev/sda on my Samsung SpinPoint F1 HD103UJ returns:

/dev/sda:
 Timing buffered disk reads:  210 MB in  3.02 seconds =  69.63 MB/sec

seeker

Compile seeker (multithreaded) from seeker_baryluk.c using:

gcc -o seeker -O2 -march=native seeker_baryluk.c -pthread

And execute it like this (where the...

Read on

Set Up HRZ Printers (Hochschulrechenzentrum Universität Frankfurt - Studentendruck)

http://www.studentendruck.uni-frankfurt.de/org/hrz/services/druck/follow_me_druck/studierende/index.html

cd ~/Downloads/
wget ftp://ftp.rz.uni-frankfurt.de/pub/_Linux/Druckertreiber/Ricoh_MPC3500/Ricoh-Aficio_MP_C3500_PS.ppd
wget ftp://ftp.rz.uni-frankfurt.de/pub/_Linux/Druckertreiber/Ricoh_MP3350/Ricoh-Aficio_MP_3350_PS.ppd
sudo cp Ricoh-Aficio_MP_C3500_PS.ppd /etc/cups/ppd
sudo cp Ricoh-Aficio_MP_3350_PS.ppd /etc/cups/ppd
GEHEIM='HRZ-LOGIN:HRZ-PASSWORT'
sudo lpadmin -p schwarzweiss_hrz -v smb://${GEHEIM}@ntsamba1.server.uni-frankfurt.de/schwarzweiss -P /etc/cups/ppd/Ricoh-Aficio_MP_3350_PS.ppd -E
lpq -P schwarzweiss_hrz
sudo lpadmin -p farbe_hrz -v smb://${GEHEIM}@ntsamba1.server.uni-frankfurt.de/farbe -P /etc/cups/ppd/Ricoh-Aficio_MP_C3500_PS.ppd -E
lpq -P farbe_hrz
...

Read on

Upgrade to grub2 on Ubuntu karmic

http://grub.enbug.org/Grub2LiveCdInstallGuide
http://everflux.de/ubuntu-jaunty-zu-karmic-koala-update-1390/
http://wiki.ubuntuusers.de/Grub_2
http://wiki.ubuntuusers.de/GRUB_2/Konfiguration

After your system was upgraded from Ubuntu jaunty 9.04 to karmic 9.10 you still have grub1.5 on your HDD. To replace it with grub2 do

sudo apt-get install grub2
sudo upgrade-from-grub-legacy
...

Read on

Testing the Data Rate of a Hard Disk using dd – Here the Samsung SP2504C 250GB

If you want to see the read-speed diagram right away, click here.

When I replaced my Samsung SP2504C (250GB) by a larger (and faster one) I copied the full content of the old Samsung hard disk to the new hard disk. I used this opportunity to measure the read speed...

Read on

Choosing the Default Java Distribution on Ubuntu

Get the requirements:

sudo aptitude install java-common
sudo aptitude install sun-java6-jre

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 other available choices run:

sudo update-java-alternatives -l

To set the XXX java version as default:

<div...

Read on

Texas Instruments TI-89 Titanium Calculator

Original TI-89 packaging in French (see the full image here ):
TI-89-packaging

Programming SDK for Windows

http://education.ti.com/educationportal/sites/DEUTSCHLAND/productDetail/de_sdk_89_92p.html

PedroM - An Alternative Operating System

There is a free OS: PedroM.

TiEmu

Project Site | on SourceForge

sudo aptitude install tiemu-skinedit tiemu

OS rom file download: TI-89 Titanium...

Read on

Mathematica 7.0.0 and 7.0.1 - High CPU Usage

http://ubuntuforums.org/showthread.php?p=7486171#post7486171

Mathematica 7.0.0 and 7.0.1 had a high cpu usage on my computer even when it should be idle.

Besids from upgrading to 7.0.2 the following files might help: libML32i3.so http://download.wolfram.com/?key=61JJHE
JLink.zip http://download.wolfram.com/?key=GM5YM4

...

Read on

How I Install LaTeX on Ubuntu Linux

To make it simple, all I do is:

sudo aptitude install texlive-full
...

Read on

Update gedit LaTeX Plugin

This post describes how I updated the gedit LaTeX plugin after I had it installed in an older version previously.

Backup your tools.xml file (definitions of tools to use with the plugin) etc.

cd ~/.gnome2/gedit/plugins
rm -rf GeditLaTeXPlugin
rm -rf GeditLaTeXPlugin.gedit-plugin
cd ~/Downloads/
rm -rf gedit-latex
svn co https://gedit-latex.svn.sourceforge.net/svnroot/gedit-latex/GeditLaTeXPlugin/trunk gedit-latex
cd ~/Downloads/gedit-latex/
chmod +x install.sh
./install.sh

To support the...

Read on

Convert ape audio files to mp3 on the terminal

http://ubuntuforums.org/showthread.php?p=6879960#post6879960

Requirements: Having the executables mac, lame and id3v2 installed.
I haven't done it myself yet, but this seems to be a nice and quick way to do a conversion and set the ID3 tags in the newly created MP3:

#!/bin/bash
echo "Artist name?"
a= <span...

Read on

Split Large Monkey's Audio Files with CUE Sheets into Single Files

Installation:

sudo apt-get install cuetools shntool flac wavpack

Run:

cuebreakpoints sample.cue | shnsplit -o flac sample.flac

In this example, a flac file called sample.flac is split according to the break-points contained in sample.cue and the results are output in the flac format.

To split a monkey’s audio file (.ape) by cue...

Read on

Get Monkey's audio (.ape file format) binaries on Ubuntu amd64 Architecture

http://ubuntu-ky.ubuntuforums.org/showthread.php?p=7990721#7

sudo -i
echo "deb http://ppa.launchpad.net/g-christ/ppa/ubuntu jaunty main"  >> /etc/apt/sources.list
exit
gpg --recv-keys FB34808D7ED779F6
gpg --export --armor FB34808D7ED779F6 | sudo apt-key add -
sudo apt-get update
sudo apt-get install mac
...

Read on

Install VirtualBox Non-OpenSource

http://www.virtualbox.org/wiki/Linux_Downloads

sudo -i
echo "deb http://download.virtualbox.org/virtualbox/debian karmic non-free"  >> /etc/apt/sources.list
wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add -
apt-get update
apt-get install virtualbox-3.0
...

Read on

Problems with Grub after Reinstallation

Grub wouldn't boot after a reinstallation on my system.

Workaround to be able to boot: http://ubuntuforums.org/showthread.php?p=8292225#post8292225

This fix worked: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/391044 (comment 14)

sudo gedit /usr/lib/grub/grub-mkconfig_lib

Remove the lines 170 - 175 in the file grub-mkconfig_lib:

# If there's a filesystem UUID that GRUB is capable of identifying,...

Read on

QtiPlot on Ubuntu

newer debian build

Get the debian build (that is newer than the version shipped with Ubuntu 9.10):

sudo apt-get install liborigin2-1
cd ~/Downloads
wget http://ftp.de.debian.org/debian/pool/main/q/qtiplot/qtiplot_0.9.7.8-1_amd64.deb
sudo dpkg -i --force-depends qtiplot_0.9.7.8-1_amd64.deb

or for i386 platform:

sudo apt-get install liborigin2-1
cd ~/Downloads
wget http://ftp.de.debian.org/debian/pool/main/q/qtiplot/qtiplot_0.9.7.8-1_i386.deb
sudo dpkg -i --force-depends qtiplot_0.9.7.8-1_i386.deb

change the dependencies of the .deb file

you might...

Read on

Recover Deleted Files on an ext3 File System

Tools

  • unrm
  • ext3grep
  • foremost

Resources

...

Read on

Get nonfree Flash Player And Replace swfdec

sudo aptitude remove swfdec-mozilla
sudo aptitude install flashplugin-nonfree
...

Read on

Convert a CUE / BIN CD Image to ISO Format

http://ubuntuforums.org/showthread.php?t=239407 and http://he.fi/bchunk/

A search for tools that can do the conversion

apt-cache search convert cue bin iso

reveals several candidates to fulfill this task:

bchunk - CD image format conversion from bin/cue to iso/cdr
mdf2iso - A simple utility to convert mdf to iso /...

Read on

Install Adobe Reader and Flash Plugin for Firefox on Ubuntu (restricted extras)

http://ubuntuguide.org/wiki/Ubuntu:Karmic#Restricted_Extras

The Ubuntu Restricted Extras will install Adobe Flash Player, Java Runtime Environment (JRE) (sun-java-jre) with Firefox plug-ins (icedtea), a set of Microsoft Fonts (msttcorefonts), multimedia codecs (w32codecs or w64codecs), mp3-compatible encoding (lame), FFMpeg, extra Gstreamer codecs, the package for DVD decoding (libdvdread4), the unrar archiver, odbc, and cabextract....

Read on

Uninstall Mathematica on Ubuntu Linux

Basically, you have to:

  • delete the folders /usr/local/Wolfram and /usr/share/Mathematica.
  • remove a number of links in /usr/local/bin: mathematica mcc Mathematica math MathKernel.
  • in your home directory you can remove the folder ~/.Mathematica

The following commands do that all:

sudo rm -rf /usr/local/Wolfram
sudo rm -rf /usr/share/Mathematica
cd /usr/local/bin
sudo rm mathematica mcc Mathematica math MathKernel
rm -rf...

Read on

Defend Your Network From Slow Scanning

http://www.builderau.com.au/strategy/businessmanagement/soa/Defend-your-network-from-slow-scanning/0,339028271,339272421,00.htm

...

Read on

Slow Network Due to DNS Problems

Let's say you network is kinda slow and you are sure that there is nothing wrong with your hardware (broken cables, bad switches etc.). The first thing you should have a look at are your DNS servers. If the primary one is unreachable and the secondary is, you network works...

Read on

Set Your Physical NIC to a Different MAC Address

It's called MAC spoofing.

The commands do achieve it are:

  1. Bring down the interface and enter a new MAC address
  2. Bring up the interface

On Ubuntu Linux this can be achieved (for nic eth1 and a new mac address of 00:14:11:12:34:15) like this:

sudo ifconfig eth1 down hw ether 00:14:11:12:34:15
sudo ifconfig eth1 up

To...

Read on

checksum offloading - wireshark

http://www.wireshark.org/docs/wsug_html_chunked/ChAdvChecksums.html

If wireshark reports many wrong checksums, this can be caused by checksum calculations done by hardware which means that the wrong checksums reported by Wireshark are simply meaningless.

If you're sure, that's the problem, you may simple not care about wrong checksums:

  • Turn off the checksum offloading in the network...

Read on