Sunday, May 13, 2007

Masalah apabila menaiktaraf Apache, MySQL, PHP dan OpenSSL

Slackware 11.0 didantangkan dengan pakej2 seperti Apache 1.3.37, MySQL 5.0.24a, PHP 4.4.4 dan OpenSSL 0.98d. Aku agak berhati-hati apabila cuba menaiktaraf pakej2 di atas supaya tidak berlaku lagi sistem crash seperti pada post terdahulu (lihat post sebelum ini) apabila menggunakan Slapt-get untuk -current pakej. Lebih2 lagi apabila berada di dalam -current. Bukan Slapt-get tidak powerful tetapi kesilapan saya tidak membaca hint2 yang diberikan oleh En Pat dalam bagaimana untuk upgrade sesuatu pakej. Saya telah mengupgrade Apache 1.3.37 kepada Apache1.3.37-i486-2.tgz (patch version), MySQL 5.0.24a kepada 5.0.37, PHP 4.4.4 kepada 4.4.6 dan OpenSSL 0.9.8d kepada 0.9.8e. Saya telah melakukan upgrade secara manual menggunakan tools2 seperti installpkg dan upgradepkg. Kesemua pakej2 tersebut selamat diupgrade tetapi apabila Apache cuba direstart, terdapat error yang keluar, menyebabkan Apache tidak boleh distart. Untuk problem "libexpat.so.1: No such file or directory" , sila rujuk tutorial disini http://www.asteriskguru.com/tutorials/asterisk_installation_compilation_slackware.html.
Please check for the libexpat in the /usr/lib directory

# cd /usr/lib
# ls -l libexpat*


You must see something like:

-rw-r--r-- 1 root root 160636 2005-09-09 18:58 libexpat.a
-rw-r--r-- 1 root root 706 2005-09-09 18:58 libexpat.la
lrwxrwxrwx 1 root root 17 2006-01-13 12:26 libexpat.so -> libexpat.so.0.5.0
lrwxrwxrwx 1 root root 17 2006-01-13 12:26 libexpat.so.0 -> libexpat.so.0.5.0
-rwxr-xr-x 1 root root 127428 2005-09-09 18:58 libexpat.so.0.5.0

If you do not have the libexpat.so. file, try to install "again" the expat.

Next step: create a symlink named libexpat.so.1 which has to point to the libexpat.so.0.5.0 file (the version numbers may be different). To do this use:

# cd /usr/lib
# ln -s libexpat.so.0.5.0 libexpat.so.1
Kemudian terdapat lagi error apabila cuba upgrade pakej OpenSSL, pakej OpenSSL hendaklah diupgrade beserta pakej openssl-solibs-0.9.8e. Barulah kesemua pakej diatas dapat dijalankan dengan jayanya.

Sunday, April 8, 2007

Berhati-hati menggunakan -current

Peminat-peminat Slackware tentunya sudah maklum behawa En Pat telah mengeluarkan hampir 215 packages terkini untuk Slackware -current, ini merupakan suatu petanda yang versi baru Slackware (mungkin 11.1) akan dikeluarkan tidak lama lagi. Dengan penuh keseronokan aku menggunakan Slapt-get untuk mendapatkan kesemua pakej-pakej tersebut. Hampir 2 minggu (lama giler) aku menggunakan berbagai mirror yang terhampir (Taiwan dan Australia) untuk memindah turun kesemua pakaej tersebut dengan menggunakan line internet yang sangat lembab. Tetapi hasilnya mendukacitakan aku, terdapat error mengatakan "GLIBC_2.4 is not found", aku pun memuat turun pakej-pakej glibc tersebut, tetapi hasilnya tetap sama. Rupanya ramai lagi menghadapi masalah yang sama jika menggunakan tool-tool seperti Slapt-get ataupun Swaret untuk memuat turun pakej dari slackware -current. Akibat error tersebut, aku tidak login kedalam akaun root dan juga sistem gagal dimountkan jika menggunakan Live CD lain untuk masuk ke dalam sistem. Dengan keadaan masa yang begitu terhad, aku mengambil jalan '"bodoh" dengan menginstal semula Slackware 11 dan terpaksa diconfigure semula Slackware box aku ini. Mujurlah Slackware box ini tidak merupakan production server menyebabkan aku rela untuk melakukan fresh install semula. Kesimpulannya, cuba elakkan menggunakan tool-tool seperti slapt-get atau swaret untuk update -current pakej, sila update secara manual menggunakan Pkgtool. Kemudian sila baca dokumentasi seperti Upgrade.txt dan Change_And_Hints.txt. Stay tune pada -stable, tidak perlu menggunakan -current untuk kegunaan server anda. Anda patut kembali kepada falsafah Slackware, Simplicity and Stability and KISS (Keep It Simple Stupid), yeahhhh!

No News No Post

Hampir sebulan aku tidak menulis apa-apa pada blog ini, terasa sunyi semacam jer. Hampir sebulan juga aku jarang online, mungkin kesempatan waktu yang singkat dan juga bebanan kerja yang memuncak pada masa sekarang. I'll back soon :)-

Friday, March 9, 2007

How to Setup Simple Iptables Rules

Iptables sometimes very interesting to learn, but you must be patient because it's all about commandline, (don't talk about Shorewall, Guarddog, etc) and no GUI. You will always forget the command when you need to setup a simple rules like mine. I'm forgot the command to allow Webmin and Squid port. My suggestions here, always practice your Iptables command, don't lazy. Here a good howto about basic iptables setup http://www.howtoforge.com/linux_iptables_sarge

Tuesday, February 20, 2007

How to Play DVD on Fedora 5 Using VLC Player

In Fedora Core 5, you can play DVD with some software like Xine, Totem, Mplayer, Realplayer/Helix etc. But here i found VLC (VideoLAN Client) is the way to play DVD (for me). So just install VLC through Yum plus using Livna repository. I'm using using repo from Freshrpms and Livna
# rpm -ihv http://rpm.livna.org/fedora/5/i386/livna-release-5-8.noarch.rpm
# rpm -ihv http://ayo.freshrpms.net/fedora/linux/5/i386/RPMS.freshrpms/freshrpms-release-1.1-1.fc.noarch.rpm
then start using Yum
# yum -y install videolan-client
and you can see a tons of dependencies get install
Installed: vlc.i386 0:0.8.4a-1.lvn5
Dependency Installed: SDL_image.i386 0:1.2.4-5.fc5 a52dec.i386 0:0.7.4-9.lvn5 faac.i386 0:1.24-5.lvn5 faad2.i386 0:2.0-15.20050131.lvn5 ffmpeg.i386 0:0.4.9-0.23.20060817.lvn5 fribidi.i386 0:0.10.4-8.2.1 gsm.i386 0:1.0.10-10.lvn5 imlib2.i386 0:1.3.0-3.fc5 lame.i386 0:3.96.1-6.lvn5 libdvbpsi.i386 0:0.1.5-2.lvn5 libebml.i386 0:0.7.7-1.fc5 libid3tag.i386 0:0.15.1b-2.fc5 libmad.i386 0:0.15.1-2.b.lvn5 libmatroska.i386 0:0.8.0-3.fc5 libmp4v2.i386 0:1.5.0.1-3.fc5 libmpcdec.i386 0:1.2.2-2.fc5 mpeg2dec.i386 0:0.4.0-5.b.lvn5 openslp.i386 0:1.2.1-4.fc5.2 sysfsutils.i386 0:1.3.0-1.2.1 wxGTK.i386 0:2.6.3-2.6.3.2.2.fc5 xosd.i386 0:2.2.14-6.fc5 xvidcore.i386 0:1.1.0-2.lvn5
So now you can play your pirate DVD as mine, enjoy watching.
Links:
http://www.gagme.com/greg/linux/fc5-tips.php#vlc

Saturday, January 20, 2007

Gig Felda Punks Arise Masuk Harian Metro

Giler! Gig oleh Jimbo and the gang masuk Harian Metro 19 Januari 2007, muka depan lagi. Banyak cerita-cerita bohong dipaparkan pada berita tersebut. More info http://ricecooker.kerbau.com/2007/01/18/saturday-20th-january-2007-pack-in-jb/#comment-19238
From Harian Metro


Hardening Your Slackware Box


Here a good resource on how to harden your Slackware box http://www.cochiselinux.org/files/system-hardening-10.2.txt There are very detail howto for hardening your system, security versus usability, choose wahatever you want.

Friday, January 19, 2007

Open source and free applications and tools for linux

A good resources for open source applications ans tools for linux http://www.debianhelp.co.uk/tools.htm

Uptime

Just to show you how the power Linux is, all the uptime from the different Linux box and different distros :
matt@www:~$ uptime
02:25:15 up 79 days, 17:19, 1 user, load average: 0.11, 0.11, 0.09

matt@matt:~$ uptime
02:17:24 up 74 days, 10:07, 1 user, load average: 0.00, 0.00, 0.00

[matt@backup ~]$ uptime
02:17:49 up 81 days, 17:44, 1 user, load average: 0.00, 0.00, 0.00

[matt@database matt]$ uptime
02:31:38 up 89 days, 10:57, 3 users, load average: 0.00, 0.00, 0.00

Installation Nessus on Fedora (part II)

Got a few days to continue from the part I, here we go :

install all the package dependencies using yum
yum install flex
yum install yacc bison
yum install gtk+-devel

install Nessus by their installer, you cam also compile from source. During the installation, answer all the questions, use can use their default values and don't forget your admin password :)
sh nessus-installer-2.2.9.sh
make cert, just enter
/usr/local/sbin/nessus-mkcert
create user
/usr/local/sbin/nessus-adduser
get Nessus plugins, when finish you can see "All plugins loaded"
/usr/local/sbin/nessusd -D
and start using Nessus, happy scanning !
/usr/local/bin/nessus

Installation Nessus on Fedora (part I)


At Insecure.org , they call Nessus as the best free network vulnerability scanner available and they still number one as a network security tools for many years, I remember the last time I install Nessus 2.2.9 on CentOS without no problem, the installation using their installer run smoothly. But if you want to install Nessus in Fedora (mine version 5), you need to do some tweak on your Fedora box. I'm suggest you to install Nessus version 2.2.9 because starting version 3 Nessus no more open source, pity :(- . There are some libraries and package you need to install like flex, yacc, bison, gcc, gtk+-devel etc. You just using yum bla bla bla, to be continue...sorry

Slackware 11. 0 Changelog

Version 11.0 still rock-solid, here a few minor update

Wednesday, January 17, 2007

Slackware Resources

A good resources for Slackware users, no matter you are newbie or expert. They compile all the good old and new sites related to Slackware and the relative, here the link...

Slackware Package Management Tools


There are no special tools for package management system in Slackware. If i'm not misktaken, Swaret and Slackpkg was introduced in /extra since version 9.1 but did not install by default. Swaret then was removed from the distribution since Slackware 10.0 but is still available as a 3rd party package. Slapt-get and SlackUpdate become an alternative as a third party tools. Besides all the tools above, I found some other tools that really worth to check out, there are Slackmatic, EMERDE a port of Gentoo's package system, PortPKG similar to BSD's port, Slack-get and a new improvement for pkgtool like Spkg and Tukaani Pkgtools. I'm not try yet some of the tools above but as a Slackware lover, why not give them a try especially EMERDE and PortPKG. Here a good link for Slackware package management tools.

More Slackware Reviews

I found this "Like fine wine, this distro gets better with age" and this Review of Slackware 11.0, but the second more detail and complete, the author show his /proc/cpuinfo and lspci output. His got a good memories with Slack " Slackware holds a special place in my heart being my first distro and I'll always support them". I think the author using OpenBSD, that's why he love Slack. :}