聚沙成塔

養貓的陌生人筆記本

Syslog Server

No Comments »


主機一多,log就多,log一多就亂,亂了就很難處理狀況,
因此若是可以集中在一台主機上,不就 ok 了嗎?
這就是 syslog Server 是也!

作法很簡單,要稍微記一下即可!

Read the rest of this entry »

使用 gcc 編譯 C++ 與 C 的程式

No Comments »

編譯 C

Read the rest of this entry »

Solaris 靜態路由

No Comments »



route add 192.168.0.0/24 172.17.1.254 -ifp bge0

備份 StarTeam

No Comments »


StarTeam 是 Borland 出的一個大型專案版本控管軟體,在各種 Unix-Like 的作業系統都可以跑,
只要裝了 JDK 就能用,Client 功能介面在任何能跑的平台長得都一樣。
不過 Server 端只支援 Oracle 與 MS-SQL,因此都只安裝在 Windows 上居多…
以下就是備份出來的方法。

Read the rest of this entry »

Solaris 的 Crontab 編輯

No Comments »


1.先檢查 /usr/lib/cron/cron.allow 有沒有 User 的 ID
若是無,則輸入該 User ID,同時確認 cron.deny 有沒有該 User ID.
2.在 User 登入的 shell 畫面中,輸入 export EDITOR=vi,這是因為 Solaris 底下預設的 crontab 編輯器並不是 vi 的緣故。
3.輸入 crontab -e,即可跟 Linux 一樣用 vi 來編輯 crontab 排程。

另一種方法,不需要 cron.allow 中有該 User ID,
直接用 root 指定..
先輸入 export EDITOR=vi
再輸入 crontab -e UserID 即可編輯。


修復無法開機的 Grub

No Comments »

我本人習慣不切 /boot
但 Linux 有時安裝完畢後會一直停留在 grub 開機訊息
這時往往需要重新安裝一次 grub..

  1. 用安裝光碟 linux rescue 修復模式
  2. 掛載 kernel 並 chroot
    #chroot /mnt/sysimage
  3. 重新執行安裝 grub 指令
    #/sbin/grub-install /dev/hda

Ubuntu 7.04 開啟 XDMCP

No Comments »

若常常使用 X-manager 的人,裝上 Ubuntu 之後一定也想知道怎麼打開它的 X-Server,
解法如下:

Read the rest of this entry »

Ubuntu 7.04 於 A8N-VM 主機板內建顯卡安裝

No Comments »


我以 ASUS A8N-VM 這張板子安裝 Ubuntu 7.04,安裝過程很順利,
不過雖然安裝程式可以正確使其內建的 GF 6100 顯示卡運作,卻無法在
安裝後正確進入 X-Window

於是我參考了這個網頁 關於 nvidia-glx 顯示卡的設定及檢查

在 /etc/apt/sources.list 中加入以下

Read the rest of this entry »

Ubuntu 7.04 設定固定 IP

No Comments »

Ubuntu 是另一種 Linux 分支,其設定IP方法有別於 Redhat 系列

Read the rest of this entry »

tar 解壓縮的指令

No Comments »


$tar -zxvf [filename]
#可以解 *.tar.gz
$tar -jxvf [filename]
#可以解 *.tar.bz2

這是 Linux 上的 tar,
有些 Unix 或是 BSD 上面的 tar 不支援直接帶參數解 gz 與 bz2,
只能用 gzip -d先把 *.gz 解掉再用tar -xvf 解。