Monthly Archives: October 2011

Disable IPv6 on Ubuntu Lucid Lynx (10.04.3 LTS)

I’m getting strange logging errors tracked down to IPv6 being enabled by default in Lucid.
The following commands will verify and disable IPv6.
The following command will check if IPv6 is enabled or disabled (0 = enabled, 1 = disabled… what.. not logical?):

cat /proc/sys/net/ipv6/conf/all/disable_ipv6

The removal of IPv6 involves startup scripts in /etc/sysctl.conf. You can edit this by running the following commands in the terminal (su is implied):

echo "#disable ipv6" | sudo tee -a /etc/sysctl.conf
echo "net.ipv6.conf.all.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf
echo "net.ipv6.conf.default.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf
echo "net.ipv6.conf.lo.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf

Reboot and verify that the changes went through. with the first command in the post.

Advertisements

Reverting from PHP 5.3.2 to 5.2 on Ubuntu Lucid Lynx (10.04.3 LTS)

I was tasked with transferring a CRM system from 2004 from our previous service provider to one of our own servers. Instead of installing old versions of PHP I decided to give PHP5 a try. It worked, but not as well as I had hoped. There were a lot of dependencies on deprecated functions (ereg_replace anyone?).

So.. what were my options? Install PHP4 or try a downgrade to 5.2. Most of the changes made between 5.2 and 5.3 seemed to be causing my troubles. Here’s a quick guide to downgrading PHP from 5.3 to 5.2 (all commands imply you are root or su):

php_installed=`dpkg -l | grep php | awk '{print $2}' | tr "\n" " "`

Remove the old PHP package:

sudo aptitude purge $php_installed

Use the karmic source for PHP instead:

echo -e "Package: php5\nPin: release a=karmic\nPin-Priority: 991\n" | sudo tee /etc/apt/preferences.d/php > /dev/null
apt-cache search php5- | grep php5- | awk '{print "Package:", $1,"\nPin: release a=karmic\nPin-Priority: 991\n"}' | sudo tee -a /etc/apt/preferences.d/php > /dev/null
apt-cache search -n libapache2-mod-php5 | awk '{print "Package:", $1,"\nPin: release a=karmic\nPin-Priority: 991\n"}' | sudo tee -a /etc/apt/preferences.d/php > /dev/null
echo -e "Package: php-pear\nPin: release a=karmic\nPin-Priority: 991\n" | sudo tee -a /etc/apt/preferences.d/php > /dev/null
egrep '(main restricted|universe|multiverse)' /etc/apt/sources.list|grep -v "#" | sed s/`lsb_release -s -c`/karmic/g | sudo tee /etc/apt/sources.list.d/karmic.list > /dev/null

Update your apt database:

sudo apt-get update

Install PHP again:

sudo apt-get install $php_installed23
sudo aptitude hold `dpkg -l | grep php5 | awk '{print $2}' | tr "\n" " "`

You may use the following commands to install additional modules if needed:

For fcgi:

sudo aptitude install -t karmic php5-cli php5-cgi

For apache module:

sudo apt-get install -t karmic libapache2-mod-php5

HTC Radar and WP7: Initial thoughts

While network administration and user support are my primary roles at work, I also have the fun perk of being able to test new products that may or may not be introduced to our corporate environment..

The latest product is the HTC Radar with Windows Phone 7 Mango. As a long time iPhone user, it’s hard not to compare but I’m trying to be open minded.

The phone itself is manufactured using a unibody design, which I like. The phone feels solid and sturdy, albeit slightly heavy compared to the plastic Android phones I’m used to evaluating.

The battery is not user-serviceable which is slightly surprising to me, but makes sense considering the unibody design.. There’s a plastic cover at the bottom that hides the SIM card slot. There’s not much else. The 8GB storage (6,5 available) can’t be upgraded as there’s no slot for memory card expansions. I don’t really mind, but 16GB should be a minimum in a smartphone today. I synced parts of my iTunes library to the phone, and ate up about 5GB in no time at all.
Oh.. kudos for making the Windows Phone connector app able to read the iTunes library. Saves me from reorganizing.

There’s not much else to say about the phone. The 1GHz single core CPU makes it feel snappy enough for day to day use. I haven’t evaluated gaming performance since that’s not what it’s supposed to be used for in our environment anyway.
The screen is nice.. a 3,8 “, S-LCD which really pops. The resolution is a comfortable¬†480 pixel x 800 pixel.

The rest of the phone hardware is entirely up to Microsoft’s hardware requirements and wont leave you disappointed.

What about the OS? I must say, I quite like it. It’s not the same as the iPhone or the Android. Some parts feel less thought through but on the other hand, it’s probably just due to me being used to things being “just so”.

The OS is snappy, with smooth animations and a (for the most part) intuitive menu system.
Exchange integration couldn’t possibly be better (It’s Outlook in your phone after all), and the Office suite is there as well. Documents open and save as .docx and any formatting done on a PC will be left untouched even after edits being made on the phone.

The only gripe is the relatively small assortment of apps available in the Marketplace. Again, this isn’t a dealbreaker considering what the phones will be used for.

Aside from that, it’s a nice phone.. there are things that annoy me, but for the most part it’s a pretty slick experience.

Annoyances (discovered so far):

  • No quick way to change screen brightness
  • No way to prevent screen rotation
  • No VPN support
  • Can’t select which contacts to exclude from your phone book without actually deleting them from Windows Live Messenger as well.
  • The “home” screen can get really cluttered if you add lots of tiles.. give me a few more please?
  • No section for audio books in the Zune player. It won’t remember what I played or where I was in it, and they are automatically included in “shuffle all”.

Citrix Reciever sidebyside error

I had some issues with a user being disconnected from ICA sessions, stating that his internet connection is down. I called BS and had a look in the log book.

Vanadium: TW Protocol error: Data rejected
Cmd = CMD_TW2_TEXTOUT
The data containing the error is below (1011 bytes)

Wow.. now that’s a good error description. Ain’t it?

Anyway. Turns out Sidebyside errors are commonly fixed by installing the Microsoft Visual C++ 2005 runtime (x86).. I installed the x64 one as well just to be on the safe side.

Download:
Microsoft Visual C++ 2005 Redistributable Package (x86)
Microsoft Visual C++ 2005 Redistributable Package (x64)

You have mail in /var/mail/root

Sometimes you just want a quick emptying of this.. I know I do at least..
Here’s how:

> /var/spool/mail/root

Don’t leave the “>” out.. it’s part of the command, not a representation of a prompt.

A continuation of Opsview stuff is in the works but has been slightly postponed due to high work load..

A sad day


Thank you for everything Steve. I haven’t been an Apple fan for long, but I got there eventually.
I love my iPhone 3GS (soon to be an iPhone 4S), my iPad, my iPad 2, my 2007 Mac Mini, and my 2011 MacBook Pro.
Listening to your keynote presentations was always interesting and inspiring. I’ve never seen anyone present products and innovations with such passion.
My thoughts go out to your family.

Requiescat in pace Steve Jobs