2008-09-28

Slitaz - Hinedo



Hinedo - 輕鬆聽 Hinet Radio
http://of.openfoundry.org/projects/814

Hinet 提供的免費電台,一定限定在 Windows 下使用 IE 瀏覽器,連上 Hinet Radio 首頁,否則就無法使用,而且操作非常不方便。這個工具在工作列提供一個小圖示,透過選單介面,方便使用者聽 Hinet 廣播


http://of.openfoundry.org/download_path/hinedo/2007.11.18/hinedo_0.4-2_i386.deb

-

2008-09-27

Slitaz - SD / MMC card

SD / MMC card ( mini SD / micro SD )

root@slitaz:~# lsmod
Module Size Used by
mmc_block 9476 0
sdhci 13836 0
mmc_core 36892 2 mmc_block,sdhci

root@slitaz:~# ls -l /dev/mmc*
brw-r----- 1 root root 179, 0 Sep 26 06:57 /dev/mmcblk0
brw-r----- 1 root root 179, 1 Sep 26 06:57 /dev/mmcblk0p1

root@slitaz:~# lspci -v
........
03:01.2 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 17)
Subsystem: ASUSTeK Computer Inc. ASUS V6800V
Flags: bus master, medium devsel, latency 64, IRQ 18
Memory at fbffb800 (32-bit, non-prefetchable) [size=256]
Capabilities: [80] Power Management version 2
Kernel driver in use: sdhci
Kernel modules: sdhci

root@slitaz:~# dmesg
.......
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci: SDHCI controller found at 0000:03:01.2 [1180:0822] (rev 17)
ACPI: PCI Interrupt 0000:03:01.2[C] -> GSI 18 (level, low) -> IRQ 18
sdhc0:slot0: Will use DMA mode even though HW doesn't fully claim to support it.
mmc0: SDHCI at 0xfbffb800 irq 18 DMA
mmc0: new SD card at address 05ce
mmcblk0: mmc0:05ce SD02G 1921024KiB
mmcblk0: p1
kjournald starting. Commit interval 5 seconds
EXT3 FS on mmcblk0p1, internal journal
.....

root@slitaz:~# fdisk /dev/mmcblk0

The number of cylinders for this disk is set to 1203.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/mmcblk0: 1967 MB, 1967128576 bytes
57 heads, 56 sectors/track, 1203 cylinders
Units = cylinders of 3192 * 512 = 1634304 bytes

Device Boot Start End Blocks Id System
/dev/mmcblk0p1 * 1 1204 1920955+ 83 Linux

Command (m for help): q
root@slitaz:~#



Extract from

http://www.lanana.org/docs/device-list/devices-2.6+.txt

LINUX ALLOCATED DEVICES (2.6+ version)

Maintained by Torben Mathiasen

Last revised: 18 March 2008

This list is the Linux Device List, the official registry of allocated
device numbers and /dev directory nodes for the Linux operating
system.

The latest version of this list is available from
http://www.lanana.org/docs/device-list/ or
ftp://ftp.kernel.org/pub/linux/docs/device-list/. This version
may be newer than the one distributed with the Linux kernel.

.....
179 block MMC block devices
0 = /dev/mmcblk0 First SD/MMC card
1 = /dev/mmcblk0p1 First partition on first MMC card
8 = /dev/mmcblk1 Second SD/MMC card
........

2008-09-21

Slitaz - rootdelay

Extract from

http://www.debianhelp.org/node/3943#comment-45729

Re: unable to mount root fs on unknown--block(0,0)
Submitted by benizi on Sun, 2008-09-14 18:27.

I ran into this same problem. I'd compiled in all the appropriate modules, so I knew that wasn't the problem. But my USB drive still wasn't listed in the "possible options" list that gets spit out before the kernel panic.

The solution for me was to add rootdelay=10 to my kernel options line. It takes several seconds for my USB drive to initialize. So, it wasn't present by the time the kernel attempted to make it the root device.

The full grub.conf entry:

title=linux usb
root (hd0,0)
kernel /2.6.24-r7/testing/kernel rootdelay=10 root=/dev/sdb2



-------

Kernel Parameters
~~~~~~~~~~~~~~~~~
The following is a consolidated list of the kernel parameters as implemented (mostly) by the __setup() macro and sorted into English Dictionary order (defined as ignoring all punctuation and sorting digits before letters in a case insensitive manner), and with descriptions where known.

rootdelay= [KNL] Delay (in seconds) to pause before attempting to mount the root filesystem

/usr/share/doc/kernel-doc-「kernel version」/Documentation/kernel-parameters.txt


---------
Extract from

http://www.debian.org/releases/stable/i386/release-notes/ch-upgrading.zh-tw.html#s-boot-timing

Debian GNU/Linux 4.0 ("etch"), Intel x86 的發行情報

4.6.5 開機時機問題
如果使用由 initramfs-tools 產生的 initrd 來開機的話,在某些狀況下 udev 建立裝置檔的時機比開機 scripts 的動作還慢。

The usual symptoms are that the boot will fail because the root file system cannot be mounted and you are dropped into a debug shell, but that when you check afterwards, all devices that are needed are present in /dev. This has been observed in cases where the root file system is on a USB disk or on RAID, especially if lilo is used.

要避開這個問題的方法是使用 rootdelay=9 開機參數。其中的秒數可能得再加以調整才行。


http://www.debian.org/releases/stable/i386/release-notes/ch-upgrading.en.html#s-boot-timing

4.6.5 Boot timing issues

If an initrd created with initramfs-tools is used to boot the system, in some cases the creation of device files by udev can happen too late for the boot scripts to act on.

The usual symptoms are that the boot will fail because the root file system cannot be mounted and you are dropped into a debug shell, but that when you check afterwards, all devices that are needed are present in /dev. This has been observed in cases where the root file system is on a USB disk or on RAID, especially if lilo is used.

A workaround for this issue is to use the boot parameter rootdelay=9. The value for the timeout (in seconds) may need to be adjusted.

2008-09-18

Slitaz - Openbox


Openbox - obconf

2008-09-11

Slitaz - perl

urxvt: perl hook 0 evaluation error:
Undefined subroutine &Scalar::Util::weaken


Cooking 20080716

root@slitaz:~# urxvt &
root@slitaz:~# urxvt: perl hook 0 evaluation error: Undefined subroutine &Scalar::Util::weaken called at /usr/lib/urxvt/urxvt.pm line 1178.
urxvt: the locale is not supported by Xlib, working without locale support.

/usr/lib/urxvt/urxvt.pm line 1178.
Scalar::Util::weaken ($proxy->{term} = $self);

root@slitaz:~# urxvt -help
rxvt-unicode (urxvt) v9.02 - released: 2008-01-29
options: perl,xft,styles,combining,blink,iso14755,encodings=eu+vn+jp+jp-ext+kr+zh+zh-ext,fade,transparent,tint,XIM,frills,selectionscrolling,wheel,slipwheel,cursorBlink,pointerBlank,scrollbars=plain+rxvt+NeXT+xterm
Usage: urxvt [options] [-e command args]
...


root@slitaz:~# perl -V
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
Platform:
osname=linux, osvers=2.6.25.5-slitaz, archname=i686-linux
uname='linux slitaz 2.6.25.5-slitaz #1 smp sun jun 29 21:52:43 cest 2008 i686 unknown '
config_args='-ds -e -Dprefix=/usr'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing -pipe'
ccversion='', gccversion='4.2.3', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =''
libpth=/lib /usr/lib
libs=-lnsl -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.7.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.7'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2'


Characteristics of this binary (from libperl):
Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP
USE_LARGE_FILES USE_PERLIO
Built under linux
Compiled at Jun 30 2008 22:43:26
@INC:
/usr/lib/perl5/5.10.0/i686-linux
/usr/lib/perl5/5.10.0
/usr/lib/perl5/site_perl/5.10.0/i686-linux
/usr/lib/perl5/site_perl/5.10.0
/usr/lib/perl5/site_perl
.

2008-09-10

Slitaz - terminal

xterm-urxvt

LXterm

lilyterm


fc-list :lang=zh

root@slitaz:~# uname -a
Linux slitaz 2.6.25.5-slitaz #1 SMP Fri Jul 11 17:27:07 CEST 2008 i686 unknown
root@slitaz:~# fc-list
Fixed:style=SemiCondensed
DejaVu Sans:style=Bold
DejaVu Sans:style=Book
文鼎PL細上海宋Uni,AR PL ShanHeiSun Uni,文鼎PL細上海宋Uni:style=Regular
AR PL ShanHeiSun Uni:style=Regular
DejaVu Sans Mono:style=Book
root@slitaz:~# fc-list :lang=zh
文鼎PL細上海宋Uni,AR PL ShanHeiSun Uni,文鼎PL細上海宋Uni:style=Regular
AR PL ShanHeiSun Uni:style=Regular
root@slitaz:~#

2008-09-09

Slitaz - uming

將全真字型 (TrueType) 轉為點陣字 (pcf)






摘錄自
http://penkia.blogspot.com/2008/04/truetype-pcf.html

apt-get install xfonts-utils gbdfed

使用 gbdfed 匯入 (import) 字型 (如 /usr/share/fonts/truetype/arphic/uming.ttf) 並另存為 uming.bdf

用 bdftopcf 和 gzip 指令將它壓縮:

bdftopcf uming.bdf -o uming.pcf; cat uming.pcf | gzip -9 > uming.pcf.gz



多合一小型Linux光盤

>SliTaz号称世界上最小的Linux桌面发行版,真的够小了,比 Damn Small Linux还

>目前找到个繁体中文了,不过那个繁体的字体真是难看,中英文不成比例,看起来很不习惯。


摘錄自
"文鼎PL上海宋Uni" 中文萬國碼 TrueType 明體字型

Package: ttf-arphic-uming (0.1.20060928-2)

"文鼎PL上海宋Uni" 中文萬國碼 TrueType 明體字型

文鼎PL上海宋Uni "AR PL ShanHeiSun Uni" 是一套高品質中文萬國碼 TrueType 字型 (uming.ttf),是由文鼎科技慷慨提供給自由軟體社群的文鼎PL細上海宋 (Big5 碼) 以及文鼎PL簡報宋 (GB 碼) 的衍生版本,惟使用者利用時必須遵守文鼎公眾授權書 (Arphic Public License) 的規定。

本字型所有的字體已從原始的文鼎PL細上海宋 (Big5 碼) 與文鼎PL簡報宋 (GB 碼),擴展到涵蓋 ISO8859-1,2,3,4,9,10,13,14,15, BIG5, GB2312-80 與 HKSCS-2004 等字元編碼,同時並根據萬國碼 4.1 標準,收錄客家與閩南語的注音延伸套件。多種 MBE (Modern Bopomofo Extensions) 的字體也涵蓋在本字型中。本字型支援 CNS 11643 與 GB 18030 標準,日文與韓文仍持續緩慢地開發中。需要更多 Big5 與 GB2312 沒有提供的漢字、或希望使用華人地區少數民族語言的使用者,應該會想要安裝本套件。

本字型也收錄了 Firefly 的點陣字,以提供更佳的小型字體描繪效果。 (僅有 Big5 與 GB2312 制定的字碼適用)

本字型是 ttf-arphic-bsmi00lp 與 ttf-arphic-gbsn00lp 套件的替代選擇。

如果你用 X Window 系統,請安裝 "x-ttcidfont-conf" 套件以便在 X 使用本字型。

如果你需要 MBE 字體而非萬國碼制定的台灣注音符號字體,你需要安裝 xdelta 套件並使用 dpkg-reconfigure 重新組態本套件。

原始作者: 文鼎科技開發股份有限公司
網址: http://www.arphic.com.tw/
由 高盛華 Arne Goetje (arne@linux.org.tw) 修訂
網址: http://www.cjkunifonts.info 或
http://www.freedesktop.org/wiki/Software_2fCJKUnifonts

2008-09-08

SliTaz Community Newsletter

SliTaz Community Newsletter

Keep up to date with the latest news from the SliTaz Team. Click here for the last weekly edition - Mon 8th September 2008.

Trace: » start » here
−Table of Contents

* Weekly Newsletter - Issue 1
o Latest News
o New Packages
o Updated Packages
o Improvements
o Online

Weekly Newsletter - Issue 1

* Written 8th September 2008

Latest News

* This is the first edition of the SliTaz Community Newsletter where we aim to keep you informed of any news and updates to the distribution.
* The Developers are currently creating new packages, fixing bugs and testing a Control Centre.

New Packages

* Chkrootkit 0.48 - Patched for SliTaz (Thanks Pascal)
* Gnu Privacy Assistant 0.7.5
* Sox 14.1.0
* Freeradius-Dialupadmin 2.0.5
* Aterm 1.0.1
* Recordmydesktop 0.3.7.3

Updated Packages

* Clamav ⇒ 0.94
* Testdisk ⇒ 6.10
* File ⇒ 4.26
* ImageMagick ⇒ 6.4.3
* Vim ⇒ 7.2

Improvements

* Midnight Commander (mc) - Entry added to menus
* PHP - Support added for PHP3, PHP4 and PHP5
* Tazpkg - New 'repack-config' function added

Online

* Or you could just use SliTaz - http://kmandla.wordpress.com/2008/08/22/or-you-could-just-use-slitaz/

* Jott outta beta, and SliTaz is the boss - http://www.thestandard.com/news/2008/08/20/jott-outta-beta-and-slitaz-boss


here.txt · Last modified: 2008/09/08 22:02 by linea


--------
Extract from


Jott outta beta, and SliTaz is the boss


Despite its horrible name SliTaz (an acronym for "Simple Light Incredible Temporary Autonomous Zone" ... yechhh.) isn't just cool, it's way cool.

-

Slitaz - Bogus PPPoE length field

daemon.err pppoe[5619]: Bogus PPPoE length field (58)
http://forum.slitaz.org/viewtopic.php?id=806

PLS check!!

Thanks!


SliTaz GNU/Linux cooking-20080716 (28,6 Mb) - slitaz-cooking.iso

root@slitaz:~# tazpkg list |grep rp-pppoe
rp-pppoe 3.8 network
root@slitaz:~# tail -n 30 /var/log/messages
Sep 8 11:48:40 (none) daemon.err pppoe[5619]: Bogus PPPoE length field (58)
Sep 8 11:50:45 (none) daemon.err pppoe[5619]: Bogus PPPoE length field (58)
Sep 8 11:52:50 (none) daemon.err pppoe[5619]: Bogus PPPoE length field (58)
Sep 8 11:54:55 (none) daemon.err pppoe[5619]: Bogus PPPoE length field (58)
Sep 8 11:57:01 (none) daemon.err pppoe[5619]: Bogus PPPoE length field (58)
Sep 8 11:59:05 (none) daemon.err pppoe[5619]: Bogus PPPoE length field (58)
Sep 8 12:01:10 (none) daemon.err pppoe[5619]: Bogus PPPoE length field (58)
Sep 8 12:03:15 (none) daemon.err pppoe[5619]: Bogus PPPoE length field (58)
Sep 8 12:05:20 (none) daemon.err pppoe[5619]: Bogus PPPoE length field (58)
Sep 8 12:07:25 (none) daemon.err pppoe[5619]: Bogus PPPoE length field (58)
Sep 8 12:09:30 (none) daemon.err pppoe[5619]: Bogus PPPoE length field (58)
Sep 8 12:11:35 (none) daemon.err pppoe[5619]: Bogus PPPoE length field (58)
Sep 8 12:13:40 (none) daemon.err pppoe[5619]: Bogus PPPoE length field (58)
Sep 8 12:15:45 (none) daemon.err pppoe[5619]: Bogus PPPoE length field (58)
Sep 8 12:17:50 (none) daemon.err pppoe[5619]: Bogus PPPoE length field (58)
Sep 8 12:19:55 (none) daemon.err pppoe[5619]: Bogus PPPoE length field (58)
Sep 8 12:22:00 (none) daemon.err pppoe[5619]: Bogus PPPoE length field (58)
Sep 8 12:24:05 (none) daemon.err pppoe[5619]: Bogus PPPoE length field (58)
Sep 8 12:26:10 (none) daemon.err pppoe[5619]: Bogus PPPoE length field (58)
Sep 8 12:28:15 (none) daemon.err pppoe[5619]: Bogus PPPoE length field (58)
Sep 8 12:30:20 (none) daemon.err pppoe[5619]: Bogus PPPoE length field (58)
Sep 8 12:32:25 (none) daemon.err pppoe[5619]: Bogus PPPoE length field (58)
Sep 8 12:34:31 (none) daemon.err pppoe[5619]: Bogus PPPoE length field (58)




20080920 16:10:39 alanyih Member

#2 Re: Bogus PPPoE length field (58)

Reprint

http://phorum.vbird.org/viewtopic.php?t=4418&sid=3b021823e44cdeb92523b19ff1bae7d9

VBird 站長鳥哥
發表於: 2003-05-11 00:15 文章主題: [ rp-pppoe ] Bogus 的問題克服 引言回覆
大家好:

有些朋友反應說,他們的 /var/log/messages 老是出現這樣的訊息:
引言回覆:
May 10 18:02:22 testing pppoe[8527]: Bogus PPPoE length field (50)
怎麼辦才好呢?在 RP-PPPOE 的網站上面問過一些朋友,
他們說,這個訊息的問題不大,可以不用理會他!但是,在 /var/log/messages 裡面,
每一分鍾就出現一次,實在很討厭!怎麼辦,可以將他拿掉嗎?!當然可以!
你可以下載新的 Tarball 來重新編譯過!步驟是這樣的:

1. 到下面的網站去下載新的 Tarball (我這裡以 3.5 為例!)
http://www.roaringpenguin.com/pppoe/#download (rp-pppoe-3.10.tar.gz )

( wget http://www.roaringpenguin.com/files/download/rp-pppoe-3.8.tar.gz )


2. 在 /usr/local/src底下解開該檔案,則會造成 /usr/local/src/rp-pppoe-3.5 這個目錄

3. 到 /usr/local/src/rp-pppoe-3.5/src 底下去,修改這四個檔案:
discovery.c
pppoe.c
pppoe-server.c
relay.c

找到這四個檔案的內容如下 ( search )
代碼: (code)
/* Check length */
if (ntohs(packet.length) + HDR_SIZE > len) {
syslog(LOG_ERR, "Bogus PPPoE length field (%u)",
(unsigned int) ntohs(packet.length));
return;
}
將他修改成為 ( replace )
代碼: (code)
/* Check length */
if (ntohs(packet.length) + HDR_SIZE > len) {
/* syslog(LOG_ERR, "Bogus PPPoE length field (%u)",
(unsigned int) ntohs(packet.length)); */

return;
}
請注意,上面每個檔案都有多個同樣的字串,請依序一個一個都修改掉才行!
4. 還沒完喔!在到 pppoe.c 找到底下的字眼: ( search )
代碼: (code)
if (plen + HDR_SIZE > len) {
syslog(LOG_ERR, "Bogus length field in session packet %d (%d)",
(int) plen, (int) len);
return;
}
將他改成:( replace )
代碼: (code)
if (plen + HDR_SIZE > len) {
/* syslog(LOG_ERR, "Bogus length field in session packet %d (%d)",
(int) plen, (int) len); */

return;
}

5. 然後就可以開始這樣做囉:
cd /usr/local/src/rp-pppoe-3.5/src
./configure
make
make install

6. 如果一切都可以成功的進行,那麼就可以:
adsl-stop
adsl-start

這個簡單的步驟應該可以將您的問題訊息克服了吧! ^_^

Last edited by alanyih (20080920 16:45:51)






20080924 23:34:51

#3 alanyih Member

Re: Bogus PPPoE length field (58)

fixed-source.jpg

root@slitaz:~# tazwok cook rp-pppoe
Checking for build dependencies...

Starting to cook rp-pppoe...
================================================================================
Checking for source tarball...
Source tarball exit... [ OK ]
Untaring rp-pppoe-3.8.tar.gz... [ OK ]
..........

================================================================================
rp-pppoe compiled on : 20080924 21:48:15


Bulding rp-pppoe with the receipt...
================================================================================
Executing strip on all files... [ OK ]
Copying the receipt... [ OK ]
Creating the list of files... [ OK ]
Creating md5sum of files... [ OK ]
Compressing the fs...
Undating receipt sizes... [ OK ]
Creating full cpio archive...
Restoring original package tree... 286 blocks
================================================================================
Package rp-pppoe (3.8) generated.
Size : 64.0k /home/slitaz/packages/rp-pppoe-3.8.tazpkg

root@slitaz:~# ls -l /home/slitaz/packages/
-rw-r--r-- 1 root root 59392 Sep 24 21:48 rp-pppoe-3.8.tazpkg

root@slitaz:~# tazpkg install /home/slitaz/packages/rp-pppoe-3.8.tazpkg --forced

root@slitaz:~# date ; tail /var/log/messages
Wed Sep 24 22:14:38 UTC 2008
Sep 24 22:06:20 (none) daemon.notice pppd[10159]: pppd 2.4.4 started by root, uid 0
Sep 24 22:06:20 (none) daemon.info pppd[10159]: Using interface ppp0
Sep 24 22:06:20 (none) daemon.notice pppd[10159]: Connect: ppp0 <--> /dev/pts/1
Sep 24 22:06:20 (none) daemon.debug pppoe[10163]: PADS: Service-Name: ''
Sep 24 22:06:20 (none) daemon.info pppoe[10163]: PPP session is 21796 (0x5524)
Sep 24 22:06:21 (none) daemon.warn pppd[10159]: Warning - secret file /etc/ppp/pap-secrets has world and/or group access
Sep 24 22:06:21 (none) daemon.warn pppd[10159]: Warning - secret file /etc/ppp/pap-secrets has world and/or group access
Sep 24 22:06:22 (none) daemon.notice pppd[10159]: PAP authentication succeeded
Sep 24 22:06:22 (none) daemon.notice pppd[10159]: local IP address 211.xx.xxx.24
Sep 24 22:06:22 (none) daemon.notice pppd[10159]: remote IP address 211.xx.xxx.1

Last edited by alanyih (20080924 23:39:41)


Extract from

http://lamp.linux.gov.cn/Linux/sysklogd.html

syslogd

level 指定了消息的優先級,可以是下面的關鍵字之一(降序排列,嚴重性越來越低):

emerg 系統不可用
alert 需要立即被修改的條件
crit 阻止某些工具或子系統功能實現的錯誤條件
err 阻止工具或某些子系統部分功能實現的錯誤條件
warning 預警信息
notice 具有重要性的普通條件
info 提供信息的消息
debug 不包含函數條件或問題的其他信息
none 沒有優先級,通常用於排錯
* 除了none之外的所有級別


syslogd 默認通過 /dev/log 這個 unix domain socket 來接收應用程序發送過來的消息,這個位置是由系統的基本C庫決定的。

這個程序的命令行參數如下:

syslogd [ -a socket ] [ -f config-file ] [ -h ] [ -l hostlist ] [ -m interval ]
[ -n ] [ -p socket ] [ -r ] [ -s domainlist ] [ -v ]

參數說明:

-a socket
指定額外需要監聽的 socket ,最多指定19個,可以通過修改 syslogd.c 文件中的 MAXFUNIX 宏修改這個默認值。如果你將某些進程在chroot環境下運行,那麼這個選項就很有用了。
-f config-file
指定配置文件的位置,默認是 /etc/syslog.conf 。
-h
默認情況下 syslogd 並不轉發它接收到的遠程主機消息。指定這個選項後,進程將會把它接收到的遠程主機消息轉發到另一個指定的遠程主機。
-l hostlist
指定一個分號(:)分隔的主機名列表,只記錄這些主機的 hostname 而不是全限定域名。
-m interval
syslogd 默認每隔20分鐘產生一個時間戳標記(-- MARK --)。這個選項用於修改這個默認值。設為零將關閉這個特性。
-n
避免自動作為後台進程運行。如果由 init 來直接啟動和控制的話這個選項就必須使用。
-p socket
你可以指定一個 unix domain socket 來代替默認的 /dev/log [這個位置是由libc決定的]
-r
從 internet domain socket 上接收遠程消息,也就是監聽從514端口上進來的UDP包。 默認不接受任何遠程消息。
-s domainlist
指定一個分號(:)分隔的域名列表,這些域名在記錄前都會被剝除。只能指定完整的域名。比如"-s north.de"並不會剝除"satu.infodrom.north.de"的尾巴,你必須這樣寫才行:
-s north.de:infodrom.north.de
-v
打印版本信息後退出。