Get compiz config settings in ubuntu 9.04

Apr 26, 2009 @ 04:56 pm by phosphers

I effed around with this for a couple hours and of course, it’s terribly simple. One oddity (I think) with update manager/package manager is that it doesn’t run apt-get update for some reason. I’m not sure if there’s a way to force it to do this. The downside is that the package information isn’t up to date. You need to run apt-get update, then apt-get install simple-ccsm which will give you the compiz config jobber so that you can change the settings. It shouldn’t be that hard, but there you go.

Mmmmmmmmmm fresh ubuntu.

Apr 24, 2009 @ 07:45 am by phosphers

I’m in the process of finding a link for ubuntu 9.04 and it occurs to me the University of washington does not host any linux iso’s I know of. Which just strikes me as weird. But whatever. Now if I can just find a working torrent…

Darned update manager.

Apr 23, 2009 @ 06:44 am by phosphers

I don’t know if it’s just me or what, but it seems that every now and then update manager can’t find the right package URL. If I run apt-get update it’ll all work again. I’m not sure why update manager doesn’t, y’know, update the package list before checking for new packages.

Crazy old browsers.

Apr 22, 2009 @ 07:37 am by phosphers

This seriously has to be the most complicated way of loading a web page ever. Slipknot

Pretty boot screens with grub.

Apr 16, 2009 @ 10:08 pm by phosphers

I haven’t been able to reboot yet since update manager is doing it’s thing, but I went ahead and gave this a try. Grub boot splash on ubuntu forums. That’s one thing I do love about ubuntu, the community is very active.

Update:  This actually works rather well.  You might have to futz with the grub colors so you can actually see the selection though, mine ended up with a black bar that fades into the background image.  It also helps if you spell the path to the image right :) .

Updated virtualbox!

Apr 08, 2009 @ 11:58 pm by phosphers

Hrmmm… should be interesting, the changelog might fix a few of the problems I’ve had.  Possibly even PXE boot.

Update:  Yeeergh, if it’s working for you don’t update virtualbox to 2.2.2.  There appears to be some network oddities going on and in my personal experience the UI is VERY slow.  Like when accessing the settings for the VM.

Automated scanning with linux.

Mar 02, 2009 @ 07:49 pm by phosphers

Well, semi automated scanning to be fair. I got to thinking that if anything happened to my filing cabinet I wouldn’t have a record of anything, so time to nerd out and find a way to do this in linux.

To jump right in, here’s a download link to scandoc. It’s just a simple bash script. It’s pretty well commented but I’ll explain things a bit here.

#!/bin/bash
# map the first arguement from the command line
# to $file for easier reading
file=$1;

# N is just a counter for the file name
n=1;

# Wait for input, any input works but enter is a pretty common key to
# hit
read -n 1 -p “Hit enter to scan.”;
for i in `seq 1 1000`; do

# Scan images.
# format for output file is “filename”+”pg”+”page number”
# this can be formated as you will.
echo Scanning $1pg$n.pnm;

# Run scanimage itself. Plustek backend, access with lib usb, bus 1,
# device 14. “Auto” does not work with libusb specified, semi
# automatic detection could probably be done. If you only have one
# scanner just call scanimage without -d specifiying the device, it’ll
# find it. Resolution of 150dpi, full plater scan area (change x+y for
# smaller scan areas), the lide 25/plustek keeps the calibration data in
# cache so this speeds things up in batch scanning, default for this
# scanner is color.
scanimage -p -d plustek:libusb:001:014 –resolution 150 -x 215 -y 297 –calibration-cache=yes > $file”pg”$n.pnm;

# Nothing fancy needs to be done post scan with this scanner.
echo Converting to pdf;
convert $file”pg”$n.pnm $file”pg”$n.pdf;
echo Next;
read -n 1 -p “Hit enter to scan.”;
let n=$n+1; #increase n so the page number goes up.

# Second scanner, if you don’t have one just delete all this, though it
# does give some examples on post scan processing.
echo Scanning $1pg$n;

# Genesys is the devil! This is the only reason we’re scanning at
# 150dpi. 300dpi grayscale doesn’t always work, 300dpi color always craps
# out the backend. 600dpi color is overkill for simple document scanning.
# 150dpi color is “enough” for a clear image with the necessary color
# definition. scanimage –help –device-name=Name will tell you the
# details of what the scanner/backend can do. Genesys appears incapable
# of doing 200dpi at all. It also fails quietly, all you’ll get on the
# next scan is “sane: end of file”. Yeah, that’s helpfull. No caching
# of calibration data, so even though the lide 35 is faster at scanning,
# it takes longer to start. Slightly faster in then end on usb1. Lide35
# is a USB2 scanner btw.
sudo scanimage -p -d genesys:libusb:001:015 –mode Color –resolution 150 -x 218 -y 299 > $file”pg”$n.pnm;
echo Converting to pdf;
convert $file”pg”$n.pnm $file”pg”$n.pdf;

# This scanner is dark, convert pdf and pnm into a better image.
# You can do any post scan manipulation here, or seperatly from another
# script. I do it now so I don’t have to come back and guess which files
# need to be lightened up.
convert $file”pg”$n.pdf -modulate 120% $file”pg”$n.pdf;
convert $file”pg”$n.pnm -modulate 120% $file”pg”$n.pnm
echo Next;
read -n 1 -p “Hit enter to scan.”;
let n=$n+1;
done;

Actually there’s not much to explain since it’s all in the comments already. Just a few points, I found the genesys backend to be a real bear, and it turns out that the plustek backend has brightness and contrast built in. Fuck. I’ve spent hours on this damned genesys crap. Also, you don’t have to hit enter as it says in the comments. And you can hold down a key and the script will scan until the buffer is empty. Great when you’re scanning a bunch of the same sized documents.

One further note, convert is a bit odd and really increases the image size. 6 to 13 mb! pmmbrighten does the same thing, but keeps the image size the same. For example ppmbrighten -v 25 test.pnm > test2.pnm will increase the brightness by 25%. It’s slightly faster too. I just didn’t get around to updating the script to use this instead. It’s part of the netpbm package if you can’t find it on your system.

Slow loading rome.

Feb 22, 2009 @ 02:01 pm by phosphers

Because I’m a huge nerd, I went and enabled the Ancient Rome 3d layer in google earth.  Holy crap, they were not kidding about the system requirements.  It’s still churning away, but then, it is loading an entire effing city.  Doesn’t seem to have anti aliasing turned on though, I’ll have to look into that.

Cloning linux disks.

Jan 26, 2009 @ 12:50 am by phosphers

Thanks to the server adventure I got to learn a lot about cloning linux drives. Normally I would just slap in a disk with ghost and be done with it, but I had a few issues this time. First, the source disk was in vmware. Second, the destination drive was in a USB enclosure and vmware only has USB 1 support.
I tried using dd at first and it took allllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll day. Part of that was the USB1 and part of it is that dd is very literaly a bit for bit copy. That takes forever of course.
Clonezilla doesn’t have USB support at all, so it’s out. I couldn’t find any other software that supported USB, not even ghost!
And that’s where g4u comes in. A nice little freebsd based iso that detects the USB drive and is much faster. I was getting 100k/sec with dd, that hopped up to 2mb/s with g4u. That was after I funked around with empty space though.
Direct link to the image reduction info.
And The main page.

Gps on the cell phone.

Jan 13, 2009 @ 04:59 pm by phosphers

I decided to go for a walk and keep a track of it with my cell phone.  But for some reason the damned app couldn’t get a lock on any GPS sats.  No track at all.  Only thing I can think of is the overcast is mucking with it.  I’ll have to try again sometime.

Next Page »