Primal Cortex’s Weblog

Amnesia sets in…

DavMail crashes at startup

Posted by primalcortex on January 5, 2012

DavMail (http://davmail.sourceforge.net/) is a great program that allows access to an Exchange Server through it’s web interface (OWA, EWS) and presenting interface based on the standard LDAP, caldav, IMAP and SMTP protocols.

Most people complains that DavMail crashes at startup, and get stuck in there.
The fact is that DavMail crashes because of log4j missing log directory that is needed fo writing the program logs…

Solution:
Start DavMail but providing a name for a configuration file: ./davmail.sh myconfig
Let it crash…
Edit the myconfig file and look for the entry named davmail.logFilePath=
Make sure that a path is defined: davmail.logFilePath=/tmp
Make sure that there isn’t a trailing slash at the end… /tmp/ is invalid
Restart davmail: ./davmail.sh myconfig

Enjoy!

Posted in Uncategorized | Tagged: , , | Leave a Comment »

Zen LoadBalancer on ESXi – Installing VmWare tools

Posted by primalcortex on December 23, 2011

Zen LoadBalancer: http://www.zenloadbalancer.com is a great appliance for deploying networking load balancing and high availability for server farms. It’s has a good web interface for defining and monitoring them, and it’s quick to deploy on a VMWare infrastructure, if built from the ISO file into a virtual appliance. This virtual appliance is based on Debian Squeeze and needs very low resources (512KB RAM).

For deploying on ESXi infra-structure there is the need to install the VMWare tools provided by ESXi, and these are steps to do so:

1) On Vsphere/VMware administration console, after deploying and booting up the appliance, select the usual Install Vmware tools.
Nothing should happen…
2) Access by SSH to the appliance, or use the console.
3) Make sure that you can use the apt-get command: apt-get update
4) If not, check your DNS settings, default gateway, and/or proxy/firewall.
5) if you’re behind a proxy, you can define the proxy by using the following commands:

export http_proxy=http://proxy_server:port
export https_proxy=http//proxy_server:port

6) if your proxy requires authentication, use the syntax: http://username:password@proxy_server:port
Check: http://blog.mypapit.net/2006/02/how-to-use-apt-get-behind-proxy-server-ubuntudebian.html for more info

7) Mount the virtual ESXi CD-ROM with the following command: mount /dev/cdrom /media/cdrom

8) Copy the tar file of VMware tools from the CDROM to the root home directory:
in my case: cp /media/cdrom/VMwareTools-8.3.12-493255.tar.gz ~

9) Expand the tools:
cd ~
tar xvzf VMwareTools-8.3.12-493255.tar.gz

10) Update the system:
apt-get update
apt-get upgrade

11) Install the basic tools for the VMWare tools to compile:
apt-get install gcc
apt-get install make

12) Find out the kernel version: uname -a
in my case:
root@zenlbapp:~# uname -a
Linux zenlbapp 2.6.32-5-686 #1 SMP Mon Oct 3 04:15:24 UTC 2011 i686 GNU/Linux

Install the corresponding Kernel headers:
apt-get install linux-headers-2.6.32-5-686

13) We are ready: goto the base VMware tools directory, in my case:

cd ~/vmware-tools-distrib/

14) Compile and install the tools:

./vmware-install.pl

15) Reboot.

Because the Zen LoadBalancer does not have X11 installed, the only way the manipulate the vmware tools is through the vmware-toolbox-cmd command.

 

Posted in Uncategorized | Tagged: , , , , , | 1 Comment »

Firefox Open Download Directory Action on KDE/KUbuntu

Posted by primalcortex on December 16, 2011

I had a bit of a strange issue with FireFox and Kde 4.7 on Kubuntu 11.X.

After downloading a file with Firefox, on the Dowloads Firefox windows, right clicking the downloaded file for the Open Download Directory action, instead of opening the Dolphin File Manager, it opened the KdeSVN application… Very, very annoying.

To solve this you need to reconfigure KDE, probably due to the fact that KDESvn was installed:

1) Goto System Settings
2) Select Default Applications
3) Select FileManagers
4) Deselect and select Dolphin
5) Apply
6) Restart Firefox

It should work now.

Posted in Uncategorized | Tagged: , , , , , | 1 Comment »

How to check Apache Httpd version

Posted by primalcortex on November 22, 2011

This is a quick post regarding the how to check the Apache httpd version.

The simple way is just to run the following command: httpd -v

But on Linux, an error might crop up, namely: ./httpd: error while loading shared libraries: libexpat.so.0: cannot open shared object file: No such file or directory

So solve this issue, just run first the following command on the sbin httpd instalation directory:  source envvars and then the httpd -v command should work ok.

 

Posted in All about all | Leave a Comment »

[K]Ubuntu on the Asus N73SV video issues – i915, Nouveau, Nvidia and Bumblebee

Posted by primalcortex on August 10, 2011

Well, after a month on using this Asus Laptop N73SV there are some issues with it.

The first one, and I’m not sure if it’s a driver issue or just a plain hardware issue is that the external connected monitor was working fine, and then started to have a blue tint and now it has a green tint. So first I wonder if the VGA cable or the monitor itself was bad, but replacing it by another same monitor brand and model  and different VGA cable, it has shown the same issues. So Ok, it’s a laptop issue that some HP owners are also having… Just search for HP an video tint… Removing the battery and power, waiting some time, and booting up with the external monitor, even the ASUS logo is tinted… So it’s not a K/Ubuntu issue. Solution? None so far. I have to try with a different monitor/and cable namely HDMI.

The second part of this post related with the video issues that I have is due to the fact that this N73SV has dual cards: an Intel i915 and NVidia GT540M. While trying to debug the above issue, I ended up with no desktop effects on KDE KDM by messing around with the desktop effects options… Whatever I did to enable them I was also greeted with the message that Effects couldn’t be enabled. So issue was related to the fact that the GLX libraries couldn’t be found/loaded… When running glxgears this error appear:

name of display: :0.0
Xlib: extension “GLX” missing on display “:0.0″.
Xlib: extension “GLX” missing on display “:0.0″.

The solution:
I’ve removed bumblebee and nvidia, which cleared the issue:

apt-get purge bumblebee
sudo apt-get purge nvidia*
apt-get install –reinstall xserver-xorg-video-intel libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
dpkg-reconfigure xserver-xorg
reboot

And after this I could enable  again Desktop effects but I was using the default Intel driver and the Nouveau driver.

Finally, I’ve installed again MrMee/Bumblebee, which by itself installed again the Nvidia drivers, and after that I could only boot into Recovery Mode, because a normal start wouldn’t give me the Kubuntu boot logo and at final boot stage I just had a black screen with an hanged computer…

This issue is due to the fact that the nouveau driver is/was enabled, and I had to disable it. I found no complete instructions for doing that, but these do work:

The nouveau driver needs to be disabled, by editing two files:

/etc/modprobe.d/blacklist.conf

Add at the end of this file the following line: blacklist nouveau

And then, the other file to edit it depends of your grub version. For Grub2 , there is the need to add the following to the file /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash pci=nomsi nouveau.blacklist=1

And then run the command: update-grub2

On Grub1, just edit the menu.lst file and add the nouveau.blacklist=1 to yur booting kernel options, keeping in mind that after a kernel upgrade you need to blacklist the module again.

Booting up now with the Intel Driver and the Nvidia driver installed by Bumblebee should work.

Posted in All about all, KDE, Linux | Tagged: , , , , , | 1 Comment »

Portuguese Steam Engine train at the Douro

Posted by primalcortex on July 28, 2011

One of my favourite shows at the Travel Channel is the one named “The Great Scenic Railways Journeys”. North America has a lot of private and volunteer steam engines trains that are a tourist attraction, and at the same time, keep it’s pre-industrial and industrial history. And this on two countries that have at most 250 years of “modern” history.

Portugal despite it’s huge 1000 year history and contribution to the global world history is famous for  forgetting and letting rot it’s assets…

So it’s good to see, again this year, an old steam engine train on one of the more beautiful rail-roads in Europe and across the OPorto wine region is back in action:

If your in Oporto area this year, don’t miss it: Every Saturday until the 1st of October.

Posted in 1, All about all, Geral | Tagged: , | Leave a Comment »

Kubuntu, Bumblebee upgrade and NVidia

Posted by primalcortex on July 28, 2011

Yesterday, I’ve upgraded bumblebee on my Asus N73SV, which by itself downloaded and installed a new version of the proprietary Nvidia driver.

During the upgrade process, I was asked to install the maintainer version or my version… and I kept my version.

So after rebooting, I had no Kubuntu splash screen, just a black screen and after a while it just computer just hang with a dead keyboard. So unbootable and only rebootable by pressing the power button several seconds.

After some fiddling around I found out that booting into safe mode, getting into a root shell and starting KDM, everything seemed to work fine.

To keep a long story short, at boot time the X server loaded the Nouveau driver, and it was failing (looping) with some strange IRQ error. So the computer hanged.

The solution: Goto System -> Additional Drivers and enable the NVidia driver.

Reboot, and everything is Ok: Splash screen and Kdm.

A good solution is probably to purge completely the Nouveau driver if you’re really want to use the Nvidia driver. Instructions here: https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia

I reality this is the same issue with the ATI drivers. After upgrading the drivers it is, at least in my case, to explicitly enable them.

Posted in All about all, KDE, Linux | Tagged: , , | Leave a Comment »

[K]Ubuntu on Asus N73SV

Posted by primalcortex on July 21, 2011

So my employer replaced my old work laptop HP nx9420 by a new ASUS N73SV, more precisely N73SV-V1G-TZ393V, which by the way is  a great name (not…). The Asus N73 is the bigger screen brother of the Asus N53.

My old HP was able to do any work I could ask for, but it’s limitations on handling virtual machines where showing up, delaying work significantly. This Asus is a completly different beast. It’s fast, and has 3 SODIMM slots, so right now I have it with 12GB of RAM (8GB are two 4GB of Kingston memory plus the original 4GB of RAM). To open up it, you must remove the keyboard (small tabs near the ESC key, F5, F9, PRTSC and End at the top)  and one SODIMM slot is available right away (on th Q2630 CPU’s). Then after removing some screws (check the manual), the disk bay and remaining memory slot is also available at the bottom by removing the bottom cover.

The first thing to do with it was of course to nuke Windows 7, and after much indecision between KUbuntu and Arch, I installed Kubuntu 11.04 64 bit edition. After some fiddling with partitioning (I just left the original recovery partition), everything installed smoothly. Going to KUbuntu was more for getting a full working computer as fast as I can, without too much fiddling, but I left a partition to try out Arch on my spare time.

So what works out of the box? Well almost everything. Let’s talk about what doesn’t work.

First I’ve followed these instructions on the Ubuntu Help Pages for the N53SV and installed the acpi4asus_dkms, blueetooth driver and Bumblebee for the dual card support.

Still USB3 with USB2 devices doesn’t work, and hibernation/suspension doesn’t work. Regarding USB3 it’s a confirmed bug, so in the near future a solution will be available. Regarding hibernation/suspension I think it’s related to the NVidia card driver, but not sure because the computer does shutdown, but comes up to a black screen.

Also this specific version of the N73SV ha a DVB-T card with the Philips chipset SAA7231. It doesn’t work and there is no driver available because the manufacturer doesn’t won’t to support Linux. There is a two year old drive, but I think I doesn’t work with the recent kernels.

At the end I have a full accelerated desktop, dual monitor support, Wifi, bluetooth, networking, webcam, USB2, TurboBoost and the left media keys working fine.

Moving from the old computer, was just a matter of copying my home directory and following these instructions to re-install all software.

The good:

  • Screen size and quality: Superb
  • Fast, fast, fast
  • Big Hard disk (640GB). Available slot for a second hardisk/SSD
  • Allows a lot of memory: 12GB
  • ExpressGate

The bad:

  • Fiddly keyboard, getting time to get used to.
  • Keyboard sunken a bit when pressing keys.
  • No ExpressCard Slot
  • No eSata port
  • Location of some USB ports at the back is not very practical.

Posted in KDE, Linux | Tagged: , , , | Leave a Comment »

Arch Linux test drive: Thoughts from a Kubuntu user

Posted by primalcortex on June 24, 2011

My old work laptop computer is about to be replaced by my employer by a new ASUS N73SV.

First of all this computer has what is called the Optimus Graphics Technology, that isn’t so Optimus regarding Linux… This technology is made of two video cards, one Intel embebed on the chipset and one discrete Nvidia chipset. As far as I know there is no Linux driver for this, and Nvidia won’t be releasing in a foreseeable future Linux support. So the Intel card will be used (I’m not using this for games) and the Nvidia card will be disabled. There are solutions for disabling completely the card and or use some applications on the Intel card and others on the Nvidia card, I’ll have to check. But disabling the Nvidia card improves the battery life, so…

So, off course, the first thing to do this computer is to nuke the Windows 7 install and install a Linux OS…

And there’s the catch: Kubuntu 11.04 or the Arch Linux Rolling distro?

Both have great documentation and great communities, but both could have some “clean up” on it. For example, on the Arch Beginner Install, some things aren’t completely obvious (Well at least for me). This is due to the fact that the documentation is in fact complete, it shows all the possibilities, but it should only show first the most obvious/common/standard way, and then link out the complete documentation regarding the subject. This way documentation could be more slim and straight forward.

Anyway, I was able to install and get an Arch system running without any issues with KDE Desktop but there where issues, and those are not Arch Linux fault. These issues are related to it’s mirrors and the software and sync status of them.

So being on PT, I’ve enabled all PT mirrors, and ended up with KDE 4.4.5 installing and running… Well the latest release of KDE is 4.6.3, so what happened here??? Browsing the mirrors I’ve found out that some where not up to date, so I’ve disabled them, and sure, pacman now shows that KDE 4.6.3 is available. So I’ve disabled the out of date mirrors, and while downloading I had failures regarding mplayer, and x264 packages that wouldn’t allow the upgrade to proceed.

Humm, ok, so I’ve enabled the core repository, and now everything is downloaded fine, but pacman refuses to upgrade due to some packages are corrupted.

So, not of the best starts…

But still I’ll give Arch Linux a try, because mainly on Kubuntu to have the latest software version, namely Libreoffice and even Calligra for test driving means to add backports and probably broking your next mandatory upgrade.

So, after reading the Arch Linux Wiki, I’ve found out that there is a mirror status page that shows what mirrors are available and up to date. I’ve deleted my obsolete mirrors, and enabled only the “live” ones (one in my case and did a full upgrade, and after an hour, more or less I had KDE 4.6 SC installed and running.

So far what I’ve done:

- Installed the base Arch system, making sure that the mirror list was up to date.

- Configured a new no priviledge user, and set up sudo

- Installed Xorg and KDE

- Configured the dbus and kdm daemons to start automatically

Then, I want to install the KDE Kpackagekit, but this was only available on AUR, not on the mainstream repositories. I’ve followed the instructions on http://archlinux.fr/yaourt-en#get_it and installed yaourt package manager. From here I’ve installed Kpackagekit, and with it I was able to install through KDE the rest of packages that I wanted, namely  the kdeplasma network widgets.

 

Posted in All about all, Geral, Linux | Tagged: , | 2 Comments »

Kubuntu 10.10 upgrade to Kubuntu 11.04

Posted by primalcortex on June 24, 2011

After a two months of waiting that the dust settled on the release of the new 11.04 Kubuntu version, I’ve finally upgraded my home computer.

And now, for the first time, I’m amazed that it went flawless… Even with some backports enabled, namely Kubuntu backports, the upgrade went without any issue what so ever.

After reboot, and because I’m using the proprietary fglrx driver, I ended up on the console, no graphic environment, but enabling the X-Team PPA, doing an update and enabling the fglrx driver, I had again all things working fine.

So this time there are no tricks on this upgrade, and my I’ve able to upgrade since 8.10 till now successfully. All I have left to upgrade is the legacy GRUB 1 bootloader.

Now, my work laptop HP Compaq nx9420 is about be retired and replaced by a new ASUS N73SV laptop. On the HP I also was able to successfully upgrade to Kubuntu 10.10, but on the new laptop I’m thinking on a rolling release distro, Arch Linux to be exact. Here are my thoughts why: http://primalcortex.wordpress.com/2011/06/24/arch-linux-tes…r-from-kubuntu/

Posted in KDE, Linux | Tagged: , | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.