Featured Posts

SciPy 2008 - Software & Tools STATUS: Day 1 - Thursday: Concluded. Day 2 - Friday: In progress. Astronomy: Enzo [ home ] yt (related to Enzo) [ home | scipy ] Books: Computational Modeling and Complexity Science...

Readmore

An example of checking out a git tag using Qt 4.6.0... Clone the Qt repository: $ git clone git://gitorious.org/qt/qt.git Show available tags: $ git tag -l output: v4.5.1 v4.5.2 v4.5.3 v4.6.0 v4.6.0-beta1 v4.6.0-rc1 v4.6.0-tp1 Checkout v4.6.0: $...

Readmore

Building 64-bit/32-bit Debug&Release Universal Build... See my directions on checking out Qt 4.6.0 from the git repository if you do not already have the source code. Launch a Terminal and cd to the source directory. Run configure w/ 64-bit & 32-bit...

Readmore

  • Prev
  • Next

xen error: Error: Device 0 (vif) could not be connected. Backend device not found.

Posted on : 17-01-2007 | By : Brandon W. King | In : Computers/IT, Linux, Systems Administration, Virtual Machines

Tags: , , ,

1

Currently, I’m working on setting up Xen 3.0.3 on Debian Etch 64-bit. I installed the debian packages rebooted and used xen-tools to create a Debian etch guest domain. When I used xm create -c debian_etch_guest.cfg vmid=1 I got the following error:

Error: Device 0 (vif) could not be connected. Backend device not found.

I googled for the error and didn’t immediately find a solution to the problem (it may still be there in the search results), but as it turned out, the only thing I needed to do was install bridge-utils:

apt-get install bridge-utils

That’s it, now the guest domain boots without a problem.

CD Burning on Linux

Posted on : 20-12-2006 | By : Brandon W. King | In : Computers/IT, Linux, Software Endorsements

Tags: ,

0

Below is a screenshot I took from my setup for burning a copy of Debian Etch using K3b.

If anyone out there is looking for CD burning software for Linux, I would recommend K3b (k3b.org), which worked right out of the box (that being the apt-get box), auto-detected cd burner and write speed.

Notes:

  • Used K3b in Ubuntu Edgy on an HP zd8000 Laptop.
  • Burned a copy of Debian Etch RC1 successfully.

Custom Debian Linux Kernel Debian package w/ initrd

Posted on : 06-12-2006 | By : Brandon W. King | In : Computers/IT, Error Fixes, Linux

Tags: , , ,

0

My attempt to build a new Debian Linux Kernel was thwarted by initrd! Thanks to Diane Trout mentioning that when using make-kpkg, to build a kernel image, doesn’t automatically make an initrd image. I investigated further and found out if you use –initrd, it will automatically generate the initrd image.

Below are the instructions for building a custom Debian Linux Kernel Debian package:

1) Install the following Debian packages (Need access to Universe repository for Ubuntu):

  • kernel-package
  • initrd-tools

2) Get the kernel source (choose version, I used 2.6.17):

apt-get install linux-source-2.6.17

3) Decompress /usr/src/linux-source-2.6.17.tar.bz2

4) cd /usr/src/linux-source-2.6.17

5) Switch to root if you haven’t done so already (sudo -s)

6) type ‘make menuconfig’ to configure your kernel

It may require installing libncurses5 and libcurses5-dev.

7) type ‘make-kpkg –revision 1.0 –append-to-version -custom –initrd kernel_image’

Feel free to change the revision number or and use something other than custom (or omit –revision and –append-to-version to use defaults).

8) type ‘cd ..’

9) dpkg –install linux-image-2.6.17-custom_1.0_amd64.deb

Except using the .deb package name which was generated on your computer.

10) Reboot and enjoy!

Tri-boot WinXP / Windows Vista / Ubuntu Linux

Posted on : 22-11-2006 | By : Brandon W. King | In : Computers/IT, Error Fixes, Linux, Mac OS X, Windows

Tags: , , ,

0

I now have WinXP, Windows Vista RC1, and Ubuntu/Kubuntu Linux tri-booting on my laptop. A key to success if you are going to attempt this is the order of installation:

  1. Windows XP
  2. Windows Vista
  3. Linux

If you install Windows Vista first, Windows XP’s boot loader won’t find Vista, and if you try to do a repair on Vista, WinXP won’t be found. There may be a way to fix this, but it’s easier just to install in the order listed above.

When Linux installs grub, at least with Ubuntu, it automatically finds the Vista boot loader. When you select the Vista option from grub, the Vista boot loader should have two options “Run previous version of windows” (i.e. WinXP) or “Run Vista”.

I hope this saves you some time.

Bacula: Failed to connect to Storage daemon

Posted on : 31-08-2006 | By : Brandon W. King | In : Computers/IT, Error Fixes, Linux, Systems Administration

Tags: ,

2

I loaded up bconsole this morning to check the status of the full backups that were suppose to run last night and found out that all of the backups had failed. The error message: “Failed to connect to Storage daemon”

I discovered that bacula-sd (storage daemon) was only listening to 127.0.0.1. Then I changed it to the full qualified domain for the server, and the client file daemon still failed to connect to the storage daemon (form WinXP boxes). Then I changed it to the ip address of the server and everything started to work properly.

Config files I changed:

bacula-dir.conf:

  • Storage directive
    • Address #changed to bacula-sd server ip address

bacula-sd.conf:

  • Storage directive
    • SDAddress #changed to bacula-sd server ip address

Open Source Network Backup Software: Bacula

Posted on : 29-08-2006 | By : Brandon W. King | In : Computers/IT, Linux, Mac OS X, Software Endorsements, Systems Administration, Windows

Tags: ,

0

After getting tired of maintaining and updating a custom Python based backup network script that used smbclient to backing up WinXP machines using samba, I decided to look into open source solutions. I found two high-end open source network based backup solutions that handle WinXP, Mac OS X, and Linux machines:

AMANDA has it’s advantages, including paid enterprise support through Zmanda, which maybe be important to people in the business world.

The main reason why I choose bacula is because AMANDA uses samba for connecting to WinXP clients and I have one pesky WinXP box which came with some high-end biology equipment and therefore the company we bought it from decided to mangle WinXP enough that samba from Linux won’t connect to it. And for the fear of bringing down an important piece of biology equipment, I have decided to not mess with that machine more than I need to. Bacula runs a file daemon (a.k.a. ‘service’ for you Windows users) which gets me past the samba problem. So, if you were looking here for me to tell you which one is better, I really don’t know. I haven’t tried AMANDA yet.

The other feature that really sold me is the Python scripting ability built into Bacula for extending the backup process.

Bacula seems to work great… Although the big test will be coming in next day to three months. I just finished setting up a bacula server and 7 clients… 6 WinXP clients and 1 Kubuntu client.

Quick overview:
Bacula consists of three daemons:

  1. director (runs the show)
  2. storage (manages storage pools & volumes: disk, tape, DVD, etc.)
  3. file (client side backup daemon/service)

What’s confusing about bacula at first is it’s concept of ‘pools’ and ‘volumes’. My original thought was that ‘pools’ and ‘volumes’ were meant for tape drives and that I would only need one pool with one volume since I wanted to use file based storage on a raid-5 hard drive setup. As it turns out, it is convenient to use different pools for full, incremental, and differential backups. Also, within a pool, by putting multiple volumes (i.e. multiple disk files for it to write the backups to), you can set it up to recycle used volumes after a set amount of time! What does this mean for me… If I have enough hard drive space, it will just reuse the space over and over again. If everything is going well, I won’t have to worry about backups. Automation is wonderful! Oh, and it does e-mail me when something goes wrong and there is this ‘bconsole’ which allows you to trigger backups, check backup status, create new pools/volumes and much much more!

Here is my pool/volume setup:

FullPool:
3 Volumes
28 Day Use
56 Day Expire

IncPool:
12 Volumes
7 Day Use
28 Day Expire

DiffPool:
4 Volumes
13 Day Use
28 Day Expire

Note that I only need a full backup to last a month and I have three volumes, so I should always have two full backups and the third will be recycled.

Here is the key schedule I use in the bacula-dir.conf:

Schedule {
Name = “WeeklyCycle”
Run = Level=Full Pool=FullBackupPool 1st sun at 23:05
Run = Level=Differential Pool=DiffPool 3rd-5th sun at 23:05
Run = Level=Incremental Pool=IncPool mon-sat at 23:05
}

Let me know if you would like me to post additional information.

Open Source Screen Record Software

Posted on : 02-05-2006 | By : Brandon W. King | In : Computers/IT, Software Endorsements, Windows

Tags: ,

0

I have been looking into open source screen recording software for both Windows and Linux. Looks like the current winner for Windows is CamStudio. It currently can save to .avi and .swf (flash)! Also it includes features like audio/video sync through a time shift (requires experimenting).

For Linux there is… [FIXME: look it up and update post].

3ware 3dm2 on Debian Linux

Posted on : 14-04-2006 | By : Brandon W. King | In : Computers/IT, Error Fixes, Linux

Tags: , ,

0

The other day I needed upgrade a server to a more recent kernel (2.6.16) when I realized I need to upgrade 3ware’s web monitoring daemon 3dmd to the new 3dm2. Since they don’t support Debian officially, I surfed the internet for a Debian init.d script for 3dm2. I found this e-mail (link) which contained most of what was needed. With a little help from Diane Trout, here are the final touches for the Debian 3dm2 init.d script. To use it, place it in /etc/init.d/3dm2 and execute the command update-rc.d 3dm2 defaults’ to install init scripts.

Quick Link: