Howto Flash your BIOS the quick and dirty way

I never really understood why you should always get a bootdisc environment for flashing your motherboard bios. Flashing a bios takes few seconds including the verification of the written data. Why should a stable system fail right in this moment? Yeah this could fuck the whole system up but who tells you you got a secure power supply in case you use a bootable environment from a CDROM? So I went another way. Without creating a bootable cd. So…

What to do

  1. Flashing your BIOS is dangerous. You do anything at your own risk. Don’t flash your bios if everything works or you don’t know what you’re actually doing.
  2. Obtain flashrom (apt-get install flashrom)
  3. Check if your motherboard is supported. (chances are good)
    sudo -s
    flashrom -L
  4. Obtain the right (the one for your motherboard) bios image from your vendor
  5. If you made important modifications in your bios settings (overclock?) write them down. All your settings (including saved ones) will probably disappear with the update)
  6. IF you’re completely sure you got the right bios image for updating AND you made sure flashrom is about to update your motherboard bios and not sth else OTHERWISE check below
    sudo -s
    flashrom -w yourimage

    Check the programs output. Don’t reboot if it tells you sth went wrong badly!

  7. If everything worked. Reboot and reconfigure your bios settings.

How do I know I got the right image and flashrom will flash the motherboard bios?

  1. Obtain the current bios of your motherboard.
    sudo -s
    flashrom -r readbios
  2. If you know or you are able to guess your bios version obtain the outdated version you currently use from your vendor too.
  3. Check wether all images have the same size.
  4. Obtain vbindiff (apt-get install vbindiff) and check the hexdata DON’T EDIT ANYTHING
    vbindiff readbios unmodified_outdated_same_v_from_vendor

    If there’s a lot (!) different this is not your bios. (Some differences occour because all your settings probably are saved there too.) To see “a lot” compare your bios with the one you want to replace it with (the new). There should be much more difference.

    vbindiff readbios newbios

    My biosimages all have a date at the end which I could see in the hexeditor. If you have that too, check it! The bios you read from your motherboard and the outdated from your vendor should have the same date. The new image should have a newer date at exactly the same place.

  5. So if the filesize does not differ, you got a date in your hexfile and you’ve read Nr. 4 carefully you should have the right bios and flashrom should write it to the right flashmemory (the one of your motherboard).

unrarall

I’ve written a tool for unrar extraction in python. Basically you can feed it with *.rar and it will do the rest for you. Additionally it can perform cleanup after a successful extraction including a working partYX.rar detection and it’s got passwordfile support. For usage use -h

For install make it executable and put it into /usr/bin or wherever you like.

Depends on:

  • Unrar (non-free-version) 3.80
  • Python

Download it here:

http://unrarallpy.sourceforge.net/

or (maybe outdated)

http://cli-apps.org/content/show.php/Unrarall?content=124772

Nautilus – Empty Dir Script

“What does this do?” It sucks in air!

  • Tries to move all files out of the marked folder
  • Tries to remove the (now empty) dir
  • [If something cannot be done (no sufficent rights, file already exists, directory could not be emptied) it won’t (should not) do it]

Its released under the GPLv2. Use it at your own risk. There should be no dataloss (except the marked directory itself) because all used commands take care of remaining (already existing) files.

#!/bin/bash

SAVEIFS=$IFS
IFS=$(echo -en "nb")

FILES=${NAUTILUS_SCRIPT_SELECTED_FILE_PATHS}

for FILE in ${FILES} ; do
    if [ -d ${FILE} ]; then
             cd "${FILE}"
             mv -n * ..
             cd ..
             rmdir "${FILE}"
    fi
done

IFS=$SAVEIFS

Have fun!

FAQ nautilus scripts (http://g-scripts.sourceforge.net/faq.php)

slow firefox under linux

The speed firefox handles multiple tabs, popup-windows  and the content itself is much better under vista than in (gtk-world) linux. Kind of frustration. But there is swiftfox, an optimized version of firefox for linux (and its different architectures) and I should have found this thing much earlier!

Update

It seems as if there is no satisfying method of getting flash-sound running under a 64 bit system … :/

speeding up firefox under linux

According to this site i just speeded up my firefox by disabling IPv6. It has a recognizeable effect, but i’m still a littlebit disappointed with the slow (gtk?) opening of new tabs and windows… A 2×2,9 ghz intel dualcore 4gb should do better…

Ubuntu torrents lost after transmission update

I just updated ubuntu from hardy heron to intrepid ipex. I experienced a loss of all torrents of transmission because of its update from 1.06 to 1.34. To finish active torrents

  1. Remove the current transmission (but NOT “completely”) (Synaptic)
  2. Uncheck all repositories (Synaptic)
  3. Download the following hardy version from http://packages.ubuntu.com
    • transmission
    • transmission-common
    • transmission-cli
    • transmission-gtk
  4. Install them (they will complain about the wrong order)
  5. Lock the version (Synaptic)
  6. Check all previous repositories

When you completed all active downloads just unlock transmission with synaptics and update.