Recently in Linux Category

Boot ISO from USB Flash Drive

user-pic
Vote 0 Votes

Boot ISO from USB Flash Drive 是一個可以把隨身碟做可開機的工具, 使用 Syslinux + GRUB4DOS
它還可以 Boot ISO, 把 ISO 檔放進去, 改一下 menu.lst 就行了, 非常方便
測了幾個類型的開機 ISO
一般 DOS, 正常
Windows XP 安裝光碟, 可開機, 到分割硬碟畫面會出現藍屏, 0x0000007b
Windows XP Live CD (XPE), 正常, 可開到桌面
CentOS Linux 安裝光碟, 可開機, 過程中要選 Hard drive, /dev/sda1 即可正安裝
Symantec Ghost 15 Recovery Disk, 正常, 可到軟體畫面

pendrivelinux.com 網站另一個好用工具是 Universal USB Installer, 可以把各式 Linux 裝到隨身碟.

Mandriva Taiwan Mirror

user-pic
Vote 0 Votes

台灣的 Mandriva Mirror FTP 好像只剩兩家了
ftp://ftp.twaren.net/pub/Linux/Mandrake/
ftp://ftp.isu.edu.tw//pub/Linux/Mandriva/

grep tab

user-pic
Vote 0 Votes

grep 'A'$'\t''B' file
or
grep 'A B' file
(Just type tab, Ctrl-V TAB under BASH)

RTSP conntrack module

user-pic
Vote 0 Votes

RTSP conntrack module 可以讓 RTSP 封包經過 NAT 能正常,
目前還沒有進官方 Kernel, 需手動 Patch, 自己編 Kernel
Mandriva 2009.1, 2010 有收錄,
urpmi netfilter-rtsp-kernel-2.6.31.5-server-1mnb-2.6.26-2mdv2009.1
裝好後可以找到 nf_conntrack_rtsp, nf_nat_rtsp 這兩個 module

使用 GCC 4.1.0 或 GCC 4.1.1 無法編譯 Linux Kernel>=2.6.29
會出現錯誤訊息
error: #error Your version of gcc miscompiles the __weak directive
只能編到 Kernel 2.6.28.10

Mandriva Seed

user-pic
Vote 0 Votes

Mandriva Seed 可以把 Mandriva 的 ISO 檔 Dump 到 USB 隨身碟,
使可以用隨身碟開機安裝, 對於沒有 CD-ROM 的小筆電來說很方便, 也很環保.

ref. Installation from a USB stick

IBM x3650 M2 + CentOS 5.4 x64

user-pic
Vote 0 Votes

IBM x3650 M2 + CentOS 5.4 x64 網路卡好像不太正常,
系統看起來沒問題, Switch 上可看到 MAC 上來, 網路就是不通, 真是怪了.
CentOS 5.3 x64 是正常的.
2009-11-11 Update: 結果換回比較舊的 kernel-2.6.18-128.x 就正常了,
(CentOS 5.4 預設是裝 kernel-2.6.18-164.x)

Utilities and SDK for Subsystem for UNIX-based Applications (SUA) 是微軟所提供的在 Windows 下執行的 UNIX-base 環境
包含下列
- Base Utilities
- SVR-5 Utilities
- Base SDK
- GNU SDK
- GNU Utilities
- UNIX Perl (似乎沒有)
- Visual Studio Debugger Add-in

[Linux] Turn All Services Off

user-pic
Vote 0 Votes

chkconfig --list | awk '/0:/{system("chkconfig "$1" off")}'

Linux 安裝好預設會開一些 Service, 若用不到就先全關, 再開自己要的.
chkconfig crond on
chkconfig network on
chkconfig syslog on
chkconfig sshd on

yppasswd can update NIS password, but ypserv need to restart to take effect.
add
/etc/init.d/ypserv restart
to /usr/lib64/yp/pwupdate (x86 is /usr/lib64/yp/pwupdate) is a workaround.
ypserv will restart when user run yppasswd.
I know this is informal workaround,
If someone knows other solutions, Please leave comment.

About this Archive

This page is an archive of recent entries in the Linux category.

Life is the previous category.

Misc is the next category.

Find recent content on the main index or look in the archives to find all content.