Archive for January, 2007

Slackware Todo fixed

I kept getting a 404 error when trying to access my Slackware TODO page, so I deleted it and change the title to Slackware Todo. I’m not sure what the problem was, but the page seems to be working now.

Advertisements

January 31, 2007 at 1:15 am Leave a comment

SVN Backup Tree

This is just notes to myself about how I set up the SVN directories for backup. (This is not final yet) If you have any suggestion about the layout I’d love to hear them.

On the hard drive

  • /home/svnroot
    • username1 – Repo
    • username2 – Repo
    • weekly-dumps/ – ideally only holds 1 dump file per day of the week, I’ll probably end up switching the day of the week and the date (yyyymmdd-dump-DayOfWeek) to make sorting easier
      • `date +%A-dump-%Y%m%e` = Monday-dump-yyyymmdd
      • `date +%A-dump-%Y%m%e` = Tuesday-dump-yyyymmdd
      • `date +%A-dump-%Y%m%e` = Wednesday-dump-yyyymmdd
      • `date +%A-dump-%Y%m%e` = Thursday-dump-yyyymmdd
      • `date +%A-dump-%Y%m%e` = Friday-dump-yyyymmdd
      • `date +%A-dump-%Y%m%e` = Saturday-dump-yyyymmdd
      • `date +%A-dump-%Y%m%e` = Sunday-dump-yyyymmdd

The main problem I have with this is that I don’t like the backup directory being in the same directory as the $HOME repositories, but I don’t know where to put it. :-/

January 31, 2007 at 1:02 am Leave a comment

Haiku: Open Source BeOS

I got a chance to mess with Haiku. I’ve never had the privilage to use BeOS before, so this was a completely new experience. I like like the Be0S look and feel (I wonder if it’s possible to get a WM to look like it), but I didn’t really get a chance to fully test out the OS since it ran painfully slow in qemu. It isn’t a glorified Linux/Unix Distro. It is a completly different OS!

It looks like a really cool OS to play with. I hope it likes my hardware 😉

January 30, 2007 at 2:34 am 1 comment

Managing your $HOME with Subversion

I finally got around to using subversion on my home directories. (well, I got around to figuring out how to get started) Here’s how to get started:

Make a directory to store all the subversion database. (I used /home/svnroot) Next cd into that directory and run svnadmin create --fs-type fsfs $somedir. $somedir should be the same as the user’s home. Now su - to the user that is having their home subversioned. As that user cd to /home and run svn co file:///path/to/svnrepo

Now you can use normal svn commands to add files, or manage your home directory. You can do this on a home directory that already has files in it, which is a big plus 😉

January 29, 2007 at 12:30 am 3 comments

udev Rules

I decided to format one of my flash drives as ext2. This creates a bit of a problem mounting the drives because the other is FAT16. Fortunately there’s a quick fix. (If you’re using udev) For the most part I used the tutorial on Arch Linux’s wiki. The ATTRS part didn’t transfer (not sure if it was just a Slackware or Arch thing or if the wiki entry was a little dated), but it works when SYSFS is used. Put your new rules in a file in /etc/udev/rules.d, restart udev, and plug/unplug your drives.

To get some information you might want to add to your rule run `udevinfo -a -p /sys/block/sda`

Here’s my new rules file:
KERNEL=="sd?", SYSFS{idVendor}=="08ec", SYMLINK+="vbtm"
KERNEL=="sd?", SYSFS{idVendor}=="054c", SYMLINK+="sony"

I’ll probably change SYSFS{idVendor} to SYSFS{serial} now that I figured out the ATTRS bit, and add partition numbering support. (add %n to the end of the SYMLINK) I also bought a new 300GB external hard drive (seagate) for backups, so I’ll need to add that to my rules file eventually.

January 27, 2007 at 7:29 pm 1 comment

State of the Union

I finally managed to sit through at least some of President Bush’s State of the Union address. It’s really funny to watch when the President says something that is obviously conservative or liberal and one side of the audience starts standing up and clapping, while the other grudgingly begins to do the same. It’s even more funny when they show close ups of the audience when this happens. We have quite a few characters in congress. 😛

January 24, 2007 at 2:29 am Leave a comment

More ACPI

I finished writing about the lid scripts that Xubuntu uses (I’ll post after some cleanup), so I’m trying to decide the next target for explanation. Some of the scripts rely heavily on other scripts so they won’t be as straight foward to explain. I think I might work on the script for the AC adapter.

I think I figured out how I’m going to arrange my scripts. I’ll have all the event detection scripts in /etc/acpi/events which will call the response scripts in /etc/acpi/. I want a separate directory (/etc/acpi/actions) to store common power saving functions, so for example if I run the lid script I can easily call spin_down_harddisks, blank_screen, etc. Hopefully this will be cleaner looking than Xubuntu’s current acpi arrangement.

January 24, 2007 at 12:56 am Leave a comment

Older Posts


Feeds