Generating a simple directory listing with apache and autoindex

Setting up a simple list of files on an apache webserver.

The list looks like this:

# File /etc/apache2/httpd.conf
# http://httpd.apache.org/docs/2.0/mod/mod_autoindex.html
# for more options.

IndexOptions IgnoreClient
IndexOptions FancyIndexing
IndexOptions SuppressColumnSorting
IndexOptions SuppressDescription
IndexOptions SuppressHTMLPreamble
IndexOptions SuppressIcon
IndexIgnore  mystuff

#IndexOptions FoldersFirst
#IndexOptions NameWidth=*
#IndexOptions XHTML
#IndexOptions SuppressRules
#IndexOptions SuppressSize
#IndexOptions HTMLtable

Posted in Computing Tips, Linux | Tagged , | Leave a comment

Setting up a IPv6 Gateway on Hurricane Electric using Ubuntu 10.04.2

First thing you’ll need to do is register at the Hurricane Electric website and create your tunnel. I’m not going to go over that since there’s a lot  of help on the Hurricane Electric Website about it. These instructions only apply to you after you’ve registered as a user and set up your tunnel on there website.

These instruction’s  apply to Debian and Ubuntu derivatives, I’m sure they will work for other distributions with a little tweaking. Thanks to angelou on the Hurricane Electric web forum for doing most of the hard work. These instructions are mostly his work, with ufw firewall instructions are provided by me.

Continue reading

Posted in Linux, Personal | Tagged , , | 5 Comments

Setting up IPv6 access for a home network using Ubuntu Linux

Before starting this howto, I would suggest that you get IPv6 working by following the instructions here. If you’ve followed all the instructions in the previous post, you should now have a linux workstation that allows you to view IPv6 websites.

If you want to extend this ability and enable all the workstations on your network to have the same ability then feel free to follow the instructions provided.

First things first, you need to register with Freenet6 who will be your IPv6 tunnel provider, the registration page is here. Take a note of your password and username, you will need this later. Continue reading

Posted in Linux, Personal | Tagged , | Leave a comment

Setting up IPv6 access for a home workstation under Ubuntu Linux

My current home workstation is running Ubuntu 10.04 LTS, but I’m sure you should be able to adapt the following to run on debian or other Ubuntu flavours.

This part only applied to setting up a single workstation, at some point, I’m going to set up my linux home server, to act at an IPv6 gateway for all the IPv6 enabled home devices.

First we have to install the IPv6 gateway client.

sudo apt-get install gw6c radvd

The default installation connects to Freenet automatically and anonymously so that should be it. Continue reading

Posted in Linux, Personal | Tagged , | Leave a comment

Converting 3gp to xvid using Linux and ffmpeg

I recently purchased a new phone, a Samsung S and I’ve been busily taking video clips as you do, only recently have I tried to stream them from my PS3 to my TV, only to find that the 3gp format isn’t supported under DNLA. After a little searching on-line, I’ve found out how to convert the file under linux, so I though I would share (as you do).

I’m having to make the assumption that you have ffmpeg installed, if not, then do so before following the instructions below.

Below show the info of the file that I’m converting.

The command line below seemed to work for me, thanks for linux.com for the more esoteric command line that worked best and produced the smallest file-size.

It’s always a good idea to make sure you get the aspect ratio correct “-aspect 3:2″ in my case, I would recommend reading the following.

ffmpeg -threads 2 -i video-2010-12-26-16-13-16.3gp -f avi -r 29.97 -vcodec libxvid -vtag XVID -s 720×480 -aspect 3:2 -maxrate 1800kb -b 1500kb -qmin 3 -qmax 5 -bufsize 4096 -mbd 2 -bf 2 -flags +4mv -trellis -aic -cmp 2 -subcmp 2 -g 300 -acodec libmp3lame -ar 48000 -ab 128kb -ac 2 video-2010-12-26-16-13-16.avi

Below are the details of the converted file.

Good luck :-)

References:
Article on parallaxed.net
HowTo install and use the latest ffmgeg (Ubuntu Forum)
FFMpeg website
howto-pages.org/ffmpeg
H.264/MPEG-4 AVC
catswhocode.com
Converting Audio and Video file using ffmpeg
FFmpeg Howto

Posted in Linux, Personal | Tagged , , , | Leave a comment