Subscribe: Anton Titov's blog
Added By: Feedage Forager Feedage Grade B rated
Language: English
eth  files  front page  frontpage  install  linux  net  page extensions  program  raid  server  speed  titov net  titov  usr local 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Anton Titov's blog

Anton Titov's blog

Programming / server administration / databases

Published: Sun, 21 Jan 2007 13:19:23 +0000


Traffic accounting and IP restrictions on linux bridge

Sun, 30 Apr 2006 14:05:21 +0000

These days I’ve implemeted a Linux bridge that does traffic accounting and IP restrictions per mac adress and decided to share my experience. In my setup on eth0 is my gateway and on eth1 is switch with servers connected to it. First we need to bridge eth0 and eth1, you’ll need brctl command, to install [...]

How to change maximum sync speed of linux software raid

Wed, 05 Apr 2006 21:20:44 +0000

After few unsuccesfull google searches about changing linux software raid sync speed (while waiting for idle CentOS to sync 3×200Gb SATA raid1) I decided to run: ffind /proc/ -name \*raid\* which lead me to files /proc/sys/dev/raid/speed_limit_max an /proc/sys/dev/raid/speed_limit_min, which are quite self-explanatory and now I’m happily syncing with 40Mb/s.

How to force setuid program to make core dump

Wed, 22 Mar 2006 02:41:16 +0000

If you want to debug why your C/C++ application segfaults once in a while (daemon that segfaults once in few days) under Linux the obvious way is to tell your program to create core dump files on segfault. It took me few hours to make my program coredump - by default under Linux setuid programs [...]

How to make site screenshots with linux server

Sun, 19 Mar 2006 04:02:58 +0000

Ever wanted to be able to create site screenshots, just like alexa? Want to do it on your server with a script? Than read this article. The idea is simple: install xvnc on your server, so you’ll have a virtual X display, than install Opera browser (Firefox does not support -geometry parameter) and finally install ImageMagick [...]

Using O_LARGEFILE or O_DIRECT on Linux

Mon, 02 Jan 2006 19:01:26 +0000

Today after some backups, generated from my C program generated few files exactly 2Gb in size I’ve remembered that there was some parameter to open for working with large files. I’ve opened man page for open and read that the option is O_LARGEFILE. I also liked the idea of using O_DIRECT. But when I tried [...]

How to restore reiserfs partition from crashed disk

Sat, 31 Dec 2005 15:09:03 +0000

Few days ago, a server of mine had all of it’s 4 disk crashed. The problem was that one of the disks was overheating and that seemed to help other harddrives to crash (don’t buy Maxtor). So, if you have a case like mine - some partitions with reiserfs on hard drive with bad blocks [...]

PHP forms spam

Thu, 01 Dec 2005 17:48:22 +0000

There are many forms on the web, that use PHP mail() function to send mail, most of the time to the site owner. The problem with this is that many of them do not verify submitted data and can be used to trick the script to send mail to any recipient with changed body of [...]

How to check if a hostname is a valid registered nameserver

Mon, 31 Oct 2005 15:35:22 +0000

If you need to check for instance if “” is a registered nameserver and can be filled as nameserver for a domain you can do it this way: ask which nameservers are authoritative for zone “net” with: dig ns net in the answer section you will have: net. [...]

“Do not use ORDER BY RAND()” or “How to get random rows from table?”

Wed, 21 Sep 2005 18:47:01 +0000

Quite often people use queries like: SELECT quote FROM quotes ORDER BY RAND() LIMIT 1 to get a random row (rows) from a table. That’s quite bad idea. For big tables, if your table have just 50-100 rows, use whatever you want. What happens when you run such a query? Let’s say you run this query on a [...]

Front page extensions without mod_frontpage

Thu, 15 Sep 2005 14:49:05 +0000

If you have apache server on linux and want to be able to activate front page extensions for virtual hosts but do not want to install mod_frontpage, than you can download this file extract it to /usr/local with tar -xzf frontpage.tar.gz -C /usr/local and than you can install front page extensions like (on a single line): /usr/local/frontpage/install /www/ [...]