You are here


Miscellaneous Ubuntu links


Mounting an FTP/SMB site as a Linux Share

sudo apt-get install curlftpfs
mkdir mntdir #make mountpoint
FTPPW=12345678 # if contains @ then use %40
sudo curlftpfs -o allow_other,uid=1000 ftp://$FTPUSER:$ 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:
Networking with Ubuntu 8.04 and Windows Part 2:
Some notes on fixing Samba problems in Ubuntu:
If you run: mount -t smbfs '\\server\share' /mountdir and get the error: Cannot allocate memory, it is a Windows problem. See:;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
echo "deb $dist main" >> /etc/apt/sources.list
echo "deb-src $dist main" >> /etc/apt/sources.list
apt-get -y update; apt-get -y --force-yes install clamav
# 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

The following worked for me:
apt-get install libgif4
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>


How to install an Ubuntu Hardy VM under CentOS/Red Hat Xen

My process is to create the VM under Ubuntu/Hardy and then move it across

Cygwin installation

.Cygwin Install


Install Drupal on Ubuntu

#How to install Drupal 6 on Ubuntu 8.04
apt-get update; apt-get upgrade #first update to latest version
apt-get install -y ssh openssh-server vim-full
ln -sf /bin/bash /bin/sh
# recommends the following:
apt-get -y install binutils cpp fetchmail flex gcc libarchive-zip-perl libc6-dev libcompress-zlib-perl libdb4.3-dev libpcre3 libpopt-dev lynx m4 make ncftp nmap openssl perl perl-modules unzip zip zlib1g-dev autoconf automake1.9 libtool bison autotools-dev g++ build-essential

fuse filesystem with SSH

  • install fuse on Ubuntu:
apt-get install sshfs smbfs
yum install kernel-devel
yum install --enablerepo=rpmforge fuse dkms dkms-fuse

Setting up Samba

Here is a useful link to sharing files with Samba:



Subscribe to RSS - Ubuntu