Monthly Archives: February 2012

Install open-vm-tools in Ubuntu Lucid Lynx (10.04 LTS)

I’ve previously had issues installing VMware Tools in various versions of Ubuntu server, which pointed me towards using open-vm-tools instead.

I’ve heard the latest version of VMware Tools is indeed compiled properly for Ubuntu but I’ve gotten used to using 3rd party alternatives so I’ve just kept going with open-vm-tools.

Here’s how you install it:

apt-get install --no-install-recommends linux-headers-virtual open-vm-dkms open-vm-tools

The reason for –no-install-recommends is that it’ll pull down the GUI tools for X as well if we just apt-get install open-vm-tools.

Installing PHP 5.2 on Ubuntu Lucid Lynx (10.04 LTS)

If you followed my previous post on downgrading your PHP installation, this may be of interest to you, since the Karmic security repositories are no longer available. There may be workarounds, but I couldn’t install PHP 5.2 following my previous instructions.

Here’s a different way to do it, that proved successful. Note that the install procedures outlined below, is for a fresh install of Ubuntu Server without the LAMP package selected during installation. If you want to adapt a system with 5.2 already installed, I’m sure you can figure it out using this post for inspiration.. 😛

First, you need to install add-apt-repository (root is assumed on all commands unless otherwise stated):

apt-get install add-apt-repository

Add the following into /etc/apt/preferences.d/php to pin PHP at version 5.2:

</pre>
Package: libapache2-mod-php5
Pin: version 5.2.10*
Pin-Priority: 991

Package: libapache2-<wbr>mod-php5filter
Pin: version 5.2.10*
Pin-Priority: 991</wbr>

Package: php-pear
Pin: version 5.2.10*
Pin-Priority: 991

Package: php5
Pin: version 5.2.10*
Pin-Priority: 991

Package: php5-cgi
Pin: version 5.2.10*
Pin-Priority: 991

Package: php5-cli
Pin: version 5.2.10*
Pin-Priority: 991

Package: php5-common
Pin: version 5.2.10*
Pin-Priority: 991

Package: php5-curl
Pin: version 5.2.10*
Pin-Priority: 991

Package: php5-dbg
Pin: version 5.2.10*
Pin-Priority: 991

Package: php5-dev
Pin: version 5.2.10*
Pin-Priority: 991

Package: php5-gd
Pin: version 5.2.10*
Pin-Priority: 991

Package: php5-gmp
Pin: version 5.2.10*
Pin-Priority: 991

Package: php5-ldap
Pin: version 5.2.10*
Pin-Priority: 991

Package: php5-mhash
Pin: version 5.2.10*
Pin-Priority: 991

Package: php5-mysql
Pin: version 5.2.10*
Pin-Priority: 991

Package: php5-odbc
Pin: version 5.2.10*
Pin-Priority: 991

Package: php5-pgsql
Pin: version 5.2.10*
Pin-Priority: 991

Package: php5-pspell
Pin: version 5.2.10*
Pin-Priority: 991

Package: php5-recode
Pin: version 5.2.10*
Pin-Priority: 991

Package: php5-snmp
Pin: version 5.2.10*
Pin-Priority: 991

Package: php5-sqlite
Pin: version 5.2.10*
Pin-Priority: 991

Package: php5-sybase
Pin: version 5.2.10*
Pin-Priority: 991

Package: php5-tidy
Pin: version 5.2.10*
Pin-Priority: 991

Package: php5-xmlrpc
Pin: version 5.2.10*
Pin-Priority: 991

Package: php5-xsl
Pin: version 5.2.10*
Pin-Priority: 991

Package: php5-mcrypt
Pin: version 5.2.6*
Pin-Priority: 991

Package: php5-imap
Pin: version 5.2.6*
Pin-Priority: 991

Now, we’ll be using PHP 5.2 compiled for Lucid Lynx (courtesy of Ralph Janke). Add Ralphs repository:

add-apt-repository ppa:txwikinger/php5.2

Update apt:

apt-get update

Install PHP 5.2:

apt-get install php5

Install MySQL if needed:

apt-get install mysql-server mysql-client

There. You should have a LAMP server up and running with PHP 5.2, without having to worry about Karmics repositories being gone, or an accidental upgrade to 5.3.

Create a bootable USB installer for Windows 7/Server 2008

This short guide will show you how to create a bootable USB installer containing Windows 7 or Windows Server 2008 R2 (It may work with more Windows versions, I just haven’t tried anything besides these two).

First, Make sure you have a mounted ISO or an inserted DVD containing the operating system you plan to use. Also, you’ll need a USB memory key.. 4GB should be adequate.

Open an administrative command prompt and type the following:

diskpart
list disk

Before proceeding, make sure you know which disk # points to your USB drive. You don’t want to go cleaning your system drive by mistake.

select disk 1
clean
create partition primary
select partition 1
active
format fs=fat32 quick
assign
exit

Now we need to make the USB drive bootable. E: in my example is the DVD drive containing my Windows install DVD, and Q: the USB drive.

e:
cd boot
bootsect /nt60 q:

Copy the contents of the Windows DVD to the root of your USB drive and you should be all set!

Enable 802.3ad LACP on HP ProCurve switches

Here’s how to enable dynamic LACP on your ProCurve switch. Note that I’ve only done this on a ProCurve 2510G-48 (J9280A), but the configuration should be similar on most managed ProCurve switches.

In my setup, the ports aren’t in sequence. You may use – to chain ports together (1-10 etc)

Log into your switch with Telnet, and enter the following commands (this is for configuring a 2 port LACP trunk using ports 17 and 20):

2510> config
2510(config)# int 17 disable
2510(config)# int 20 disable
2510(config)# int 17 lacp passive
2510(config)# int 20 lacp passive
2510(config)# int 17 enable
2510(config)# int 20 enable

The status of the ports can be checked with “show lacp”, and will output something like the following if you have a properly configured endpoint device connected:

As far as I know, there is no way to enable LACP through the web-UI.