Posts with the category Ubuntu 10.04

Resize Images from Context Menu on Gnome / Ubuntu Linux

Easiest way using the Ubuntu/Debian package nautilus-image-converter:

sudo apt-get install nautilus-image-converter

Using a Custom Photo Resize Script for the Nautilus File Manager

This context menu script can resize to 3 predefined sizes (more can be added) and it asks to put the resized pics in a folder or rename them....

Read on

Keyboard Commands for the IceWM Window Manager

See Keyboard Commands in the IceWM manual.

...

Read on

Upgrade to Ubuntu Maverick using the CD

https://help.ubuntu.com/community/LucidUpgrades#Upgrading%20Using%20the%20Alternate%20CD/DVD

  1. Download the alternate installation CD
  2. Burn and insert it or mount it using sudo mount -o loop ~/Desktop/ubuntu-10.04-alternate-i386.iso /media/cdrom0
  3. Follow the on-screen instructions or run gksu "sh /cdrom/cdromupgrade"
...

Read on

Local SOCKS-5 Proxy by only connecting via SSH

http://daniel.molkentin.de/blog/archives/96-SOCKS-Proxy-via-SSH.html

ssh -D 8080 someuser@somecomputertouseasgateway

then setup the browser on this machine to use localhost:8080

...

Read on

denyhost

http://denyhosts.sourceforge.net/
http://www.heise.de/security/artikel/SSH-vor-Brute-Force-Angriffen-schuetzen-270140.html

denyhost can help keep out unwanted guests from your ssh server.

/etc/hosts.deny:

#
# /etc/hosts.deny
#

ALL: ALL: DENY

# End of file

/etc/hosts.allow:

#
# /etc/hosts.allow
#

sshd: ALL EXCEPT /etc/hosts.evil

# End of file
...

Read on

Install eclectus Chinese Dictionary

http://code.google.com/p/eclectus/wiki/Install

eclectus is a great piece of software! It can use CEDICT (Chinese English incl. pinyin) and HanDeDict (German - Chinese).

Add the repository to the package sources:

echo "deb http://ppa.launchpad.net/cburgmer/ppa/ubuntu lucid main 
deb-src http://ppa.launchpad.net/cburgmer/ppa/ubuntu lucid main" | sudo tee /etc/apt/sources.list.d/eclectus.sources.list

Add the signing key, update...

Read on

Set up WebDAV-Server

http://wiki.ubuntuusers.de/apache/webdav

First install apache2:

sudo aptitude install apache2 apache2-doc

Then enable the needed mods dav and dav_fs:

sudo a2enmod dav
sudo a2enmod dav_fs

and reload the apache2 configuration:

sudo /etc/init.d/apache2 reload

Now setup a directory for webdav access. You can do this by adding the following lines in the file...

Read on

OpenVPN

Install OpenVPN

sudo aptitude install openvpn
# open port 1194 (as shown here for the ufw firewall interface):
sudo ufw allow 1194

Become an Certificate Authority

Alternative to this way: Use TinyCA (there are Ubuntu packages available).

sudo mkdir /etc/openvpn/easy-rsa/
sudo cp -R /usr/share/doc/openvpn/examples/easy-rsa/2.0/* /etc/openvpn/easy-rsa/
sudo chown -R $USER /etc/openvpn/easy-rsa/
cat << EOF...

Read on

IP address calculators

python-ipcalc

http://packages.ubuntu.com/lucid/python-ipcalc
/usr/share/doc/python-ipcalc/README.Debian

sudo aptitude install python-ipcalc

the needed module is /usr/share/pyshared/ipcalc.py

sipcalc

http://www.routemeister.net/projects/sipcalc/
http://packages.ubuntu.com/lucid/sipcalc
http://manpages.ubuntu.com/manpages/lucid/man1/sipcalc.1.html

sudo aptitude install sipcalc

example usage: http://www.cyberciti.biz/faq/linux-subnet-calculator-cidr/

ipcalc

sudo aptitude install ipcalc

usage:

ipcalc 192.168.1.7/24

gip - IP calculator for gnome

sudo aptitude install gip
...

Read on

Set up an AFP Server for Apple Time Machine

If you follow the steps on this site you install netatalk from the Ubuntu binary archives and not from source! So make sure you use uams_dhx2.so (as mentioned below) as auth module in order to encrypt your password.

sudo aptitude install netatalk
# Edit the configuration files:
sudo vim /etc/default/netatalk
sudo...

Read on

virtualbox - Configuring port forwarding with NAT

To set up incoming NAT connections to an ssh server in the guest, use the following command:

VBoxManage modifyvm "VM name" --natpf1 "guestssh,tcp,,2222,,22"

With the above example, all TCP traffic arriving on port 2222 on any host interface will be forwarded to port 22 in the guest. The protocol name...

Read on

Install The compiz Plugin: Screen Saver

http://tombuntu.com/index.php/2008/07/31/install-three-experimental-compiz-plugins/
http://wiki.compiz.org/Plugins/Screensaver

sudo apt-get install compiz-bcop compiz-dev build-essential libtool libglu1-mesa-dev libxss-dev libcairo2-dev git-core x11proto-scrnsaver-dev libxss-dev
mkdir -p ~/Downloads/compiz
cd ~/Downloads/compiz
git clone git://anongit.compiz-fusion.org/users/pafy/screensaver
cd screensaver
make
make install

log out and back in

...

Read on

NX Server

FreeNX

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

Now use nxsetup to install necessary files and create the special user "nx"

sudo /usr/lib/nx/nxsetup --install

If you need nxsetup binary for this check out: https://help.ubuntu.com/community/FreeNX?action=AttachFile&do=view&target=nxsetup.tar.gz

shadow sessions on FreeNX - enables concurrent access to...

Read on

CalDAV Server

Apple Calendar Server

http://mark.mckillen.com/article.php?story=20090220074155616
http://www.deanspot.org/content/installing-apples-calendarserver-ubuntu
https://wiki.edubuntu.org/CalendarServer

DAViCal

The project homepage
DAViCal on Ubuntu Users (German)

I got DAViCal to work with Ubuntu but its not the most stable piece of software that I have seen yet.

sudo aptitude install davical davical-doc

Allow network connections on port 11371:

sudo ufw allow...

Read on

Install EtherPad server

To install EtherPad you first have to edit the package repositories:

sudo gedit /etc/apt/sources.list

and add the following two lines (of which you might already have the first activated and where lucid could also be maverick or natty depending on your Ubuntu version):

deb http://archive.canonical.com/ubuntu lucid...

Read on

Mount HFS+ Volume with Write Access / Disable HFS+ Journal

If you want to mount an HFS+ volume on an Ubuntu computer, all you have to do is to disable the Journaling for the partition. Connect the HDD to a Mac (Firewire didn't work!), boot into Mac OS X and execute the following command on the terminal:

sudo diskutil...

Read on

monit - A Tool To Monitor Processes Running on your Linux Machine

Setting it up

http://wiki.ubuntuusers.de/monit (German)

sudo aptitude install monit

Enable it by setting startup=1 in the config file /etc/default/monit.

Configuration

You have to edit the file /etc/monit/monitrc.

Here's a small example:

## Monit settings
set daemon 120
set logfile syslog facility log_daemon            ...

Read on

Watch the network for an IP conflict - ipwatchd

Installation on Ubuntu:

sudo aptitude install ipwatchd-gnotify

if configured correctly (true by default) it will show you graphical warnings for IP conflicts as well as create log entries in /var/log/syslog (check for log messages containing ipwatchd).

Advanced configuration options are described and have to be set in the file/etc/ipwatchd.conf. This could...

Read on

EtherApe – A Tool To Analyse Network Traffic

A bit less technical than wireshark (does not show single packages in detail):

etherape
...

Read on

Xilinx ISE WebPACK

Get it from the website, install and run

/opt/Xilinx/12.1/ISE_DS/ISE/bin/lin64/ise

resources

...

Read on

Clean Google Docs from Chrome Bookmarks

I was annoyed of all my Google Docs appearing in my Chrome bookmarks (used the daily build). So here is how to remove them from the bookmarks:

Open Google Chrome, set up sync, select all bookmarks ([Ctrl]-[Shift]-[B] and then select multiple bookmarks using the [Shift]-key) and keep Chrome open to sync...

Read on

How to use tcpdump

You can use tcpdump to debug TCP/IP connections.

How it works

1st console run tcpdump:

philipp@lion:~$ sudo tcpdump -i lo
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on lo, link-type EN10MB (Ethernet), capture size 96 bytes
09:55:05.968006 IP lion > lion: ICMP echo request, id 5745, seq 1,...

Read on

Install MediaWiki from Debian package

You can install a MediaWiki either by downloading and unpacking the .tar.gz archive and setting it up manually or by using the Debian package mediawiki.

This blog posts describes how to install MediaWiki using the Debian package on Ubuntu:

sudo apt-get install mediawiki

Now uncomment the alias for mediawiki in the...

Read on

React to IP Takeover

When someone has taken your IP, react!

Set your IP to the correct one (belonging to you):

sudo ifconfig eth0 201.2.16.41 netmask 255.255.255.0

and run arping to get the IP back on your side:

sudo arping -U -c 3 -I eth0 201.2.16.41
sudo arping -A -c 3 -I eth0 201.2.16.41

Also have...

Read on

Sun Java on Ubuntu 10.04 (instead of Open JDK)

With Ubuntu 10.04 Lucid Lynx there are no sun-java6-... packages (previously found on multiverse) anymore. They now are part of the repository partner. It's recommended to uninstall all openjdk packages.

You need the following lines (uncommented) in your /etc/apt/sources.list:

deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu <span...

Read on

Downgrade a Package

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

using Synaptic: Package → Force Version in Synaptic

preferred using aptitude:

apt-cache showpkg libAppA

which will produce an output similar like this:

Provides:
6.5.1-cvs20060628 - libAppA
6.4.1-0ubuntu8 - libAppA

So you can force a certain...

Read on

Viewing the Changelog of Ubuntu Packages

at the command line using aptitude:

aptitude changelog <packagename>

This only works for officially supported packages, so it won't work for PPAs

alias to see the changelog for all packages that need an update

To see a description of all available updates, I create for myself the following alias in the ~/.bashrc:

<div...

Read on

Virtualbox – Installing the NonFree Version on Ubuntu

sudo add-apt-repository "deb http://download.virtualbox.org/virtualbox/debian lucid non-free"
wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add -
apt-get update
apt-get install virtualbox-3.1

solve problems with package signature

when running sudo apt-get update I got the following error:

W: A error occurred during the signature verification<span...

Read on

Ubuntu 10.04 lucid

set window operating buttons back to the right side

http://wiki.ubuntuusers.de/lucid_lynx#Design

gconftool-2 -s /apps/metacity/general/button_layout --type=string "menu:minimize,maximize,close"

upgrade problems on Samsung Q25

http://www.ubuntu.com/getubuntu/releasenotes/1004#Working%20around%20bugs%20in%20the%20new%20kernel%20video%20architecture

but seems to be rather this issue: http://www.ubuntu.com/getubuntu/releasenotes/1004#Intel%208xx%20X%20freezes/crashes

https://wiki.ubuntu.com/X/Bugs/Lucidi8xxFreezes

boot with the -vesa video driver

other choice: use a newer Intel Video driver 2.11git:

upgrade xserver-xorg-video-intel to 2.11git

http://ubuntuforums.org/showthread.php?t=1464239
https://launchpad.net/~glasen/+archive/intel-driver...

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