術業有專攻..

一日之所需,百工斯為備,沒有百工,你連一天都活不下去

請尊重不同行業的職人

搞不好公司的CEO,還需要跟路上的清潔工虛心請教哩

More »


1.apt-get install mysql-server

2.mysql -u root -p<password>

3.

//  open mysql db connection ip
grant all on dbname.* to ‘root’@'localhost’ identified by ‘password’;
grant all on *.* to ‘root’@'<ip>’ identified by ‘<password>;
//update privileges
flush privileges;

4.vim /etc/mysql/my.cnf

find

bind-address = 127.0.0.1

delete this line or change to your machine IP

5.restart your mysql

/etc/init.d/mysql restart

6. use mysql navicte etc… to managent your mysql

7.to be careful your mysql security


個人蠻喜歡用orbit的..
剛找了一下..剛好有看到這篇
—————————————————-
安裝完 orbit downloader之後,到C:\Program Files\Orbitdownloader\addons 資料夾底下,會看見一個檔案nporbit和一個資料夾OneClickYouTubeDownloader(名稱隨版本而定),進入該資料夾,找到install.rdf,用記事本開啟此檔案,找到{35379F86-8CCB-4724-AE33-4278DE266C70}這一行,把中間的{35379F86-8CCB-4724-AE33-4278DE266C70}複製下來。

接著將OneClickYouTubeDownloader資料夾複製到..\FirefoxPortable\Data\profile\extensions\底下,
改名成 {35379F86-8CCB-4724-AE33-4278DE266C70},重新啟動firefox即可。
轉貼自

http://allen7575.blogspot.com/2010/09/firefox-portable-orbit-downloader.html


pure-pw usermod <帳號> -r <ip範圍>

如果要鎖死某個ip,就1.1.1.1/32

鎖c class 1.1.1.1/24

不鎖ip 1.1.1.1/0

要同時限制很多個IP的話,以,號隔開

pure-pw usermod <帳號> -r <ip範圍1>,<ip範圍2>…

 

這東西不像GYFTPD或是IOFTPD那種有ADDIP的功能,所以有加IP,就要全部重打一次= =

輸入完要再輸入

pure-pw mkdb

 


1.安裝
wget http://www.rfxn.com/downloads/apf-current.tar.gz
tar -zxvf apf-current.tar.gz
cd apf-9.7-1
./install.sh
2.設定
cd /etc/apf
編輯 conf.apf
其中
IG_TCP_CPORTS="1,2,3,5000_6000″ 以 ,分開,如果連續 (pasv要用的..以_隔開)
IG_UDP_CPORTS="53″ //開啟的UDP PORT
EG_TCP_CPORTS="21,25,80,443,43,2089″ //設定機器允許連外的TCP PORT
EG_UDP_CPORTS="20,21,53″ //設定機器允許連外的UDP PORT
這二行如果在vps…記憶體不足的情形下不要設為1 (會出現問題= =)
/*啟用阻止列表,這裡的列表來自網絡上rfxn.com、www.spamhaus.org和feeds.dshield.org,主要包含了如垃圾郵件的黑名單,DShield公司手機的惡意活動名單*/
DLIST_SPAMHAUS="0″ 改為 DLIST_SPAMHAUS="1″
DLIST_DSHIELD="0″ 改為 DLIST_DSHIELD="1″
DEVEL_MODE="1″ –>DEVEL_MODE="0″
IFACE_IN="venet0″IFACE_OUT="venet0″SET_MONOKERN="1″

3.設定只能進來的ip
編輯 allow_hosts.rules
port要跟IG_TCP_CPORTS裡面的設定的一樣
d=PORT:s=IP
d=22:s=111.111.111.111

再來設定
編輯 deny_hosts.rules
d=22:s=0/0 所有人都不準進來..除了allow_hosts.rules中設定的之外

4.啟動
apf -s // 啟動APF防火牆
apf -r // 重啟APF防火牆
apf -f // 刷新APF防火牆配置文件
apf -l // 列出APF的過慮規則
apf -t // APF的日誌信息。
apf -e // 將域名解釋加入信認規則
apf -a // 將IP/IP段添加到白名單
apf -d // 將IP/IP段添加到黑名單
apf -u // 將IP/IP段從白/黑名單中刪除
apf -o // 將IP/IP段從白/黑名單中刪除


在nas上Make  Unrealircd 3.2.8.1時..最後會出現這個

/opt/arm-none-linux-gnueabi/lib/libpthread.so.0: undefined reference to `__default_sa_restorer_v2@GLIBC_PRIVATE’
/opt/arm-none-linux-gnueabi/lib/libpthread.so.0: undefined reference to `__default_rt_sa_restorer_v2@GLIBC_PRIVATE’
/opt/arm-none-linux-gnueabi/lib/libpthread.so.0: undefined reference to `__default_rt_sa_restorer_v1@GLIBC_PRIVATE’
/opt/arm-none-linux-gnueabi/lib/libpthread.so.0: undefined reference to `__default_sa_restorer_v1@GLIBC_PRIVATE’

根據Synology 官方論壇的描述好像是ipkg所提供的pthread libraries  有錯誤

解決方法

1.backup the pthread libraries found in /opt/arm-none-linux-gnueabi/lib/ :


mkdir /opt/arm-none-linux-gnueabi/lib_disabled
mv /opt/arm-none-linux-gnueabi/lib/libpthread* /opt/arm-none-linux-gnueabi/lib_disabled

2.Copy the pthread libraries found in /opt/lib

cp /lib/libpthread.so.0 /opt/arm-none-linux-gnueabi/lib/
cd /opt/arm-none-linux-gnueabi/lib/
ln -s libpthread.so.0 libpthread.so
ln -s libpthread.so.0 libpthread-2.5.so

做好後再重新make一次即可


1.修改src/modules/m_nick.c 第150行左右

if ((IsServer(cptr) && !do_remote_nick_name(nick)) || (!IsServer(cptr) && !do_nick_name(nick)))   <-這行remark掉
改為 if (!do_remote_nick_name(nick))

2.修改src/charsys.c 第150行左右

const char *illegalnickchars = "\xA0!+%@&~#$:’\"?*,.";

改為

const char *illegalnickchars = "\xA0!+%&~#$:’\"?*,.";


豬寶寶長這麼大..第一套想收集的漫畫..

終於可能在本月會出版 ..

More »


這篇是以前的警政署長講的..

基本上..豬寶寶得死刑不能廢,先不講犯後會不會悔改等等的

光一個阻止預謀型犯罪就不該廢了,現在有死刑都這麼亂了,那沒死刑豈不是有可能更多?

豬寶寶其實覺得新加坡的鞭刑如果拿來台灣..不知道有沒有用?

前幾年聽住美國的朋友說前幾年有酒店的媽媽桑打警察(LINK) 那件事,在美國的話..那個人早就被開槍格斃了..那可能讓他動手打到警察

台灣都這麼民主,要判個死刑,起碼都要拖上好幾年了,還有三審,再上訴,特別上訴..那些廢死刑聯盟的人真的是浪費國家資源…..

More »


最近剛好聽到蔡依林唱的.台灣心跳聲..

More »