Skip to Content

DSL Reconnect with PPPOE

Auto Re-Connect to DSL pppoe in Linux

Firstly you will need to configure the pppoe client
sudo pppoeconf
To connect you use
sudo pon dsl-provider
and disconnect using
sudo poff -a
PPPD does not always terminate immediately after, creating a killpppd script and placed in /usr/local/sbin/.

#!/bin/sh
#kill pppd brutally
for i in `ps -eaf | grep "pppd" | tr -s " " | cut -f2 -d " "`
do
sudo kill -9 ${i}
done

You need to make it executable, so sudo chmod +x killpppd
Making sure things are disconnected and ready for a reconnect, creating another little script dcon can handle that.

#!/bin/sh
sudo poff -a
sudo killpppd
sudo poff -a

Then make it executable. This script first tries to disconnect gracefully and tries to kill pppd if that was not successful.

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