If you're using ProFTPD with virtual users (sql) and want to use md5-hashed passwords in sql table, uncomment this line in modules.conf: ​ LoadModule mod_sql_passwd.c And edit sql.conf relevant lines like: SQLAuthTypes MD5 SQLPasswordEngine on SQLPasswordEncoding hex And don't forget to change password areas to MD5 before restarting the daemon.

Read more →

WTF?

I forgot to install fail2ban on a box. I was expecting something. But script kiddies, are you serious? ​ Nov 18 18:43:43 *** sshd[9655]: Invalid user this-is-not-an-attack from 188.95.234.6 Nov 18 18:43:43 *** sshd[9655]: Failed none for invalid user this-is-not-an-attack from 188.95.234.6 port 58982 ssh2

Read more →

Pure boredom. I edited Suse.Logo.Green KDM4, Ksplash4 and powered_by_gentoo bootsplash themes. Main concept is this: Also the links: KDM: http://goo.gl/7C8bB Ksplash: http://goo.gl/dyF0T Bootsplash: http://goo.gl/JdCXJ

Read more →

compcache

I've accidentally discovered this in kernel: compcache [link] creates block devices like /dev/zram0, acting like a swap device. But it's using RAM actually, compressed. I can feel the difference on my 1gb-ram netbook a little. It's not a new project, I don't know how did I miss this. Setting up a "ramswap" is pretty easy. Here is my /etc/conf.d/local: local_start() { modprobe zram num_devices=2 echo 67108864 > /sys/block/zram0/disksize echo 67108864 > /sys/block/zram1/disksize mkswap /dev/zram0 mkswap /dev/zram1 swapon /dev/zram0 swapon /dev/zram1 return 0 } local_stop() { swapoff /dev/zram0 swapoff /dev/zram1 echo 1 > /sys/block/zram0/reset echo 1 > /sys/block/zram1/reset return 0 } I guess you got the message ;) #EDIT: conf.

Read more →

Copying Is Theft!

I saw some *opinions* (maybe there are some organisations behind these ideas, i dunno) says "copying is not theft! i don't steal the software, i'm just copying.." and supporting the idea with: "if i steal an orange¹, the original one disappears, but if I copy it, there's no problem". Well, Mr. moron. I don't want to make you sad, but it's pure theft. People are not selling oranges in software world.

Read more →

Wake On Lan

(From Wikipedia) Wake-on-LAN is an Ethernet computer networking standard that allows a computer to be turned on or woken up by a network message. If you want to wake your computer up from the outside of LAN, it's mostly about your router. I'll give a shot to explain how it works for me. First you should install ethtool on which box you're planning to wake up. And check the ethernet card if its wol capable with a command like "ethtool eth0".

Read more →

Reiser4, a.k.a wife killer fs [link] + GRUB Here it is, i won't warn you about nothing, if you don't know what the hell are you doing, don't! Create >20mB ext2 partition and mount as /boot I'll say /boot as sda1 and root directory (/) is sda3 mkdir gdeneme sudo mount /dev/sda1 gdeneme sudo cp -aR /boot/* gdeneme/ sudo umount gdeneme rmdir gdeneme Now boot sda1 as /boot : sudo mount /dev/sda1 /boot

Read more →