SDN
07/04/2013, 10:47 - Network
SDN要求的功能90%都已經有Standards可以做到了,
除了要用外部controller之外,
不過用了外部Controller,會有to controller bandwidth問題,
也會有performance issue,還有security(中間人攻擊...)的問題。
不難保和SNMP一樣,每家廠商都有支援,但NMS管理量大時,
問題層出不窮。

要改變封包進行的路徑,而不被原本的forwarding table影響,
可以將封包改用 MPLS 並作 traffic engineering,
也可以用 IEEE802.1AD VLAN QinQ或再進一步到IEEE 802.1AH PBB。
也可以兩者或三者同時配合。

Cisco的架構可以簡單的修改就支援OpenFlow類似的要求,
因為Cisco的軟體架構,原本就要求可以經由軟體設定,改變forwarding的方式。
因為不管硬體使用哪一種chip,Cisco都會經由FPGA或軟體作為軟硬體的bridge,
將計算好的routing table或MAC forwarding table,變成switching chip看得懂的表,download到chip內,
只要軟體層的table不變,下層就可以更快速度工作。讓原本要到軟體層查forwarding table ( routing table/MAC forwarding table/IP/ARP/port forwarding ... )都可以直接在最下層直接工作,
以使得軟體層有一致的工作方式。 (CEF switching)

不過單以提供一個標準的控制方式而言是好事,可以簡化設定,也可以大量自動設定網路,不過前提還是一樣,
已經有SNMP了,量太大時還是一樣會有performance的問題。
若是使用多個controller又會有同步的問題。
發表回應 發表回應 ( 735預覽 )   |  [ 0 引用 ]   |  permalink   |   ( 2.9 / 217 )

更新至 Mac OS X 10.8.4
06/06/2013, 22:40 - 今天
在更新OS X 10.8.4前先用Yasu整理硬碟。結果發現MacBook Pro開了兩次都開不起來,想按Command-Option-P-R,結果按到了Command-R就跑出來一個類似開機畫面,先選語言,再來就是可以對硬碟重新安裝、將資料從時光機倒回或硬碟維修,應該是從Download下來的OS X image開機進入維修吧,這樣子以前留的光碟和USB或者是Firewire Target Disk Mode都用不到了。

Apple開機時可以用的按鍵



發表回應 發表回應 ( 209預覽 )   |  [ 0 引用 ]   |  permalink   |   ( 3 / 400 )

被攻擊中
05/22/2013, 22:25 - Network
被攻擊中...


May 19 07:28:25 linux sshd[16495]: refused connect from 190.146.231.34 (190.146.231.34)
May 19 11:20:29 linux sshd[18319]: refused connect from 202.112.112.236 (202.112.112.236)
May 19 14:22:05 linux sshd[18357]: refused connect from 213.108.216.41 (213.108.216.41)
May 20 00:27:10 linux sshd[2063]: refused connect from 202.112.112.236 (202.112.112.236)
May 20 01:04:49 linux sshd[2078]: refused connect from 114.66.192.74 (114.66.192.74)
May 20 01:34:22 linux sshd[2088]: refused connect from 180.210.243.138 (180.210.243.138)
May 20 02:21:47 linux sshd[2097]: refused connect from 125.210.243.249 (125.210.243.249)
May 20 04:53:38 linux sshd[2328]: refused connect from 103.22.182.157 (103.22.182.157)
May 20 06:28:57 linux sshd[2380]: refused connect from 184.107.159.106 (184.107.159.106)
May 20 10:12:51 linux sshd[2474]: refused connect from 217.220.105.11 (217.220.105.11)
May 20 10:17:54 linux sshd[2475]: refused connect from 217.220.105.11 (217.220.105.11)
May 20 12:55:11 linux sshd[2556]: refused connect from 59.151.5.236 (59.151.5.236)
May 20 12:55:49 linux sshd[2557]: refused connect from 118.186.211.46 (118.186.211.46)
May 20 13:55:08 linux sshd[2572]: refused connect from 180.210.243.138 (180.210.243.138)
May 20 16:06:38 linux sshd[2616]: refused connect from 109.73.74.184 (109.73.74.184)
May 20 18:44:44 linux sshd[2714]: refused connect from 202.112.112.236 (202.112.112.236)
May 20 22:58:47 linux sshd[2819]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 22:58:52 linux sshd[2820]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 22:58:57 linux sshd[2821]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 22:59:03 linux sshd[2822]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 22:59:08 linux sshd[2823]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 22:59:13 linux sshd[2824]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 22:59:18 linux sshd[2825]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 22:59:23 linux sshd[2826]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 22:59:28 linux sshd[2827]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 22:59:33 linux sshd[2828]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 22:59:38 linux sshd[2829]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 22:59:44 linux sshd[2830]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 22:59:49 linux sshd[2831]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 22:59:54 linux sshd[2832]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 22:59:59 linux sshd[2833]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:00:04 linux sshd[2835]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:00:09 linux sshd[2836]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:00:14 linux sshd[2837]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:00:19 linux sshd[2838]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:00:25 linux sshd[2839]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:00:30 linux sshd[2840]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:00:35 linux sshd[2841]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:00:40 linux sshd[2842]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:00:45 linux sshd[2843]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:00:50 linux sshd[2844]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:00:55 linux sshd[2845]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:01:00 linux sshd[2846]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:01:06 linux sshd[2847]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:01:11 linux sshd[2848]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:01:16 linux sshd[2849]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:01:21 linux sshd[2850]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:01:26 linux sshd[2851]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:01:31 linux sshd[2852]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:01:36 linux sshd[2853]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:01:41 linux sshd[2854]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:01:47 linux sshd[2855]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:01:52 linux sshd[2856]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:01:57 linux sshd[2857]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:02:02 linux sshd[2858]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:02:07 linux sshd[2859]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:02:12 linux sshd[2860]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:02:17 linux sshd[2861]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:02:22 linux sshd[2862]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:02:27 linux sshd[2863]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:02:33 linux sshd[2864]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:02:38 linux sshd[2865]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:02:43 linux sshd[2866]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:02:48 linux sshd[2867]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:02:53 linux sshd[2868]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:02:58 linux sshd[2869]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:03:03 linux sshd[2870]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:03:08 linux sshd[2871]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:03:14 linux sshd[2872]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:03:19 linux sshd[2873]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:03:24 linux sshd[2874]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:03:29 linux sshd[2875]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:03:34 linux sshd[2876]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:03:39 linux sshd[2877]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:03:44 linux sshd[2878]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:03:49 linux sshd[2879]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:03:55 linux sshd[2880]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:04:00 linux sshd[2881]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:04:05 linux sshd[2882]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:04:10 linux sshd[2883]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:04:15 linux sshd[2884]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:04:20 linux sshd[2885]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:04:25 linux sshd[2886]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:04:30 linux sshd[2887]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:04:36 linux sshd[2888]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:04:41 linux sshd[2889]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:04:46 linux sshd[2890]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:04:51 linux sshd[2891]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:04:56 linux sshd[2892]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:05:01 linux sshd[2893]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:05:06 linux sshd[2894]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:05:11 linux sshd[2895]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:05:16 linux sshd[2896]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:05:22 linux sshd[2897]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:05:27 linux sshd[2898]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:05:32 linux sshd[2899]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:05:37 linux sshd[2900]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:05:42 linux sshd[2901]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:05:47 linux sshd[2902]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:05:52 linux sshd[2903]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:05:57 linux sshd[2904]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:06:03 linux sshd[2905]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:06:08 linux sshd[2906]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:06:13 linux sshd[2907]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:06:18 linux sshd[2908]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:06:23 linux sshd[2909]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:06:28 linux sshd[2910]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:06:33 linux sshd[2911]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:06:39 linux sshd[2912]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:06:44 linux sshd[2913]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:06:49 linux sshd[2914]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:06:54 linux sshd[2915]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:06:59 linux sshd[2916]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:07:04 linux sshd[2917]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:07:09 linux sshd[2918]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:07:14 linux sshd[2919]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:07:20 linux sshd[2920]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:07:25 linux sshd[2921]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:07:30 linux sshd[2922]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:07:35 linux sshd[2923]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:07:40 linux sshd[2924]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:07:45 linux sshd[2925]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:07:50 linux sshd[2926]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:07:55 linux sshd[2927]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:08:01 linux sshd[2928]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:08:06 linux sshd[2929]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:08:11 linux sshd[2930]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:08:16 linux sshd[2931]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:08:21 linux sshd[2932]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:08:26 linux sshd[2933]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:08:31 linux sshd[2934]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:08:36 linux sshd[2935]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:08:42 linux sshd[2936]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:08:47 linux sshd[2937]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:08:52 linux sshd[2938]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:08:57 linux sshd[2939]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:09:02 linux sshd[2940]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:09:07 linux sshd[2941]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:09:12 linux sshd[2942]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:09:17 linux sshd[2943]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:09:22 linux sshd[2944]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:09:28 linux sshd[2945]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:09:33 linux sshd[2946]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:09:38 linux sshd[2947]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:09:43 linux sshd[2948]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:09:48 linux sshd[2949]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:09:53 linux sshd[2950]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:09:58 linux sshd[2951]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:10:03 linux sshd[2952]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:10:09 linux sshd[2953]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:10:14 linux sshd[2954]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:10:19 linux sshd[2955]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:10:24 linux sshd[2956]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:10:29 linux sshd[2957]: refused connect from 113.107.101.234 (113.107.101.234)
May 20 23:10:34 linux sshd[2958]: refused connect from 113.107.101.234 (113.107.101.234)
May 21 02:50:36 linux sshd[3008]: refused connect from 113.6.247.171 (113.6.247.171)
May 21 03:07:17 linux sshd[3010]: refused connect from 200.27.148.60 (200.27.148.60)
May 21 03:12:28 linux sshd[3011]: refused connect from 200.27.148.60 (200.27.148.60)
May 21 06:15:59 linux sshd[5003]: refused connect from 59.151.5.236 (59.151.5.236)
May 21 16:12:19 linux sshd[5268]: refused connect from 199.91.135.140 (199.91.135.140)
May 21 21:04:19 linux sshd[5393]: refused connect from 64.206.128.5 (64.206.128.5)
May 22 01:33:54 linux sshd[5483]: refused connect from 113.107.47.41 (113.107.47.41)
May 22 01:53:48 linux sshd[5493]: refused connect from 80.149.206.2 (80.149.206.2)
May 22 04:53:20 linux sshd[5711]: refused connect from 124.217.239.87 (124.217.239.87)
May 22 05:07:52 linux sshd[5712]: refused connect from 124.217.239.87 (124.217.239.87)
May 22 15:16:21 linux sshd[6070]: refused connect from 122.154.157.104 (122.154.157.104)
May 22 20:36:27 linux sshd[6208]: refused connect from 218.56.48.43 (218.56.48.43)
May 22 21:11:58 linux sshd[6234]: refused connect from 91.207.8.126 (91.207.8.126)
May 22 22:08:26 linux sshd[6252]: refused connect from 221.120.239.155 (221.120.239.155)

發表回應 發表回應 ( 758預覽 )   |  [ 0 引用 ]   |  permalink   |   ( 3 / 367 )

Ubuntu Kickstart file
12/13/2012, 17:47 - Open Source
這是給Ubuntu Linux網路安裝用的kickstart檔案,說實在的,
這Preseed很多東西都不是在文件上寫得很清楚,不過反正現在可以用了。
唉~Ubuntu Linux很喜歡將傳統改掉啊,這樣子一搞,讓原本很熟Linux/UNIX的人,也很頭疼啊。
這個script的後半會修改原本系統的設定,讓Ubuntu Linux box可以不用顯示卡也可以開機,
將顯示的案變成原來的80x25大小,以及設定風扇和CPUFreq根據IT8712的偵測到的温度連動等等。
debugCard是某種功能的東西,而nvram.backup是主機板BIOS的設定備份資料。


#Ubuntu 11.04#
#platform=AMD64 or Intel EM64T
#
platform=AMD64
install
text
#url --url http://ftp.isu.edu.tw/pub/Linux/Ubuntu/ubuntu
url --url ftp://10.7.0.254/pub/Ubuntu/11.04_AMD64_Server
#
preseed --owner d-i debian-installer/locale string en_US.UTF-8
preseed --owner d-i debian-installer/splash boolean false
preseed --owner d-i debian-installer/allow_unauthenticated boolean true
preseed --owner d-i debian-installer/exit/halt boolean false
preseed --owner d-i debian-installer/exit/poweroff boolean true
preseed --owner d-i debian-installer/add-kernel-opts string \
"console=ttyS0,9600n8 console=tty0 hept=force it87.fix_pwm_polarity=1 \
eariltyprintk=ttyS0,9600n8 panic=60 quiet vga=0 nomodeset"
#
preseed --owner d-i console-setup/ask-detect boolean false
preseed --owner d-i console-setup/layoutcode string us
preseed --owner d-i console-setup/variantcode string
preseed --owner d-i keyboard-configuration/layoutcode string us
preseed --owner d-i keyboard-configuration/variantcode string
#
preseed --owner d-i netcfg/choose_interface select auto
preseed --owner d-i netcfg/get_nameservers string
preseed --owner d-i netcfg/get_ipaddress string
preseed --owner d-i netcfg/get_netmask string
preseed --owner d-i netcfg/no_default_route boolean
preseed --owner d-i netcfg/confirm_static boolean false
#
preseed --owner d-i time/zone string Asia/Taipei
preseed --owner d-i clock-setup/ntp boolean true
preseed --owner d-i clock-setup/ntp-server string 10.7.0.254
preseed --owner d-i clock-setup/utc boolean false
#
preseed --owner d-i partman-auto/purge_lvm_from_device boolean true
preseed --owner d-i partman-auto/method string regular
preseed --owner d-i partman-auto/disk string /dev/sda
preseed --owner d-i partman-auto/choose_recipe select atomic
preseed --owner d-i partman/default_filesystem string ext2
preseed --owner d-i partman-lvm/device_remove_lvm boolean true
preseed --owner d-i partman-lvm/confirm boolean true
preseed --owner d-i partman-md/device_remove_md boolean true
preseed --owner d-i partman-md/confirm boolean true
preseed --owner d-i partman/mount_style select traditional
preseed --owner d-i partman/confirm_write_new_label boolean true
preseed --owner d-i partman/confirm_nooverwrite boolean false
preseed --owner d-i partman-partitioning/confirm_write_new_label boolean true
preseed --owner d-i partman/choose_partition select "Finish partitioning and write changes to disk"
preseed --owner d-i partman/confirm boolean true
#
preseed --owner d-i passwd/root-login boolean true
preseed --owner d-i passwd/root-password password admin
preseed --owner d-i passwd/root-password-again passwrd admin
#
preseed --owner d-i passwd/user-fullname string "Admin User"
preseed --owner d-i passwd/username string admin
preseed --owner d-i passwd/user-password password admin
preseed --owner d-i passwd/user-password-again password admin
preseed --owner d-i passwd/user-default-groups string users,sudo,admin,root
preseed --owner d-i passwd/user-uid string 1001
#
preseed --owner d-i user-setup/encrypt-home boolean false
preseed --owner d-i user-setup/allow-password-weak boolean true
#
preseed --owner d-i apt-setup/backports boolean true
preseed --owner d-i apt-setup/multiverse boolean true
preseed --owner d-i apt-setup/partner boolean true
preseed --owner d-i apt-setup/restricted boolean true
preseed --owner d-i apt-setup/universe boolean true
preseed --owner d-i apt-setup/use_mirror boolean true
#
preseed --owner d-i mirror/protocol string http
preseed --owner d-i mirror/country string Taiwan
preseed --owner d-i mirror/hostname string archive.ubuntu.com
preseed --owner d-i mirror/directory string /ubuntu
#
preseed --owner d-i base-installer/kernel/override-image string linux-server
preseed --owner d-i base-installer/install-recommands boolean false
preseed --owner d-i base-installer/kernel/linux/extra-packages string
#
preseed --owner d-i base-config/install-language-support boolean false
#
#preseed --owner d-i archive-copier/desktop-task string ubuntu-standard
preseed --owner d-i archive-copier/ship-task string
#
preseed --owner d-i apt-setup/mirror/error select Retry
preseed --owner d-i debconf debconf/frontend select Noninteractive
#
# For GRUB Lagacy
#preseed --owner d-i grub-installer/grub2_instead_of_grub_legacy boolean false
# For GRUB2
preseed --owner d-i grub-pc/timeout string "60"
preseed --owner d-i grub-installer/only_debian boolean true
preseed --owner d-i grub-installer/with_other_os boolean true
# FOR LILO
#preseed --owner d-i grub-installer/skip boolean true
# FOR GRUB
preseed --owner d-i lilo-installer/skip boolean true
#
preseed --owner d-i finish-install/keep-consoles boolean true
preseed --owner d-i finish-install/reboot_in_progress note
preseed --owner d-i cdrom-detect/eject boolean true
#
preseed --owner d-i pkgsel/upgrade select none
preseed --owner d-i pkgsel/update-polity select unattended-upgeades
preseed --owner d-i pkgsel/install-language-support boolean false
preseed --owner d-i pkgsel/install-recommends boolean true
preseed --owner d-i pkgsel/include string \
ubuntu-minimal,openssh-server,acpid,avahi-daemon,avahi-utils,cpufreqd,cpufrequtils,curl,ethtool,expect, \
fancontrol,lm-sensors,lua5.1,ncftp,snmp,snmpd,traceroute,zip

# Pre-install
##%pre
##/usr/sbin/parted -s /dev/sda mklabel gpt
##%end
#
# Post-install
%post --nochroot
# Remove splashimage settimg in grub boot for no display card installed CentOS
##sed -i '/splashimage/s/^./#&/' /mnt/sysimage/boot/grub/grub.conf
#
# Remove splashsetting in grub boot for no display card installed Ubuntu
# Edit /boot/grub/grub.cfg
sed -i 's/splash//g;/linux_gfx_mode=/s/keep/text/g' /target/etc/grub.d/10_linux
#
sed -i 's/splash//g;/linux_gfx_mode=/s/keep/text/g' /target/boot/grub/grub.cfg
#
# Edit /etc/sudoers file
echo "admin ALL=(ALL:ALL) ALL" >>/target/etc/sudoers
#
# Edit /etc/default/console-setup
sed -i 's/^FONT*/#&/g;/SCREEN/s/^#//g;/SCREEN/s/ //g' /target/etc/default/console-setup
#
cat >/target/etc/fancontrol << EOF
# Confiogure file generated by pwmconfig, changes will be lost
INTERVAL=10
DEVPATH=hwmon0=devices/pci0000:00/0000:00:18.3 hwmon2=devices/platform/it87.656
DEVNAME=hwmon0=k8temp hwmon2=it8712
FCTEMPS=hwmon2/device/pwm3=hwmon0/device/temp1_input \
hwmon2/device/pwm2=hwmon0/device/temp1_input \
hwmon2/device/pwm1=hwmon0/device/temp1_input
FCFANS=hwmon2/device/pwm3= hwmon2/device/pwm2= hwmon2/device/pwm1=
MINTEMP=hwmon2/device/pwm3=20 hwmon2/device/pwm2=20 hwmon2/device/pwm1=20
MAXTEMP=hwmon2/device/pwm3=60 hwmon2/device/pwm2=60 hwmon2/device/pwm1=60
MINSTART=hwmon2/device/pwm3=150 hwmon2/device/pwm2=150 hwmon2/device/pwm1=150
MINSTOP=hwmon2/device/pwm3=0 hwmon2/device/pwm2=0 hwmon2/device/pwm1=0
EOF
#
cat >/target/etc/sensors3.conf << EOF
# libsensors configuration file
# -----------------------------
#
chip "it87-*" "it8712-*" "it8716-*" "it8718-*" "it8720-*"

label in8 "Vbat"
set temp1_type 2
set temp2_type 4
set temp3_type 4

label temp1 "M/B Temp "
label temp2 "CPU1 Temp"
label temp3 "CPU0 Temp"

compute temp1 @-30,@
compute temp2 (@*1.42)-51,(@+51)/1.42
compute temp3 (@*1.42)-51,(@+51)/1.42

chip "k8temp-*"

label temp1 "Core0 Temp"
label temp2 "Core0 Temp"
label temp3 "Core1 Temp"
label temp4 "Core1 Temp"

EOF
#
cat > /target/etc/cpufreqd.conf << EOF
# CPUFREQ.CONF(5) manpage for a complete reference
[General]
pidfile=/var/run/cpufreqd.pid
poll_interval=2
verbosity=4
#enable_remote=1
#remote_group=root
[/General]

[acpi]
acpid_socket=/var/run/acpid.socket
[/acpi]

[sensors_plugin]
sensors_conf=/etc/sensors3.conf
[sensors_plugin]

[Profile]
name=OnDemandHigh
minfreq=50%
maxfreq=100%
policy=ondemand
[/Profile]
#
[Profile]
name=OnDemandLow
minfreq=10%
maxfreq=50%
policy=ondemand
[/Profile]
#
[Profile]
name=PerformanceHigh
minfreq=100%
maxfreq=100%
policy=performance
[/Profile]
#
[Profile]
name=PerformanceLow
minfreq=80%
maxfreq=80%
policy=performance
[/Profile]
#
[Profile]
name=PowersaveHigh
minfreq=60%
maxfreq=60%
policy=powersave
[/Profile]
#
[Profile]
name=PowersaveLow
minfreq=40%
maxfreq=40%
policy=powersave
[/Profile]
#
[Profile]
name=ConservativeHigh
minfreq=33%
maxfreq=100%
policy=conservative
[/Profile]
#
[Profile]
name=ConservativeLow
minfreq=0%
maxfreq=66%
policy=conservative
[/Profile]
#
# Basic states
#
[Rule]
name=AC High Power
ac=on
acpi_temperature=55-85
sensor=temp1:55-85
cpu_interval=ANY:50-100
profile=OnDemandHigh
[/Rule]
#
[Rule]
name=AC Low Power
ac=on
acpi_temperature=0-55
sensor=temp1:0-55
cpu_interval=ALL:0-30
profile=OnDemandLow
[/Rule]
#
[Rule]
name=CPU is Hot
acpi_temperature=75-80
sensor=temp1:75-80
cpu_interval=ANY:90-100
exec_post=/usr/bin/logger -i "System is Hot"
profile=OnDemandHigh
[/Rule]
#
[Rule]
name=CPU is Hot Hot Hot
acpi_temperature=80-90
sensor=temp1:80-90
cpu_interval=ANY:90-100
exec_post=/usr/bin/logger -i -s "System is Hot Hot Hot"
profile=OnDemandLow
[/Rule]
#
[Rule]
name=CPU Over Heat
acpi_temperature=90-110
sensor=temp1:90-110
#cpu_interval=ALL:100-110
exec_post=/sbin/shutdown -h now
profile=OnDemandLow
[/Rule]
#
EOF
#
/usr/bin/wget -c -O /target/usr/local/bin/debugCard ftp://10.7.0.254/pub/debugCard
/usr/bin/wget -c -O /target/etc/nvram.backup ftp://10.7.0.254/pub/nvram.backup
chmod 755 /target/usr/local/bin/debugCard
#
sed -i '/^exit 0/i echo 1 >/proc/sys/net/ipv4/ip_forward' /target/etc/rc.local
sed -i '/^exit 0/i /sbin/modprobe nvram >/dev/null 2>&1' /target/etc/rc.local
sed -i '/^exit 0/i /bin/dd if=/etc/nvram.backup of=/dev/nvram >/dev/null 2>&1' /target/etc/rc.local
sed -i '/^exit 0/i /sbin/rmmod nvram >/dev/null 2>&1' /target/etc/rc.local
sed -i '/^exit 0/i /sbin/modprobe it87' /target/etc/rc.local
sed -i '/^exit 0/i /usr/sbin/fancontrol &' /target/etc/rc.local
sed -i '/^exit 0/i /usr/local/bin/debugCard &' /target/etc/rc.local
sed -i '/^exit 0/i /usr/sbin/ntpdate -s 10.7.0.254 >/dev/null 2>&1' /target/rc.local
# Add WOL enable support
sed -i '/^exit 0/i /sbin/ethtool eth0 -s wol g>/dev/null 2>&1' /target/etc/rc.local
sed -i '/^exit 0/i /sbin/ethtool eth1 -s wol g>/dev/null 2>&1' /target/etc/rc.local
# Add more TX Queue for Ethernets
sed -i '/^exit 0/i /sbin/ifconfig eth0 txqueuelen 5000 >/dev/null 2>&1' /target/etc/rc.local
sed -i '/^exit 0/i /sbin/ifconfig eth1 txqueuelen 5000 >/dev/null 2>&1' /target/etc/rc.local
#

發表回應 發表回應 ( 2704預覽 )   |  [ 0 引用 ]   |  permalink   |   ( 3 / 677 )

Mac OS X Applications Update
07/26/2012, 10:23 - Apple
今天Apple放了很多更新,算算要Download 4-5GB吧。



發表回應 發表回應 ( 218預覽 )   |  [ 0 引用 ]   |  permalink   |   ( 3 / 682 )

台視數位電視頻道不能看了...
07/24/2012, 00:44 - 生活
一件很奇怪的事,而且看來不單只有我家這樣,就是台視的數位無線訊號有問題,可是在公司卻是可以收看的,兩者的不同是,我使用了不同的USB電視棒。
查了一下資料,發現台視是有訊號,但卻解不開。

民視


中視


台視


看來是台視為了要在奧運提供HD高畫質電視,所以不知道作了什麼“改進“,送出來的訊號有些機器解不了,不過有些是可以解開,而且可以看的。
當然也有人和我一樣,而且已經到台視網站上開駡了,不過看來目前好像是以不變應萬變的樣子。
發表回應 發表回應 ( 1115預覽 )   |  [ 0 引用 ]   |  permalink   |   ( 3 / 657 )

Steve Jobs中文版筆記
07/16/2012, 01:01 - Apple
最近才有時間讀完,買了紙本書,可惜精裝本太厚,不好帶,而台灣出版的電子書又限制太多,最後還是想辦法弄了電子檔在Kindle上看完。
其實啊,這本書原本應該可以至少減至一半的厚度的,不過...出版商應該是想多印個幾頁吧。

高手從不思考,而是去感覺,
而直覺這種東西,絕對不是天生的,
而是大量的訓練與經驗之共同產物

如果不是以賺錢為目的,就不要開公司。
產品應該是你相信有價值的東西,使企業能永續經營。
by Mike Markkula

我負責解決問題,你負責付錢。
你可以採用我的設計,也可以不用,
但無論你採用與否,都必須付費。

A咖只會被A咖吸引,如果門開了一點點,
讓B咖進來,接下來就只會有B咖或C咖進來了,
因為B咖只能吸引到B咖,小心眼一點的B咖,
只會讓C咖進來,以免占到位子,
這樣下去,原本的A咖就待不下去了。

Apple有很多優秀的人材,但做的事情不對,因為整體規畫錯誤。
我發現他們都迫不及待要支待正確策略,但我們就是少了正確的策略。
by Steve Jobs 1997 Aug.

Think Different
向瘋狂人士致敬
脫軌的、叛逆的、惹禍的、還有不合常規的、眼光另類的傢伙。
他們討厭規矩,不滿現況。
你可以引用他的的話、也可以反對他們、讚賞或誹謗他們;
你唯一做不到的,就是忽視他。
因為他們推動人類向前邁進。
在某些人的眼中,他們可能是瘋子,但我們卻看到天才。
因為只有那些瘋狂到以為自已能夠改變世界的人,
才能真的改變這個世界。
"The people who are crazy enough to think they can change the world are the ones who do."
-Apple's Think Different Commercial, 1997


賈伯斯在產品檢討會議上,做的第一個決定,就是禁止使用PowerPoint
他說:
我不喜歡他們做簡報時,光是放投影片,而不去思考。
他們遇到問題就只會做一堆投影片,
我要他們深入參與,反覆研究問題,
而不只是放一堆投影片。

言之有物的人,不需要PowerPoint。

如果你需要用到投影片,就表示你根本不知道自已在說什麼。

自我欺騙的團隊,製造出琳琅滿目的產品,但多數都是垃圾。 by Phil Schiller

產品檢討結果是嚴重失焦,只因為官僚體系運作,或為了滿足零售商(客戶)的即興需求,就胡亂生產各種產品的各種特別版本。有些人雖然自已負責的產品剛被砍掉,卻雀躍不已,因為他們終於知道我們的方向在哪裡。

電腦的保鮮期和鷄蛋、牛奶一樣。

如果你發現有些事不太對勁,你不能當作沒看見,之後再回來處理。

以創新取勝的公司,不只必須比別人早一步提出創新概念,還必須在發現自已落後時,知道如何迎頭趕上,快步超前。

決定“不做“什麼,跟決定“做“什麼,一樣重要。就公司而言是如此,就產品而言亦同。

當你是在為自已或自已最好的朋友、家人做一些事情時,你絕不會敷衍了事。
如果你不愛一樣東西,你就不會願意多用一分心力、多花一個週末加班、盡全力挑戰現狀。

當生活感覺像條悠閒的街道,危險其實就在你門口...

創意來自不期而遇的碰撞、隨機發生的討論。

電腦產業應該非常重視創新,但這個產業卻製造出太多完全缺設計感的廉價產品。

忽忘人生終有一死,不可得意忘形、忽忘心存謙卑。

當我們發現一件事情很糟糕時,多數人都不會直接說出來,因為我們都不希望討人厭,這其實是一種虛矯的特質。這簡直是一種過度體諒的開脫說詞。

當我們的工具不好用時,我們常會怪自已:是不是自已太笨了,沒好好閱讀使用手冊,或根本就是手指長得太肥了...。當我們的工具不靈光時,我們會覺得自已好像也不怎麼靈光。當有人幫我們改善了一個東西時,我們似乎覺得自已好像也更完整了那麼一點點。

過程本身就是收獲。

克卜勒說:大自然喜愛簡約與統一。

Cory Doctorow:為什麼我不買iPad-"蘋果確實很為使用者著想,設計也很聰明,但是我們依然可以感覺到他們對使用者的輕蔑。如果你買一部iPad給你的小孩用,那你並不是要去啟發他們,讓他們了解這個世界是可以拆解再重新組裝的。反之,你得告訴你的後代,就連換電池這種小事,也不是你做得到的,你必須交給專業人員去做。“ (我認為他買錯禮物了,他應該買樂高才對。)

如果一個領導人彬彬有禮,温良恭儉,小心翼翼不讓任何人受傷,通常無法成為有效的改革者。

能獲利當然很好,因為這樣你才有更多的本錢去做很棒的產品。然而重要的動機還是產品,而不是獲利。

給消費者想要的東西。但這不是我的做法。我們必須在消費者知道自已想要什麼東西之前,就幫他們想好了。

像IBM或Microsoft這樣的大公司為什麼會衰退?他們本來表現得很不錯,能夠不斷創新,最後稱霸一方,但之後就不再那麼重視產品品質。他們漸漸認為,公司最重要的人才是銷售人員,而非產品工程師和設計師,因為只有銷售人員才能使公司的營收數字攀升,最後公司的掌門人就是做銷售的。但他對產品一無所知。

你要不是忙著生存,就是在為死亡瞎忙。 by Bob Dylan

也許生死就像開關。㕷!開關關上,你就走了。

From: Tasuka
書中有很多發人深省的故事,令人自我檢視是否有做過、或做到這些事,不論好與壞。不過全書的翻譯實在不能說好,可能是因為是合作翻譯的關係吧,有時一些用詞也不是台灣常用的話法。而有些專業用字,不翻譯比翻譯要好,人名應該不要翻譯會好一點,因為大家都知道這是翻譯書,但人名經過翻譯之後,就很難和原本的人連結在一起了,不論是以前或以後在報章上看到任何相關報導都很難連結在一起。

我認為在最後,Steve Jobs要告訴我們的是:
生命有限,為愛自已和自已所愛的人而活。
做任何事都要精益求精,從平凡的小細節中下手。
是對的事一定要堅待己見,不對的事馬上認錯?
很多創新的事情和想法,不是在會議室中產生,而是在散步、平日的不期而遇中的碰撞產生的。創新就是在細節上好好琢磨、著墨,不過千萬不要著魔。
專心一次只做一件事,並且以不滅的熱情,專注把事情做到最好。
學會放手。
我個人認為,人生學會放手是最重要的事。
發表回應 發表回應 ( 659預覽 )   |  [ 0 引用 ]   |  permalink   |   ( 3.1 / 557 )

Cloud Networks
05/31/2012, 10:51 - Network
看到Cloud Network,大家都會說那就是Grid/IaaS/SaaS/PaaS/Virtualization/Distributed File System/Distributed Computing ... 說這麼多,其實就是資源如何有效的、合理的分配及利用。而要做到有效、合理的分配利用資源,就是Peer和Peer之間的溝通,就好像在公司內同事之間的合作一樣。當同事之間合作一個案子時,要如何分工,進行工作的步驟和方法,人力是否足夠,問題要如何解決。這些在Cloud Network也是一樣。

若Cloud只是簡單的將一群電腦用LAN/WAN網路組合起來,找台Server跑些Monitoring的程式、在某些電腦上裝個Distributed File System分享空間、弄個xxxStack(OpenStack/CloudStack)跑跑Virtualization、隨便寫個Network Traffic Load Balance程式,就說這叫Cloud,可以作到......之類的。也許這樣可以工作,可以用啦,但真的這樣就可以了嗎?注意到上面這些功能都還是以每台電腦自已作自已的事,偶而接受從網路來的指令,作想對的工作。但忙的很忙,而且可能忙不過來,但空閒的卻很空閒(像不像某些公司分工合作模式?)。

可是這種合作關係相當的脆弱,像是一群散兵游勇,每個都身經百戰,但組成一個團隊時,還是各自用各自的方法,結果有時是好的,但大部份都無法完成任務。一個無法完成任務的團隊,以結果論而言就是失敗啊。


如果團隊中的每個人都可以清楚團隊中的每個人所在位置、負責的工作、手上的資源,並有效分配資源完成任務,這樣才對吧。所以一個Cloud Network也應該是這樣才對。在每個點之間要互相溝通,並可以自動的調整自已的資源,分配工作任務,配合其他的點一起完作任務才對。


要如何作到溝通,和調整呢?利用網路在各點之間將自已的資源資訊交換出去,並在別的點有需要時,自動提出可以提供幫助。將別的點資訊收下來參考,等自已需要幫助時提出需求。

以上是一點想法,真的東西還沒有實際作出來,重點在將分散的各個點,經由通訊及資訊交換,變成分工合作的一個整體,而不再是每個點作固定的工作(Web Server/Billing Server/SQL Server/Monitoring Server/Load Balance Server/Virtualization Client...),又因為這些工作都是由固定的Server群負責,所以預防萬一,又再需要HA,又要Backup....,要真正的分工合作,也許P2PZeroconf是一個可以參考的方向吧。

也就是當需要一個檔案時,向網路上的同儕提出需求,並期待同儕回應;需要SQL Server時,可以向同儕提出詢問,SQL Server何在,知道之後就連過去,而不再是死設定固定的位址;需要儲存空間時,提出需求,待同儕回應,就將資料送過去;需要開一部VM時,需要的Image何在、誰有空可以提供VM跑起來的環境;需要計算資源時,誰最有空、最快可以完成...

我會不會是在做夢啊?

發表回應 發表回應 ( 1557預覽 )   |  [ 0 引用 ]   |  permalink   |   ( 3 / 259 )

有線寬頻
05/28/2012, 19:11 - 生活
家中的第四台業者來推銷數位機上盒,kbro大寬頻,裝了一個難看的機上盒加一顆USB硬碟,可以當PVR用,不過誰會真的去用啊。這樣子的話就又多了一個遙控器,對長輩們來說實在是很難用,而且有些台因為不明原因,根本就被鎖了,要再付費才可以看,而且送過來的訊號還是原來的電視解析度,根本沒有HD啊,有時還會停頓一下。原來已經付了一次有線電視收費用,再加上機上盒及每月的寬頻費用,實在是一條牛剝好幾皮。
事實上這種服務是很好,但不應該再收費,因為若用了這個機上盒,可以作即時的收視率調查,可以收集客戶的收視習慣,這些次料是可以再轉賣出去的,而且一定要一台電視對一個機上盒,以收費而言實在是太有賺頭了。再說已經買了一部高級的Internet電視,結果還是要再加機上盒,真是浪費了一部好電視。所以這個機上盒應該要再改進一下,應該變成是用Ethernet或Wifi來接到Internet電視,而且收費要含到原來的有線電視費用之內才對,現在接到HDMI或AV端子的接法是為了十年前的一般電視設計的,早過時了,只是為了要插那一片客戶辦識卡而已。對了那個MOD的機上盒也一樣難看,也沒有必要了。因為現在市面上買得到的新電視,比較上得了台面的主要品牌大都有有線或無線網路接口了。

Sony Braiva TV
Samsung Smart TV
LG Cinema 3D
Panasonic VIERA
發表回應 發表回應 ( 613預覽 )   |  [ 0 引用 ]   |  permalink   |   ( 3 / 494 )

Kindle DX入手
05/23/2012, 19:49 - Misc
上星期五收到了從Amazon寄來的Kindle DX,寄送的過程中,一開始UPS會先要求寫兩張文件,一張是給海關,一張是給台灣NCC,然後就收到了,過程相當簡單,想來已經有很多的前人努力過了吧。現在正快樂看書中,不過中文書還是看好讀網站的書,到底我要看的中文書何時可以買到啊!

Kindle DX沒有中文,不過參考了好讀網站 Kindle 2 及 Kindle DX ( DXG ) 的中文化就可以了,而且可以看到中文檔案名,網站也可以看到中文,不過當然沒有中文輸入法啦。

而Kindle DX不支援ePub格式,可以用calibre來轉格式成Mobi就可以了,還可以轉PDF/CHM/ZIP等各種格式,還是免費軟體,而且Linux/Mac/Windows都可以用,很方便。

不過雖然Amazon有提供5GB空間作為電子書的備份用,但是若不是向Amazon買的就不能放上去,所以...用USB傳檔案也很簡單啦。

Amazon提供的免費3G網路不算快,應該是連線之後再VPN到美國吧,因為在Map上看到所在地是在美國,有時可以看看網路新聞也算不錯啦,但沒用時就關掉吧,省電又不會被追踪。

電子紙的顯示還是比LCD好很多,而且可以在太陽下看。這次還發現數年前買的六吋BeBook顯示顏色變得比較白,可能電子紙還是會退色、有壽命限制吧。

Kindle DX大約有BeBook的兩倍顯示空間,看PDF雖然還是會小一點點,但是已經在可以接受的程度了。
3 回應 3 回應 ( 27370預覽 )   |  [ 0 引用 ]   |  permalink   |   ( 3 / 612 )


<<開始 <前一頁 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 下一頁> 最後>>