目前分類:我的電腦二三事 (24)

瀏覽方式: 標題列表 簡短摘要
今天下午

大妹突然傳MSN訊息給我說: 姐,我的USB不能存取,怎麼辦?

我: 為什麼不能存取??你的電腦有出現錯誤嗎??

大妹: 就剛開始又出現病毒,結果我選封鎖刪除後就不能開了

我: 這樣好了,你先重開電腦;再試一次看看

大妹: 我已經重開了

我: 還是不行嗎?

大妹: 不行

我: 你先用媽那台筆記型電腦試看看

大妹: 對喔! 我先試試



過了一會兒,



大妹: 姐,不行啦! 用媽那台一樣被拒絕存取,怎麼辦?是不是沒救了?? (其實這個方法不是很好,因為有可能會害另外一台電腦中毒;但當時只能先這樣試)

我: 你裡面有什麼重要的資料嗎?

大妹: 就我的功課啊!我學校所有的東西都在裡面

我: 我剛問我同事,他說你中了USB的毒 (是的! 現在有專門攻擊USB的病毒,請大家要小心!)

大妹: 不會吧!結果勒?

我: 請節哀...



大妹: 天啊! 晴天霹靂! 晴天霹靂! 我...死定了

我: 你都沒有備份嗎? 就是之前有的存在你自己的電腦裡?

大妹: 有一些,另一些是昨天的,還沒備份

我: 那你怎麼寫作業?

大妹: 所以啦,現在就完蛋了! 只好從頭寫啦!!

(備份真的很重要,所以請平常一定要養成資料備份的好習慣)



前面看起來好像大妹的作業全都不見了

但後來試了一下發現大妹放在USB裡的資料都還在,

所以最後還是想辦法把大妹的作業都救回來了



以下就是為了完全看不懂電腦文字的大妹所做的說明

(不過事後我有再修改了一下,因為後來發現大妹中的毒並不是我所想像中的USB隨身碟病毒,所以下面的這個方法是比較簡單的)



首先,先把USB接到電腦上

然後按下"開始"->"執行";接著在出現的對話框裡輸入"cmd"的命令





接著打開"我的電腦",看看接上去的USB磁碟代號是什麼

最後試看看能不能透過"dir"的指令讀取到USB裡的資料





試看看能不能進入USB裡 (當大妹執行這一步驟成功時,我開始覺得資料救回來的可能性應該很大)





最後透過XCOPY的指令把USB裡的資料全部複製到電腦裡





結果,幸好大妹跟我說DOS裡的指令成功的執行完畢

所以USB裡所有的資料就全部複製到電腦裡了

於是,本來可能要幫大妹寫報告的我就不用回家幫忙打報告啦 ^c^y





如果發現的USB毒是情況是不一樣的情況時

可以參考下面的兩篇文章


緊急病毒通告--USB隨身碟病毒



USB病毒較有效之解毒法




不過資料救回來以後

請千萬記住電腦一定要掃毒 (
symantec線上掃毒
: 建議用IE執行線上掃毒,因為Firefox執行會出現錯誤)





後記:

晚上回家後,看見正在快樂看電視的大妹

我:你作業都寫完了?

大妹: 還有一份

我: 那你還在看電視? 你確定資料都救回來了嗎?

大妹: 對啊! 因為那份作業下下星期才要交給老師,而且有件事我不知道要怎麼跟你說耶

我: 什麼事?

大妹: 就是我以為很重要的那份作業,其實不在我的USB裡;我後來想很久才想到,我好像把它留在台北的電腦裡了! 可是我以為我是在放USB裡,下午看到USB不能讀取的時候,我真的嚇到了!

我: ... (不知道該對大妹的迷糊說什麼)



也就是說,今天迷糊的大妹緊張一整天的結果居然是為了一份根本就不在USB裡的資料

而那份資料好端端的還在另一台電腦裡,

那今天我們倆個到底是為了什麼緊張呢....


skydiary 發表在 痞客邦 留言(0) 人氣()

最近看到這樣一篇文章: 小心! 你的部落格可能涉嫌'侵權'

我想了很久很久

最後我決定讓BLOG回歸到最原始的定義: WEB LOG

一個我對於想分享自己的生活所寫的WEB LOG



關於音樂,我是支持正版的

但我相信有些人應該會覺得網頁上的音樂只是想分享給朋友聽

並不是開放讓大家下載

為什麼會涉及侵權?



我就是這樣的人

我希望可以介紹好聽的音樂給朋友們聽

再鼓勵他們去買正版音樂

我可以很驕傲的說: 我介紹的全是我買的正版音樂

絕對不是想要侵犯這些音樂創作者的著作權



但即使如此

我還是得說句實話

稍微懂一點電腦的人

要從BLOG當中把音樂偷走是一件很容易的事情



(真的很容易!但請不要問我怎麼偷! 因為我是不可能教這種偷竊的手法的!!)



對於像我這樣的一般人來說

頂多可以分出正版音樂跟有版權的MTV之外

其他的Youtube上所分享的影片真的會搞不清楚哪些內容有涉及侵權問題

也正因為如此

所以截至目前為止,我從不曾在BLOG上內嵌Youtube分享的影音內容



不過我想應該還是有很多人不曉得這個消息

所以請大家看看這篇『小心! 你的部落格可能涉嫌'侵權'』的文章後

然後仔細的想一想

雖然這是WEB 2.0的時代

但這也是個在法律方面對於上傳分享遊戲規則還沒有定義清楚的時代

是不是真的有必要冒警方或IFPI喝咖啡的風險

把一些你不確定是否有版權問題的分享資源放到自己的BLOG上



skydiary 發表在 痞客邦 留言(0) 人氣()

最近因為想偷懶加上剛好有時間

於是把先前會重覆的測試內容寫成一個網頁



心想只要網頁寫得好

那麼以後只要輸入數字跟按滑鼠右鍵就可以讓電腦自動產生重覆性高的XML指令



終於把網頁寫好後

突然想到,如果遇到一個不小心的使用者時

這個完全沒有防呆功能的簡單網頁一定會被惡搞一番



於是就又加上了幾個簡單的JS Function

邊寫邊查資料的時候

突然找到這樣的一篇文章: 『正規表示法: 表單資料驗證』



或許對很多人來說這篇文章只不過是基礎常識

但對我來說,卻是十分新奇的 (咦?我到底是哪個年代的人啊~~~@_@")



原來UNIX的正規表示法在Netscape跟IE的第四版後都已開始支援了

於是念完文章的介紹說明後,

然後抱著好玩的心態

試寫了一下數字跟IP格式的檢查函式



運作結果當然是正常嚕! (哈哈哈...又學到一招了!)





我寫的JS函式如下:







只要透過onBlur的事件趨動這兩個函式就可以了

例如:





Integer Only:



IP Only:







連按鈕都不用放上去就可以趨動數字跟IP檢查了

有沒有!!有沒有!!正規表示法真的很有趣吧!!

skydiary 發表在 痞客邦 留言(0) 人氣()

今天早上一進公司,
同事J就問: 下午要不要去資訊展
我: 要啊! 不過怎麼現在才說啊! 我今天沒帶相機! (第一目標科技產品,第二目標當然是Show Girl啦!! 哈哈哈...)

於是中午過後,
就光明正大的跟同事們一起翹班啦!

咳咳咳...
不,更正! 我們是去資訊展看新科技產品應用的情況

一到世貿中心
居然看見一大群的學生

現在難道流行到資訊展校外教學?
而且還不只一個學校的學生?!

為了避免跟這麼一大群人擠在一起
今年我盡量避開主力火場 (也就是群聚筆記型電腦,桌上型電腦,數位相機的戰場)

然後發現到今年居然Walk TV跟3G Streaming的產品也有廠商參展了!
基於好奇心再加上又是跟工作有關
於是上前去問了一下敵方的產品架構

(雖說是敵方,不過仔細想想這些廠商其實也都是公司未來的潛在客戶;畢竟我們的產品還是跟這些廠商的產品有著絕對的差異性)

雖然說廠商A的產品,在可選頻道上會讓一般人覺得驚喜
但展示Bitrate只有128kbps而已
不過廠商A說Bitrate最高還可以調整到256kbps
可是只要一想到server跟client間是一對一的關係,
以及通訊費用是以ISP的3G費率為收費標準
那可就一點也笑不出來了

逛到廠商B的攤位時
才真的叫人覺得驚喜
因為Walk TV居然只要NT 8,300

對於全家分散在不同地方的我來說
這東西有著不可思議的方便性

只要在家裡裝上Walk TV,
那麼不管在世界的哪一個角落
只要可以上網就可以收看台灣的電視頻道 (無線頻道跟有線頻道都可以收看喔!)

想當初,如果家裡有擺一台這個Walk TV
那麼我們家就可以省下一筆新加坡的有線頻道費用了
當爸爸跟我出差時,在國外也可以收看全民大悶鍋
在外地求學的妹妹也可以上網收看喜歡的有線頻道 (想到這些,當場就很想敗一台Walk TV回家!!)

可是Walk TV方便歸方便
卻有個傷腦筋的地方
那就是上載的頻寬一定要夠

資訊展會場裡,廠商的展示頻寬是700kbps
畫質看起來雖然可以接受
不過一般家庭會有那麼大的上載頻寬嗎?
尤其是台灣的寬頻費用跟鄰近的幾個國家比起來真的很貴
一考慮到這些
想敗家的熱情就冷下來了

雖然跟前幾年相比Walk TV已經降價不少了
不過要是Walk TV可以再便宜點
台灣寬頻費用可以便宜很多點 (現在真的太貴了!)
到時候我肯定會敗一台Walk TV回家!!

這次大概是這幾年來
我逛資訊展速度最快的一次了 ( 大概三個多小時就全逛完了,原來沒帶相機,逛的速度會差這麼多呀!)

雖然這次沒有帶相機拍Show Girl很可惜
但只要一想到週末世貿中心裡可能會出現可怕的人潮
我也沒那個勇氣帶著相機再勇闖資訊展一次了 (老了! 老了! 沒那個精力連逛資訊展兩天啦!)

skydiary 發表在 痞客邦 留言(0) 人氣()


/*******************************************************

Victoria's irresponsible CSS templates

Title: Butterfly

Creator:Victoria

BLOG: http://www.wretch.cc/blog/skydiary

********************************************************/



/*套用到所有HTML的設定*/

html{

background-color:#3D0069;

}



h1{

color:#FFFFFF;

font-size:35px;

letter-spacing:1px;

padding-right:30px;

text-align:left;

margin-top:10px;

margin-left:5px;

}



/*文字輸入框*/

input{

font-size:12px;

color:#3D0069;

background-color:#E978FF;

border:0px;

}



/*下拉式選單*/

select{

font-size:12px;

color:#3D0069;

background-color:#8200C3;

border:0px;

border-style:none;

}



/*表格*/

table{

border:0px;

border-style:none;

border-color:#E978FF;

}



/*表格內的格子*/

tr{

text-align:left;

color:#AE3CFF;

font-size:11px;

}



/*表單設定*/

form{

margin:0px;

padding: 2px;

color:#8200C3;

}





/*套用在HTML BODY裡的設定*/

#blog_main{

background-color:#3D0069;

}



/*連結管理*/

A:link{color:#D278FF;text-decoration:underline;}

A:visited{color:#D278FF;text-decoration:none;}

A:active{color:#AE3CFF;text-decoration:none;}

A:hover{color:#AE3CFF;text-decoration:underline;}



#banner a:link { color:#3D0069;text-decoration: none; }

#banner a:visited {color:#3D0069;text-decoration: none; }

#banner a:active {color:#A300C3;text-decoration: none; }

#banner a:hover {color:#A300C3;text-decoration:none; }



.articletext .extended a:link {color: #3D0069;text-decoration:none; }

.articletext .extended a:visited {color: #3D0069; text-decoration:none; }

.articletext .extended a:active {color: #AE3CFF; text-decoration:none;}

.articletext .extended a:hover {color: #A300C3; text-decoration:underline;}



.blogbody2 .posted a:link { color: #3D0069; text-decoration:none; }

.blogbody2 .posted a:visited { color: #3D0069; text-decoration: none; }

.blogbody2 .posted a:active { color: #3D0069; text-decoration: underline; }

.blogbody2 .posted a:hover { color: #3D0069;text-decoration:underline; }



.comments-post a:link { color: #3D0069; text-decoration:none; }

.comments-post a:visited { color: #3D0069; text-decoration: none; }

.comments-post a:active { color: #3D0069; text-decoration: underline; }

.comments-post a:hover { color: #3D0069;text-decoration:underline; }



.side a:link { font-size:12px; color: #D278FF; text-decoration: none; }

.side a:visited {font-size:12px; color: #D278FF; text-decoration: none; }

.side a:active { font-size:12px; color: #AE3CFF; text-decoration: none; }

.side a:hover { font-size:12px; color: #AE3CFF; text-decoration: underline;}



.calendar a:link{color:#D278FF;text-decoration:underline;}

.calendar a:visited{color:#D278FF;text-decoration:none;}

.calendar a:active{color:#AE3CFF;text-decoration:none;}

.calendar a:hover{color:#AE3CFF;text-decoration:underline;}



.articletext a:link{color:#9600E1;text-decoration:underline;}

.articletext a:visited{color:#3D0069;text-decoration:underline;}

.articletext a:active{color:#7C00A5;text-decoration:none;}

.articletext a:hover{color:#7C00A5;text-decoration:underline;}



#container1{

width:900px;

margin-left:10px;

paddimg-right:3px;

background:#3D0069;

}



#container2{

text-align:left;

}



/*頁首區*/



#banner{

background-color: #3D0069;

background-image: url(http://pic14.pic.wretch.cc/photos/1/s/skydiary/33/o1158158348.jpg);

background-repeat: no-repeat;

position: absolute;

top: 0px;

left: 0px;

width: 700px;

height: 500px;

text-align:right;

}



#pageheader{}



#description2{

text-align:left;

line-hight:5px;

padding-left:5px;

}



.description{

color:#3D0069;

font-size:12px;

text-align: left;

letter-spacing:1px;

margin-left:20px;

position: absolute;

top: 80px;

}



/*列表區*/

#content {

width: 700px;

float: left;

padding-top: 510px;

background:#3D0069;

}



.blog {

margin-left: 210px;

}



.date {

padding-top: 5px;

padding-left: 5px;

background: #FFCCFF;

padding-bottom: 5px;

margin-right:20px;

background-image: url(http://pic14.pic.wretch.cc/photos/1/s/skydiary/33/1158158352.jpg);

background-repeat: no-repeat;

background-position: bottom right;

}



.datediv {

width: 60px;

text-align: center;

font-size: 9px;

background: white;

height: 35px;

padding-top: 15px;

background-image: url(http://pic14.pic.wretch.cc/photos/1/s/skydiary/33/1158158351.jpg);

background-repeat: no-repeat;

}



.blogbody {

padding: 5px;

position: relative;

background:#C778FF;

border-bottom-color:#3D0069;

border-bottom-style:double;

border-bottom-width: 3px;

margin-right:20px;

}



.articletext{

background-color:#C778FF;

}



.title {

color:#3D0069;

margin: 0px;

position: absolute;

width:300px;

top: -45px;

left: 70px;

}



.innertext{

color:#3D0069;

background-color:#C778FF;

font-size:15px;

line-height:20px;

text-align:left;

padding: 5px 20px 0px 20px;

}



.extended{

color:#8200C3;

font-size:12px;

font-family:Arial 新細明體;

text-align:right;

margin-right:5px;

}



.posted{

color:#3D0069;

font-size:10px;

font-family:Arial;

padding: 3px;

text-align:right;

}



#links {

float: right;

width: 190px;

color: #3D0069;

font-size: 11px;

}



#divThird {

position: absolute;

top: 510px;

left: 10px;

width: 200px;

}



.sidetitle{

color:#C778FF;

font-size:12px;

letter-spacing:2px;

font-weight:bold;

width:190px;

height:30px;

margin-top:5px;

text-align:center;

background-image:url(http://pic14.pic.wretch.cc/photos/1/s/skydiary/33/1158158349.jpg);

}



.side{

font-size:12px;

font-weight:bold;

color:#4F0087;

width:190px;

margintop:5px;

text-align:left;

padding:1px 0px 1px 0px;

background-image:url(http://pic14.pic.wretch.cc/photos/1/s/skydiary/33/1158158350.jpg);

background-repeat: repeat-y;

background-position:top left;

}



.boxProfile0{

font-size:12px;

letter-spacing:2px;

font-weight:bold;

}



.boxAddFriendLink,.boxGiftLink,#boxDate,#scupioSearch{display:none;}



.boxNewComment1 .side{

font-size:10px;

color:#3D0069;

}



.boxNewTrackback1 .side{

font-size:10px;

color:#3D0069;

}



/*參觀人數統計*/

.boxCounter1 .side{text-align:center; color:#D278FF;}



.syndicate{

color:#FFFFFF;

font-size:10px;

font-weight:bold;

text-align:center;

margin:0px;

padding:2px;

}



/*網站的LOGO*/

.powered{

float:right;

font-size:12px;

text-align:left;

margin-top:3px;

padding:2px;

}



.powerjoin .powerforgot{

font-size:12px;

}



.comments-head{

color:#C778FF;

font-size:12px;

text-align:left;

letter-spacing:2px;

line-height:15px;

background-color:#AE3CFF;

margin:3px;

padding:1px;

width:400px;

}



#name_id {

border:1px solid #3D0069;

background:none;

font-size:12px;

width:400px;

color:#3D0069;

}



#email {

border:1px solid #3D0069;

background:none;

font-size:12px;

width:400px;

color:#3D0069;

}



#url

{

border:1px solid #3D0069;

background:none;

font-size:12px;

width:400px;

color:#3D0069;

}



.comments-body{

color:#3D0069;

font-size:11px;

line-height:15px;

margin:0px;

padding: 5px 20px 15px 10px;

}



.comments-body input{

font-size:12px;

background-color:#FFCCFF;

border:2px;

border-style:dashed;

border-color:#FFFFFF;

}



#rem {

border:0px solid #3D0069;}



#text {

border:1px solid #3D0069;

font-size:12px;

width:400px;

color:#000000;

}



.comments-post{

color:#8200C3;

font-size:10px;

padding:1px 1px 3px 1px;

}



/*行事曆*/

.calendar {

letter-spaching:1px;

}

skydiary 發表在 痞客邦 留言(0) 人氣()

一開始是因為最近手上的案子剛好到一個段落

為了打發時間

於是開始學寫CSS



可是今天一上網就看到有人留言跟我說

我寫的Z-Chen樣版很好看 (感動耶~~~開心...開心...^c^y)

只是因為我把BLOG上的右鍵鎖住了

所以他沒辦法複製也不曉得怎麼改



剛好昨天咱們家的阿芳老師提供了正確的愛簡單翻譯 (阿芳~~感謝!感謝!!~~~ ^-^)

所以改一改原先的Banner跟Textarea後

我就寫了一份更新CSS樣版的不負責教學文件 (因為本人很懶,所以非重大錯誤我是不會再改文件的!所以凡本人寫過的文件概不負責喔!!~~ ^-^")



**************更新CSS樣版之不負責教學 開始***************************

步驟1:

請先複製我BLOG裡的CSS樣版裡的CSS code





步驟2:

請登入自己的BLOG後,用滑鼠在「樣式管理」上點兩下





步驟3:

進入「樣式管理」,預設是「套用佈景主題」的頁面;這裡請用滑鼠在「修改CSS樣式表」上點兩下





步驟4:

進入「修改CSS樣式表」後,會看到裡面已經有很多CSS在裡面;那些都是你現在BLOG樣版所使用的CSS code.

請先把裡面的CSS code都刪掉或是另外複製到文字檔(或Word)裡備份後;把剛剛從我BLOG上複製的那些CSS code貼到這裡就可以了



步驟5:

最後只要存檔離開就可以了! 現在你可以回到自己的BLOG首頁看看新的介面嚕!!



skydiary 發表在 痞客邦 留言(0) 人氣()





/*******************************************************

Victoria's irresponsible CSS templates

Title: Z-Chen

Creator:Victoria

BLOG: http://www.wretch.cc/blog/skydiary

Banner's Photo: JS - Justin

Justin's BLOG:http://www.wretch.cc/blog/justin0206

********************************************************/



/*套用到所有HTML的設定*/

html{

background-color:#FFFFFF;

scrollbar-face-color:#99ccff;

scrollbar-arrow-color:#000E69;

scrollbar-track-color:#99ccff;

scrollbar-3dlight-color:#000E69;

scrollbar-darkshadow-color:#000E69;

scrollbar-shadow-color:#99ccff;

scrollbar-highlight-color:#99ccff;

}



/*標題一*/

h1{

color:#FFFFFF;

font-size:40px;

letter-spacing:1px;

padding-right:30px;

text-align:right;

margin-top:10px;

}



/*文字輸入框*/

input{

font-size:12px;

background-color:#99ccff;

border:1px;

border-style:ridge;

border-color:#5B87CE;

}



/*下拉式選單*/

select{

font-size:12px;

background-color:#99ccff;

border:0px;

}



/*表格*/

table{

border:0px;

border-style:none;

border-color:#99ccff;

}



/*表格內的格子*/

tr{

text-align:left;

color:#003687;

font-size:11px;

}



/*表單設定*/

form{

margin:0px;

padding: 2px;

color:#003687;

}



/*留言區*/

textarea{

color:#003687;

background-color:#99ccff;

font-size:14px;

line-height:18px;

text-align:left;

padding: 1px 5px 1px 5px;

border:3px;

border-syle:double;

border-color:#5B87CE;

}



/*連結管理*/

A:link{color:#003687;text-decoration:umderline;}

A:visited{color:#002487;text-decoration:underline;}

A:active{color:#c0c0c0;text-decoration:line-through;}

A:hover{color:#003687;text-decoration:underline;}



#banner a:link { color:#FFFFFF;text-decoration: none; }

#banner a:visited {color:#FFFFFF;text-decoration: none; }

#banner a:active {color:#003687;text-decoration: none; }

#banner a:hover {color:#003687;text-decoration:none; }



.articletext .extended a:link {color: #002487;text-decoration:none; }

.articletext .extended a:visited {color: #002487; text-decoration:none; }

.articletext .extended a:active {color: #666666; text-decoration:none;}

.articletext .extended a:hover {color: #003687; text-decoration:underline;}



.boxProfileLink a:link {color:#003687; text-decoration: none; }

.boxProfileLink a:visited {color:#003687; text-decoration: none; }

.boxProfileLink a:active {color:#c0c0c0; text-decoration: none; }

.boxProfileLink a:hover {color:#FFFFFF; text-decoration: underline;}



.blogbody2 .posted a:link { color: #003687; text-decoration:none; }

.blogbody2 .posted a:visited { color: #002487; text-decoration: none; }

.blogbody2 .posted a:active { color: #c0c0c0; text-decoration: none; }

.blogbody2 .posted a:hover { color: #003687;text-decoration:none; }



.side a:link { font-size:12px; color: #003687; text-decoration: none; }

.side a:visited {font-size:12px; color: #002487; text-decoration: none; }

.side a:active { font-size:12px; color: #c0c0c0; text-decoration: none; }

.side a:hover { font-size:12px; color: #FFFFFF; text-decoration: none;}



.innertext a:link { color: #003687; text-decoration:none;}

.innertext a:visited { color: #002487; text-decoration:underline; }

.innertext a:active { color: #c0c0c0; text-decoration: none;}

.innertext a:hover { color: #003687; text-decoration: underline;}



.calendar a:link { color: #FFFFFF; text-decoration: underline;}

.calendar a:visited { color: #FFFFFF; text-decoration: underline; }

.calendar a:active { color: #c0c0c0; text-decoration: underline;}

.calendar a:hover { color: #99ccff; text-decoration: underline;}



/*底層的Cotainer*/

#container1{

width:900px;

margin-left:10px;

paddimg-right:3px;

background:#FFFFFF;

}



#container2{

text-align:left;

}



#main_blog{

color:#66ccff;

}



/*頁首區*/

#banner{

background-color: #FFFFFF;

background-image:url(http://pic14.pic.wretch.cc/photos/1/s/skydiary/33/o1158158347.jpg);

background-repeat: no-repeat;

background-position:top left;

width: 700px;

height:270px;

position: top center;

border-bottom-color:#66ccff;

border-bottom-style:double;

border-bottom-width: 3px;

border-right-color:#66ccff;

border-right-style:double;

border-right-width: 3px;

text-align:right;

}



#description2{

padding: 1px 0px 0px 0px;

text-align:right;

line-hight:5px;

padding-right:5px;

margin-top:3px;

}



.description{

color:#39568B;

font-size:12px;

text-align:right;

letter-spacing:1px;

margin-right:5px;

}



/*列表區*/

#content{

float:left;

position:relative;

background-color:#FFFFFF;

width:670px;

font-size:11px;

font-color:#99ccff;

margin-top:10px;

margin-left:3px;

border:3px;

border-style:solid;

border-color:#99ccff;

}



.date{

color:#39568B;

background-color:#FFFFFF;

margin-left:0px ;

height: 15px;

width: 40%;

letter-spacing:2px;

padding: 5px 0px 0px 0px;

border-bottom-width:2px;

border-bottom-style:solid;

border-bottom-color:99ccff;

}



.datediv{

color:#39568B;

font-size:12px;

text-align:left;

padding-left:10px;

margin-bottom:0px;

}



.articletext{

color:#002487;

background-color:#FFFFFF;

font-size:16px;

}



.title{

color:#39568B;

background-color:#FFFFFF;

background-image:url(http://pic14.pic.wretch.cc/photos/1/s/skydiary/33/1158158335.jpg);

background-repeat: no-repeat;

background-position:top left;

font-size:18px;

height:40px;

font-weight:bold;

letter-spacing:2px;

text-align:left;

padding-top:10px;

padding-left:70px;

border-bottom-width:3px;

border-bottom-style:double;

border-bottom-color:99ccff;

}



.innertext{

color:#5B87CE; /*002487*/

background-color:#FFFFFF;

font-size:14px;

font-family:Arial 新細明體;

line-height:20px;

text-align:left;

padding: 5px 20px 0px 20px;

}



.extended{

color:#5075C4;

font-size:12px;

font-family:Arial 新細明體;

text-align:right;

margin-right:5px;

}



.posted{

color:#5075c4;

font-size:11px;

font-family:Arial;

margin:1px 0px 10px 5px;

text-align:left;

}



/*側列表區*/

#links{

float:right;

text-align:left;

width:260px;

position:absolute;

background-color:#5B87CE;

top:0px ;

right:1px ;

padding:10px 3px 0px 3px;

}



#links2{

padding:5px 2px 2px 2px;



}



.sidetitle{

/*float:right;*/

color:#39568B;

font-size:13px;

letter-spacing:1px;

font-weight:bold;

background-color:#99ccff;

background-color:#FFFFFF;

background-image:url(http://pic14.pic.wretch.cc/photos/1/s/skydiary/33/1158158338.jpg);

background-repeat: no-repeat;

background-position:top left;

width:220px;

height:27px;

text-align:left;

padding:5px 0px 0px 30px;

margin:0px 5px 0px 5px;

border-bottom:3px;

border-bottom-style:double;

border-bottom-color:5B87CE;

}



.side{

font-size:12px;

font-weight:bold;

color:#FFFFFF;

background-color:#99ccff;

width:220px;

text-align:left;

padding:1px 15px 8px 15px;

margin:0px 5px 5px 5px;

background-image:url(http://pic14.pic.wretch.cc/photos/1/s/skydiary/33/1158158339.jpg);

background-repeat: no-repeat;

background-position:bottom left;

}



#boxProfile{

color:#FFFFFF;

margin: 1px 0px 0px 0px;

}



.boxProfileImg,.boxAddFriendLink,.boxGiftLink,#boxDate,#scupioSearch{display:none;}



.boxProfile0{

font-size:12px;

letter-spacing:2px;

font-weight:bold;

}



.boxProfile1{

margin:0px;

padding:0px;

line-height:20px;

}



.boxNewComment1 .side{

font-size:10px;

color:#5B87CE;

}



.boxNewTrackback1 .side{

font-size:10px;

color:#5B87CE;

}



.trackback-url{

color:#003687;

font-size:10px;

line-height:10px;

margin:2px;

padding: 2px 0px 2px 0px;

}



.blog input{

background-color:#FFFFFF;

border:1px;

border-style:ridge;

border-color:#003867;

}



/*訪客留言*/

.comments-head{

color:#003867;

font-size:12px;

text-align:left;

letter-spacing:2px;

line-height:15px;

background-color:#99ccff;

margin:3px;

padding:1px;

width:400px;

}



#name_id {

border:1px solid #003867;

background:none;

font-size:12px;

width:400px;

color:#003867;

}



#email {

border:1px solid #003867;

background:none;

font-size:12px;

width:400px;

color:#003867;

}



#url

{

border:1px solid #003867;

background:none;

font-size:12px;

width:400px;

color:#003867;

}



.comments-body{

color:#003867;

font-size:11px;

line-height:15px;

margin:0px;

padding: 5px 20px 15px 10px;

}



.comments-body input{

font-size:12px;

background-color:#FFFFFF;

border:2px;

border-style:inset;

border-color:#003867;

}



#rem {

border:0px solid #FFFFFF;}



#text {

border:1px solid #5B87CE;

font-size:12px;

width:400px;

color:#003867;

background-image:url(http://pic14.pic.wretch.cc/photos/1/s/skydiary/33/1158158346.jpg);

background-repeat: no-repeat;

background-attachment : fixed;

background-position :100% 100%;

}



.comments-post{

color:#003867;

font-size:10px;

padding:1px 1px 3px 1px;

}


skydiary 發表在 痞客邦 留言(0) 人氣()





/*******************************************************

Victoria's irresponsible CSS templates

Title: I can not change

Creator:Victoria

BLOG: http://www.wretch.cc/blog/skydiary

Banner's Photo: JS - Justin

Justin's BLOG:http://www.wretch.cc/blog/justin0206

********************************************************/

/*套用到所有HTML的設定*/

html{

background-color:#000000;

}



/*標題一*/

h1{

color:#FFFFFF;

font-size:30px;

letter-spacing:1px;

padding:0px 0px 0px 0px;

text-align:right;

margin-right:30px;

}



/*標題二跟標題三*/

h2,h3{

margin:0px;

padding:0px;

}



/*文字輸入框*/

input{

font-size:12px;

background-color:#c0c0c0;

border:1px;

border-style:ridge;

border-color:#cccccc;

}



/*下拉式選單*/

select{

color:#000000;

font-size:12px;

background-color:#c0c0c0;

border:0px;

border-style:none;

border-color:#666666;

}



/*留言區*/

textarea{

color:#FFFFFF;

background-color:#999999;

font-size:14px;

line-height:18px;

text-align:left;

padding: 1px 5px 1px 5px;

border:3px;

border-syle:double;

border-color:#c0c0c0;

}



/*圖片*/

img{

margin:3px;

border:4px;

border-style:solid;

border-color:#c0c0c0;

}



/*表格*/

table{

border:0px;

border-style:none;

border-color:#666666;

}



/*表格內的格子*/

tr{

text-align:left;

color:#FFFFFF;

font-size:11px;

}



/*表單設定*/

form{

margin:0px;

padding: 2px;

color:#FFFFFF;

}



/*斷行符號*/

p {

margin:0px;

padding:0px;

}



/*套用在HTML BODY裡的設定*/

#blog_main{

color:#FFFFFF;

background-color:#000000;

text-align:left;

background-image:url(http://pic14.pic.wretch.cc/photos/1/s/skydiary/33/o1158158327.jpg);

background-repeat:repeat-y;

}





/*連結管理*/

A:link{color:#FFFFFF;text-decoration:none;}

A:visited{color:#000000;text-decoration:none;}

A:active{color:#666666;text-decoration:line-through;}

A:hover{color:#c0c0c0;text-decoration:underline;}



#banner a:link { color:#FFFFFF;text-decoration: none; }

#banner a:visited {color:#FFFFFF;text-decoration: none; }

#banner a:active {color:#666666;text-decoration: none; }

#banner a:hover {color:#c0c0c0;text-decoration:none; }



.articletext .extended a:link {color: #FFFFFF;text-decoration:none; }

.articletext .extended a:visited {color: #000000; text-decoration:none; }

.articletext .extended a:active {color: #666666; text-decoration:none;}

.articletext .extended a:hover {color: #c0c0c0; text-decoration:underline;}



.boxProfileLink a:link {color:#FFFFFF; text-decoration: none; }

.boxProfileLink a:visited {color:#000000; text-decoration: none; }

.boxProfileLink a:active {color:#666666; text-decoration: none; }

.boxProfileLink a:hover {color:#c0c0c0; text-decoration: underline;}



.blogbody2 .posted a:link { color: #FFFFFF; text-decoration:none; }

.blogbody2 .posted a:visited { color: #c0c0c0; text-decoration: none; }

.blogbody2 .posted a:active { color: #666666; text-decoration: none; }

.blogbody2 .posted a:hover { color: #c0c0c0;text-decoration:none; }



.side a:link { font-size:12px; color: #FFFFFF; text-decoration: none; }

.side a:visited {font-size:12px; color: #000000; text-decoration: none; }

.side a:active { font-size:12px; color: #666666; text-decoration: none; }

.side a:hover { font-size:12px; color: #c0c0c0; text-decoration: none;}



.innertext a:link { color: #FFFFFF; text-decoration: none;}

.innertext a:visited { color: #000000; text-decoration: none; }

.innertext a:active { color: #666666; text-decoration: none;}

.innertext a:hover { color: #c0c0c0; text-decoration: none;}



.comments-post a:link { color: #FFFFFF; text-decoration: none;}

.comments-post a:visited { color: #000000; text-decoration: none; }

.comments-post a:active { color: #666666; text-decoration: none;}

.comments-post a:hover { color: #c0c0c0; text-decoration: none;}



.calendar a:link { color: #FFFFFF; text-decoration: underline;}

.calendar a:visited { color: #c0c0c0; text-decoration: underline; }

.calendar a:active { color: #666666; text-decoration: underline;}

.calendar a:hover { color: #c0c0c0; text-decoration: underline;}



/*底層的Cotainer*/

#container1{

background-color:#000000;

width:90%;

margin-left:80px;

}



#container2{

text-align:left;

}



#main_blog{}



/*頁首區*/

#banner{

background-color: #000000;

/*background-image:url(http://pic14.pic.wretch.cc/photos/1/s/skydiary/33/1158158326.jpg);*/

background-image:url(http://pic14.pic.wretch.cc/photos/1/s/skydiary/33/1158158328.jpg);

background-repeat: no-repeat;

background-position:relative;

width: 100%;

height:210px;

position: top center;

margin:10px 5px 0px 0px;

border-bottom-style:double;

border-bottom-width: 1px;

}



#pageheader{

border-bottom-color:#cccccc;

width: 100%;

}



#description2{

padding: 1px 0px 0px 0px;

text-align:right;

font-size:12px;

margin:0px 10px 0px 0px;

}



.description{

color:#FFFFFF;

font-size:12px;

text-align:right;

}



main2{}



/*列表區*/

#content{

float:left;

position:relative;

background-color:#666666;

width:620px;

font-size:11px;

font-color:#FFFFFF;

margin: 20px 0px 10px 0px;

border-width:2px;

border-color:#cccccc;

border-style:ridge;

}



.blog{}



.date{

background-color:#000000;

margin-left:0px ;

height: 15px;

width: 100%;

letter-spacing:2px;

padding: 5px 0px 3x 0px;

}



.datediv{

color:#c0c0c0;

font-size:10px;

text-align:center;

margin-bottom:0px;

}



#blogbody br{

letter-spacing:3px;

}



#blogboday2{}



.articletext{

color:#FFFFFF;

background-color:#666666;

font-size:16px;

}



.title{

color:#FFFFFF;

background-color:#666666;

font-size:16px;

line-height:20px;

font-weight:bold;

letter-spacing:2px;

text-align:center;

padding-top:1px;

}



.innertext{

color:#FFFFFF;

backgrount-color:#666666;

font-size:12px;

line-height:18px;

text-align:left;

padding: 10px 30px 0px 20px;

}



.extended{

color:#FFFFFF;

font-size:12px;

font-family:Arial 新細明體;

text-align:right;

margin-right:5px;

}



.posted{

color:#c0c0c0;

font-size:10px;

font-family:Arial;

margin:1px 0px 0px 0px;

text-align:left;

}



#links{

float:right;

text-align:left;

width: 250px;

}



#links2{

padding:5px 2px 2px 2px;

}



/*側標題區*/

.sidetitle{

float:right;

color:#000000;

font-size:13px;

letter-spacing:1px;

font-weight:bold;

background-color:#666666;

width:220px;

margin:1px 10px 0px 0px;

border-width:2px;

border-color:#808080;

border-style:ridge;

text-align:center;

padding:1px 5px 1px 5px;

}



/*側列表區*/

.side{

float:right;

font-size:12px;

font-weight:bold;

color:#FFFFFF;

background-color:#666666;

width:220px;

margin:1px 10px 0px 0px;

border-width:2px;

border-color:#808080;

border-style:ridge;

text-align:left;

padding:1px 5px 1px 5px;

}



/*個人資訊*/

#boxProfile{

color:#FFFFFF;

margin: 1px 0px 0px 0px;

}



.boxProfileImg, .boxAddFriendLink, .boxGifeLink, #boxSlideShow, #boxDate,#scupioSearch {display:none;}



.boxProfile0{

font-size:12px;

letter-spacing:2px;

font-weight:bold;

}



.boxProfile0 img{border:0px;}



.boxProfile1{

margin:0px;

padding:0px;

}



/*最近新增文章的列表*/

#boxNewArticle{

margin:0px;

padding:0px;

}



.boxNewArticle0{

margin:0px;

padding:0px;

}



.boxNewArticle1{

margin:0px;

padding:0px;

}



/*文章分類管理*/

#boxCategory{

margin:0px;

padding:0px;

}



.boxCategory0{

margin:0px;

padding:0px;

}



.boxCategory1{

margin:0px;

padding:0px;

}





/*回應區跟使用者定義區*/

#divThird{

margin:0px;

padding:0px;

}



#divThird2{

color:#FFFFFF;

margin:0px;

padding:0px;

}



#boxNewComment{

margin:0px;

padding:0px;

}



.boxNewComment0{

margin:0px;

padding:0px;

}



.boxNewComment1{

margin:0px;

pading:0px;

}



.boxNewComment1 .side{

font-size:10px;

color-c0c0c0;

}



/*搜尋BLOG內的文章*/



#boxSearch{

/*display:none;*/

}



.boxSearch0{

margin:0px;

padding:0px;

}



.boxSearch1{

margin:0px;

padding:0px;

}





/*搜尋全站所有BLOG的文章*/

.scupioSearch0{

margin:0px;

padding:0px;

}



.scupioSearch{

margin:0px;

padding:0px;

}





/*我的訂閱RSS*/

#boxRssList{

margin:0px;

padding:0px;

}



/*我的訂閱的標題區*/

.boxRssList0{

margin:0px;

padding:0px;

}



/*我的訂閱的列表區*/

.boxRssList1{

margin:0px;

padding:0px;

}



/*引用BLOG文章的使用者*/

#boxNewTrackback{

margin:0px;

padding:0px;

}





.boxNewTrackback0{

margin:0px;

padding:0px;

}



.boxNewTrackback1{

margin:0px;

padding:0px;

}



.boxNewTrackback1 .side{

font-size:10px;

color:#c0c0c0;

}



/*使用者自訂的目錄*/

#boxFolder{

margin:0px;

padding:0px;

}



.boxFolder0{

margin:0px;

padding:0px;

}



.boxFolder1{

margin:0px;

padding:0px;

}



/*參觀人數統計*/

#boxCounter{

magin:0px;

padding:0px;

text-align:center;

}



.boxCounter0{

margin:0px;

padding:0px;

}



.boxCounter1{

margin:0px;

padding:0px;

text-align:center;

}



/*如何使用RSS的說明 -- SYNDICATE*/

.syndicate{

color:#FFFFFF;

font-size:10px;

font-weight:bold;

text-align:right;

margin:0px;

padding:2px;

}



/*網站的LOGO*/

.powered{

float:right;

font-size:11px;

text-align:center;

margin-top:3px;

padding:2px;

}



/*文章區內的引用*/

.trackback-url{

color:#c0c0c0;

font-size:10px;

line-height:10px;

margin:2px;

padding: 2px 0px 2px 0px;

}



.blog input{

background-color:#c0c0c0;

border:1px;

border-style:ridge;

border-color:#cccccc;

}



/*訪客留言*/



#total-comments-div{}



.comments-bottom{}



.comments-head{

color:#FFFFFF;

font-size:12px;

text-align:left;

letter-spacing:2px;

line-height:15px;

background-color:#000000;

margin:3px;

padding:1px;

width:400px;

}



#name_id {

border:1px solid #000000;

background:none;

font-size:12px;

width:400px;

color:#FFFFFF;

}



#email {

border:1px solid #000000;

background:none;

font-size:12px;

width:400px;

color:#FFFFFF;

}



#url

{

border:1px solid #000000;

background:none;

font-size:12px;

width:400px;

color:#FFFFFF;

}



.comments-body{

color:#FFFFFF;

font-size:11px;

line-height:15px;

margin:0px;

padding: 5px 20px 15px 10px;

}



.comments-body input{

font-size:12px;

background-color:#c0c0c0;

border:2px;

border-style:inset;

border-color:#FFFFFF;

}



#rem {

border:0px solid #000000;

}



#text {

border:1px solid #000000;

font-size:12px;

width:400px;

color:#000000;

}



.comments-post{

color:#c0c0c0;

font-size:10px;

padding:1px 1px 3px 1px;

}



img{border:0px;}

skydiary 發表在 痞客邦 留言(0) 人氣()

上個星期,跟朋友討論起英文的廣播

我建議她,可以先試看看ITunes PodCast的Education Category

於是,這份簡易的使用說明就這樣產生了



雖然,朋友後來並沒有用PodCast學英文

但由於我很少會寫這種的圖文的說明 ( 主要是因為偷懶 )

所以這份文件當然要放上來跟大家分享一下 ^v^



這只是一份簡易說明,不是正式的教學文件

有寫錯的部份當然會改, (例如功能說明是錯的!根本就不能用這樣的大錯誤等等..)

如果沒有需要修正的地方;我就不會再更動這個說明了(例如錯別字等等就不改了,因為本人很懶)

所以我這算是一種不負責的教學文件吧 v_v"



----



預先準備: 下載ITune並安裝在自己的電腦裡



第一步: 執行ITunes,選擇Music Store

第二步: 第一次使用時,會先出現詢問要設定哪一種語言為POSCAST首頁





第三步: 選擇Education的類別





第四步: POSTCAST提供許多免費的語言教學課程,例如:英文,日文,法文

(PODCAST當然也有其他的教學課程可以選擇,像是數學就是其中一種)

這裡請選擇想要學習的語言





第五步: 訂閱想學習的PODCAST教學課程





第六步: 下載PODCAST最新的教學課程內容





第七步: 下載先前的PODCAST教學課程內容





第八步: 試聽教學課程內容 (PODCAST所提供的教學課程內容除了音源檔之外,有很多的教學課程也是會提供影音檔下載)





第九步: POSTCAST下載檔案存放的目錄 (可以將下載的檔案放到MP3中想聽的時候就可以複習)





skydiary 發表在 痞客邦 留言(0) 人氣()

這兩天也不曉得是不是自己運氣太好
只不過換了個座位
我的File Server居然掛了

本來想,那重灌系統吧
可是一想到先前寫的Shell Script都還在電腦裡,就下不了手

後來好不容易將電腦啟動到 run level 3
在同事S的幫忙下,總算是把先前寫的Shell Script都用USB備份出來了 (不幸中的大幸...^c^y )
既然資料都已經備份了,
於是我決定將整台電腦重灌...

放入小紅帽第一片光碟重開機後
螢幕居然馬上就出現Kernel Panic ... (暈)

才第一片光碟,
這...小紅帽也太不給我面子了吧!!
看看螢幕上的錯誤訊息,
這下可好了, PCI裝置有問題...

於是,我只好開始一個個的把顯示卡,網路卡,硬碟等等拆下來測....

先是發現,顯示卡上有銅鏽
那先換另一張顯示卡

再重開機,
還是出現Kernel Panic ...

心想,那拆網路卡試看看吧

第三次重開機,
Kernel Panic又出現了...

顯示卡拆了,網路卡也拆了
現在就剩兩顆硬碟...

先拆Slave的硬碟,然後重開機
Kernel Panic又出現了... >.<

好吧,剩Master的硬碟了...
把Slave的硬碟接回去後重開機

耶 ...
這次總算是看到小紅帽的詢問安裝畫面了

於是我把網路卡裝回去,重開機
又成功的進入詢問安裝的畫面了

那看樣子,應該是Master那顆硬碟掛了
於是我又找了另一個新的硬碟裝上去,然後又重開機

耶 ...
再次成功進入小紅帽的詢問安裝畫面

於是開始切Partition,
然後選擇要安裝的套件
正當我選套件選到一半的時候,
咦...電腦居然自動關機

臉上馬上出現三條線... @_@"

看看BIOS,
原來那顆Master的硬碟在BIOS裡的資料也都空了 (又掛掉一顆硬碟了...)
好吧,那我只用一顆新硬碟總可以吧

再重灌一次,
耶...
這是安裝順利的看到系統Format跟出現安裝套件的進度啦

可是,
小紅帽安裝到第三片光碟時
電腦居然自動關機了...

我整個人對著那台電腦就是無言... (其實我有想踢電腦的衝動...)
心想,這...不會吧
我運氣會不會太好? 現在是連主機板都掛了...

但我還是不死心,再重灌一次
然後丟著讓電腦自己去安裝

可是,今天到公司上班
電腦關機了 ...

所以, 當下我就決定,
我要丟了它...


心得:
這次辦公室換座位,
同事J跟我的電腦都各掛掉一台 (還一樣都是小紅帽的機器..@_@")
而且電腦掛點的原因還都不一樣 (雖然都是出現Kernel Panic)

同事J的電腦在Reload BIOS的default設定值後,再重新開機就可以正常安裝了
主要是因為同事J的電腦裡安裝了兩張網路卡,而那兩張網路卡互衝 (嗯,聽同事W說;似乎是IRQ在做怪)

而我的電腦則是因為機器過於老舊,整塊主機板就徹底的掛啦...(完全沒救了)

雖然這次電腦掛了有點難過 (File Server沒了 >.<)
卻也因此學到點東西;
至少下次,我不會一直懷疑小紅帽了,
因為這次完全是硬體發生問題導致電腦故障 @_@"
所以大致上來說,偶而掛掉幾台測試機器也還滿不錯的...哈哈哈...

skydiary 發表在 痞客邦 留言(0) 人氣()

Linux RHEL 4 設定IPv6

######暫時性的IPv6設定 ( network service 重開後就會被 reset )

1. 設定 IPv6

# ip address add dev 網卡別名 IPv6的IP

2. 設定 IPv6 的Gateway

# ip -6 route add ::/0 dev 網卡別名

3. 顯示 Ipv6 的設定

# ip -6 address show

4. 顯示 IPv6 的 Gateway 設定

# ip -6 route show

###### 開機後會自動帶起IPv6的服務

1. 編輯 /etc/sysconfig/network-scripts 下的網路卡設定檔 (以eth0為例 )

# vi /etc/sysconfig/network-scripts/ifcfg-eth0

1.1 增加兩行的參數如下

IPV6INIT=yes
IPV6ADDR=2001::114/128

2. 編輯 /etc/sysconfig/network 下的網路服務設定檔


2.1 增加一行參數如下

NETWORKING_IPV6=yes

3. 編輯 /etc/modprobe.conf 設定系統開機後會自動啟動IPv6的服務

3.1 新增一行參數如下

alias net-pf-10 ipv6

4. 重新啟動網路服務

# service network restart

5. 顯示 IPv6 的設定

# ip -6 address show

如果有看到剛設定進去的 2001::114 就表示IPv6的設定是成功的

6. Ping 別台機器的IPv6網路位置

# ping6 2001::214

如果有回應那就可以開始使用IPv6跟別台電腦做溝通了

skydiary 發表在 痞客邦 留言(0) 人氣()

設定多張網卡共用一個IP

測試用的網卡 (NIC TYPE):
1. BroadCom: BCom 5700
2. 3Com: 3C905C-TXM (3 NICs)

Linux上將多張網卡併成只有一張虛擬網卡的技術就稱為bonding
(設定前需先確定網路卡的驅動程式是否有支援;若無需下載最新的驅動程式)

我安裝的Linux上總共有三張網卡, eth0,eth1,eth2
這次測試目的主要是將 eth1,eth2 設成是同一張的虛擬網卡bond0


step1: 複製 ifcfg-eth0的組態檔當做bond0的組態檔 copy ifcfg-eth0 to ifcfg-bond0

#cp ifcfg-eth0 ifcfg-bond0

step2: 修改ifcfg-bond0 的組態檔

#vi ifcfg-bond0

DEVICE=bond0
NETMASK=255.255.255.0
IPADDR=10.10.10.100
BOOTPROTO=static
ONBOOT=yes

step3: 修改ifcfg-eth1 的組態檔

#vi ifcfg-eth1

DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes

step4: 修改ifcfg-eth2 的組態檔

#vi ifcfg-eth2

DEVICE=eth2
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes

step5: 修改系統啟動後需載入的模組設定檔

#vi /etc/modprobe.conf

alias bond0 bonding
options bond0 miimon=100 mode=0

miimon=每0.1 sec確認一次網路的狀態
mode=0 負載平衡 (Round-robin policy:兩張網卡會輪流負擔網路流量)
mode=1 自動備援 (Active-backup policy:伺服器一次只用一張網卡;當負責的網卡有問題時,會自動啟用另外一張備援的網卡)

reference:
http://www.cyberciti.biz/howto/question/static/linux-ethernet-bonding-driver-howto.php

step6: 重新啟動 Network服務

設定完以上的這些步驟後
我的Bonding NICs就開始工作嚕

skydiary 發表在 痞客邦 留言(0) 人氣()

一開始完全是為了貫徹"懶人的最高精神--懶"才會想要寫這個Shell Script的
可是當我寫完以後,卻發現...呃...沒有人想要用... (真的是太傷我的心了)
於是這又變成另一個完全就是自己寫得很開心但卻必須被打入冷宮的小程式 ... (真是搞不懂大家到底想要的是什麼...懶一點有什麼不好的)

不過,自己還是寫得很開心啦...(這種自我滿足的快樂,相信寫程式的你們都懂吧)
就當做是個練習 (呃...或是個紀念...v_v..)
搞不好以後還是會用得到,所以就放上來了....

#########程式由此開始#########
##############################
#!/bin/bash

# For testing - 2006.2.10 by Vicky
##########################################
# Auto-executed the following command
##########################################
#ProcName="httpd"
#ifMode="Auto"

##########################################
# Get the input program name from user
##########################################
echo -n "Please enter a program name:"
read ProcName

##########################################
#Get the result of query
##########################################
#RecData=`top -b -n 1 | grep $ProcName | awk '{echo -n system("date +%F-%T")};{print "PID= "$1 ", VM= "$5", CPU%= "$9", Mem%= "$10}'`
RecData=`top -b -n 1 | grep $ProcName `

if [ "$RecData" == "" ]; then
echo "Can not get the process!"
else
case $ifMode in
##########################################
#Auto-saved to a file.
##########################################
"Auto")
#Auto-saved the result to a file
# echo -n "[`date +%F-%T`] $RecData" >> \.\/$ProcName.monitor
top -b -n 1 | grep $ProcName | awk '{system("echo -n [`date +%F-%T`]");print " PID= "$1," VM= "$5,"CPU%= "$9,"Mem= "$10}' >> \.\/$ProcName.monitor
;;
##########################################
# User interactive interface
##########################################
*)
if [ "$RecData" == "" ]; then
echo "Can not get the record from the process!"
else
while [ "$yn" != "Y" ] && [ "$yn" != "y" ] && [ "$yn" != "N" ] && [ "$yn" != "n" ]
do
read -p "Output the result to screen? [Y/N]" yn
done
if [ "$yn" == "Y" ] || [ "$yn" == "y" ]; then
#echo "$RecData"
top -b -n 1 | grep $ProcName | awk '{system("echo -n [`date +%F-%T`]");print " PID= "$1,"VM= "$5,"CPU%= "$9,"Mem= "$10}'
exit 0
fi
if [ "$yn" == "N" ] || [ "$yn" == "n" ]; then
#echo "$RecData" >> \.\/$ProcName.monitor
top -b -n 1 | grep $ProcName | awk '{system("echo -n [`date +%F-%T`]");print " PID= "$1,"VM= "$5,"CPU%= "$9,"Mem= "$10}' >> \.\/$ProcName.monitor
echo "Okay! Save the result to $ProcName.monitor file."
exit 0
fi
echo "Unexpected result! Please try again!!"
fi
;;
esac
fi

skydiary 發表在 痞客邦 留言(0) 人氣()

99乘法應該也是第一次VB助教規定的作業之一吧
當時的邏輯原來這麼簡單
真是讓人懷念

#Linux Shell Script
#/bin/sh
for (( i=1; i<=9; i=i+1 )) do
for (( j=1; j<=9; j=j+1 )) do
echo -n " $(($i*$j)) "
done
echo ""
done

skydiary 發表在 痞客邦 留言(0) 人氣()

印象中可以自訂直角三角形行數並印出來是大學時代的第一個程式作業
當初為了寫這一個小小的作業居然要花上一整天
(...打字慢再加上當時跟電腦,程式邏輯不熟...)

雖然現在的工作已經不用寫程式
但是重新回味一下以前寫作業的感覺也滿好的 :D
(主要是因為想重操舊業了,總得喚回以前的記憶吧...:P)

只是...這次...我只有花掉打字時間....
跟以前寫程式的速度差好多喔...@_@

#Linux Shell Script - Right Triangle
#/bin/sh
read -p "Please enter a number: " getNum
for (( i=1; i<=$getNum; i=i+1 )) do
for (( j=1; j<=$i; j=j+1 )) do
echo -n "*"
done
echo ""
done

寫程式真的會上癮 ...ORZ ....
又寫出兩個中空三角形的作業了 .... @_@!!

#中空正直角三角形
#/bin/sh

read -p "Please enter an number: " getNum

for (( i=1; i<=$getNum; i=i+1 )) do
for (( j=1; j<=getNum; j=j+1 )) do
if [ "$j" == "1" ] || [ "$i" == "$getNum" ] || [ "$j" == "$i" ]; then
echo -n "*"
else
echo -n " "
fi
done
echo ""
done

#中空倒直角三角形
#/bin/sh

read -p "Please enter an number: " getNum

for (( i=1; i<=$getNum; i=i+1 )) do
for (( j=1; j<=getNum; j=j+1 )) do
if [ "$j" == "$getNum" ] || [ "$i" == "1" ] || [ "$j" == "$i" ]; then
echo -n "*"
else
echo -n " "
fi
done
echo ""
done

skydiary 發表在 痞客邦 留言(0) 人氣()

RHEL 5.0 今年六月推出,年底上市

Red Hat預計年底推出Enterprise Linux 5.0,加入Xen虛擬化技術,並提高安全控管與各平台整合的功能。

Red Hat(紅帽)預計今年6月推出Red Hat Fedora Core 5正式版,做為Enterprise Linux的基礎,並於年底前讓Enterprise Linux 5.0順利上市。

在5.0的企業版中將著重四大焦點,包括:加入Xen虛擬化技術、以及Xen與Red Hat Network、Red Hat Global File System平台整合、加強安全控管與身份認證管理、以及桌面環境的改善。

目前Red Hat Enterprise Linux 為4.0版,新版5.0中最被人關注的焦點為虛擬化技術。由於虛擬化技術有助於網格運算,除了Novell預計在Code 10中加入虛擬化技術之外,Red Hat也確定在Enterprise Linux 5.0納入Xen hypervisor。Redhat台灣總代理創鑫資訊副理黃瑞傑表示,Xen的虛擬技術可在單一作業系統中,模擬多重的作業系統,讓使用者達到更高的資源可用性。

企業版中更提高Red Hat Enterprise Linux 5.0的安全機制。黃瑞傑表示,由於,SE Linux(Security-Enhanced Linux)的設定複雜,使用者在安裝Linux時,經常將SE Linux功能關閉。不過在5.0企業版的SE Linux將比過去更平易近人,幫助使用者在顧及安全的情況下,也不會因繁雜的設定程序而打退堂鼓。另外,4.0版時支援的應用程式較少,但下一個版本在應用程式的支援部分也將取得更多的改善。

無論在Unix或Linux伺服器裡,過去對檔案的存取權限只能做read、write、execute(rwx)的控管,但是5.0企業版的 SE Linux功能則以「角色存取控管」(Role Base Access Control,RBAC)為政策(policy)。黃瑞傑表示,過去root權限無限大,可操控任何應用程式,也造成root成為系統中最大的漏洞。為了安全上的考量,SE Linux改以不同的應用程式(AP)來設定權限,去除root的概念,以仿似防火牆(Firewall)的設定模式,分別層層設定存取政策,單單 config檔就高達20幾萬行。

Red Hat於2004年收購了AOL的Netscape安全解決部門(Netscape Security Solution),擁有Netscape Directory Server 與Netscape Certificate Management System兩項技術,黃瑞傑表示,身份認證管理未來也會整併進Red Hat Enterprise Linux 5.0之中,海外已有結合Smart Card與Netscape Directory Server的應用。

由於企業的IT架構已逐漸走向「無狀態」(stateless)應用伺服器的狀態,資管人員在進行軟體套件升級時常面臨困擾,因此,平台的整合也是Red Hat Enterprise Linux 5.0的另一個重點。創鑫資訊協理歐全晃表示,從Red Hat Global File System到RedhatNetwork將更簡化企業的系統管理,讓大型企業的資管人員即使面對上百台的伺服器,也可透過集中管理的方式,降低人工的勞動。

歐全晃表示,今年Red Hat對於台灣市場的期望將繼續政府與製造業的努力,另外希望開闢金融業與電信業的新市場,並將重點放在推動企業叢集與負載平衡解決方案-Cluster Suite與開放原始碼檔案叢集系統-Global File System。

-----

去年才剛考上RHCE 4
今年RHEL 5.0 就要上市

不到一年又要繳考試費給Red Hat
小紅帽難道你不知道現在賺錢是很辛苦的嗎
居然還在情人節宣佈今天RHEL 5.0 就要上市是怎樣

你是在強劫善良小老百姓嗎??
你再這樣學微軟我就去考LPIC了喔!!

skydiary 發表在 痞客邦 留言(0) 人氣()

最近想寫一個可以監控 Memory 使用狀況的小程式
花了許多時間在查 Windows API 的資料
沒想到原來 Windows XP/ Windows 2003 就有提供一個超級好用的 Tasklist程式
透過 Tasklist 可以把目前系統的工作列表 (就像是平常習慣用的工作管理員一樣)

至於 Tasklist的使用方法
只要 DOS下輸入 "tasklist /?" 就會把所有的參數都列出來
懶得自己寫程式的話
用 Tasklist就可以把目前系統工作列出來了

不過現在我自己還有一個小小的問題就是
這個 tasklist 並沒有定時執行的功能

看樣子不能事事都靠微軟
還是得自己再想想辦法才是

=========== TaskList 的使用方法 ===========

TASKLIST [/S system [/U username [/P [password]]]]
[/M [module] | /SVC | /V] [/FI filter] [/FO format] [/NH]

描述:
這個命令列工具顯示了目前在本機或遠端
電腦上執行的應用程式和相關聯的
工作/處理程序。

參數清單:
/S system 指定要連線的遠端系統。

/U [domain\]user 指定要執行命令的
使用者內容。

/P [password] 指定提供的使用者內容
的密碼。如果省略的話請提示輸入。

/M [module] 列出所有已載入 DLL 模組,
符合模式名稱的工作。
如果沒有指定模組名稱,
則顯示每一工作所有已載入的模組。

/SVC 在每一處理程序中顯示服務。

/V 指定要顯示的
詳細資訊。

/FI filter 顯示符合篩選器指定條件
的工作組。

/FO format 指定輸出的格式。
有效值: TABLE、LIST 或 CSV。

/NH 指定 "Column Header"
不應該顯示在輸出。
只有對 TABLE 和 CSV 格式。

/? 顯示這個說明/使用方法。

篩選器:
篩選器名稱 正確的操作器 正確值
----------- --------------- --------------
STATUS eq, ne RUNNING | NOT RESPONDING
IMAGENAME eq, ne 影像名稱
PID eq, ne, gt, lt, ge, le PID 值
SESSION eq, ne, gt, lt, ge, le 工作階段數目
SESSIONNAME eq, ne 工作階段名稱
CPUTIME eq, ne, gt, lt, ge, le CPU 的時間格式
是 hh:mm:ss。
hh - 小時
mm - 分鐘, ss - 秒數
MEMUSAGE eq, ne, gt, lt, ge, le 記憶體使用量單位 KB
USERNAME eq, ne 格式中的使用者
名稱
SERVICES eq, ne 服務名稱
WINDOWTITLE eq, ne 視窗標題
MODULES eq, ne DLL 名稱

範例:
TASKLIST
TASKLIST /M
TASKLIST /V
TASKLIST /SVC
TASKLIST /M wbem*
TASKLIST /S system /FO LIST
TASKLIST /S system /U domain\username /FO CSV /NH
TASKLIST /S system /U username /P password /FO TABLE /NH
TASKLIST /FI "USERNAME ne NT AUTHORITY\SYSTEM" /FI "STATUS eq running"

skydiary 發表在 痞客邦 留言(0) 人氣()

Windows 2000命令全集
accwiz.exe > Accessibility Wizard for walking you through setting up your machine for your mobility needs. 輔助工具嚮導
acsetups.exe > ACS setup DCOM server executable
actmovie.exe > Direct Show setup tool 直接顯示安裝工具
append.exe > Allows programs to open data in specified directories as if they were in the current directory. 允許程式打開制定目錄中的資料
arp.exe > NETWORK Display and modify IP - Hardware addresses 顯示和更改電腦的IP與硬體物理位址的對應列表
at.exe > AT is a scheduling utility also included with UNIX 計畫運行任務
atmadm.exe > Displays statistics for ATM call manager. ATM調用管理器統計
attrib.exe > Display and modify attributes for files and folders 顯示和更改檔和檔夾屬性
autochk.exe > Used to check and repair Windows File Systems 檢測修復檔系統
autoconv.exe > Automates the file system conversion during reboots 在啟動過程中自動轉化系統
autofmt.exe > Automates the file format process during reboots 在啟動過程中格式化進程
autolfn.exe > Used for formatting long file names 使用長檔案名格式
bootok.exe > Boot acceptance application for registry
bootvrfy.exe > Bootvrfy.exe, a program included in Windows 2000 that notifies the system that startup was successful. Bootvrfy.exe can be run on a local or remote computer. 通報啟動成功
cacls.exe > Displays or modifies access control lists (ACLs) of files. 顯示和編輯ACL
calc.exe > Windows Calculators 計算器
cdplayer.exe > Windows CD Player CD播放器
change.exe > Change { User | Port | Logon } 與終端伺服器相關的查詢
charmap.exe > Character Map 字元對應表
chglogon.exe > Same as using "Change Logon" 啟動或停用會話記錄
chgport.exe > Same as using "Change Port" 改變埠(終端服務)
chgusr.exe > Same as using "Change User" 改變用戶(終端服務)
chkdsk.exe > Check the hard disk for errors similar to Scandisk 3 Stages must specify a Drive Letter 磁片檢測程式
chkntfs.exe > Same as using chkdsk but for NTFS NTFS磁片檢測程式
cidaemon.exe > Component of Ci Filer Service 組成Ci文檔服務
cipher.exe > Displays or alters the encryption of directories [files] on NTFS partitions. 在NTFS上顯示或改變加密的檔或目錄
cisvc.exe > Content Index -- It's the content indexing service for I 索引內容
ckcnv.exe > Cookie Convertor 變換Cookie
cleanmgr.exe > Disk Cleanup, popular with Windows 98 磁片清理
cliconfg.exe > SQL Server Client Network Utility SQL客戶網路工具
clipbrd.exe > Clipboard viewer for Local will allow you to connect to other clipboards 剪貼簿查看器
clipsrv.exe > Start the clipboard Server 運行Clipboard服務
clspack.exe > CLSPACK used to create a file listing of system packages 建立系統檔列表清單
cluster.exe > Display a cluster in a domain 顯示域的集群
_cmd_.exe > Famous command prompt 沒什麼好說的!
cmdl32.exe > Connection Manager Auto-Download 自動下載連接管理
cmmgr32.exe > Connection Manager 連接管理器
cmmon32.exe > Connection Manager Monitor 連接管理器監視
cmstp.exe > Connection Manager Profile Manager 連接管理器配置檔安裝程式
comclust.exe > about cluster server 集群
comp.exe > ComClust Add, Remove, or Join a cluster. 比較兩個檔和檔集的內容*
compact.exe > Displays or alters the compression of files on NTFS partitions. 顯示或改變NTFS分區上檔的壓縮狀態
conime.exe > Console IME IME控制臺
control.exe > Starts the control panel 控制面板
convert.exe > Convert File System to NTFS 轉換檔系統到NTFS
convlog.exe > Converts MS IIS log files 轉換IIS日誌檔格式到NCSA格式
cprofile.exe > Copy profiles 轉換顯示模式
cscript.exe > MS Windows Scripts Host Version 5.1 較本宿主版本
csrss.exe > Client Server Runtime Process 客戶伺服器Runtime進程
csvde.exe > Comma Separated Variable Import/Export Utility 日至格式轉換程式
dbgtrace.exe > 和Terminal Server相關
dcomcnfg.exe > Display the current DCOM configuration. DCOM配置屬性
dcphelp.exe > ?
dcpromo.exe > Promote a domain controller to ADSI AD安裝嚮導
ddeshare.exe > Display DDE shares on local or remote computer DDE共用
ddmprxy.exe >
debug.exe > Runs Debug, a program testing and editing tool. 就是DEBUG啦!
dfrgfat.exe > Defrag FAT file system FAT分區磁片碎片整理程式
dfrgntfs.exe > Defrag NTFS file system NTFS分區磁片碎片整理程式
dfs_cmd_.exe > configures a Dfs tree 配置一個DFS樹
dfsinit.exe > Distributed File System Initialization 分散式檔系統初始化
dfssvc.exe > Distributed File System Server 分散式檔系統伺服器
diantz.exe > MS Cabinet Maker 製作CAB文件
diskperf.exe > Starts physical Disk Performance counters 磁片性能計數器
dllhost.exe > dllhost is used on all versions of Windows 2000. dllhost is the hedost process for all COM+ applications. 所有COM+應用軟體的主進程
dllhst3g.exe >
dmadmin.exe > Disk Manager Service 磁片管理服務
dmremote.exe > Part of disk management 磁片管理服務的一部分
dns.exe > DNS Applications DNS
doskey.exe > recalls Windows command lines and creates macros 命令行創建宏
dosx.exe > DOS Extender DOS擴展
dplaysvr.exe > Direct Play Helper 直接運行幫助
drwatson.exe > Dr Watson for 2000 Fault Detector 華生醫生錯誤檢測
drwtsn32.exe > Dr Watson for 2000 viewer and configuration manager 華生醫生顯示和配置管理
dtcsetup.exe > Installs MDTC
dvdplay.exe > Windows 2000 DVD player DVD播放
dxdiag.exe > Direct-X Diagnostics Direct-X診斷工具
edlin.exe > line-oriented text editor. 命令行的文本編輯器(歷史悠久啊!)
edlin.exe > line-oriented text editor. 命令行的文本編輯器(歷史悠久啊!)
esentutl.exe > MS Database Utility MS資料庫工具
eudcedit.exe > Private character editor Ture Type造字程式
eventvwr.exe > Windows 2000 Event Viewer 事件查看器
evnt_cmd_.exe > Event to trap translator; Configuration tool
evntwin.exe > Event to trap translator setup
exe2bin.exe > Converts EXE to binary format 轉換EXE檔到二進位
expand.exe > Expand Files that have been compressed 解壓縮
extrac32.exe > CAB File extraction utility 解CAB工具
fastopen.exe > Fastopen tracks the location of files on a hard disk and stores the information in memory for fast access. 快速訪問在記憶體中的硬碟檔
faxcover.exe > Fax Cover page editor 傳真封面編輯
faxqueue.exe > Display Fax Queue 顯示傳真佇列
faxsend.exe > Fax Wizard for sending faxes 發送傳真嚮導
faxsvc.exe > Starts fax server 啟動傳真服務
fc.exe > Compares two files or sets of files and their differences 比較兩個檔的不同
find.exe > Searches for a text string in file or files 查找文件中的文本行
findstr.exe > Searches for strings in files 查找文件中的行
finger.exe > Fingers a user and displays statistics on that user Finger一個用戶並顯示出統計結果
fixmapi.exe > Fix mapi files 修復MAPI檔
flattemp.exe > Enable or disable temporally directories 允許或者禁用暫存檔案目錄
fontview.exe > Display fonts in a font file 顯示字體檔中的字體
forcedos.exe > Forces a file to start in dos mode. 強制檔在DOS模式下運行
freecell.exe > Popular Windows Game 空當接龍
ftp.exe > File Transfer Protocol used to transfer files over a network connection 就是FTP了
gdi.exe > Graphic Device Interface 圖形介面驅動
grovel.exe >
grpconv.exe > Program Manager Group Convertor 轉換程式管理員組
help.exe > displays help for Windows 2000 commands 顯示幫助
hostname.exe > Display hostname for machine. 顯示機器的Hostname
ie4uinit.exe > IE5 User Install tool IE5用戶安裝工具
ieshwiz.exe > Customize folder wizard 自定義檔夾嚮導
iexpress.exe > Create and setup packages for install 穿件安裝包
iisreset.exe > Restart IIS Admin Service 重啟IIS服務
internat.exe > Keyboard Language Indicator Applet 鍵盤語言指示器
ipconfig.exe > Windows 2000 IP configuration. 察看IP配置
ipsecmon.exe > IP Security Monitor IP安全監視器
ipxroute.exe > IPX Routing and Source Routing Control Program IPX路由和源路由控制程式
irftp.exe > Setup FTP for wireless communication 無線連接
ismserv.exe > Intersite messaging Service 安裝或者刪除Service Control Manager中的服務
jdbgmgr.exe > Microsoft debugger for java 4 Java4的調試器
jetconv.exe > Convert a Jet Engine Database 轉換Jet Engine資料庫
jetpack.exe > Compact Jet Database. 壓縮Jet資料庫
jview.exe > Command-line loader for Java Java的命令行裝載者
krnl386.exe > Core Component for Windows 2000 2000的核心組件
label.exe > Change label for drives 改變驅動器的標籤
lcwiz.exe > License Compliance Wizard for local or remote systems. 許可證符合嚮導
ldifde.exe > LDIF cmd line manager LDIF目錄交換命令行管理
licmgr.exe > Terminal Server License Manager 終端服務許可協定管理
lights.exe > display connection status lights 顯示連接狀況
llsmgr.exe > Windows 2000 License Manager 2000許可協議管理
llssrv.exe > Start the license Server 啟動許可協定伺服器
lnkstub.exe >
locator.exe > RPC Locator 遠端定位
lodctr.exe > Load perfmon counters 調用性能計數
logoff.exe > Log current user off. 註銷用戶
lpq.exe > Displays status of a remote LPD queue 顯示遠端的LPD列印佇列的狀態,顯示被送到基於Unix的伺服器的列印任務
lpr.exe > Send a print job to a network printer. 重定向列印任務到網路中的印表機。通常用於Unix客戶印表機將列印任務發送給連接了列印設備的NT的印表機伺服器。
lsass.exe > LSA Executable and Server DLL 運行LSA和Server的DLL
lserver.exe > Specifies the new DNS domain for the default server 指定默認Server新的DNS域
macfile.exe > Used for managing MACFILES 管理MACFILES
magnify.exe > Used to magnify the current screen 放大鏡
makecab.exe > MS Cabinet Maker 製作CAB文件
mdm.exe > Machine Debug Manager 機器調試管理
mem.exe > Display current Memory stats 顯示記憶體狀態
migpwd.exe > Migrate passwords. 遷移密碼
mmc.exe > Microsoft Management Console 控制臺
mnmsrvc.exe > Netmeeting Remote Desktop Sharing NetMeeting遠程桌面共用
mobsync.exe > Manage Synchronization. 同步目錄管理器
mountvol.exe > Creates, deletes, or lists a volume mount point. 創建、刪除或列出卷的裝入點。
mplay32.exe > MS Media Player 媒體播放器
mpnotify.exe > Multiple Provider Notification application 多提供者通知應用程式
mq1sync.exe >
mqbkup.exe > MS Message Queue Backup and Restore Utility 資訊佇列備份和恢復工具
mqexchng.exe > MSMQ Exchange Connector Setup 資訊佇列交換連接設置
mqmig.exe > MSMQ Migration Utility 資訊佇列遷移工具
mqsvc.exe > ?
mrinfo.exe > Multicast routing using SNMP 使用SNMP多點傳送路由
mscdexnt.exe > Installs MSCD (MS CD Extensions) 安裝MSCD
msdtc.exe > Dynamic Transaction Controller Console 動態事務處理控制臺
msg.exe > Send a message to a user local or remote. 發送消息到本地或遠端客戶
mshta.exe > HTML Application HOST HTML應用程式主機
msiexec.exe > Starts Windows Installer Program 開始Windows安裝程式
mspaint.exe > Microsoft Paint 畫板
msswchx.exe >
mstask.exe > Task Schedule Program 任務計畫表程式
mstinit.exe > Task scheduler setup 任務計畫表安裝
narrator.exe > Program will allow you to have a narrator for reading. Microsoft講述人
nbtstat.exe > Displays protocol stats and current TCP/IP connections using NBT 使用 NBT(TCP/IP 上的 NetBIOS)顯示協定統計和當前 TCP/IP 連接。
nddeapir.exe > NDDE API Server side NDDE API伺服器端
net.exe > Net Utility 詳細用法看/?
net1.exe > Net Utility updated version from MS Net的升級版
netdde.exe > Network DDE will install itself into the background 安裝自己到後臺
netsh.exe > Creates a shell for network information 用於配置和監控 Windows 2000 命令行腳本介面。
netstat.exe > Displays current connections. 顯示協定統計和當前的 TCP/IP 網路連接。
nlsfunc.exe > Loads country-specific information 載入特定國家(地區)的資訊。Windows 2000 和 MS-DOS 子系統不使用該命令。接受該命令只是為了與 MS-DOS 文件相容。
notepad.exe > Opens Windows 2000 Notepad 記事本
nslookup.exe > Displays information for DNS 該診斷工具顯示來自功能變數名稱系統 (DNS) 名稱伺服器的資訊。
ntbackup.exe > Opens the NT Backup Utility 備份和故障修復工具
ntbooks.exe > Starts Windows Help Utility 幫助
ntdsutil.exe > Performs DB maintenance of the ADSI 完成ADSI的DB的維護
ntfrs.exe > NT File Replication Service NT檔複製服務
ntfrsupg.exe >
ntkrnlpa.exe > Kernel patch 核心補丁
ntoskrnl.exe > Core NT Kernel KT的核心
grovel.exe >
grpconv.exe > Program Manager Group Convertor 轉換程式管理員組
help.exe > displays help for Windows 2000 commands 顯示幫助
hostname.exe > Display hostname for machine. 顯示機器的Hostname
ie4uinit.exe > IE5 User Install tool IE5用戶安裝工具
ieshwiz.exe > Customize folder wizard 自定義檔夾嚮導
iexpress.exe > Create and setup packages for install 穿件安裝包
iisreset.exe > Restart IIS Admin Service 重啟IIS服務
internat.exe > Keyboard Language Indicator Applet 鍵盤語言指示器
ipconfig.exe > Windows 2000 IP configuration. 察看IP配置
ipsecmon.exe > IP Security Monitor IP安全監視器
ipxroute.exe > IPX Routing and Source Routing Control Program IPX路由和源路由控制程式
irftp.exe > Setup FTP for wireless communication 無線連接
ismserv.exe > Intersite messaging Service 安裝或者刪除Service Control Manager中的服務
jdbgmgr.exe > Microsoft debugger for java 4 Java4的調試器
jetconv.exe > Convert a Jet Engine Database 轉換Jet Engine資料庫
jetpack.exe > Compact Jet Database. 壓縮Jet資料庫
jview.exe > Command-line loader for Java Java的命令行裝載者
krnl386.exe > Core Component for Windows 2000 2000的核心組件
label.exe > Change label for drives 改變驅動器的標籤
lcwiz.exe > License Compliance Wizard for local or remote systems. 許可證符合嚮導
ldifde.exe > LDIF cmd line manager LDIF目錄交換命令行管理
licmgr.exe > Terminal Server License Manager 終端服務許可協定管理
lights.exe > display connection status lights 顯示連接狀況
llsmgr.exe > Windows 2000 License Manager 2000許可協議管理
llssrv.exe > Start the license Server 啟動許可協定伺服器
lnkstub.exe >
locator.exe > RPC Locator 遠端定位
lodctr.exe > Load perfmon counters 調用性能計數
logoff.exe > Log current user off. 註銷用戶
lpq.exe > Displays status of a remote LPD queue 顯示遠端的LPD列印佇列的狀態,顯示被送到基於Unix的伺服器的列印任務
lpr.exe > Send a print job to a network printer. 重定向列印任務到網路中的印表機。通常用於Unix客戶印表機將列印任務發送給連接了列印設備的NT的印表機伺服器。
lsass.exe > LSA Executable and Server DLL 運行LSA和Server的DLL
lserver.exe > Specifies the new DNS domain for the default server 指定默認Server新的DNS域
macfile.exe > Used for managing MACFILES 管理MACFILES
magnify.exe > Used to magnify the current screen 放大鏡
makecab.exe > MS Cabinet Maker 製作CAB文件
mdm.exe > Machine Debug Manager 機器調試管理
mem.exe > Display current Memory stats 顯示記憶體狀態
migpwd.exe > Migrate passwords. 遷移密碼
mmc.exe > Microsoft Management Console 控制臺
mnmsrvc.exe > Netmeeting Remote Desktop Sharing NetMeeting遠程桌面共用
mobsync.exe > Manage Synchronization. 同步目錄管理器
mountvol.exe > Creates, deletes, or lists a volume mount point. 創建、刪除或列出卷的裝入點。
mplay32.exe > MS Media Player 媒體播放器
mpnotify.exe > Multiple Provider Notification application 多提供者通知應用程式
mq1sync.exe >
mqbkup.exe > MS Message Queue Backup and Restore Utility 資訊佇列備份和恢復工具
mqexchng.exe > MSMQ Exchange Connector Setup 資訊佇列交換連接設置
mqmig.exe > MSMQ Migration Utility 資訊佇列遷移工具
mqsvc.exe > ?
mrinfo.exe > Multicast routing using SNMP 使用SNMP多點傳送路由
mscdexnt.exe > Installs MSCD (MS CD Extensions) 安裝MSCD
msdtc.exe > Dynamic Transaction Controller Console 動態事務處理控制臺
msg.exe > Send a message to a user local or remote. 發送消息到本地或遠端客戶
mshta.exe > HTML Application HOST HTML應用程式主機
msiexec.exe > Starts Windows Installer Program 開始Windows安裝程式
mspaint.exe > Microsoft Paint 畫板
msswchx.exe >
mstask.exe > Task Schedule Program 任務計畫表程式
mstinit.exe > Task scheduler setup 任務計畫表安裝
narrator.exe > Program will allow you to have a narrator for reading. Microsoft講述人
nbtstat.exe > Displays protocol stats and current TCP/IP connections using NBT 使用 NBT(TCP/IP 上的 NetBIOS)顯示協定統計和當前 TCP/IP 連接。
nddeapir.exe > NDDE API Server side NDDE API伺服器端
net.exe > Net Utility 詳細用法看/?
net1.exe > Net Utility updated version from MS Net的升級版
netdde.exe > Network DDE will install itself into the background 安裝自己到後臺
netsh.exe > Creates a shell for network information 用於配置和監控 Windows 2000 命令行腳本介面。
netstat.exe > Displays current connections. 顯示協定統計和當前的 TCP/IP 網路連接。
nlsfunc.exe > Loads country-specific information 載入特定國家(地區)的資訊。Windows 2000 和 MS-DOS 子系統不使用該命令。接受該命令只是為了與 MS-DOS 文件相容。
notepad.exe > Opens Windows 2000 Notepad 記事本
nslookup.exe > Displays information for DNS 該診斷工具顯示來自功能變數名稱系統 (DNS) 名稱伺服器的資訊。
ntbackup.exe > Opens the NT Backup Utility 備份和故障修復工具
ntbooks.exe > Starts Windows Help Utility 幫助
ntdsutil.exe > Performs DB maintenance of the ADSI 完成ADSI的DB的維護
ntfrs.exe > NT File Replication Service NT檔複製服務
ntfrsupg.exe >
ntkrnlpa.exe > Kernel patch 核心補丁
ntoskrnl.exe > Core NT Kernel KT的核心
sol.exe > Windows Solitaire Game 紙牌
sort.exe > Compares files and Folders 讀取輸入、排序資料並將結果寫到螢幕、檔和其他設備上
SPOOLSV.EXE > Part of the spooler service for printing 列印池服務的一部分
sprestrt.exe >
srvmgr.exe > Starts the Windows Server Manager 伺服器管理器
stimon.exe > WDM StillImage- > Monitor
stisvc.exe > WDM StillImage- > Service
subst.exe > Associates a path with a drive letter 將路徑與驅動器盤符關聯
svchost.exe > Svchost.exe is a generic host process name for services that are run from dynamic-link libraries (DLLs). DLL得主進程
syncapp.exe > Creates Windows Briefcase. 創建Windows文件包
sysedit.exe > Opens Editor for 4 system files 系統組態編輯程式
syskey.exe > Encrypt and secure system database NT帳號資料庫按群工具
sysocmgr.exe > Windows 2000 Setup 2000安裝程式
systray.exe > Starts the systray in the lower right corner. 在低許可權運行systray
taskman.exe > Task Manager 任務管理器
taskmgr.exe > Starts the Windows 2000 Task Manager 任務管理器
tcmsetup.exe > telephony client wizard 電話服務客戶安裝
tcpsvcs.exe > TCP Services TCP服務
.exe > Telnet Utility used to connect to Telnet Server
termsrv.exe > Terminal Server 終端服務
tftp.exe > Trivial FTP 將檔傳輸到正在運行 TFTP 服務的遠端電腦或從正在運行 TFTP 服務的遠端電腦傳輸檔
tftpd.exe > Trivial FTP Daemon
themes.exe > Change Windows Themes 桌面主題
tlntadmn.exe > Telnet Server Administrator Telnet服務管理
tlntsess.exe > Display the current Telnet Sessions 顯示目前的Telnet會話
tlntsvr.exe > Start the Telnet Server 開始Telnet服務
tracert.exe > Trace a route to display paths 該診斷實用程式將包含不同生存時間 (TTL) 值的 Internet 控制消息協定 (ICMP) 回顯資料包發送到目標,以決定到達目標採用的路由
tsadmin.exe > Terminal Server Administrator 終端服務管理器
tscon.exe > Attaches a user session to a terminal session. 粘貼用戶會話到終端對話
tsdiscon.exe > Disconnect a user from a terminal session 斷開終端服務的用戶
tskill.exe > Kill a Terminal server process 殺掉終端服務
tsprof.exe > Used with Terminal Server to query results. 用終端服務得出查詢結果
tsshutdn.exe > Shutdown the system 關閉系統
unlodctr.exe > Part of performance monitoring 性能監視器的一部分
upg351db.exe > Upgrade a jet database 升級Jet資料庫
ups.exe > UPS service UPS服務
user.exe > Core Windows Service Windows核心服務
userinit.exe > Part of the winlogon process Winlogon進程的一部分
usrmgr.exe > Start the windows user manager for domains 域用戶管理器
utilman.exe > This tool enables an administrator to designate which computers automatically open accessibility tools when Windows 2000 starts. 指定2000啟動時自動打開那台機器
verifier.exe > Driver Verifier Manager Driver Verifier Manager
vwipxspx.exe > Loads IPX/SPX VDM 調用IPX/SPX VDM
w32tm.exe > Windows Time Server 時間伺服器
wextract.exe > Used to extract windows files 解壓縮Windows檔
winchat.exe > Opens Windows Chat 打開Windows聊天
winhlp32.exe > Starts the Windows Help System 運行幫助系統
winlogon.exe > Used as part of the logon process. Logon進程的一部分
winmine.exe > windows Game 挖地雷
winmsd.exe > Windows Diagnostic utility 系統資訊
wins.exe > Wins Service Wins服務
winspool.exe > Print Routing 列印路由
winver.exe > Displays the current version of Windows 顯示Windows版本
wizmgr.exe > Starts Windows Administration Wizards Windows管理嚮導
wjview.exe > Command line loader for Java 命令行調用Java
wowdeb.exe > . For starters, the 32-bit APIs require that the WOWDEB.EXE task runs in the target debugee's VM 啟動時,32位元API需要
wowexec.exe > For running Windows over Windows Applications 在Windows應用程式上運行Windows
wpnpinst.exe > ?
write.exe > Starts MS Write Program 寫字板
wscript.exe > Windows Scripting Utility 腳本工具
wupdmgr.exe > Starts the Windows update Wizard (Internet) 運行Windows升級嚮導
xcopy.exe > Used to copy directories 複製檔和目錄,包括子目錄

skydiary 發表在 痞客邦 留言(0) 人氣()

由於最近接觸的專案中
其中有客戶使用的是PostgreSQL

因為客戶反應系統會出現當機的情況,所以自己也就在公司架一套起來做測試用

為了與客戶的問題環境一致,所以安裝的PostgreSQL是 7.4.7 版本

由於自己是第一次安裝,所以安裝前上網查了許多資料,沒想到查到的大部份都是從 src檔開始安裝;為了偷懶,於是我下載rpm檔來進行安裝

不過這樣就有點尷尬,因為我不用從make的command開始做起
(為什麼好好的rpm不用,大家偏偏喜歡下載src安裝呢?)

結果過程當中當然遇到了一些問題,好不容易安裝好一套;結果美國同事寄mail來問安裝的流程
(當時PostgreSQL已經裝好兩個星期了,而我也早就忘了當初怎麼裝起來的.. :()

為了寫安裝流程,我又重新安裝好一套PostgreSQL
(結果我又花了一個下午才裝起來 ...)

兩次的安裝讓我瞭解到一件事:
人老了,就會開始忘東忘西了... :((

所以我要開始學著把自己學過的東西寫下來
(這樣我的BLOG應該也會開始變得有價值了吧!! :P)
開始進入 PostgreSQL 7.4.7 rpm 安裝流程吧!

##############################################
PostgreSQL安裝

步驟1: 下載PostgreSQL

要下載PostgreSQL rpm 檔可以直接到 PostgrelSQL 網站的Download搜尋
PostgreSQL網站: http://www.postgresql.org

rpm 的安裝過程中主要需要的是兩個檔案
1. postgresql-7.4.7-2PGDG.i686.rpm
2. postgresql-server-7.4.7-2PGDG.i686.rpm

建議根據安裝的平台下載相對應的 PostgreSQL rpm 檔,因為我前後安裝的平台不一樣 (Red Hat Fedora 3 跟Red Hat ES 4);所以我下載了四個 rpm 檔

步驟2 : 執行PostgrelSQL rpm檔

rpm的安裝真的很簡單,可以再加上 -ivh 參數執行,這樣就可以觀察整個rpm檔的安裝過程了;但是 rpm 的參數還滿多的,所以可以根據各人習慣下指令

下面就是我用的指令:

#rpm -ivh postgresql-7.4.7-2PGDG.i686.rpm

#rpm -ivh postgresql-server-7.4.7-2PGDG.i686.rpm

好了,現在PostgrelSQL已經安裝好啦

步驟3: 在Linux上新增 PostgrelSQL的管理者帳號

因為PostgreSQL 不允許 root 當管理者(Administrator),所以需要先在系統上新增一個使用者準備當做PostgreSQL的管理者

#useradd psqlAdmin

這裡"psqlAdmin" 就是我準備拿來當做PostgreSQL管理者的帳號

步驟4: 將PostgreSQL目錄的擁有者改成新增的PostgreSQL管理者

#chown -R psqlAmin /var/lib/pgsql

步驟5: 初始化(Initial) PostgreSQL

在準備初始化 Postgresql前,必須先切換到 psqlAdmin 這個帳號. (因為在上一個步驟,我已經將 PosqtgreSQL的管理者改成 psqlADmin這個帳號了,如果這個時候不用 psqlAdmin這個帳號登入系統;初始化postgreSQL會出現錯誤)

#su - psqlAdmin

接下來就可以初始化PostgreSQL了, 先到 usr/bin 目錄

$cd /usr/bin

初始化 PostgreSQL, 這個步驟一定要執行;這樣PostgreSQL才會產生 Tempalte Database

$initdb -U psqlAdmin -D /var/lib/pgsql/data

步驟6: 修改 PostgreSQL 的組態檔

$vi /var/lib/pgsql/data/postgresql.conf

在postgresql.conf中只要修改兩行就可以了,先找到
#tcpip_socket=false

先把 # 符號拿掉,接著再把 false 改成 true就可以了

tcpip_socket=true

改完tcpip_socket後,接著搜尋 port 字串
#port=5432

這裡只要把 # 符號拿掉就可以了,

port=5432

這樣就算改完 PostgreSQL的組態檔了

步驟7: 新增可信任的主機到PostgreSQL中

接下來修改 PostgreSQL 的pg_hda.conf 檔案,新增可信任的主機IP進去就算大功告成啦!

$vi /var/lib/pgsql/data/pg_hba.conf

在檔案的最後一行加上:

host all all YourServerIP 255.255.255.255 trust

把YourServerIP換成你要新增的主機IP就可以了. 如果想要新增的是讓一個網段的主機都可以使用PostgreSQL,那就只要把原來的 255.255.255.255 改成 255.255.255.0 就可以了.詳細的主機設定方法都有寫在pg_hda.conf這個檔案內,可以根據不同的需要設定.

步驟8: 啟動PostgreSQL 服務 (Daemon)

$postmaster -D /var/lib/pgsql/data

如果接下來可以看到 PostgreSQL 的Log出現在console上,那就表示 PostgreSQL已經安裝完成開始運作嚕.( 如果不想看這些 PostgreSQL的information可以把Postmaster 丟到系統背景執行)

步驟9: 新增資料庫

安裝完成後當然得先建一個資料庫來玩看看嚕,

$createdb myDB

myDB就是我新增的Database.如果這裡有看到找不到templated databse的錯誤字串的話,那表示步驟5還沒有執行.好啦,如果一切順利,那麼現在可以開始玩 PostgreSQL 嚕...

skydiary 發表在 痞客邦 留言(0) 人氣()

前兩個星期,當我很開心的在安裝FEDORA的時候
(呼~安裝FEDORA又是一個難忘的經驗~~)
姿伶問我: "為什麼Red Hat Linux 要改名字叫 FEDORA?"

今天去上課的時候,
老師第一堂課就是在介紹 UNIX的歷史

原來~
Red Hat現在把自家的Linux分成Linux ES, Linux AS, Fedora 等等幾種
把不同環境下可能會執行的任務分成幾種不同的Linux Server

Red Hat把原來的Linux分成
一個繼續維持Free Software 的系統 FEDORA,
另一個就是整合其他套件另外發展的 Linux ES

第一天的課程其實滿好玩的
看到了許多UNIX 的祖師爺的照片
(天吶~~這些人太了不起了!! )

因為我也是 Free Software的支持者!!
所以看到LINUX的大鬍子Richard M. Stallman的照片
真的是超級感動!!
除了感動還是感動!!!

(大鬍子!!我永遠支持你!!)

一個晚上之內可以看到當初各位UNIX大師的照片
Richard Stallman,Dennis M· Ritchie,Ken Thompson,Linus Torvalds,Robert Morris等等等
真的是超~~~級~~~開心的啦!! :D

(好像朝聖喔!! 這麼多偉人!!)

好了~回到重點~

Red Hat Linux 跟 FEDORA 開始往不同的方向發展
一個持續往 Free Software發展
另一個則是往Enterprise Server整合更多的套件
(不過Enterprise Server要收錢就是了 ~"~)

--- 待續 ---

skydiary 發表在 痞客邦 留言(0) 人氣()

1 2