2009年11月18日 星期三

Freemind 在 Ubuntu 9.1.0 下中文字形解法

1. apt-get install sun-java6-bin sun-java6-jre
2. edit ~/.bashrc
export JAVA_HOME=/usr/lib/jvm/java-6-sun
export CLASSPATH=$JAVA_HOME/jre/lib
exort PATH=$JAVA_HOME/bin:$PATH
2-1. 也可 sudo update-java-alternatives -s java-6-sun, 無須修改bashrc
參考網址 Tsung's Blog (http://plog.longwin.com.tw/my_note-unix/2009/10/12/ubuntu-904-install-freemind-2009)



2009年11月13日 星期五

robocopy

D:\>robocopy \\src_host\packages\ d:\test\ upgrade-6.5.2_build_10115_R65.tar /CO
PYALL /Z /E

#robocopy source_folder destination_folder [source_files_a][source_files_b][source_files_c]
#/COPYALL: preserve all attribute
#/Z resumable transfer
#/E recursive copy

2009年11月11日 星期三

Ubuntu/CentOS use static IP instead of obtain from dhcp

Ubuntu:edit /etc/network/interfaces
# The loopback interface
auto lo
iface lo inet loopback

# Configuration for eth0 and aliases

# This line ensures that the interface will be brought up during boot.
auto eth0 eth0:0 eth0:1

# eth0 - This is the main IP address that will be used for most outbound connections.
# The address, netmask and gateway are all necessary.
iface eth0 inet static
address 66.246.75.77
netmask 255.255.255.0
gateway 66.246.75.1

# eth0:0
iface eth0:0 inet static
address 97.107.130.169
netmask 255.255.255.0

# eth0:1 - Private IPs have no gateway (they are not publicly routable) so all you need to
# specify is the address and netmask.
iface eth0:1 inet static
address 192.168.133.234
netmask 255.255.128.0

CentOS:
edit 
/etc/sysconfig/network-scripts/ifcfg-eth0
# Configuration for eth0
DEVICE=eth0
BOOTPROTO=none

# This line ensures that the interface will be brought up during boot.
ONBOOT=yes

# eth0 - This is the main IP address that will be used for most outbound connections.
# The address, netmask and gateway are all necessary.
IPADDR=66.246.75.77
NETMASK=255.255.255.0
BROADCAST=66.246.75.255
GATEWAY=66.246.75.1

edit /etc/sysconfig/network-scripts/ifcfg-eth0:0
# Configuration for eth0:0
DEVICE=eth0:0
BOOTPROTO=none

# This line ensures that the alias will be brought up when the interface is.
ONPARENT=yes

# eth0:0
IPADDR=97.107.130.169
NETMASK=255.255.255.0
BROADCAST=97.107.130.255
GATEWAY=97.107.130.1

ref: http://www.linode.com/wiki/index.php/Configure_Static_IPs















2009年11月9日 星期一

568A & 568B , network cord color order

Crossover Cable - 568A - Network_Card to Network_Card, Device to Device
Green white | Green | Orange White | Blue | Blue White | Orange | Brown White | Brown

Straight Cable - 568B - HUB to Network_Card
Orange White | Orange | Green white | Blue | Blue White | Green | Brown White | Brown

# Crossover Cable 一頭為568A, 一頭為568B
# Straight Cable 兩頭皆為568B
568B的顏色順序由左至右將1,3腳對調, 2,6腳對調即為568A