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.

Installing NX Server

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

    CentOS 5.5 64bit

    yum install wget #must be logged on as root
    NXVER=3.4.0
    CVER=7
    NVER=13
    SVER=12
    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.3.6svn 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

VER=0.7.0
wget http://downloads.sourceforge.net/podofo/podofo-$VER.tar.gz?use_mirror=osdn
mv podofo*.gz /tmp
cd /tmp
tar xzvf podofo*.gz
cd podofo-$VER
cmake .
make
make install

Make some directories:

mkdir ~/scribusinstall
mkdir ~/scribussource

Finally build Scribus:

Installing extras on Ubuntu 10.04 Lucid

Extra applications

DVD playback and extra codecs

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

Alternative post on installing DVD codecs: http://linuxpoison.blogspot.com/2010/05/add-multimedia-support-in-ubuntu...

Flash

(if not installed already above) Install from synaptic or
apt-get install flashplugin-nonfree


apt-get install -y openssh-server gnome-device-manager
apt-get install -y subversion
apt-get install -y vlc gimp inkscape adobe-flashplugin mozilla-plugin-vlc
(if not installed above)

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:

Notes on Samba

Networking with Ubuntu 8.04 and Windows Part 1: http://www.linuxplanet.com/linuxplanet/tutorials/6495/1/
Networking with Ubuntu 8.04 and Windows Part 2: http://www.linuxplanet.com/linuxplanet/tutorials/6497/1/
Some notes on fixing Samba problems in Ubuntu: http://ubuntuforums.org/showthread.php?t=1169149
If you run: mount -t smbfs '\\server\share' /mountdir and get the error: Cannot allocate memory, it is a Windows problem. See: http://support.microsoft.com/default.aspx?scid=kb;en-us;177078

Virus scanning with Ubuntu live CD and clamAV

Boot up an Ubuntu Live CD (in this case hardy) and run:
sudo passwd root # enter new root password twice
su # enter root password
dist=jaunty
echo "deb http://ppa.launchpad.net/ubuntu-clamav/ubuntu $dist main" >> /etc/apt/sources.list
echo "deb-src http://ppa.launchpad.net/ubuntu-clamav/ubuntu $dist main" >> /etc/apt/sources.list
apt-get -y update; apt-get -y --force-yes install clamav
freshclam
# open the desired media from the Places menu to mount it
df #to see what it is mounted as (probably /media/disk)
cd /media
clamscan -r -l /var/log/clam

Office 2007 import/export in OpenOffice.org

The following worked for me:
apt-get install libgif4
wget http://katana.oooninja.com/f/software/odf-converter-integrator-chocolate...
dpkg -i odf-conv*.deb
vi /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Types/MOOXTypeDetection.xcu # and modify this line:
<prop oor:name="URLPattern"><value>*.docx *.DOCX *.docm *.DOCM</value></prop>

(taken from http://katana.oooninja.com/w/odf-converter-integrator )

Syndicate content