» 2012 » December の記事

NOD32 Firewall 有GUI interface, 但我唔明佢點解開port 會仲難過ubuntu 係command mode 開port -.-^
先開nod32 畫面>設定>設定規劃及區域…

Screen Shot 2012-12-31 at 10.26.28 PM

之後會見到尼個畫面,按"切換所有規則的詳細檢視"

Screen Shot 2012-12-31 at 10.26.56 PM

之後會變左甘既樣子, 按新增

Screen Shot 2012-12-31 at 10.27.08 PM 

之後會見到d識打既野了…. service name, allow 

Screen Shot 2012-12-31 at 10.27.38 PM   

去本機,add port , done , thx ….

Screen Shot 2012-12-31 at 10.27.47 PM

常用的PORT

http 80
https 443
ssh 22
pop3 110
smtp 25

 

List of TCP and UDP port numbers

http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers

~ Esxi Copy OS ~

connie 2012.12.30 | ESXi | | No Comments

要係ESXi 內copy 一個OS system, 係成日要做既事
先到關掉target OS
之後到Configuration>Storage>去你想將新OS存放既HDD

Screen Shot 2012-12-30 at 12.16.15 PM

新增一個Folder

Screen Shot 2012-12-30 at 12.16.53 PM

再搵返放Target OS 既HDD>去OS folder 
COPY以下File

  • *.VMX
  • *.vmdk (大過50GB會多過一個File的)

Screen Shot 2012-12-30 at 9.49.08 PM

回到新OS Folder , 之後PASTE(注意,COPY動作中途是不可以停止的)
完成後到新OS FOLDER,右click *.VMX file , 選擇Add to Invertory
那就大概完成了

Screen Shot 2012-12-30 at 1.00.43 PM   

如果DHCP server set 左係static IP 那有機會需要手動改MAC ADDRESS, 先POWER OFF, 改完後重新開vm就成功了

Screen Shot 2012-12-30 at 10.00.07 PM

~ Web Fonts ~

connie 2012.12.29 | web design | | No Comments

想當年如果要係web site 用特別字型,不如直接殺了我
先要係Adobe Illustator到整好晒,export png, 然後又要特別寫set css照顧IE(因為IE6出唔到透明底png)
做好了,keilent(client)會說不如轉字型 :o)

現在方便很多了

Screen Shot 2012-12-29 at 11.43.41 AM

先去http://www.google.com/webfonts選擇你仲意既Fonts
都有OK都選擇(English Fonts only)

Screen Shot 2012-12-29 at 11.43.48 AM

Click on quick use, 入到去可以選擇Latin only or Latin-ext, latin only 當然render 快d, ext咪多d字law , 都係個句睇你要乜law -.- copy ext-css Screen Shot 2012-12-29 at 11.50.36 AM

係IDE打6句, 甘就搞惦sosad

Screen Shot 2012-12-29 at 11.52.39 AM

其他實用css template
 

<style type="text/css>
/*tag with ID*/
#header-name{ font-family:"Freckle Face", arial, sans-serif;}
/*tag name*/
caption{ font-family:"Freckle Face", arial, sans-serif;}
/*tag with class*/
.widget-header{ font-family:"Freckle Face", arial, sans-serif;}
</style>

 

~ Apache 上配置多張 SSL Cert ~

connie 2012.12.28 | ubuntu | | No Comments

有好多人會以為配置SSL virtual Host 時,會同普通http virtual Host 一樣,
copy 多一set virtual host 改servername , restart 就完成.

但你好快會發現有問題出現
假設你有2個SSL site, 同樣都有cert的.
SSL Site B 會使用了 Site A 張cert

要解決這個問題有三個可行的方法

  1. use Wildcard SSL
  2. set different port listener
  3. use mod_guntls mod

總之要點係每個SSL VirtualHost 都要有獨立的IP:PORT組合,不然就要用wildcard SSL

~ Ubuntu Firewall Setting ~

connie 2012.12.27 | ubuntu | | No Comments

以下cmd 需要在有root權的acc使用

Install ufw

sudo apt-get install gufw

Check firewall status

ufw status

Turn on Firewall

ufw enable

Turn off Firewall

ufw disable

Allow a port

ufw allow [port number]

Allow an ip address

ufw allow from [ip address]

Allow a specific ip address and port

ufw allow from [ipaddress] to any port [port number]

Allow ip address range 10.120.0.1 – 10.120.0.255 to port 22

ufw allow from 10.0.0.0/24 to any port 22

Blocking a port

ufw deny port [port number]

To remove a deny or allow rule

ufw delete deny  [port number]

~ install awstats on ubuntu ~

connie 2012.12.26 | ubuntu | | No Comments
sudo apt-get install awstats

Copy the config file for new site (should name as wstats.yourdomain.ext.conf)

cp /etc/awstats/awstats.conf /etc/awstats/awstats.yourdomain.ext.conf

Open the config file, and modify these lines

#Path to access.log for your domain
LogFile="/var/log/apache2/access.log"
#I recommend '1' for more detailed information
LogFormat=1
SiteDomain="yourdomain.ext"
HostAliases="localhost 127.0.0.1 yourdomain.ext"

For running the first time use

/usr/lib/cgi-bin/awstats.pl -config=yourdomain.ext

For update

/usr/lib/cgi-bin/awstats.pl -config=yourdomain.ext -update

apache setting
 

<VirtualHost *:80>
ServerName ***.***.***.***
DocumentRoot /var/www/
<Directory "/var/www/">
Options FollowSymLinks
AllowOverride ALL
Order allow,deny
Allow from all
</Directory>
Alias /awstatsclasses/ "/usr/share/awstats/lib/"
Alias /awstats-icon/ "/usr/share/awstats/icon/"
Alias /awstatscss "/usr/share/doc/awstats/examples/css"
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
ScriptAlias /awstats/ /usr/lib/cgi-bin/
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
</VirtualHost>

/etc/init.d/apache2 reload

0 */3 * * * root /usr/lib/cgi-bin/awstats.pl -config=yourdomain.ext -update &gt;/dev/null

~ ESXi 60天試用註冊方法 ~

connie 2012.12.25 | ESXi | | No Comments

當你使用ESXi接近60天,就要去activate 個 license

方法如下:
先到vmware site, login in 去support & download 選擇 VMware vSphere Hypervisor (ESXi)

Screen Shot 2012-12-28 at 8.57.55 PM    

以後按一下Download

Screen Shot 2012-12-28 at 8.58.26 PM

不用下載,重點係頁面會有LICENSE KEYS 出來

Screen Shot 2012-12-28 at 8.58.37 PM

得到重點後,返去Vsphere Clients->Configuration->Licensed Features->edit->Assign a new license key to this host->Add License Key.

Screen Shot 2012-12-28 at 9.08.18 PM

打完license key 就完成了,恭喜你,你可以用一世了:o)

Screen Shot 2012-12-28 at 9.12.04 PM

~ Samsung Galaxy Note 2 LTE ROOT機 方法 ~

connie 2012.12.24 | android | | No Comments

在DropBox 下載以下file
[android/root_app]
-Odin v3.07
-CWM Recovery 6.0.1.5
-CF-Auto-Root-t0lte-t0ltexx-gtn7105.zip
-N7105ZHALJ4_N7105ZZHALJ4_TGY.zip
-Triangle Away 2.37

root機方法如下:
1]請到手機內設定 > 開發人員選項 > USB偵錯打勾
2]手機關機
3]同時長按手機的三個按鍵 音量鍵下+HOME+電源鍵[Vol down + Home + Power] 進入模式,在按音量鍵上進入到download模式
4]電腦端打開odin
5]在PDA欄瀏覽已下載的ROOT檔案CF-Auto-Root-t0lte-t0ltexx-gtn7105.zip
6]USB 接入電腦, 當手機和電腦連線後ID : COM 出現COM PORT
7]按START 開始
8]當ROOT成功後, ODIN 畫面的ID:COM 上面會顯示 PASS , 手機便自動重啟開機.
9]ROOT 完成 !

還原root方法:
1]下載 [root] Triangle Away 2.37
2]開啟 [root] Triangle Away 選擇 Rest flash counter 出現視窗按下 continue
3]畫面如果黑色不要緊 等到出現官方的字樣就好
4]出現了超大黃色三角圖案 請按下音量鍵上即可
5]重新開機之後 請關閉手機
6]使用過編號8方法請往下步驟開始 請關閉手機
7]同時長按手機的三個按鍵 音量鍵下+HOME+電源鍵[Vol down + Home + Power] 進入注意模式,在按音量鍵上進入到download模式
8]電腦端打開odin
9]在PDA欄瀏覽已下載的官方ROM官方版本

~ root 機後去日本Google Play Store ~

connie 2012.12.23 | android | | No Comments

先到DropBox下載
/android/[IMPORTANT_APP]
-MarketEnabler_v3113.apk

1]到 Custom 輸入: 44010(模擬為 NTT 的 sim 咭)
2]之後按home制不放,強制關閉google play
3]setting->Application manager->ALL->Google Play Store
4]Clear cache Clear data

回復就restore到
45400(1010)
3HK(45403)
repeat clear cache 動作

~ AppServ 開啟 mcrypt 方法 ~

connie 2012.12.22 | apache | | No Comments

在 AppServ 開啟 mcrypt 方法如下 :

去Appserv folder/php5/ copy libmcrypt.dll 抄去C:\windows\

然後到C:\windows\php.ini uncomment 

extension=php_mcrypt.dll

restart apache

« Previous Page | HOME |

Smiley face

December 2012
S M T W T F S
« Nov   Jan »
 1
2345678
9101112131415
16171819202122
23242526272829
3031