This time I have to deal with another form of leech other than woman I know of … he he he. Some user hogging my server bandwidth for several time, and this abuse couldn’t continue. Here is some tricks that can denying the bandwidth sucker user by detecting their browser user agent. Fortunately, apache has […]
Read MorePosts in category Debian
splitting large file into several smaller files
A few days ago I need to split some large apache log files (1Gb log file) into several smaller file so I can read it using normal text editor for further investigating the mod_limitipconn purposes. To split large file into several smaller files, you can use split command in linux. Just follow the steps below […]
Read Morememcache on lenny
The basic principal with any dynamic site to speed up is to reduce the load on the site or in technical words reduce HTTP requests every elements on the web page generates a HTTP request and this HTTP request hits the web server. This could be the front end optimization, the eficiency of the php […]
Read Moremysqldump skip-lock-tables
During dump the database for backups this morning, I face some LOCK TABLES annoying problem. Dealt with this before but nothing came up from memory. {code}[root@www tempbup]# mysqldump -uroot -p axioo9 > axioo9.sql Enter password: mysqldump: Got error: 29: File ‘./axioo9/traveler_comprofiler_lists.MYD’ not found (Errcode: 24) when using LOCK TABLES {/code} At first I thought this […]
Read MoreAutologin as root on konsole
Many friends on car pc forum ask how to perform auto login for their Linux box in console mode. I never solve it until this day during packaging mingetty for klixs and read the man page. Ooh boy, it’s already there for so long and never realize it can be solve using mingetty. Let’s get […]
Read MoreBandwidth shaping using trickle on etch
Just recently I really need to take a precaution on my rsync bandwidth since it draws a lot of resource regarding to my regularly sync repository. I don’t want to drag the whole webserver run in cucumber’s hole queuing so I must find a solution fast. I came on quick search and find this trickle […]
Read Morephpinfo disable ispcp
There are sometimes we have to check the availability of addons module such as curl and json within php load for maintenance and debugging purposes. The ispcp disabled this phpinfo call function due to vulnerability leak by this function, and this is good for precaution against hackers out there, but as I mention above, there […]
Read Morezabbix on lenny
Here is steps installing zabbix-1.8 on Lenny : I assume you already have a running apache, mysql and ssh-server, so preparing all needed dependencies should be simple as follows : {code}apt-get install build-essential apt-get install fping apt-get install libsnmp-dev apt-get install libcurl4-openssl-dev apt-get install php5-gd apt-get install libiksemel-dev apt-get install libmysqlclient-dev{/code} Create the zabbix user […]
Read MoreBandwidth limitter using mod_bw module with apache
Running a webserver with a lot quantity of virtual server is a double-edged sword. The more hosted site, the more income for us, but for every ten legitimate users, there’s at least one greed user that wants the whole site traffic. This is bad enough under normal circumstances, but it’s even worse when we’re on […]
Read MoreKiosk Machine Running a Single X11 Application
By changing the Xsession file you can start a kiosk-style machine that starts a single X11 application. On Debian you would change the file /etc/X11/Xsession.d/99×11-common_start. In stock form there is a line that reads: exec $STARTUP Change that to read : exec firefox javascript:%20resizeTo(1024,768) and your machine will boot directly into Firefox at a screen […]
Read More