聚沙成塔

養貓的陌生人筆記本

安裝 JDK 速成法

No Comments »

1. 下載 jdk-1_5_0_06-linux-i586.bin
解壓縮至 /usr/local/ 下面,建立 softlink 名字為 jdk

Read the rest of this entry »

RH 系列 Linux 自動 fsck

No Comments »

RH系列的 Linux 若有不正常關閉系統的情況,常常需要待在主機前面按下 Y
以啟動 FSCK 檢查檔案系統,若是螢幕鍵盤拔掉了,必須就很辛苦的插上去按下 Y現
在有個指令可直接預設是 Y:

Read the rest of this entry »

利用 Shell Script 依照日期取檔名備份

No Comments »


一開始的目的是想將信箱壓起來備份,不過應該是可以適用其他的地方,只要是檔案就可以了。

#!/bin/bash
YMD=$(date +”%G%m%d”)
cp /path/to/youfile /path/to/your/backup/file .$YMD
tar -zcvf /path/to/your/backup/file .$YMD.tar.gz /path/to/your/backup/file .$YMD


CentOS 合併兩張網卡

No Comments »

1.編輯 /etc/modprobe.conf
加入以下:

Read the rest of this entry »

打造 Layer7 QOS

No Comments »

由於公司內不檔 P2P,有時候許多人在用的時候都很慢,
因而生起 QOS 的想法,
Read the rest of this entry »

五張網卡 (3 wan+2 Lan) 的 NAT 與 iproute2 整合連線全紀錄

No Comments »


事由:

公司原本使用兩條 ADSL 線路,
一條是 seednet 雙向 512K,固五 IP,另一條是 HiNet 12M/1M 固三ADSL,

Read the rest of this entry »

Resin 開機啟動 Shell Scripts

No Comments »

以下是 Resin 運作於 Linux 作業系統路徑 /etc/init.d/ 底下的 service 啟動 scripts
Read the rest of this entry »