Mounting an FTP/SMB site as a Linux Share

sudo apt-get install curlftpfs
mkdir mntdir #make mountpoint
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
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
# 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 )

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


There is an article at: http://www.howtoforge.com/ubuntu-8.04-server-install-xen-from-ubuntu-rep... which is the basis, but *don't do the wget and dpkg steps* since the patches are now in hardy

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
#http://howtoforge.com/perfect-server-ubuntu8.04-lts-p3 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
  • make a directory and mount a remote file system on it
mkdir /music
sshfs -o allow_other root@sv.isnew.org:/backups/music /music
  • to unmount system
fusermount -u /music
  • to mount a samba/windows share:
sudo smbmount //sv/comm

Setting up Samba

Here is a useful link to sharing files with Samba: http://biguncledave.wordpress.com/2008/04/05/sharing-files-in-ubuntu-usi...

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

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


There is an article at: http://www.howtoforge.com/ubuntu-7.10-server-install-xen-from-ubuntu-rep... which unfortunately has a number of flaws. For more information, see:

Syndicate content