February 25, 2005

Linux Remote Serial Console Howto - notes

LDP: Remote Serial Console Howto

Env:
OS -- Red Hat Linux 9, Fedora Core 2
boot loader -- GRUB

Modify steps:
1. GRUB parameter:

bash# vi /etc/grub.conf
Add below 2 lines to set the serial console as 9600/8/n/1, and 10 secs timeout.
serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1
terminal --timeout=10 -dumb serial console
Add a single user mode option to GRUB menu
title Red Hat Linux (2.4.9-21) single user mode
lock
root (hd0,0)
kernel /vmlinuz-2.4.9-21 ro root=/dev/hda6 s
initrd /initrd-2.4.9-21.img
2. Kernel parameter in GRUB
Add the kernel parameter for serial console
title Red Hat Linux (2.4.9-21)
root (hd0,0)
kernel /vmlinuz-2.4.9-21 ro root=/dev/hda6 console=tty0 console=ttyS0,9600n8
initrd /initrd-2.4.9-21.img
3. Install mgetty
The mingetty which was installed can not use for serial console.
Please get mgetty and install it.

4. Add mgetty as ttyS in /etc/inittab
co:2345:respawn:/sbin/mgetty ttyS
5. Configure /etc/mgetty+sendfax/mgetty.config for ttyS0
port ttyS0
speed 9600
direct yes
data-only yes
toggle-dtr yes
need-dsr yes
port-owner root
port-group root
port-mode 600
login-prompt @ \P login:\040
login-time 60
term vt102
6. Remove mingetty entry from /etc/inittab
1:2345:respawn:/sbin/mingetty tty1
# Additional virtual terminals are not used
2:2345:off:/sbin/mingetty tty2
3:2345:off:/sbin/mingetty tty3
4:2345:off:/sbin/mingetty tty4
5:2345:off:/sbin/mingetty tty5
6:2345:off:/sbin/mingetty tty6
Then restart init
bash# telinit q
7. Edit /etc/securetty to allow root login from serial console
add 'ttyS0' in /etc/securetty

8. Change init level to textual ( run level 3)
bash# vi /etc/inittab
find
id:5:initdefault:
edit as
id:3:initdefault:
9. Remove saved console setting
bash# rm -f /etc/ioctl.save
10. Alter target of /dev/systty
bash# cd /etc/makedev.d
bash# fgrep systty *
linux-2.4.x:l systty tty0
bash# vi linux-2.4.x
find
l systty tty0
edit as
l systty ttyS0
save it, then re-create /dev/systty
bash# cd /dev
bash# rm systty
bash# ./MAKEDEV systty
11. PAM configure
bash# vi /etc/security/console.perms
Add sconsole =ttyS0
Then modify the remaining entries from console to sconsole

12. Configure Red Hat Linux

bash# vi /etc/sysconfig/init

set it as:

BOOTUP=serial
PROMPT=no

bash# vi /etc/sysconfig/kudzu

set it as:
SAFE=yes

Then you can reboot and test it.

February 05, 2005

[革命前夕的摩托車日記] 電影 2/25 上映

現在正透過兩廳院售票系統預售唷...
預售在此

時間:2005/02/25-2005/03/03
票價:單張全票250元。雙人套票2張380元
(另加贈〝革命前夕的摩托車日記〞原文海報乙張,自1月15日起憑2張預售票至國家戲劇院或音樂廳售票口換取)

一個星期的檔期, 剛好是 228 放假.
嗯, 純粹是自己想去看, 不是打廣告唷.... ^_^

The Motocrycle Diaries 電影官網
騰達國際電影官網
工頭堅:《摩托車日記》:一部青春無敵公路電影
工頭堅:《摩托車日記》─在想像中追隨格瓦拉的腳步

原著:
The Motorcycle Diaries : A Latin American Journey
The Motorcycle Diaries (Movie Tie-in Edition) : Notes on a Latin American Journey
革命前夕的摩托車之旅 ......缺貨中
黃小黛:革命前夕的摩托車之旅

February 04, 2005

Live CD - Linux and Windows

Many Live CD's Information Check Here
-- from t850008 at tces.ilc.edu.tw

包括
PE Builder (Windows)
Knoppix
Mandrake Live-CD
WiFi Live-CD
Porting Live-CD in Flash Disk
Fedora Live-CD
Usb Linux
.....好多

打算作個 Fedora/RH8/RHEL/CentoOS Live-CD 來讓測試線用, 省得每次重裝硬碟...

February 03, 2005

誰是「雙面人」?

破報: 誰是「雙面人」?---評伍佰新專輯
文 / 中坡不孝生

劣者倒沒像作者想那麼多,應該也想不到那麼多... :P
不過對於這張專輯中的歌曲,倒是有跟他類似的感覺呢.

February 02, 2005

Install Natural Person Certificate

在 04' 12/31 辦了自然人憑證之後 (搶免費辦卡最後一天 ... :p ),
終於 A 到讀卡機來玩玩, 雖然是 W 行的網路 ATM 讀卡機, 啊都是 smart card 咩...

用 IE 跟 Outlook express 的應該沒啥困難, 憑證管理中心都有文件

難搞的還是 FireFox 跟 ThunderBird ... >< b
當然還是去 MOZTW 討論區找囉...

找到二篇 isaackuo 寫的
在 Thunderbird 1.0 上使用自然人憑證對郵件簽章
使用數位簽章功能-以 mozilla 1.4 mail 及自然人憑證為例

呃...先玩玩簽章吧
加密傳輸還要別人陪你玩, 周圍放眼望去, 有憑證的人太少了...

February 01, 2005

CentOS - The Community ENNTerprise Operating System

CentOS
CentOS 是一個企業級的 Linux 套件,目前和 RedHat Enterprise Linux 相容。

Centos
- Bill Winer 的 blog, 用 Shuttle MiniBox 架 CentOS 當 Server

CentOS討論區
- 自由軟體技術交流網討論區

自由取得Red Hat Enterprise Linux的功能 -- CentOS 3.4
- PowerOP's blog

CentOS Lite
- 以 CentOS 作為核心同時把套件數量簡化到最小的Distribution (測試版)

MiniFedora
- candyz (用過 cle 的應該知道他吧), 提供一個最小化安裝版本的 Fedora Core Linux

Linux Center News - CentOS
- 免費使用 Red Hat Enterprise Linux AS3 的好選擇

CentOS - 單片 CD Server 版, 頭城國小資訊組
- CentOS 3.3 安裝過程
- CentOS 3.4, 安裝過程參照上方 3.3
- 下載 CentOS 3.4 2005.01.13 , 1CD
- md5 檔下載 CentOS34_20050113.iso.md5

OLS3 (臥龍三小) 的 CentOS 介紹

台南縣教育網的 CentOS ftp mirror site