2011-03-16

KMS Client Setup key

http://technet.microsoft.com/en-us/library/ff793421.aspx

使用零售版retail或MSDN下載的光碟安裝,必須key入key才能使用KMS啟用。
Windows 7 Professional
FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4

freebsd 8.1 install memo

reinstall 8.1

my example ip is 192.168.1.1

1. portsnap fetch extract
portsnap fetch upgrade

/usr/ports 10G

2. setup ntp.conf
3. setup ipf.rules

4. pureftpd
create ftp account
mail#pw groupadd ftp

mail#pw useradd -n ftp -u 2010 -s /sbin/nologin -d /dev/null

5. dovecot
User administrator not allowed to log in using too low primary UNIX group ID 0(wheel)
(see first_valid_gid in config file)

6. isc-dhcpd
ok


7. mysql
make WITH_CHARSET=utf8 WITH_XCHARSET=all WITH_COLLATION=utf8_general_ci BUILD_OPTIMIZED=yes BUILD_STATIC=yes install clean
In conjunction with the user change in the previous section, you should also change the permissions on the database files. I used the opportunity to move the database files to another location. By default, the database files are located in /var/db/mysql. This can be changed by modifying the script /usr/local/bin/safe_mysqld. But I prefer to leave scripts unchanged and just move the files. So I did this:
cd /var/db
mv mysql /usr/local/
ln -s /usr/local/mysql mysql
Then I changed the permissions.

cd /usr/local
chown -R mysql mysql
And then restarted mysqld.

mysql_install_db
WARNING: The host 'nagi.et.local' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing MySQL system tables...
OK
Filling help tables...
OK



PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/local/bin/mysqladmin -u root password 'new-password'
/usr/local/bin/mysqladmin -u root -h hostname.example.com password 'new-password'



cd /var/db/mysql
chown mysql mysql
chown mysql test
chown mysql performance_schema

8. apache?

modify /etc/hosts
192.168.1.1 hostname hostname.example.com



9. php
modify httpd.conf
addtype php

must restart apache

10. phpmyadmin
many package
phpMyAdmin-3.3.8 has been installed into:

/usr/local/www/phpMyAdmin

Please edit config.inc.php to suit your needs.

To make phpMyAdmin available through your web site, I suggest
that you add something like the following to httpd.conf:

Alias /phpmyadmin/ "/usr/local/www/phpMyAdmin/"

Options none
AllowOverride Limit

Order Deny,Allow
Deny from all
Allow from 127.0.0.1 .example.com

use session method. Not to use config method.
mysqladmi -u root -p password /* change root password */
login phpmyadmin with root and new password, ok.

11. phpbb
phpBB3 has been installed, but is not quite ready to be used yet!

You have to ensure that you have a database server (or ODBC access to a
remote database) installed and configured, and you have to ensure that your
PHP installation has been compiled with support for your database or
database access method. You have to create a database for phpBB3 to use,
and ensure that this database may be accessed and changed by the user id
under which your web server executes. Further information on these
installation procedures may be found in:

/usr/local/share/doc/phpbb/README.html

Once these steps have been taken, you may connect to the following URL to
configure your installation of phpBB3:

http://localhost/phpBB3/

After configuring phpBB3 and ensuring that it is operational, you MUST
remove or rename the install/ directory from /usr/local/www/phpBB3:

user right:
myself as global moderator


12. cacti
Cacti is now installed. If you intall it for the first time,
you may have to follow this steps to make it work correctly:

1. Create the MySQL database:
# mysqladmin --user=root create cacti
2. Create a mysql user/password for cacti:
(change user and/or password if required)
# echo "GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'cactiuser'; FLUSH PRIVILEGES;" | mysql
3. Import the default cacti database:
# mysql cacti < /usr/local/share/cacti/cacti.sql
4. Edit /usr/local/share/cacti/include/config.php.
5. Add the line to cron jobs with the command:
# crontab -u cacti -e
*/5 * * * * /usr/local/bin/php /usr/local/share/cacti/poller.php > /dev/null 2>&1
6. Add alias in apache config for the cacti dir:
Alias /cacti "/usr/local/share/cacti/"
7. Be sure apache gives an access to the directory ('Allow from' keywords).
8. Open a cacti login page in your web browser and login with admin/admin.

If you update cacti, open a login page, an updating process
will start automatically.


modify cacti.sql
"TYPE=MyISAM" with "ENGINE=MyISAM"

/var/cron/tabs/cacti
*/5 * * * * /usr/local/bin/php /usr/local/share/cacti/poller.php > /dev/null 2>&1
crontab -u cacti -l /* list */





2010-11-11

phpBB3 3.0.7

freebsd 8.0

用ports安裝

安裝完後mv install folder

search engine
用phpmyadmin修改phpbb_posts,topics
資料庫innodb改為MyISAM

修改search為mysql fulltext

解決IE永遠用同一視窗開啟新連結

This setting controls whether Internet shortcuts are opened in an existing available Internet Explorer window or whether a new window should be spawned.

User Key: [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
Value Name: AllowWindowReuse
Data Type: REG_DWORD (DWORD Value)
Value Data: (0 = new window, 1 = existing window)

設為0

fiber lc connector

mini gbic sfp

http://www.tech-faq.com/lc-connector.shtml

國內各大ISP DNS伺服器位址

國內各大ISP DNS伺服器位址

Hinet dns - 中華電信dns
168.95.1.1
168.95.192.1
168.95.192.2

SeedNet dns - 數位聯合電信 dns
北區: 台北, 桃園, 新竹, 宜蘭, 花蓮, 苗栗
139.175.55.244
139.175.252.16
中區: 台中, 彰化, 南投, 雲林
139.175.150.20
139.175.55.244
南區: 高雄, 台南, 嘉義, 屏東, 台東
139.175.10.20
139.175.55.244

So-Net dns
61.64.127.1
61.64.127.2

GIGA dns
203.133.1.8
203.133.1.6

APOL dns - 亞太線上 dns
203.79.224.10
203.79.224.30

Sparq dns - 速博 dns
211.78.130.10
211.78.130.11

TFN dns - 台灣固網dns
211.78.215.137
211.78.215.200

TTN dns - 台灣電訊dns
202.145.136.4
202.145.138.1
202.145.138.136
202.145.138.200
210.17.1.1

2010-11-05

彩色轉黑白

其實有很多種方式,Lab、灰階、去飽和度、色板混合器均可,其中效果最好的是色板混合器,因為是單獨挑出三色的色頻來轉,它的色階層次表現會更好。
轉法是------(Photoshop)
影像/調整/色板混合器
其中要把左下角的□單色選項打勾,然後三色的色頻分別調整,通常紅色60,綠色40,藍色0,常數也是0,就可以調整的不錯,但是這只是大概,還是要依圖來調整。
調整完後,不是就結束了,還要再進入色階圖去調整,我的習慣是整個畫面會分離出不同的部分,分別調整。

2010-10-26

ESXi 4.0 upgrade to 4.1 sample with vihostupdate

C:\Program Files\VMware\VMware vSphere CLI\bin>vihostupdate.pl --server 192.168.1
.1 -i -b d:\upgrade-from-ESXi4.0-to-4.1.0-0.0.260247-release.zip -B ESXi410-GA-
esxupdate
Enter username: root
Enter password:
Please wait patch installation is in progress ...
Host updated successfully.

C:\Program Files\VMware\VMware vSphere CLI\bin>vihostupdate.pl --server 192.168.1
.1 -i -b d:\upgrade-from-ESXi4.0-to-4.1.0-0.0.260247-release.zip -B ESXi410-GA
Enter username: root
Enter password:
Please wait patch installation is in progress ...
The update completed successfully, but the system needs to be rebooted for the c
hanges to be effective.

C:\Program Files\VMware\VMware vSphere CLI\bin>vihostupdate.pl --server 192.168.1
.1 --query
Enter username: root
Enter password:
---------Bulletin ID--------- -----Installed----- ----------------Summary-------
----------
ESXi410-GA-esxupdate 2010-10-26T04:02:45 ESXi pre-upgrade Bulletin

ESXi410-GA 2010-10-26T04:06:21 ESXi upgrade Bulletin


C:\Program Files\VMware\VMware vSphere CLI\bin>

2010-09-27

hp proliant server driver

1. install os with smartstart cd
2. install os with os cd. After installed os, use proliant support pack.

2010-09-17

CHT8000 Hard reset

CHT8000 (Huawei U8220) Hard reset factory default
CHT8000清空使用者資料 回復出廠設定

1. shutdown
2. press "menu" + "red button(hang off button)" + "power button"
3. pulse
4. choose "wipe data factory default"
5. choose "reboot"
6. take more time for booting....be patient....
7. boot ok...done....

2023 灌籃高手 SLAM Dunk

 2023 哩哩摳摳 昨天是難得的颱風假。 去看了二輪的灌籃高手。 電影院一堆的小朋友阿。 以下有小暴雷。 雖然我不算是非常的迷灌籃高手,但是還是很喜歡這部作品。 井上老師的畫風我也非常喜歡。 整部片是以良田的角度來看的。 以前我並不是很熟習良田這個角色,但是看到良田能重新站起來...