1/31/2008

Trojan-PSW:W32/OnlineGames

to clean this virus, first of all, clean the register kill, use regedit.exe and find

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

clean the kavo.exe or taso.exe, and reset the windows hidden file value to 1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ Explorer\Advanced\Folder\Hidden\SHOWALLCheckedValue

change the value from 0 to 1, start task manager, kill explorer.exe and run explorer.exe again. ( for showing hidden files.)

to root directory of all your disks, delete autorun.inf and ntdelect.com.
to system_device:/windows/system32/, delete kavo*.* and taso*.*.

then restart windows.

1/19/2008

shut down ipv6 protocol on ubuntu

$vim /etc/modprobe.d/aliases
# alias net-pf-10 ipv6
$vim /etc/modprobe.d/blacklist
+ blacklist ipv6
done

1/14/2008

RubyonRails installation

it's quite simple to install RoR on ubuntu.

$ apt-get install ruby1.8

go to here to get the newest gem.

$ tar zxf rubygems-1.0.1.tgz
$ cd rubygems-1.0.1/
$ sudo ruby setup.rb

install rails

$ sudo gem install rails --include-dependencies

Rails rely on lots of gems, we need install some first

$ sudo gem install actionmailer
$ sudo gem install actionpack
$ sudo gem install activerecord
$ sudo gem install activesupport
$ sudo gem install actionwebservice
$ sudo gem install rake

done

1/11/2008

change mysql default charset to UTF-8

$ sudo vim /etc/mysql/my.cnf
[client]
+ default-character-set = utf8

[mysqld]
+ default-character-set = utf8

$ sudo /etc/init.d/mysql restart

adding ssl to apache2 on ubuntu

it's also simple, and we can also google this easily. here is just a note.

$ sudo mkdir /etc/apache2/ssl
$ sudo make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache2.pem
$ sudo a2enmod ssl
$ sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/ssl
$ vim /etc/apache2/sites-available/ssl
NameVirtualHost *:443
<virtualhost *:443>
ServerAdmin webmaster@localhost

SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache2.pem</virtualhost>
$ vim /etc/apache2/sites-available/default
NameVirtualHost *:80
<virtualhost *:80></virtualhost>
$ sudo a2ensite ssl
$ sudo /etc/init.d/apache2 restart

timezone issue on ubuntu

ubuntu system will set bios time as default UTC time. therefore, the system time will be set to +8 in taiwan. which means BIOS maintains the correct localtime but it goes faster 8 hours in ubuntu system.

modify /etc/defaults/rcS
- UTC = yes
+ UTC = no
and link localtime to correct position
$ sudo ln -sf /usr/share/zoneinfo/Asia/Taipei /etc/localtime
done

Install mySQL on Ubuntu Linux

Installing mySQL on Ubuntu is quite simple. I have long time no touching system affairs, and i changed used system from gentoo to ubuntu as well (for some reasons, not meant gentoo not good).
$ sudo apt-get install mysql-server
$ sudo /etc/init.d/mysql start
$ mysqladmin -u root password newPassword
done.