Hodžův blog

01 Srp

HowTo install Oracle Instant Client and PHP OCI8 module under Debian Squueze (Ubuntu) 64bit

1) Download the Basic and the SDK packages from http://www.oracle.com (registration needed).
# mkdir -p /opt/oracle/instantclient
# cd /opt/oracle/instantclient
# wget http://download.oracle.com/otn/linux/instantclient/112020/instantclient-basic-linux-x86-64-11.2.0.2.0.zip
# wget http://download.oracle.com/otn/linux/instantclient/112020/instantclient-sdk-linux-x86-64-11.2.0.2.0.zip"

Continue Reading »

30 Čvc

HowTo fix a problem „DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha“ in Pyzor

After a fresh Pyzor install I’m getting this error message:
# aptitude install pyzor
# pyzor discover
/usr/lib/pymodules/python2.6/pyzor/__init__.py:11: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
import sha
/usr/lib/pymodules/python2.6/pyzor/client.py:12: DeprecationWarning: the multifile module has been deprecated since Python 2.5
import multifile
downloading servers from http://pyzor.sourceforge.net/cgi-bin/inform-servers-0-3-x

Continue Reading »

30 Čvc

HowTo fix a problem „loading from master file managed-keys.bind failed: file not found“ under Debain Squeeze

# touch /var/cache/bind/managed-keys.bind
# chown root:bind /var/cache/bind/managed-keys.bind
# /etc/init.d/bind9 restart
# tail -n 50 /var/log/daemon.log

24 Čvc

HowTo remove unwanted whitespace with vim

Delete all trailing whitespace (a space or a tab) at the end of each line with:
:%s/\s\+$//

21 Čvc

HowTo restore the ‚Show Desktop‘ shortcut in Windows XP or Windows 2003

1) Open notepad.
2) Copy the below code.

[Shell]
Command=2
IconFile=explorer.exe,3
[Taskbar]
Command=ToggleDesktop

3) Save the file with the name ShowDesktop.scf some where on your system or on your desktop.
4) Drag and drop the file to the Quick launch area.

That’s it…

14 Čvc

HowTo install Mozilla Thunderbird 5 Final from PPA (Ubuntu 10.04/10.10/11.04)

# sudo apt-add-repository ppa:mozillateam/thunderbird-stable
# sudo apt-get update
# sudo apt-get install thunderbird

Release Notes: http://www.mozilla.org/en-US/thunderbird/5.0/releasenotes/

15 Čvn

HowTo install TSM Backup client in Debian Squeeze (Ubuntu) 64bit

1. Update Debian system and install required packages
# aptitude update
# aptitude full-upgrade
# aptitude install alien libstdc++6 ksh ia32-libs

2. Go to directory /usr/src/ and download latest package from IBM web site. After download unpack archive.
# cd /usr/src/
# wget "ftp://service.boulder.ibm.com/storage/tivoli-storage-management/maintenance/client/v6r2/Linux/LinuxX86/v622/6.2.2.0-TIV-TSMBAC-LinuxX86.tar"
# tar -xvf 6.2.2.0-TIV-TSMBAC-LinuxX86.tar

Continue Reading »

21 Dub

Jak zakázat IPv6 v Debianu 6 (Squeeze)

Pokud zkoušíte starý trik s použitím aliasů u modprobe, máte smůlu. V Debianu 6 je již IPv6 přímo součástí kernelu. IPv6 zakážete tak, že do souboru /etc/sysctl.conf přidáte řádku „net.ipv6.conf.all.disable_ipv6 = 1“.

# echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf
# /sbin/sysctl -p /etc/sysctl.conf

14 Bře

Firefox Flash Player Crash under Ubuntu Maverick Meerkat

Q: The flash plugin in my firefox started to crash these days. Whenever I go to youtube.com to watch a video, as soon as I open the page the shockwave plugin crashes. At the same time, I can see youtube videos in Facebook! This is started to happen in these days possibly after updating the system (I regularly apt-get update & upgrade). Any thoughts/ideas?

Continue Reading »

18 Říj

Debian & IBM ServeRAID-MR10M SAS/SATA

Minulý měsíc jsem měl možnost konfigurovat a instalovat nový IBM x3650 M2. Kromě standardní výbavy byl k serveru navíc přiložen řadič IBM ServeRAID-MR10M a disková police IBM System Storage EXP3000. Řadiče firmy LSI používám celkem běžně a nebývají s nimi problémy, nicméně se přiznám, že tentokrát jsem měl mírně sevřený žaludek a to hned ze dvou důvodů. Řadič MR10M je pro mě poměrně nový a navíc jej bylo potřeba nainstalovat do Debian Linuxu (což rozhodně není podporované enterprise řešení). Debian naštestí jako vždy nezklamal a vy si nyní můžete přečíst, jak na to.
Continue Reading »

Hodžův blog is is proudly powered by Wordpress and the Magellan Theme