Posts Tagged ‘ubuntu’

Upgrading Zimbra Server from Ubuntu 8.04 to 10.04

This last week Zimbra released its new version 6.0.8 which is the first version that supports Ubuntu 10.04 (still in beta, but package was released). Being a sucker for upgrades, I decided to give it a try tonight and upgrade my Zimbra server. The upgrade actually went pretty smooth, despite the fact that I’ve had bad luck with Ubuntu distro upgrades in the past.

To start, I had a server at Zimbra 6.0.7 on Ubuntu 8.04 (64-bit). I upgraded Ubuntu to 10.04 first and then Zimbra to 6.0.8.

The upgrade for Ubuntu is pretty straightforward and is outlined in their docs. Basically, make sure the install manager is up-to-date:
sudo apt-get install update-manager-core

Then, make sure Prompt is set to “lts” in /etc/update-manager/release-upgrades. (These two steps weren’t necessary for me and I didn’t do that on purpose, so it’s likely they are ok ‘out of the box’)

Then, perform the upgrade:
sudo do-release-upgrade

I did mine from an SSH session (gives a warning and starts another SSH server on an alternate port, but I didn’t have to worry about that). When the upgrader prompted, I took the defaults except for /etc/pam.d/common-*.

Once your new Ubuntu 10.04 server is up and running, we have to grab an additional dependency:
sudo apt-get install libperl5.10

I then just ran the install like normal, but skipped the integrity checks. The first time I let them run and hit this error:

perl: symbol lookup error: /opt/zimbra/zimbramon/lib/x86_64-linux-gnu-thread-multi/auto/Data/UUID/UUID.so: undefined symbol: Perl_Tstack_sp_ptr

The second time I just skipped the integrity check and everything went as normal.

I lost a few settings, the same as the 6.0.7 upgrade :( . I wrote about them last time here. I also lost my zimbraMailMode setting again, same thing as the upgrade to 6.0.7.

After the settings were back, I noticed mail wouldn’t send out properly. /var/log/zimbra.log complained of the antivirus scanner being unavailable. A run of ‘zmcontrol status’ showed that clamd wasn’t running. When I tried to start the antivirus, it failed on starting clamd, showing this in /opt/zimbra/log/clamd.log:

/opt/zimbra/clamav/sbin/clamd: error while loading shared libraries: libltdl.so.7: cannot open shared object file: No such file or directory

Turns out it’s easy enough to fix:
apt-get install libltdl7

A restart of zmantivirusctl and all was good. (update: submitted bug for this)

Tags: ,
Filed under How-Tos / Tips : Comments (0) : Aug 28th, 2010

Enabling VNC to Ubuntu Desktop via SSH

Over time my desktop has become a box that just sits in the corner that I boot up using wakeonlan and SSH to when needed. Tonight I wanted to jump onto the console to test a few things, but really didn’t want to go through the trouble of hooking up the monitor that now is connected to my laptop (waay too much work, I know :) ). Anyway, it turns out enabling VNC isn’t too bad over SSH.

First, enable it for your user:
gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled true

If you’re like me, you probably enabled it at one point, set the password, disabled it and forgot what you set the password. To set it, we use the base64 utility to convert it and set it using gconftool:
gconftool-2 --type string --set /desktop/gnome/remote_access/vnc_password $(echo -n 'dontstealmysupersecretpassword!'| base64)

I then just connected with my VNC client (I used Chicken of the VNC from my MacBook) by connecting to the IP of my desktop on display 0 and the password I had set.

Troubleshooting
If you’re like me even more, you probably ran into trouble getting connected. If you’re having troubles getting connected, you can see additional settings for the GNOME remote_access using the gconftool-2 utility:
gconftool-2 -a /desktop/gnome/remote_access

There are a few key settings including “local_only”, “enabled” (of course), “prompt_enabled” (makes VNC not prompt on the desktop to allow connection – something that would obviously be a problem if you didn’t have access to the console to begin with!), and “use_alternative_port”.

Tags:
Filed under How-Tos / Tips : Comments (0) : May 8th, 2010

Install Killall on Ubuntu JeOS

I am playing with a new install of Ubuntu 10.04 in a minimum virtual machine and noticed there was no killall utility installed. In case you run into this, don’t fret:
sudo apt-get install psmisc

The package to install from wasn’t overly obvious, but not difficult to install :)

Tags:
Filed under How-Tos / Tips : Comments (0) : May 6th, 2010

Firefox Java Plugin on Ubuntu 10.04

For anyone playing with the new Ubuntu 10.04, you may be as surprised as I was to find that the sun-java6 packages are no longer included in the default repositories. The proprietary packages from Sun Oracle have been swapped out for the open source openjdk implementation. After stumbling around in the dark for a bit, I managed to figure out that the installation is quite simple:

sudo apt-get install openjdk-6-jre icedtea6-plugin

After installation, be sure to restart Firefox and double-check that the plugin has been installed by going to “about:plugins” in the address bar. You can search for “java” to make sure the plugin exists.

Just like my previous post about Flash in Chrome on Ubuntu 10.04, it’s a bit annoying, but not too bad to install.

Tags: , ,
Filed under How-Tos / Tips : Comments (5) : Apr 7th, 2010

Enabling Flash in Chrome on Ubuntu 10.04

Hello again there, world. I’ve been away from my computer for a little while now as I relocated to Silicon Valley, but I got a chance to play around with one of the Alpha’s of Ubuntu 10.04 this weekend. The new version has some vast improvements in the looks over the last one as well as now it includes Google Chrome in the default repository. When I wanted to setup Flash for Chrome, I followed a handy how-to, but this one didn’t account for the fact that Chrome was installed via the regular repositories and wasn’t installed to /opt.

To install, I simply had to follow the step-by-step with a few modifications:

  1. Install Chrome and Flash (with the Ubuntu Software Center or with apt-get
  2. sudo apt-get install chromium-browser flashplugin-nonfree

  3. Add the Flash plugin to the Chrome plugins directory
  4. sudo cp /usr/lib/flashplugin-installer/libflashplayer.so /usr/lib/chromium-browser/plugins/

  5. Restart Chrome

That’s it. While a bit annoying that one has to install Flash for Chrome this way (especially considering YouTube – another Google product – relies on Flash), but it’s not too painful.

If you still run into problems, you can double-check the location of the file (using locate libflashplayer.so) needed and the location where Chrome is installed (using whereis chromium-browser).

If you’ve just installed Ubuntu 10.04 and came across this, you may also want to install the browser Java plugin as well.

Tags: , , ,
Filed under How-Tos / Tips : Comments (11) : Mar 15th, 2010