Monday, 12 May 2008

Dell Precision M6300

I've just come back from a three and a half week holiday interstate to see my new Dell Precision M6300 has finally arrived! If it wasn't for a new toy to play with, I would have found it hard to get out of bed this morning (first day back after a great holiday is usually like that...)

Anyway, now to install Gentoo Linux on it!

The first problem I encountered was the classic install cd "no bootable medium found":
Attempting to mount media:- /dev/sda
No bootable medium found. Waiting for new devices...
Could not find CD to boot, something else needed!
I used the minimal install cd, which booted but couldn't "find itself" (after booting the kernel, the cd tries to mount itself so it can use the files contained on it). I tried all-generic-ide, acpi=off, playing with AHCI vs ATA in the BIOS and various options to no avail. In the end, I copied the install cd to a usb key, and booted from the CD. The install found the usb key media and continued to run! Thanks to here for this solution!

Now I've finished installing the basic system and I have the machine booted and logged in. I'm currently compiling gnome! I'll provide more details here soon...

Edit: 20/5/08
The system was mostly installed within a day. This is my success so far:

Processor frequency scaling
works (2.6GHz, 2GHz, 1.6GHz, 1.2GHz and 800Mhz. Conservative scheduler works well)

LCD WUSXGA
works (1920 x 1200 native resolution)

LCD backlight control
mostly works (DPMS works, but I haven't got the lid to switch off the display yet)

Touchpad (synaptics driver)
works


Hibernate to disk
doesn't (resume properly yet!)


ACPI and power button
works


Speakers / sound card
works


LAN, WLAN
works


MMC reader
works


multimedia keys
mostly works (Some issue with play, pause, etc buttons)


DVD burner
untried (DVD / CD reader works)


firewire
untried


USB
works


VGA / DVI / TV out
untried


modem
untried

I'll post more details again soon!

Wednesday, 2 April 2008

SetiAtWork

I got my hands on a nice Intel 64bit Quad-Core Dual-CPU Dell Poweredge the other day - not for keeps unfortunately! It is one of two new servers for work. The first one is being tested by the SysAdmin and I asked if I could play with the second. If I can get virtualisation working properly, then I may be able to administer it for it's final use (migrating a few old servers onto it), we'll see.

So what better way to burn it in, than to run SETI or something similar. It's been a while since I last ran SETI. In fact, there was no boinc way back then, and my old 2GHz Pentium 4 got me into the 2nd percentile in just a few months.

After struggling with various issues with the new boinc client not connecting, and not downloading anything, I finally got it all working. One trick was to use the full account key, not the limited key. I also had some problems with the amd64 binary. Apparently there's an even faster one out there, but I haven't looked into that yet.

I was suprised to learn that SETI now provides the source code - when I first used it they kept the source code closed so that they could verify the results were genuine.

I migrated my account from the "classic" to the new style and joined the Gentoo Linux Users Everywhere team. I was dismayed by my apparently slow "recent average credit" total, but after a few weeks, this gradually improved, culminating in todays effort: I'm now at the top of the ranking for this group, based on recent average credit :) I have a long way to go until my total credit gets me noticed however!

I wonder whether I should join another group, or even try out a different project. While SETI holds my favourite spot for being one of the originals, there are possibly more humanitarian efforts! We'll see.

Friday, 7 March 2008

Hopetoun, WA

Edit: sorry about the broken links! Picasa has played up on me! I'll try to fix them soon...

I've travelled to Hopetoun 3 times now. Each time was for business - installing, re-installing, and maintaining part of the Hopetoun Wind Diesel project. I've gathered a lot of photos and stories, so I thought I'd share some of them.

The first visit was September-October 2004. Our objective was to upgrade the existing Power Station with an Enercon E40 Wind Turbine, two new "Low Load Diesels", and our high penetration control system.

The Enercon E40

is an inverter-connected variable speed drive machine, which means that it responds very nicely to our setpoint requirements - essential when aiming for high penetration.

The Low Load Diesels

are capable of running at low loads (0% - 40% load) for extended periods of time without glazing or damage. The control system controls setpoints, trends, alarms, remote monitoring, and all the usual stuff, to achieve wind penetration figures quite often up to 80% - 90%. (ie. 80% if the electrical load of the station is being generated from wind energy).



The intention was always to move the power station eventually, as the old power station was in the middle of town and too noisy for a growing place. The second visit in March 2007 saw a new power station with 8 Low Load Diesels (2 from the old power station), a second Enercon E40, and two 65,000L fuel tanks! The total capacity of diesel and wind is now about 3.7MW.

The third tip later in 2007 saw an upgrade to the control system, to provide more features requested by the customer, and more efficient operation. Here are some photo's we took during this third trip:

(left) Four of the six town feeders.

(right) The two wind turbines, as viewed from the power station. The small structure in the foreground is the water tank. The power station is self sufficient for water.

(left) Fill-er-up!

(right) Seven Low Load diesels all in a row, out to the garden they started to go...


And that's some quick info on the Hopetoun power station. I enjoyed the experience of the projects from design, through to implementation, and maintenance. We continually monitor the project remotely, however the power station is owned by Verve Energy, who provide the power to Horizon Power. Our main support contract is now over, which means we now only provide the warranty.

Thursday, 21 February 2008

Nautilus scripts

Here's a nautilus script that I find very useful! If you find yourself zipping or tarring a lot of files, this will save you lots of time!

I miss the right-click zipfile functionality that I used to get in Windows from the winzip add-on. With Nautilus, you can make up your own scripts and drop them in the scripts directory. They appear on the right-click context menu under "Scripts". You won't see this menu if you have no scripts yet.

It's easy to use:
  1. Copy the following text into ~/.gnome2/nautilus-scripts/tar-bzip2-here
  2. make it executable: `chmod u+x ~/.gnome2/nautilus-scripts/tar-bzip2-here`
  3. right click a file / folder that you want to archive, or select multiple files and right click on one
  4. select "Scripts > tar-bzip2-here"
  5. If you've selected multiple files, you will be prompted for an archive name. Otherwise, the file name will be selected automatically.
  6. A message appears saying "The archive should now be ready". You will find it in the same folder that your original files were in.
Easy and time saving! No more terminals just to tar -cf blah; bzip blah blah!

Here's the code. Copy it exactly (use cut-n-paste):
version 0.2, updated on March 7, 2008

#!/usr/bin/perl -w

#
# tar-bzip-here version 0.2
#
# This program is free for whatever use you want. You break it you get to keep
# the pieces! I would appreciate fixes / improvements being sent back to me.
#
# Changlog:
# 0.2: quote filenames so that certain characters don't confuse bash, such as
# "(". Some more error messages.
# 0.1: initial release
#
use strict;

#my $logfile = '~/tar-bzip2-here.log';
# my @NAUTILUS_SCRIPT_CURRENT_URI = split /\s/, $ENV{'NAUTILUS_SCRIPT_CURRENT_URI'};
my @NAUTILUS_SCRIPT_SELECTED_URIS;
if (defined $ENV{'NAUTILUS_SCRIPT_SELECTED_URIS'}) {
@NAUTILUS_SCRIPT_SELECTED_URIS = split /\s/, $ENV{'NAUTILUS_SCRIPT_SELECTED_URIS'};
}
else {
`zenity --error --text "Run this from nautilus!"`;
die "Run this from nautilus!\n";
}


#`echo > $logfile`;

my @files = ();
foreach my $file (@NAUTILUS_SCRIPT_SELECTED_URIS) {
next unless defined $file;
chomp $file;
if ($file !~ s|^file://||) {
`zenity --error --text "I don't know how to handle the URI '$file'"`;
#`echo 'skipped $file' >>$logfile`;
next;
}

$file =~ s/(%..)/&unq($1)/ge;
# `echo 'ok: $file >> $logfile`;
push @files, "\"$file\"";
}


my $numfiles = $#files + 1;
my $fname;

#`echo 'files are @files'>>$logfile`;
# if mixed files and dir, then ask for archive name
if ($numfiles > 1) {
$fname = `date +%Y%m%d`; chomp $fname; $fname .= '.tar.bz2';
$fname = `zenity --file-selection --save --confirm-overwrite --filename=$fname --title="Select a name for the archive"`;
chomp $fname;
&end ("Cancelled by user") unless ($fname ne '');
}

# if single file or directory, then compress to dirname.tar.bz2
elsif ($numfiles == 1) {
$fname = "$files[0].tar.bz2";
}

else {
&end ("You need to select some files in nautilus to use this script");
}

# now tar a bzip2!
`tar -c @files | bzip2 > "$fname"`;
#`echo 'tar -c @files | bzip2 > "$fname"'>>$logfile`;

# done!
`zenity --info --text "The archive '$fname' should now be ready"`;

# functions
sub unq {
my ($percent) = @_;

if ($percent eq '%20') { return ' '; }
elsif ($percent eq '%20') { return ' '; }
else {
&end ("Don't know how to handle '$percent'");
}
}

sub end {
my ($err) = @_;
`zenity --error --text "$err"`;
die "$err";
}

Friday, 25 January 2008

Gentoo 2008.0

So it's no secret that I use Gentoo. If you've been following the rumours lately you would think that Gentoo is in strife. Daniel Robbins made lots of people believe that there were project, legal, developer, and direction issues. Most of his facts appear to be correct, however I cannot agree with his conclusions.

The State of New Mexico NFP status is not a big deal - sure it's a little embarrassing, but papers got lost, people got preoccupied, and now the papers have been re-filed[1]. Sure the council has had a few resignations, but a new council will be instated, followed by elections, followed by a better process for ensuring it doesn't happen again.

Sure there wasn't a release in 2007 - but there were various security concerns and a breakdown in communication. What you may not realise is that Gentoo doesn't need regular releases, because the entire system of packages goes through a constant upgrade cycle anyway. For example, when I used to install Redhat and then Fedora, major releases would usually introduce a new major Gnome or KDE version. Without the new release CD, you wouldn't be able to get a lot of new packages. Even with the new release CD, Fedora would often blow away my filesystem anyway. With Gentoo, KDE 4.0 is currently in the tree, and people are successfully installing and using it.

Nevertheless, a new release is on the way[2]. Pencilled in for final release in mid-march, there are a lot of new features and processes. Including linux kernel 2.6.24[3], if testing goes well. A new security discussion has been set up, so that Release Engineering knows what the issues are directly.

The final issue, IMHO is the communication between devs and users. They will never completely agree on everything, but that's a fundamental difference that shouldn't be changed. At the least there should be some communication - and the releng looks to be addressing that too. There is a new mailing lists to help new developers (gentoo-dev-help), a user survey planned, and a call for comment on the new release[4].

So Gentoo is not perfect, nor is any distribution. At least from what I've seen over the last few days is they continue to learn from mistakes, which means the will continue to improve and grow.

[1] http://archives.gentoo.org/gentoo-nfp/msg_01347.xml
[2] http://www.gentoo.org/news/20080123_releng_beta.xml
[3] http://www.gentoo.org/news/20080125-2.6.24-kernel.xml
[4] http://www.gentoo.org/news/20080124_releng-feature-request.xml
 
Copyright 2009 Another Blog. Powered by Blogger Blogger Templates create by Deluxe Templates. WP by Masterplan