Posts with the category Ubuntu 10.04
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....
- Download the alternate installation CD
- Burn and insert it or mount it using
sudo mount -o loop ~/Desktop/ubuntu-10.04-alternate-i386.iso /media/cdrom0
- Follow the on-screen instructions or run
gksu "sh /cdrom/cdromupgrade"
ssh -D 8080 someuser@somecomputertouseasgateway
then setup the browser on this machine to use
denyhost can help keep out unwanted guests from your ssh server.
# # /etc/hosts.deny # ALL: ALL: DENY # End of file
# # /etc/hosts.allow # sshd: ALL EXCEPT /etc/hosts.evil # End of file
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...
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...
sudo aptitude install openvpn # open port 1194 (as shown here for the ufw firewall interface): sudo ufw allow 1194
Become an Certificate Authority
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...
sudo aptitude install python-ipcalc
the needed module is /usr/share/pyshared/ipcalc.py
sudo aptitude install sipcalc
example usage: http://www.cyberciti.biz/faq/linux-subnet-calculator-cidr/
sudo aptitude install ipcalc
gip - IP calculator for gnome
sudo aptitude install gip
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...
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...
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...
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...
Apple Calendar Server
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...
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
natty depending on your Ubuntu version):
deb http://archive.canonical.com/ubuntu lucid...
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:
Setting it up
sudo aptitude install monit
Enable it by setting
startup=1 in the config file
You have to edit the file
Here's a small example:
## Monit settings set daemon 120 set logfile syslog facility log_daemon ...
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
Advanced configuration options are described and have to be set in the file
/etc/ipwatchd.conf. This could...
A bit less technical than wireshark (does not show single packages in detail):
Get it from the website, install and run
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...
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,...
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...
When someone has taken your IP, react!
Set your IP to the correct one (belonging to you):
sudo ifconfig eth0 18.104.22.168 netmask 255.255.255.0
and run arping to get the IP back on your side:
sudo arping -U -c 3 -I eth0 22.214.171.124 sudo arping -A -c 3 -I eth0 126.96.36.199
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
deb http://archive.canonical.com/ubuntu lucid partner deb-src http://archive.canonical.com/ubuntu <span...
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...
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
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...
set window operating buttons back to the right side
gconftool-2 -s /apps/metacity/general/button_layout --type=string "menu:minimize,maximize,close"
upgrade problems on Samsung Q25
but seems to be rather this issue: http://www.ubuntu.com/getubuntu/releasenotes/1004#Intel%208xx%20X%20freezes/crashes
boot with the -vesa video driver
other choice: use a newer Intel Video driver 2.11git:
upgrade xserver-xorg-video-intel to 2.11git
Commonly used tools to monitor or test network bandwith are:
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.