2011/09/01

BBC Radio Stream in Windows and Linux

You may listen to the BBC Radio Streams available from this webpage:

In Windows you may add the URLs to Winamp:















But a list of multiple URLs is added (?)... ok, I don't know why... I just played the first one and deleted the trash.



After playing, the URL just showed right.



And then you can save the playlist.



In Linux (I'm using Debian GNU/Linux Squeeze) you can use vlc:

sudo apt-get install vlc

You just copy the link location and then add it into vlc pressing [CTRL+N]:



















The playlist that you saved from Winamp may be play in vlc, nice!

2011/08/31

Turning off the highlighting in nano editor

Some times I dislike the highlighting in my nano editor.

To turn it off:

a) You just remember to launch nano with the -I option in the command line to ignore the nanorc files where the color settings are,

nano -I

b) You may set an alias for the command:

alias nano='nano -c -S -I'

c) ?


2011/08/25

Adding a physical disk as RAID 0 using hpacucli in Debian GNU/Linux and HP DL380 G7

This webpage shows hpacucli in Linux.

To install hpacucli in Debian GNU/Linux you may add the HP's repository for the distro in /etc/apt/sources.list:

deb http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/ lucid current/non-free

Yes, I know it means Ubuntu, but it worked for me.

apt-get update
apt-get install hpacucli

Run hpacucli:

# hpacucli
HP Array Configuration Utility CLI 8.60-8.0
Detecting Controllers...Done.
Type "help" for a list of supported commands.
Type "exit" to close the console.


=>

The current situation:

=> ctrl all show config

Smart Array P410i in Slot 0 (Embedded)    (sn: 50014380102A5090)

   array A (SAS, Unused Space: 0 MB)


      logicaldrive 1 (558.9 GB, RAID 0, OK)

      physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 600 GB, OK)

   unassigned

      physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 600 GB, OK)
      physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 600 GB, OK)
      physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SAS, 600 GB, OK)
      physicaldrive 2I:1:5 (port 2I:box 1:bay 5, SAS, 600 GB, OK)
      physicaldrive 2I:1:6 (port 2I:box 1:bay 6, SAS, 600 GB, OK)

   SEP (Vendor ID PMCSIERA, Model  SRC 8x6G) 250 (WWID: 50014380102A509F)

=>

I need each disk installed individualy, not mixed in arrays.

To add one physical disk as RAID 0:

=> ctrl slot=0 create type=ld drives=1I:1:2 raid=0

Then, the result is what I expected:

=> ctrl all show config                           

Smart Array P410i in Slot 0 (Embedded)    (sn: 50014380102A5090)

   array A (SAS, Unused Space: 0 MB)


      logicaldrive 1 (558.9 GB, RAID 0, OK)

      physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 600 GB, OK)

   array B (SAS, Unused Space: 0 MB)


      logicaldrive 2 (558.9 GB, RAID 0, OK)

      physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 600 GB, OK)

   unassigned

      physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 600 GB, OK)
      physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SAS, 600 GB, OK)
      physicaldrive 2I:1:5 (port 2I:box 1:bay 5, SAS, 600 GB, OK)
      physicaldrive 2I:1:6 (port 2I:box 1:bay 6, SAS, 600 GB, OK)

   SEP (Vendor ID PMCSIERA, Model  SRC 8x6G) 250 (WWID: 50014380102A509F)

=>  
After that, you may setup LVM in minutes as this site suggests.

Nice, what powerful the console is!

Installing Debian GNU/Linux 6 from network using a USB flash drive and HP firmware for HP DL380 G7

This is the easiest way to do the job (of course, it is not a new procedure but I need to register it).

This Debian webpage shows us the propietary firmware available and this webpage shows how to prepare you flash drive to install Debian GNU/Linux 6 in your server!

The procedure

First, download the image from the Debian's repository with propietary firmware.

Second, download the image to format the flash drive from here, in my case amd64 for the HP DL380 G7.

Third, prepare your flash drive in other Linux machine. Let /dev/sdX be the place where your flash drive is mounted.

zcat boot.img.gz > /dev/sdX
mkdir -p /mnt/pendrive
mount /dev/sdX /mnt/pendrive
cp firmware-6.0.2.1-amd64-netinst.iso /mnt/pendrive
umount /mnt/pendrive

Fourth, boot your server with the flash drive inserted to install the system from network. The firmware for the network card will be available (plus some others).

Enjoy!