apache mod evasive

Posted on: Fri, 07/26/2013 - 11:41 By: dae

My server has been attacked for weeks. They were brute force trying to login to MoinMoin. MoinMoin is still fine, but the server load is too high and there are too many traffic.

mod_evasive and mod-security are life savers

mod-status and awstats are also helpful in debugging and detecting the problem.

Moving to FreeBSD desktop

Posted on: Thu, 07/25/2013 - 14:53 By: dae

Again, my desktop somehow stop working, so I reinstall with FreeBSD and kde4.

This is what I have to do

Ports

x system

/usr/port/x11/xorg /usr/port/x11/kde4

after that edit rc.conf and add dbus_enable="YES" hald_enable="YES" kdm4_enable="YES" linux_enable="YES"

reboot to kde4 and install these ports

/usr/ports/sysutils/fusefs-ntfs git mercurial smb4k

Fix Firefox

Firefox is ugly in the Default FreeBSD ports. This is what I have to do.

new OpenVPN

Posted on: Mon, 06/10/2013 - 00:11 By: dae
Tags

มีเพิ่มเติม 2 บรรทัด ให้ push routing ไปยัง client บรรทัดแรกบอกว่าทั้งหมดในจุฬาให้ใช้ผ่าน vpn บรรทัดที่สองบอกว่าต่อเข้า server ovpn ผ่านทาง network ปรกติ

push route 161.200.0.0 255.255.0.0
push route remote_host 255.255.255.255 net_gateway 1

Desktop linux again

Posted on: Sun, 03/24/2013 - 23:28 By: dae

openSUSE 12.3 and openSUSE 13.1

ปุ่มปรับ backlight ไม่ work

เครื่อง asus zenbook ให้แก้โดยเพิ่ม kernel option

acpi_backlight=none acpi_osi=

ทำโดย

sudo vi /etc/default/grub

แล้วแก้โดยเปลี่ยน

GRUB_CMDLINE_LINUX_DEFAULT="resume=/dev/system/swap splash=silent quiet showopts"

เป็น

GRUB_CMDLINE_LINUX_DEFAULT="resume=/dev/system/swap splash=silent quiet showopts acpi_backlight=none acpi_osi="

แล้วสั่ง sudo update-grub

Drupal feed importer

Posted on: Sun, 03/25/2012 - 20:52 By: dae

Recently, I have a chance to use drupal commerce with feed importer. Feed importer is very good because I can easily transfer data from MySQL to the website.

However, sometime the import process crash and I am stuck with importing page with xx% status and nothing can be done via UI.

To fix this, I have to manually edit the status of the import. Basically, all I have to do is to

update feeds_source set state = 'b:0;'; update feeds_source set fetcher_result='b:0;';

Check this .

Subscribe to