Archive for the 'Linux' Category

11月 09 2008

增加 Linux Swap 空間

Published by kcw under Linux

應該算死馬當活馬醫了吧。昨天看了記錄檔,發現 Apache 仍舊因為記憶體不足而掛點 試著增加Swap交換區的空間,看這次能不能撐久一點。
Swap 交換區可以設置在 Partition 上,也可以是獨立的一個檔案(Swap file),使用後者不用動到分割區,感覺比較可靠些。
1) 產生 256MB(256*1024=262144) 的 Swap file:
dd if=/dev/zero of=/tmp/swapfile bs=1024 count=262144
2) 設定該檔為 Swap area:
mkswap /tmp/swapfile
3) 掛載新建立的 Swap:
swapon /tmp/swapfile
4) 使用「swapon -s」查看目前的狀況:

Filename Type Size Used Priority
/dev/sda2 [...]

No responses yet

2月 15 2008

Yafc FTP Client

Published by kcw under Linux

無意間發現一個在 Linux下的 FTP Client軟體「Yafc」,全名是 Yet Another FTP Client。目前最新版本是1.1.1,開發時間停留在2005-10,算是好長一陣子沒更新了。
純文字介面、功能陽春。簡單地來說,Yafc大概就像是 ftp+shell+sftp 的綜合體。主要特色有:
- Alias (別名功能)
- Colored ls (即 ls --color)
- Prompt (自訂 prompt 顯示)
- Extensive tab completion (指令補齊)
- Recursive get/put/ls/rm (遞迴傳檔)
- Kerberos , SSH2 support (支援 sftp)
首次執行 Yafc 時,會在home下生成「.yafc目錄」,然後個人化的設定檔「yafcrc」需要手動建立。使用下列指令,建立預設的rc檔:
yafc --dump-rc > ~/.yafc/yafcrc
如果想要使用彩色檔案列表:
alias ls "ls -F --color"

No responses yet

12月 10 2007

Linux 燒機程式

Published by kcw under Linux

最近從我弟那邊接手了一張二手主機板,規格還可以、運作上也沒什麼問題。只不過這張板子當初遭到汰換,是因為電源供應器燒掉的關係 XDD 所以擁有者直接拋售整組設備。由於這個緣故,所以想說即使主機能正常運作,還是要小測一下比較保險。
在原本Windows平台上,有 prime95 可以用來測試 CPU穩定性。而該軟體在 Linux系統上,有另一姐妹作「mprime」,原本想用 mprime 來進行測試,無奈官方網站一直無法連線。想要找其他軟體進行輔助,卻發現 Linux好像不太搞「燒機測試」這套。

No responses yet

10月 18 2007

Ubuntu 7.10 Released

Published by kcw under Linux

新版 Ubuntu 7.10(Gutsy Gibbon),在今天(Oct 18)正式發表。主要做了下列的增修:
Linux kernel 2.6.22
GNOME 2.20
內建 Compiz Fusion 桌面特效
支援 NTFS 檔案系統寫入

No responses yet

8月 08 2007

Debian下安裝 ns2

Published by kcw under Linux

在 Debian 下安裝 NS2(Network Simulator V2)
1) 首先透過 apt 安裝下列套件:
build-essential tcl8.4 tcl8.4-dev tk8.4 tk8.4-dev
2) 取得 ns-allinone-2.xx.tar.gz並解壓:

tar -zxvf ns-allinone-2.xx.tar.gz

3) 更改目錄名稱以便記憶,之後進行安裝:

mv ns-allinone-2.xx ns2
cd ns-allinone-2.xx
./install

4) 安裝完成,修改 ~/.bashrc

export PATH=$PATH:/home/user/ns2/bin:/home/user/ns2/tcl8.4.15/unix:/home/user/ns2
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/user/ns2/otcl-1.13:/home/user/ns2/lib
export TCL_LIBRARY=$TCL_LIBRARY:/home/user/ns2/tcl8.4.15/library

No responses yet

4月 10 2007

Debian GNU/Linux 4.0 Released

Published by kcw under Linux

April 8th, 2007
The Debian Project is pleased to announce the official release of Debian GNU/Linux version 4.0 ,codenamed "etch", after 21 months of constant development. This release includes a number of updated software packages,

Linux kernel version 2.6.18
Apache 2.2.3
PHP 4.4.4 and 5.2.0
MySQL 5.0.32

It also features cryptographic software and compatibility with the FHS v2.3 and software developed [...]

No responses yet

Next »