Ana içeriğe atla

Kayıtlar

Upgrading php5.1 and mysql5.0 on Centos 5.6

On a vps environment I needed to upgrade php and mysql packages. I installed remi repo and did this command yum --enablerepo=remi install php-common php php-suhosin php-cli php-mysql mysql which warns that mysql and php packages are replaced with ones originating from remi's repo not from the rhel or fedora. Now php is upgraded to 5.3.8 and mysql to 5.5.16

Draytek Router logs to central OpenBSD syslog server

OMG I spent 4-5 hours trying to send Draytek logs to an OpenBSD box. At last succeeded. Damn syslog has no information about facilities, previledeges etc.Without knowing anything about what kind of logs (I mean facilites,priviledeges etc) Draytek sends to openbsd I found a web page finally talking about the same problem. Inspired with this web page and after much time realising that syslog.conf DONT accept SPACES but TABS (OMG this made me crazy) I have succeeded relaying logs to OpenBSD box. Thanks to this web page   which enlightened me that it is mandatory to use tabs. Now I have lines like local0.* /var/log/router-firewall.log local1.* /var/log/router-vpn.log local2.* /var/log/router-user.log local3.* /var/log/router-call.log local4.* /var/log/router-wan.log local5.* /var/log/router-adsl.log in syslog.conf which are seperated by TABS not SPACES. I still dont know what happens if I put another router into the same scheme or if another program sends logs to such damn facili...

Draytek Router logs to central OpenBSD syslog server

OMG I spent 4-5 hours trying to send Draytek logs to an OpenBSD box. At last succeeded. Damn syslog has no information about facilities, previledeges etc.Without knowing anything about what kind of logs (I mean facilites,priviledeges etc) Draytek sends to openbsd I found a web page finally talking about the same problem. Inspired with this web page and after much time realising that syslog.conf DONT accept SPACES but TABS (OMG this made me crazy) I have succeeded relaying logs to OpenBSD box. Thanks to this web page   which enlightened me that it is mandatory to use tabs. Now I have lines like local0.* /var/log/router-firewall.log local1.* /var/log/router-vpn.log local2.* /var/log/router-user.log local3.* /var/log/router-call.log local4.* /var/log/router-wan.log local5.* /var/log/router-adsl.log in syslog.conf which are seperated by TABS not SPACES. I still dont know what happens if I put another router into the same scheme or if another program sends logs to such damn faci...

Php urlencode and Curl

I struggle again with curl and html parsing. The VIEWSTATE variables are sometimes hard to deal with. Strange enough, php and curl adds +%0A to the end of an urlencoded variable. And as you might guess this poisons the VIEWSTATE mechanism. A workaround that I used is to trim +%0A at the end of urlencoded strings by substr function.

Clonezilla and Windows XP cloning

This was a long and tiring day.I learned a lot about clonezilla and windows xp. I first tried to clone partitions and whole disks in different ways. In clonezilla terms these are device to image file or device to device. I couldnt much succeded in device to device option. May be due to lack of reading howto and wiki. Clonezilla first asks the device or place where  the image is going to be stored or read from. That comes to me weird at the beginning to me but later I got used to it. I cloned partitions or disks to images which are located in usb disks,local disks or even on an ssh server.This was fun. Then when it comes to restore the problems begin :) .OK. Yes there are some problems which are behind the doors and waiting you after or while restoring images. Firstly Clonezilla cant restore to a smaller hard drive or partition. To make it restore to a smaller drive in FAQ it is stated that one must use gparted or else to shrink the original partition before making the image. So thi...

Windows 7 Windows Explorer fix

On a computer when right clicked on the desktop one was getting the alert saying that "Windows Explorer stopped working.Trying to find solutions.." etc. I first tried to do "sfc /scannow" on a root command prompt which gave that everything is OK. Then I started investigating the cause of Windows Explorer's crash by navigating through Event Viewer. And I found entries which clued that explorer.exe's crash is due to shell extensions dll file. Then I realised that there is a good shell extensions viewer provided free by Nirsoft at http://www.nirsoft.net/utils/shexview.html. Thanks to these guys I used the program and found the third party extension which I guess infected by a malicious program. First disabled it and checked that if it causes the crash, then removed the Registry keys of it. Voila now the explorer.exe is working just fine.