» 2013 » January の記事

~ Itune DB 歌名亂碼 ~

connie 2013.01.04 | Uncategorized | | No Comments

遇到 Itune歌名亂碼

Screen Shot 2013-01-08 at 8.45.44 PM

可以用 UnicodeRewriter幫手

先到以下URL 下載

http://sourceforge.net/projects/unicoderewriter/

下載後,install , 不困難的,開啟後會有以下interface 出現

Screen Shot 2013-01-08 at 8.45.59 PM

將亂碼的歌拉入去porgam到 , 再改到Encoding 選擇 source Encoding, 通常都係以下的coding 

  1. BIG5
  2. Big5_HKSCS
  3. SJIS

再入返itune 就不會有亂碼出現

Screen Shot 2013-01-08 at 8.46.54 PM  

 

~ Linux Check login ~

connie 2013.01.03 | Linux | | No Comments

To show users who are logged in to the system

who

To show the list of users who have logged in last

last

To show the list of all reboots

last reboot

To print the content of the last login log from /var/log/lastlog

lastlog

To List out the login history for certain acc

last [username]

 

~ hmail connect mysql database ~

connie 2013.01.02 | mail server | | No Comments

如果要hmail connect mysql, 需要先加上mysql 既library
lbymysql.dll 將此file 抄到 ./hmailserver/bin

blog_01

之後開啟hmailserver>hmailserver database setup

blog_02

New databases choose first one

blog_04

Choose Mysql

blog_05

Service 選擇.net runtime optimization service

blog_06

之後就可以完成

~ VNC ESXi 內的 VM ~

connie 2013.01.01 | ESXi | | No Comments

首先要係ESXi 內開firewall port

先用SSH 方法入去ESXi,
Enable SSH on ESXi 可以參考以下文章
http://connie.hk/146/esxi/esxi-ssh-enable/

用VI開啟以下FILE, 去到最底, 看看最後的Service id

vi /etc/vmware/firewall/service.xml

以下圖為例,最後的service id 為0032

Screen Shot 2013-01-01 at 3.20.24 PM

之後可以用notepad 輸入以下東東, 改左個service id 係之前在service.xml 的+1
port 可以set ip range

<ConfigRoot>
<service id='0033'>
 <id>VNC</id>
 <rule id = '0000'>
  <direction>inbound</direction>
  <protocol>tcp</protocol>
  <porttype>dst</porttype>
  <port>
   <begin>5900</begin>
   <end>5910</end>
  </port>
 </rule>
 <enabled>true</enabled>
</service>
</ConfigRoot>

save 做VNC.xml , 用winscp or 其他東東upload 上 /etc/vmware/firewall

Reflesh firewall rule

esxcli network firewall refresh

還有一步就是要在每個想被vnc的VM內加入configuration parameters
先將該VM關掉,到Edit Virtual machine settings>Options>Advanced>General>configuration parameters

Screen Shot 2013-01-01 at 3.31.37 PM

Add Row
Screen Shot 2013-01-01 at 3.34.18 PM

remoteDisplay.vnc.enabled = true
remoteDisplay.vnc.port = 5900
remoteDisplay.vnc.password = ****

之後就可以用vnc client 輸入esxi ip 用不多的port vnc ESXi's VM 

| HOME | Next Page »

Smiley face

January 2013
S M T W T F S
 12345
6789101112
13141516171819
20212223242526
2728293031