Toilet Snorkel

why would you do that?

Posted in Uncategorized | Tagged | 1 Comment

Nagios Error: Could not read object configuration data!

Some times ago i was experiencing a problem with nagios3 in Debian.

After installing nagios, browsing the nagios web page, i got the following error:

Could not read object configuration data!

Nagios log messages didn’t reported any useful information. So googling around and making some test i discovered that was a permission problem of the nagios cache files. So i solved my problem changing the group of the /var/cache/nagios3/ directory as follow:

chgrp -R apache /var/cache/nagios3/

Previously was set to www-data .

Enjoy!

Posted in linux | Tagged , | 1 Comment

OpenKM 5.x with MySQL

Install OpenKM 

Install openkm in /opt directory

Database Setup

DROP DATABASE IF EXISTS okm_repo; DROP DATABASE IF EXISTS okm_app;
CREATE DATABASE okm_repo DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_bin;
CREATE DATABASE okm_app DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_bin;
CREATE USER 'openkm'@'localhost' IDENTIFIED BY 'h3ll0$';
GRANT ALL ON okm_repo.* TO 'openkm'@'localhost' WITH GRANT OPTION;
GRANT ALL ON okm_app.* TO 'openkm'@'localhost' WITH GRANT OPTION;

Configure Datasource

Edit the file $JBOSS_HOME/server/default/deploy/openkm-ds.xml as follow:
Continue reading

Posted in linux | Tagged , , | Leave a comment

Error installing mongrel: `require’: no such file to load — mkmf (LoadError)

lorenzo@ubuntu:~$ sudo gem1.8 install daemons gem_plugin mongrel mongrel_cluster --include-dependencies
INFO: `gem install -y` is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
Successfully installed daemons-1.1.4
Successfully installed gem_plugin-0.2.3
Building native extensions. This could take a while...
ERROR: Error installing mongrel:
ERROR: Failed to build gem native extension.

Continue reading

Posted in linux, tips | Tagged , | Leave a comment

Script to create fancy ~/.bash_profile and ~/.vimrc for solaris

How many times creating a new solaris user, you have to set environment variables (PATH, EDITOR, PAGER, PS1, etc)? How many times you have to create a .vimrc file to make vim work in a human manner?

So i wrote an utility script which create for you these two files with some convenient functions. You can download the script Here!

To run the script just give the right permissions and type ./solaris_home.sh

That’s all! If you already have yours .bash_profile and .vimrc, then they’ll backed up with the extention .bak

Try it now and I hope that you’ll be happy!

Posted in shell, solaris | Tagged , | Leave a comment

Create DVD iso image with genisoimage (aka mkisofs)

To create a DVD iso image from a directory containing the DVD files you need:

  1. Verify that the directory structure is correct (the directories VIDEO_TS and AUDIO_TS must exists in the DVD root directory)
  2. Make the iso image with genisoimage (or mkisofs) as follows:
genisoimage -dvd-video -udf -V "Volume Name" -o  volume.iso "DVD_Dir"
Posted in linux, tips | Tagged | Leave a comment

Skip Windows 7 Enterprise Edition Activation Update

If you want to keep your windows 7 Enterprise Edition (for example an unoriginal copy…) updated without activate it, you need to skip the Windows 7 Activation update (KB971033).

;)

Posted in Uncategorized | Leave a comment

VMware Workstation unable to build kernel module on Fedora 14

  1. Install the required dependencies:

    yum install kernel-devel kernel-headers gcc

  2. Install the required dependencies:

    cd /tmp/
    wget http://sputnick-area.net/scripts/vmware7.1.1-patch-kernel-2.6.35.bash
    chmod +x vmware7.1.1-patch-kernel-2.6.35.bash
    ./vmware7.1.1-patch-kernel-2.6.35.bash

  3. Compile all the vmware modules:

    vmware-modconfig –console –install-all

  4. Done! Now you can successfully run vmware :)
Posted in howto, linux | Tagged , | 17 Comments

Fedora 14 NVIDIA proprietary driver

  1. Get the rpmfusion release:

    su -c “rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm”

  2. Update your packages:

    yum update

  3. 64bit users need to install the following rpms:

    yum install kmod-nvidia xorg-x11-drv-nvidia-libs.i686 xorg-x11-drv-nvidia-libs.x86_64

    32bit users need to install the following rpms instead:

    yum install kmod-nvidia xorg-x11-drv-nvidia-libs.i686

  4. Append the following string to your kernel line in /etc/grub.conf:

    rdblacklist=nouveau vga=0×318

    If it doesn’t work try with:

    nouveau.modeset=0

  5. Reboot and enjoy!!
Posted in howto, linux | Tagged , | Leave a comment

Use SSH as a proxy server

To use SSH as a proxy server use the following command:

ssh -D 8080 -f -C -q -N lorenzo@www.myserver.com

You will then be prompted for your password, which you should enter. That’s it! Your ssh tunnel is in place!

A quick synopsis of what those switches mean is as follows:

-D 8080 : This basically does a lot of dynamic stuff and makes it behave as a SOCKS server. Of course you could use any non privileged port here (above 1023).

-f : This will fork the process into the background after you type your password.

-C : Turns on compression.

-q : Quiet mode. Since this is just a tunnel we can make it quiet.

-N : Tells it no commands will be sent. (the -f will complain if we don’t specify this).

Posted in howto, networking, tips | Tagged , | Leave a comment