Archive

Archive for June, 2007

Teh fun with bash code

27 June 2007 Michiel 1 comment

Everyone who knows me, knows I need caffeine before I am atleast partial human. Sometimes however my brain throws me some fun and interesting (read weird and twisted) ideas before I am really properly caffeinated [0].

A good example of that is this: [1]

mirror=/usr/local/src/slackware/slackware-current
changelog=$mirror/Changelog.txt

cat $changelog | head -$(grep -n "^+" $changelog | head -1 | awk -F \: '{print $1}') | grep -v "^\+\|^\ \|$(date +%a)" | grep tgz | awk -F \: '{print $1}' | sed -e 's#^#upgradepkg --install-new #'

Basically ‘all‘ this does is to go through the Slackware-current ChangeLog.txt (of my local mirror), and figure out more or less the latest updates and parses them to a file. The output of the script more or less looks like this:

upgradepkg --install-new a/pkgtools-12.0.0-noarch-4.tgz
 upgradepkg --install-new kde/kvpnc-0.8.9-i486-1.tgz
 upgradepkg --install-new l/gd-2.0.35-i486-1.tgz
 upgradepkg --install-new l/gmime-2.2.9-i486-1.tgz
 upgradepkg --install-new n/pssh-1.3.1-noarch-1.tgz
 upgradepkg --install-new n/samba-3.0.25b-i486-1.tgz
 upgradepkg --install-new x/xf86-video-savage-2.1.2-i486-2.tgz

[1] When orginally writing the code, I didn’t use $mirror and $changelog. It made it just slightly more readable and I used it later in the full script.

[2] Please note that this script at the moment does NOT make any distinction between what packages are upgraded or removed or what else. It just looks for any tgz lines in the latest updates from the ChangeLog file.

Slackware-Current –> Slackware 12.0 RC1

14 June 2007 Michiel 3 comments

While you read this, mirrors are updating themselves slowly.

Me? I am gonna wait a bit (probably until tomorrow) so the mirrors can balance themselves a bit. But yeah from todays -current ChangeLog.txt

Thu Jun 14 16:39:01 CDT 2007
It's that time again, and here we have Slackware 12.0 release candidate 1! :-)
If we're lucky, we got it all right the first time. Big thanks to the crew.

All I can say is: woot!!

Even this last moment there are some really nice gems added to slackware. I can’t wait till this goes gold.

For everyone wanting to upgrade. I can’t stress this enough:

READ the UPGRADE.TXT

If you follow that, you can’t go wrong. and DO NOT use swaret/slaptget or whatever. If you are desperate to use a packaging tool other than upgradepkg(8) use slackpkg.

[Note]:: For those wishing to read how to upgrade the right way

Categories: -current, Slackware

Perl::Tea vs Perl::Coffee

9 June 2007 Michiel 1 comment

I probably shouldn’t be amused by this, but hey being a geek what good is it to have just normal conversations in a way it hardly makes sense to any non-geek. Anyway:

The following conversation happened on irc somewhere:

( Michiel) mm low coffee treshold warning in module kitchen::coffee()

( Someone) Michiel: kitchen::coffee is unmaintained. The author wrote, and now maintains Kitchen::Tea

( Someone) Michiel: you need to upgrade to Kitchen::Tea. I also recommend installing Kitchen:Tea::Assam when it asks you during the Makefile.pl process

( Michiel) Someone: I tried to use that, but CPAN claimed my system was lacking he Quality::Tea-assured modules? I googled this and looked on cpan, but couldn’t find anything. I found some vague reference to Money::Funds being low, but I can’t find anywhere to initialize the right value

( Michiel) I technically could install all of the following stuff:
Kitchen::Tea:EarlGrey and Kitcten::Tea::Infusion, Kitchen::Tea::Green and Kitchen::Tea::Standard .. but I heard somewhere vaguely on os.lang.perl.tea that the results and satisfaction aren’t as good.

( Someone) Michiel: it’s ok to install all of them, but the standard thing is to only use; one at a time.

( Someone) and the timing errors when calling pour(); are difficult to correct sometimes

Categories: amusement, geek, perl

Upgrade to Slackware-current.

7 June 2007 Michiel 1 comment

I finally decided to take the plunge yesterday and upgrade my machine to slackware-current. Which was going to be fun, first I needed to make a quick backup of my documents.

Then I decided to tackle the upgrade as following:

  1. Restore the system to it’s original state as much as possible.
  2. Remove any packages so far installed (recompile them later against the newer libs).
  3. Use rworkmans UPGRADE_AND_CHANGES.TXT/UPGRADE.TXT to upgrade to slackware-current.
  4. Once done, start recompiling the packages

This all went pretty good, and I must say I am impressed with slackware-current so far. It runs fine, stable, the new KDE 3.5.7 is rather shiny (especially kopete, now that pidgim is removed from the scene), and ofcourse all kind of magically goodness of running Hal and Dbus. I must say I really like the new XFCE 4.4x and currently really doubting which window manager I should go with.

I seem to be unable to get my nvidia card to work. Sorted this now. Downloaded ‘another’ nvidia legacy driver (7185) and this one works. I quick tested this with UrbanTerror and yay, it works.

So all in all I am really impressed at what Patrick has managed to put out for the next release and look forward when it’s going gold.

Patrick (and the SSS): Much thanks!!

Hah

3 June 2007 Michiel 1 comment

Teh win is mine ;)

enough said …

Categories: amusement, geek, personal