Archive for March, 2009

Rip and convert to MP3 files in Debian Lenny

To create an audio file in Lenny, you need to install the proper package to encode them. I suggest you add the “debian-multimedia” repository while you are at it. Edit your  /etc/apt/sources.list and add:

deb http://www.-multimedia.org lenny main

run

aptitude 

then install the gstreamer lame encoder:

aptitude install gstreamer0.10-lame

Then you are done. You can launch and convert formats to MP3 using VBR and other technologies. You can also use to CD’s

How to update my sparc FreeBSD install

So the spanking new freebsd- doesn’t work for systems… boo. Have to do everything manually. Here’s what I remember. Let me know if I forgot something, or its wrong.(very likely)

Install cvsup:

# cd /usr/ports/net/cvsup-without-gui/
# make install

install fastest cvsup:


# cd /usr/ports/sysutils/fastest_cvsup/
# make install
# fastest_cvsup -c us

Replace “us” with your country if it’s different. copy the default supfile to our own before editing.


# cp /usr/share/examples/cvsup/stable-supfile /etc/stable-supfile
# cp /usr/share/examples/cvsup/ports-supfile /etc/ports-supfile

edit both of them and change the


*default host=

to the fastest cvsup server from the “fastest cvsup”

then update the ports


# cvsup -L2 -g /etc/ports-supfile
# cvsup -L2 -g /etc/stable-supfile

Then i guess we try to build the world. see if something breaky.


# cd /usr/src
# make buildworld

Recompiled kernel. I have my own kernel called “MYSPARC2″. Yours might just be “GENERIC”


# cd /usr/src
# make buildkernel KERNCONF=MYSPARC2
# make installkernel KERNCONF=MYSPARC2

rebooted into single user mode then:

# mount -u /
# mount -a -t ufs
# swapon -a

Now you are ready to install the new world.

# cd /usr/src
# make installworld

After that was done, mergemaster to update your configs:

mergemaster -v

Then used portmaster to upgrade all of the ports.

# portmaster -a

Basically everything i know about BSD comes from or stems from something I’ve read at freebsdmadeeasy.com

source: http://www.freebsdmadeeasy.com/tutorials/freebsd/updating-freebsd-with-cvsup.php

Automysqlbackup.sh.2.5 on FreeBSD

Automysqlbackup is a great tool. It’s setup and configuration can be found at many other sites. When you try to run it out of the box, you will get something like this:

./automysqlbackup.sh.2.5: Command not found.

To run it in FreeBSD, you need to edit a single line. Automysqlbackup.sh.2.5 is a bash script, and it references the path ‘/bin/sh’. In freebsd, bash is installed at ‘/usr/local/bin/bash.’ If you haven’t already, install bash:

pkg_add -r bash

Then all you have to do is edit automysqlbackup.sh.2.5. Look for

#!/bin/bash

and change it to

#!/usr/local/bin/bash

Now you should be able to launch it properly by running ‘./automysqlbackup.sh.2.5′. creating a symlink would probably work, but i like this better.