Skip to main content

apache mod evasive

Submitted by admin on

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

Submitted by admin on

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

This is what I have to do

Ports

x system

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

Fix Firefox

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

ports

after that, go to start menu --> system setting --> gtk style and fonts --> choose qtcurve as widget

new OpenVPN

Submitted by admin on

มีเพิ่มเติม 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

Submitted by admin on

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

Submitted by admin on

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 .