2011 November

Vmware tools on oracle linux 5.7

When installing Oracle Linux 5U7 as a Guest OS on VMWare fusion 4, you will probably run into the “no module ehci-hcd found for kernel 2.6.32-200.13.1.el5uek” during the VMWare Tools installation process. This error is caused by missing usb kernel modules in /lib/modules/2.6.32-200.13.1.el5uek. You can easily solve this by opening a Terminal session, substitute the user by root (su – root) and executing the command below.

cp /lib/modules/2.6.18-274.el5/kernel/drivers/usb/host/?hci-hcd.ko \

/lib/modules/2.6.32-200.13.1.el5uek/kernel/drivers/usb/host

Now you can start the installation of VMWare tools by executing

./vmware-install.pl

By WladyX on 29 November, 2011 | RedHat, VMware | A comment?

Conky Weather Forecast Python Script

- i received a key from weather.com on 6th of nov, but no partner id. i just removed the relevant part from the conkyforecast.config and it seems to work fine.

.conkyForecast.config:
CACHE_FOLDERPATH = /tmp/
CONNECTION_TIMEOUT = 5
EXPIRY_MINUTES = 15
TIME_FORMAT = %H:%M
DATE_FORMAT = %d/%m/%Y
LOCALE =fin
XOAP_LICENCE_KEY = xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
MAXIMUM_DAYS_FORECAST = 5
BASE_XOAP_URL = http://xml.weather.com/weather/local/?cc=*&dayf=10&link=xoap&prod=xoap&key=&unit=m

source

By WladyX on | Ubuntu, X11 | A comment?

bash script to batch convert .wav to .mp3

#!/bin/bash
LAMEOPTS="-V 1"

for FILE in *.wav ; do
OUTNAME="${FILE%%.wav}.mp3"
lame $LAMEOPTS "$FILE" "$OUTNAME"
done

source

By WladyX on | Scripts | A comment?

Upgrading Ubuntu EOL

The upgrade
Please make sure you have the following sources.list (/etc/apt/sources.list remove all other entries you have there).

## EOL upgrade sources.list
# Required
deb http://old-releases.ubuntu.com/ubuntu/ intrepid main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ intrepid-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ intrepid-security main restricted universe multiverse

Update the package list and upgrade all the installed packages

sudo apt-get update && sudo apt-get dist-upgrade

Perform the release upgrade.

sudo do-release-upgrade

source

By WladyX on 23 November, 2011 | Ubuntu | A comment?

find mtime

find . -mtime 0 # find files modified between now and 1 day ago
# (i.e., within the past 24 hours)
find . -mtime -1 # find files modified less than 1 day ago
# (i.e., within the past 24 hours, as before)
find . -mtime 1 # find files modified between 24 and 48 hours ago
find . -mtime +1 # find files modified more than 48 hours ago

find . -mmin +5 -mmin -10 # find files modified between
# 6 and 9 minutes ago

source

By WladyX on | Scripts | A comment?

Apt proxy

/etc/apt/apt.conf:
Acquire::http::Proxy "http://10.0.0.1:3128";

By WladyX on | Ubuntu | A comment?

rhn_register

setup proxy in /etc/sysconfig/rhn/up2date
enableProxy=1
httpProxy=host:3128

rhn_register

By WladyX on 18 November, 2011 | RedHat | A comment?

NFS Stale File Handle error and solution

# umount -f /mnt/local
# mount -t nfs nfsserver:/path/to/share /mnt/local

source

By WladyX on 10 November, 2011 | Network | A comment?

APCUPSD lock file problem

Error:

Sun Feb 12 16:19:04 EST 2006 Valid lock file for pid=2296, but not ours
pid=21621

Solution:

remove /var/lock/LCK

 

By WladyX on 9 November, 2011 | APC | A comment?

WRT160NL invalid certficate

Error:
You have received an invalid certificate. Please contact the server administrator or email
correspondent and give them the following information:

You certificate contains the same serial number as another certificate issued by the certificate
authority. Please get a new certificate containing a unique serial number.

Solution:
Open Firefox
From the top menu, click “Tools > Options”.
Click the “Advanced” icon.
Click the “Security” tab.
Click “View Certificates” button and then the “Web Sites” tab.
Delete the certificate.

source

By WladyX on | WIFI | A comment?