"First they ignore you, then they laugh at you, then they fight you, then you win." M. Gandhi

La Fibra che Ride

The Next Ubuntu coming…

The next version of Ubuntu is coming soon

World IPv6 Launch

Major websites, ISPs and Content providors are permanently enabling IPv6 starting 6 June 2012 at 0000 UTC on their main websites: www.facebook.com,www.google.com, www.bing.com, and www.yahoo.com will all be reachable over IPv6 from that time.

http://www.worldipv6launch.org/

((enjoy))

 

Ubuntu Oneiric Ocelot 11.10 on HP EliteBook 8760W: a perfect portable Linux workstation

After working for years on a Elitebook 8530p, I was looking at a laptop which has to be performant, robust and with a good display since for my work I spend most of the time without external monitor and I need a lot of space on my desktop.

The final choice (compatible with the budget) was an HP EliteBook 8760W (model number LG670ET) with an Intel i5-2540M @ 2,60 Ghz, 4 GB RAM, 500 GB SATA II 7.2K hard disk, ATI FirePro 5950M (Radeon HD 6700M Series) with 1 GB DDR5 and a Full HD 1920×1080 17.3″ LCD display.

Unfortunately there is no way in Italy to order this machine *without* the Operating System, mine come with Win 7 Professional; I used Windows only for the time necessary to upgrade the HP BIOS to F.21, then I created a CloneZilla image of all the 4 primary partition (really bad partitioning choice HP!!!), and then erased all the disk to enjoy Ubuntu 11.10.

Installation went really really smooth! I’ve been impressed because all worked fine during the setup. The surprise come at the first reboot, since the screen was horizontally shifted by almost half (varying during a couple of reboot) as you can see in this screenshot, but in a few minutes after installing the proprietary ATI driver fglrx provied by Ubuntu “Proprietary Driver” installer, the graphic card started working like a charm. There must be something wrong in the Open Source Radeon driver, especially in the thermal control since with the ATI driver temperatures are really cool (under 45 in normal use).

I stringly suggest to install ASAP the latest ATI Catalyst Driver following the wonderful guide available at the Unofficial Wiki for the AMD Linux Driver.

I’m very satisfied with this laptop, FullHD screen is really a *lot* of space to work on and the overall performances are really really good!

From the Ubuntu point of view I’ve to report the following:

  • Boot is really fast, in less than 30″ from power-on the lighdm login prompt appears
  • Supend to Ram is working well and makes stop and resume still faster
  • All the special keys (volume, display dimmer, wireless) are working fine, even the Calculator shortcut button: the only unrecognized button is the WWW but I find these buttons almost unuseful :-)
  • The Full Kyeboard with numeric pad is good, with good keys dimension and finger feel; I’ve to blame only for the size of the 4 arrows block which are a little small and my fingers still have to accustom the these keys
  • Webcam is working out of the box even with Skype
  • Audio is quite good and is working out of the box
  • The Synaptics touchpad multi-touch is working out of the box for two-finger vertical and horizontal scrolling, cool! It is sufficient to enable it in the Mouse Preferences; this specific HP one has a locking feature that worked on Windows byt not yet on Ubuntu, still to investigate since there is an official package for Suse which seems to work fine.

I’d like to test the AMD EyeFinity multiple desktop, which is really a cool option by AMD!

The only missing thing at this point is an SSD Hard Disk which surely would boost the I/O performance, even though the TOSHIBA MK5061GSYN is doing a good job for now.

So if you are looking for a really performant portable workstation “Ubuntu ready” I’d suggest this model without any doubt! Yes, it is not a lightweight laptop (3,5 Kg excluding charger!) but I dare you to find a similar large display at a lower weight :-)

If you want to save almost half a Kg, you can go with the 8560W (Model LG660ET) which has the exact same hardware but a 15.6″ display, but you must have a really good sight :-) Instead if you have a bigger budget and want an Intel i7 with NVidia please take a look at this bug on Launchpad since some people are reporting troubles with NVdia based models.

As always YMMV

((enjoy))

Advisory: Range header DoS vulnerability Apache HTTPD 1.3 2.x CVE 2011 3192

Advisory: Range header DoS vulnerability Apache HTTPD 1.3 2.x CVE 2011 3192.

Exploit is in the wild! Be warned!

UPDATE: Apache 2.2.20 has been released and it fixes this vulnerability. Update ASAP!

Please note that on Ubuntu the fix has been backported to Apache 2.2.14-5ubuntu8.6 for 10.4 LTS, and 2.2.8-1ubuntu0.21 for 8.04 LTS.

((enjoy))

Ubuntu 11.10′s Unity Dash is taking shape

Ubuntu 11.10′s Unity Dash is taking shape – The H Open Source: News and Features.

Ubuntu 11.10 looks really promising!

((enjoy))

 

The Solution Schema for Every Problem

The Problem Solver Schema
((enjoy))

Kernel Log: BIOS bugs behind greater power use – The H Open Source: News and Features

Finally someone at Phoronix has found the reason of the greater power usage of the latest Linux Kernel.

Kernel Log: BIOS bugs behind greater power use – The H Open Source: News and Features.

((enjoy))

npviewer.bin segfault issue SOLVED with the Adobe Flash Player 64-bit native plugin

If are using a 64-bit flavour of Linux, you’ll be surely affected by the npviewer.bin issue about random crashes of the Flash Player plugin in Firefox with a message like this in your /var/log/kern.log:

npviewer.bin[6489]: segfault at 418 ip 00000000f6034d36 sp 00000000ffaaf868 error 6 in libflashplayer.so[f5dc7000+b5f000]

Well, Adobe some time ago released a beta quality 64-bit native Flash Plugin player which seems to work quite well.

For example on a recent Ubuntu (mine is 10.04) these are the steps to use it:

1. remove the current plugin:

sudo dpkg --purge flashplugin-installer

2. download the 64-bit plugin from the Adobe site: http://labs.adobe.com/technologies/flashplayer10/square/

3. as root place the extracted file in: /usr/lib/firefox-addons/plugins/

4. restart your firefox and verify from "about:plugins" that it get loaded correctly

You are done! No more npviewer.bin segfault :-)

((enjoy))

TEMPer Sensor temperature graphing and monitoring with MRTG

If you need to monitor indoor temperature of a server room or similar, the TEMPer Sensor from PCSensor.com may be the right solution for you, at an incredible low cost! You can buy this cheap device from Amazon.com or from e-Bay, plug in the USB port of a server, and with the power of MRTG you will have temperature graphics and email alert. The latest device model shows up as a USB Human Interface Device, while the older was a USB-to-serial.

I’ve tested it on a Ubuntu 10.04 physical server, and here are some configuration hints.

Perl Modules

Use CPAN for installing required perl modules to use the device:

$ sudo apt-get install libusb-dev build-essentials
$ sudo cpan Bundle::CPAN
$ sudo cpan ExtUtils::MakeMaker
$ sudo cpan Inline::MakeMaker
$ sudo cpan Device::USB
$ sudo cpan Device::USB::PCSensor::HidTEMPer

then download a perl script from http://www.cs.unc.edu/~hays/dev/bash/temper/temper_mon.pl to use as a base for MRTG integration. Save the script in /usr/local/bin and modify it to print the data in the format good for MRTG, the last lines of the script should look like this:

foreach my $device ( @devices )
{
   say $device->internal()->celsius();
}
printf "0\n";
printf "fool\n";
printf "My Temper sensor\n";

MRTG Configuration

Simply add these lines to your mrtg.cfg to start graphing the temperature data:

Target[temper]: `/usr/local/bin/temper_mon.pl`
AbsMax[temper]: 50
MaxBytes[temper]: 30
Options[temper]: nopercent,growright,nobanner,nolegend,noinfo,expscale,gauge,noo
Title[temper]: My Server Room Temperature
PageTop[temper]: <h1>My Server Room Temperature</h1>
YLegend[temper]: Temperature C
ShortLegend[temper]: &nbsp;&deg;C
LegendI[temper]: Temperature &deg;C&nbsp;
ThreshMinI[temper]: 15
ThreshMaxI[temper]: 30
Unscaled[temper]: dwmy

If you want to use the MRTG threshold feature, add also these lines, and MRTG will send you email alert when the temperatures values are below or over the configured thresholds.

# Alert
ThreshDir: /var/mrtg/thresh
ThreshMailServer: smtp.example.com
ThreshMailSender: mrtg-alert@example.com
ThreshMailAddress[_]: supporto@example.com

Create the /var/mrtg/tresh directory to make MRTG happy. The Min Threshold is also used to detect if the sensor is unplugged since the program will read a value of 0.
It works like a charm!
((enjoy))

ZenOSS events database cleaning

If you need to purge all the records in the events database of your ZenOSS installation, the simple procedure is the following (tested on Zenoss 2.5.x on Ubuntu server).

# /etc/init.d/zenoss-stack stop
# /etc/init.d/zenoss-stack start mysql
drop the "events" database
# /etc/init.d/zenoss-stack stop mysql
delete the ibdata1 and ib_log* files in the mysql data folder
# /etc/init.d/zenoss-stack start mysql
zenoss$ zeneventbuild localhost zenoss zenoss events
# /etc/init.d/zenoss-stack stop mysql
# /etc/init.d/zenoss-stack start

((enjoy))

Solaris VM recovery after cloning

The scenario: ESX 4.1 Cluster and a Solaris 10u8 64 bit VM running on RDM Luns. Clone the LUNs at the storage level (a crash consistent cloning) and map them to a new VM configured in the same exact way, same virtual hardware version, same SCSI Controller, same Hard Disk SCSI ID.

The problem: the cloned Solaris guest will fail to boot, since for a still unexplained reason the PCI device mapping of the controller has changed and the kernel while booting will be unable to find the disk(s). This is really strange since VMware ESX should provide the same exact hardware to the guest, like in Linux OS guests.

Booting in failsafe mode and mounting the root file system on /a should show something like this:

Solaris Failsafe boot show different PCI devices

The /devices/pci@0,0/pci15ad,1976/sd@0,0:a is the new device, while on /a/dev/dsk/c1t0d0s0 you can see the broken symlink to the wrong PCI path.

The solution: you have to reconfigure the devices inside the cloned guest; unfortunately for Solaris is far more complicated than in Linux OS.

1. Start the VM and at the grub prompt, enter fail-safe mode and allow the root file system to be mounted as read/write under /a.

2. Identify the new device name using the format command. In this case it is /pci@0,0/pci15ad,1976@10/sd@0,0 so replace where necessary from now on. vi may not display correctly so fix the terminal type with the following command:

# TERM=sun-color; export TERM

3. Now edit /a/boot/solaris/bootenv.rc and update the line that starts with setprob boothpath so that it reads:

setprop bootpath ‘/pci@0,0/pci15ad,1976@10/sd@0,0:a’

4. Update the boot archive:

# bootadm update-archive -R /a

5. Then edit /a/etc/vfstab (making a backup copy first) and modify the line mounting the root file system so instead of /dev/dsk/c1t0d0s0 and /dev/rdsk/c1t0d0s0 it reads the following absolute paths. Do not forget to suffix a: and ,raw respectively.

/devices/pci@0,0/pci15ad,1976@10/sd@0,0:a /devices/pci@0,0/pci15ad,1976@10/sd@0,0:a,raw / ufs 1 no -

6. Now we need to force a reconfiguration boot so that the system recreates the /etc/path_to_inst file that contains physical device to logical instance mappings. You can do this in 2 different ways: “touch /a/reconfigure” before reboot or at the grub prompt, I prefer to use grub.
Anyway it is time to restart:

# reboot

7. At the grub prompt, edit the grub entry thath sould automatically boot with ‘e’ and edit the kernel command line adding -r -s at the end of the line, then press ‘b’ to boot that entry. -r is to force reconfiguration, -s to start in single-user mode

8. Login and edit /etc/vfstab again so that you can replace those absolute paths for the / file system. If you have /var on a separate file system mount it manually to make vi happy. If you made a backup of this file before the last update, it would be easier to start with this. Before you do this use format to determine the new disks and update this file as appropriate. An example with the correct disk paths may be:

/dev/dsk/c3t0d0s1 – - swap – no -
/dev/dsk/c3t0d0s0 /dev/rdsk/c3t0d0s0 / ufs 1 no -
/dev/dsk/c3t0d0s7 /dev/rdsk/c3t0d0s7 /export/home ufs 2 yes -

9. Reboot again in multi-user mode and you’re done! System is now ready for use.
It seems that ZFS volumes will not be affected by the device reconfiguration, they should come up automatically.

YMMV.

Useful links:
- http://communities.vmware.com/message/907527
- http://rdiggle.blogspot.com/2010/06/using-solaris-1009-virtual-appliance.html

((enjoy))