Monday, March 31, 2008

HP Embedded G5 SATA RAID Controller Driver Diskette for SUSE LINUX Enterprise Server 10 (AMD64/EM64T)

This driver diskette image provides the binary driver modules pre-built for SUSE LINUX Enterprise Server 10 (AMD64/EM64T) to enable the HP Embedded G5 SATA RAID Controller.
Download the driver at HP's website here:

Installation:

To install SUSE Linux Enterprise Server 10 (AMD64/EM64T), use 'aarahci.sles10.x86_64.img' file.

To install SUSE Linux Enterprise Server 10 SP1 (AMD64/EM64T), use 'aarahci.sles10sp1.x86_64.img' file.

CREATING THE DISKETTE

Save the "aarahci.{distro}.{buildtype}.img" file into a temporary directory.

To make a diskette under Linux (or any other Linux-like operating system), you must have permission to write to the device representing a 3.5-inch diskette drive (known as /dev/fd0 under Linux).

First, label a blank, formatted diskette appropriately. Insert the diskette into the floppy drive, but DO NOT issue the mount command:

    # dd if=aarahci.sles10sp1.x86_64.img of=/dev/sda bs=1440k
This command creates a diskette containing the image of the input file (Driver Diskette image) to an output file (Floppy Diskette). To make another diskette run the same "dd" command again.

INSTALLATION

To install Linux using this driver diskette, follow the below instructions:

  1. Boot from the SUSE LINUX Enterprise Server 10 disc 1.
    A list of options will appear in a menu list for 20 seconds. You must
    select Installation, press F6 for Driver Update and then press Enter.
  2. Insert the driver diskette when prompted. Press Enter.
  3. A dialog will be presented with the message
    Please choose the Driver Update Medium.
    From the menu list, select fd0 (floppy), select the OK button and
    press Enter.
  4. The driver diskette will be scanned and you will see the following messages -
    Reading the Driver Update...
    Driver Update OK.
    Press Enter.
  5. The dialog in step 4 will reappear. Select Back and press Enter.

mpg123 compile error on 64bit system

decode_i586.s:44: Error: suffix or operands invalid for `push'

The mpg123 patch for amd64 can be found here: www.lanvik-icu.com/mpg123-0.59r-amd64.diff.txt

Download it into a clean mpg123-0.59r directory.
cd into the directory

Code:
user@box: patch < mpg123-0.59r-amd64.diff
user@box: make linux-x86_64

Friday, March 7, 2008

MySql >= 4.1 Client does not support authentication protocol

If you upgrade your MySql server to >= 4.1 you might get the following error:
- Client does not support authentication protocol requested by server; consider upgrading MySQL client

This happens because the latest versions of MySql uses a new format for the password (it's a longer hash). In order for old clients to continue to use the newer server, you have to set the passwords on the server to their old format or upgrade your client. Because upgrading the client can sometimes be a pain, it's often easier to just update the passwords to the old format on the server.

Run mysql and login as root:
mysql -u root -p
Then, paste the following command, editing as necessary, to change the password of the user to the old format.
UPDATE mysql.user
SET password=OLD_PASSWORD('somepassword')
WHERE user='someuser'
AND host='somehost';

After you have set the passwords to the old format, flush the tables.
flush privileges;

Then exit the mysql client with "quit" and you are set.