Skip to Content
Random postings of a Canadian techie's past times.

Linux

Web-Based Administration - Webmin

Webmin is a web-based administration tool that can be installed on any Unix-styled install.
Since I've been using Ubuntu for the past couple of years, this is how you need to install it on Ubuntu.

Pre-configure the software; some may already be installed from other configurations. The system will tell you if it's installed already.
>sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl
Download the Webmin program - at the time of this writing 1.441 is the version available (remove webmin_1.441_all.deb from the link and you can find the latest version)
>wget http://prdownloads.sourceforge.net/webadmin/webmin_1.441_all.deb
>sudo dpkg -i webmin_1.441_all.deb
It will configure itself pretty nicely and all you have to do is login and use it. If you have a firewall configured, make sure to allow port 10000 through.
https://localhost:10000

Static IP Address

pico /etc/network/interfaces

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1

sudo /etc/init.d/networking restart

Sound Editing Tutorial

Below is the tutorial I created back a couple months ago. I've since needed to do some more audio editing, and made it much easier with the installation of my Audigy 5.1 card.

We recorded a live concert of Montague Street (soon to be online). There was a single audio track that I needed to split up into the appropriate songs. There was no need to merge anything together, so it was fairly straight forward and easy. I used Audacity to load, cut and adjust levels and create multiple mp3 tracks.

Read on if you want to see the hard way of doing things... or more just for the Audacity instructions.

Original..
So here is a little tutorial on editing sound files. I had to do this for a couple tracks for Laura's website (here)

I'll just start this off with the programs I used to do this. I'll also mention that my computer audio really doesn't like Linux (any flavour), and though I own a sound card that would work fine, it's sitting in a bag not being used...

PHP GD

Issues were found with GD in my PHP installation - basically it was installed, but not linked properly
This is the error that I kept receiving - mainly noticed after doing a system update.
error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory

Doing the following solved the issue for me.

cd /usr/local/lib
sudo cp libgd.so.2.0.0 libgd.so.2.0.0.broken
sudo ln -f /usr/lib/libgd.so.2.0.0 libgd.so.2.0.0
sudo apache2ctl restart

Also found that I needed to create another link.
sudo ln /usr/lib/libgd.so.2.0.0 /usr/lib/libgd.so

Link to UbuntuForums for the help
http://ubuntuforums.org/archive/index.php/t-252842.html

Apache2 Bandwidth Limit

Download and install the Bandwidth Module from the links below or the attached file.

Unpack
tar -zxf mod_bw-0.8_0.tgz
cd mod_bw
sudo apxs2 -i -a -c mod_bw.c

Then add this to your apache2.conf
LoadModule bw_module mod_bw.so
and this to your VirtualHost / enabled site

BandwidthModule On
ForceBandWidthModule On
LargeFileLimit .mp3 1 15000

I did mine to limit the speed of MP3 downloads to reduce the total server connection speed, but you can limit everything if you're needing to.
Bandwidth all 10240
MinBandwidth all -1

Note - you must have apxs2 installed to make this work, installed with this:
sudo apt-get install apache2-threaded-dev

Found at either location, or attached here
http://www.ivn.cl/apache/
http://bwmod.sourceforge.net/