Ubuntu

Technical Notes

These notes are my personal online notebook of useful commands and "how-to's". You are welcome to make use of them if you find them helpful. They obviously don't come with any warranty! Click on one of the category tags above for the notes in any category.

Mapping the mouse thumb button under Ubuntu

This tutorial showed me how to identifuy the button I wanted (8)
http://www.gizmodo.com.au/2011/03/getting-started-with-linux-fine-tuning...
(watch out because the page uses something like markdown which has garbled -- and quote characters)

But it didn't show me how to make it double-click.

This might be useful, but it is old:
http://ubuntuforums.org/showthread.php?t=64754

Benchmark for Linux

Here are a few CPU oriented benchmarks for Linux.
I am not sure if they are available in packages for CentOS, so I have only given the Ubuntu packages:

(Please note that you will have to enable the community repositories for these)

Gnome shortcut keys

General keyboard shortcuts

Ctrl+A = Select all (In Documents, Firefox, Nautilus, etc, not Terminal)
Ctrl+C = Copy (In Documents, Firefox, Nautilus, etc, not Terminal)
Ctrl+V = Paste (In Documents, Firefox, Nautilus, etc, not Terminal)

F9 = Toggle Sidebar
F2 = Rename
Ctrl+Shift+N = Create new folder

Ctrl+N = New (Create a new document, not in terminal)
Ctrl+O = Open (Open a document, not in terminal)
Ctrl+S = Save (Save the current document, not in terminal)

Installing NX Server

  • Install NX (info from this page: http://www.nomachine.com/download-package.php?Prod_Id=355 )

    CentOS 6.0 64bit

    yum install wget #must be logged on as root
    NXVER=3.5.0
    CVER=7
    NVER=4
    SVER=5
    ARCH=x86_64
    NXURL=http://64.34.161.181/download
    wget $NXURL/$NXVER/Linux/nxclient-$NXVER-$CVER.$ARCH.rpm
    wget $NXURL/$NXVER/Linux/nxnode-$NXVER-$NVER.$ARCH.rpm
    wget $NXURL/$NXVER/Linux/FE/nxserver-$NXVER-$SVER.$ARCH.rpm
    rpm -i nxclient-$NXVER-$CVER.$ARCH.rpm
    rpm -i nxnode-$NXVER-$NVER.$ARCH.rpm
    rpm -i nxserver-$NXVER-$SVER.$ARCH.rpm

Build Scribus 1.4 svn on Ubuntu Lucid Linux

Make sure these libraries are installed

aptitude install subversion cmake libcups2-dev libtiff4-dev python2.6-dev g++ qt4-qmake libqt4-dev libxml2-dev libcairo2-dev libboost-dev libaspell-dev liblcms-dev

Build PoDoFo

dp=/opt/podofo
svn co https://podofo.svn.sourceforge.net/svnroot/podofo/podofo/trunk $dp
vi $dp/CMakeLists.txt
#append the following two lines:

SET_TARGET_PROPERTIES(podofo_static PROPERTIES 
  COMPILE_FLAGS "-DBUILDING_PODOFO -fPIC" )

mkdir -p $dp/podofo-build
cd $dp/podofo-build
cmake ..
make
make install

Installing extras on Ubuntu 10.04 Lucid

Extra applications

apt-get -y install subversion g++ openssh-server gnome-device-manager #programming
apt-get -y install gimp inkscape kpat rss-glx vlc vim hardinfo sysbench #essentials
apt-get -y install deluge akregator bibletime xiphos kdenlive koffice thunderbird amarok k3b #other programs
apt-get -y install libxine1-ffmpeg libqt4-sql-psql lame libqt4-dev gnome-alsamixer mozilla-plugin-vlc #libraries
apt-get -y install msttcorefonts

DVD playback and extra codecs

Install Medibuntu: https://help.ubuntu.com/community/Medibuntu

Installing rdiff-backup version 1.2.2 on Ubuntu

Ubuntu Hardy and Intrepid come with older versions or rdiff-backup, but the current stable version (1.2.2) is in the Jaunty repositories. To install it:
Download and install the .deb file from the bottom of this page: http://packages.ubuntu.com/jaunty/utils/rdiff-backup
Install the recommended libraries:
aptitude install python-pylibacl python-pyxattr

Miscellaneous Ubuntu links

Mounting an FTP/SMB site as a Linux Share


sudo apt-get install curlftpfs
mkdir mntdir #make mountpoint
FTPPW=12345678
FTPUSER=username%40site.org # if contains @ then use %40
sudo curlftpfs -o allow_other,uid=1000 ftp://$FTPUSER:$FTPPW@ftp.site.org mntdir

The uid is needed if you want write access for a non-root user. Find it by typing id at the console.
You will have to edit /etc/fuse.conf to allow_other and also make sure the current user is a member of the fuse group:

adduser andrewf fuse

Add to /init/fstab using:

Syndicate content