Tuesday, July 29, 2008

The VMware VmPerl Scripting API was not installed

Error

# vmware-config.pl
The VMware VmPerl Scripting API was not installed.  Errors encountered during
compilation and installation of the module can be found here:
/tmp/vmware-config0

You will not be able to use the “vmware-cmd” program.

Errors can be found in the log file:
‘/tmp/vmware-config0/control-only/make.log’

Solution
# apt-get update
# apt-get install libssl-dev

Following packages are now new installed on the system:
libc6-dev libssl-dev linux-kernel-headers zlib1g-dev

# vmware-config.pl

After vmware is now properly configured, you can savely remove those packages again (but - let it be).

Source
http://www.linuxquestions.org/questions/linux-software-2/vmware-server-install-error-the-vmware-vmperl-scripting-api-was-not-installed.-476129/

Posted by schmidi2 at 14:24:36 | Permalink | No Comments »

Monday, July 28, 2008

phpmyadmin: timeout occours when creating a backup of a mysql database

If PhpMyAdmin throws a timeout exception when you would want to make a mysql-dump (in GIBB, dump is called “dömp”), it’s somewhat depressing. But there is a solution called MySqlDumper:

www.mysqldumper.de/en/

Unfortunately a typo3 extension doesn’t exists yet.

Posted by schmidi2 at 12:52:59 | Permalink | No Comments »

Wednesday, July 23, 2008

Bash for-loop should ignore space-characters

If you wanna to someting like this:

 

for I in $(zgrep -H “from=<test@google.com>” /var/logs/*.gz 2>/dev/null)
do
  LOG_FILE=”`echo $I | cut -d ‘:’ -f 1`”
  DATETIME=”`echo $I | cut -d ‘:’ -f 2-4 | cut -d ‘ ‘ -f 1-3`”
  MAILID=”`echo $I | cut -d ‘:’ -f 5 | cut -d ‘ ‘ -f 2`”
  RECIPIENT_ADDR=”`zgrep $MAILID $LOG_FILE | grep ‘to=’ | cut -d ‘<’ -f 2 | cut -d ‘>’ -f 1`”
  echo “$DATETIME $RECIPIENT_ADDR”
done

You will notice sooner or later that this doesn’t work this way: The for-loop doesn’t only treat line-breaks as a new element but also space-characters. Well, how can that be solved, fast and easy. This way:

 

zgrep -H “from=<test@google.com>” /var/logs/*.gz 2>/dev/null | while read I
do
  LOG_FILE=”`echo $I | cut -d ‘:’ -f 1`”
  DATETIME=”`echo $I | cut -d ‘:’ -f 2-4 | cut -d ‘ ‘ -f 1-3`”
  MAILID=”`echo $I | cut -d ‘:’ -f 5 | cut -d ‘ ‘ -f 2`”
  RECIPIENT_ADDR=”`zgrep $MAILID $LOG_FILE | grep ‘to=’ | cut -d ‘<’ -f 2 | cut -d ‘>’ -f 1`”
  echo “$DATETIME $RECIPIENT_ADDR”
done

Posted by schmidi2 at 16:31:59 | Permalink | No Comments »

Tuesday, July 15, 2008

Webminstats error: disk.pl 140 : bad output for blocs : procbususb

Error

From: root@javatux.tup.local. (Cron Daemon)
To: root@javatux.tup.local.
Subject: Cron <root@javatux> /etc/webmin/sysstats/sysstats.pl
Content-Type: text/plain; charset=UTF-8
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
Date: Tue, 15 Jul 2008 15:07:02 +0200
Message-Id: <1216127222.585803.27235.nullmailer@javatux.tup.local.>

WARNING (eval)(disk.pl 140) : bad output for blocs : procbususb 0 0 0 - /proc/bus/usb
WARNING (eval)(disk.pl 195) : bad output for inodes : procbususb 0 0 0 - /proc/bus/usb

Solution

Open webmin, goto webminstats and open the module “Disk”. Then click on the link “configure module”. Scroll down until you see the list with all watched filesystems. Deactivate the list-entry “/proc/bus/usb” or simply delete it.

Posted by schmidi2 at 14:13:59 | Permalink | No Comments »

Monday, July 14, 2008

VMware: does not contain the file “linux/version.h” as expected

Error:


The path “/usr/src/linux/include” is a kernel header file directory, but it 

does not contain the file “linux/version.h” as expected. This can happen if 
the kernel has never been built, or if you have invoked the “make mrproper” 
command in your kernel directory. In any case, you may want to rebuild your 
kernel.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] 

Solution

Check if you have installed these packages (your kernel version may be different).

linux-headers-2.6-686
linux-headers-2.6.18-6
linux-headers-2.6.18-6-686
linux-image-2.6-686
linux-image-2.6.18-6-686
linux-kbuild-2.6.18
linux-kernel-headers

Following link must also exist:

ll /usr/src/

lrwxrwxrwx 1 root src 27 2008-07-14 13:16 linux -> linux-headers-2.6.18-6-686/
drwxr-xr-x 17 root root 4096 2008-07-14 13:12 linux-headers-2.6.18-6
drwxr-xr-x 4 root root 4096 2008-07-14 13:15 linux-headers-2.6.18-6-686
drwxr-xr-x 3 root root 4096 2007-06-04 21:03 linux-kbuild-2.6.18
drwxrwsrwx 5 root src 4096 2007-06-04 21:09 vmware-server

Posted by schmidi2 at 16:26:05 | Permalink | No Comments »

Thursday, July 10, 2008

Webminstats error: sh: -S: invalid option in /etc/webmin/sysstats/sysstats.pl

After upgrading the webmin module “Webminstats” the cron-job started to send every three minutes an eMail like this one:

From: root@ (Cron Daemon)
To: root@
Subject: Cron /etc/webmin/sysstats/sysstats.pl
Content-Type: text/plain; charset=ANSI_X3.4-1968
X-Cron-Env:
X-Cron-Env:
X-Cron-Env:
X-Cron-Env:
Date: Thu, 10 Jul 2008 13:24:02 +0200
Message-Id: <1215689042.170398.14108.nullmailer@>
X-MailCleaner-Information: Please contact server@t-p.com for more information
X-MailCleaner: Found to be clean
X-MailCleaner-SpamCheck: not spam, SpamAssassin (cached, score=-4.399,
required 5, ALL_TRUSTED -1.80, BAYES_00 -2.60)
X-CTCH-RefID: str=0001.0A0B0201.4875F164.0098,ss=1,fgs=0
X-cff-SpamScore: 0(/)
X-cff-SpamReport: —– —– Message is unknown to the spam scanner.
X-cff-LastScanner: av

sh: -S: invalid option
Usage: sh [GNU long option] [option] …
sh [GNU long option] [option] script-file …
GNU long options:
–debug
–debugger
–dump-po-strings
–dump-strings
–help
–init-file
–login
–noediting
–noprofile
–norc
–posix
–protected
–rcfile
–restricted
–verbose
–version
–wordexp
Shell options:
-irsD or -c command or -O shopt_option (invocation only)
-abefhkmnptuvxBCHP or -o option

 

Solution

The problem was only solved after I disabled the cronjob, then deleted the module (first make backup of /etc/webmin/sysstats/modules/ !!). After I reinstalled the same version of Webminstats and copy back the backup, the error didn’t appear again (of corse you have to open the webminstats-page at least once for scanning an to reactivate the cronjob).

It seams that is problem started after I made an update of webmin and webminstats. But on other machines I did the same update without receiving errors.

 

Posted by schmidi2 at 12:42:39 | Permalink | No Comments »