FreeBSDに係わる構築や維持など

Archive for 9月, 2006

Linux バイナリ互換機能を使えるようにする

$ uname -rsm
FreeBSD 6.1-RELEASE i386

Linux バイナリ互換機能

# vi /etc/rc.conf
linux_enable="YES"

linux.koのKLD モジュールをロードする

# kldload /boot/kernel/linux.ko
# kldstat
Id Refs Address    Size     Name
 1   11 0xc0400000 691928   kernel
 2    1 0xc0a92000 5f60     snd_ich.ko
 3    2 0xc0a98000 22b88    sound.ko
 4    1 0xc0abb000 2364     accf_http.ko
 5    1 0xc35f1000 c000     ipfw.ko
 6    1 0xc3805000 4000     logo_saver.ko
 7    1 0xc5bf8000 16000    linux.ko

Linux ランタイムライブラリのインストール

# cd /usr/ports/emulators/linux_base-fc4
# make install clean

dmesg

起動時のdmesgを見る

$ cat /var/run/dmesg.boot

Ports Collection に備わっている検索機能を利用して port を検索する

$ cd /usr/ports
$ make search key=shoutcast

BSDstats Project

# cd /usr/ports/sysutils/bsdstats

# make install clean; rehash

This script, meant to be run monthly, submits statistics anonymously
to a central checkin server (http://bsdstats.org), in an attempt to
generate reasonably accurate demographics of both *BSD usage, as well
as devices in use.

Steps have been taken to make eliminate security concerns brought up
in earlier releases of this, including, but not limited to, not storing
anything in the database that has been deemed as 'sensitive' (ie. IP of
the reporting server, and hostname).

********************
To enable the port, edit or create /etc/periodic.conf and add this line:
        monthly_statistics_enable="YES"

To enable device reporting, add this line:
        monthly_statistics_report_devices="YES"

To run it manually the first time, just run it as:
        /usr/local/etc/periodic/monthly/300.statistics

To view current statistics, go to:

http://www.bsdstats.org

********************

Would you like to activate monthly reporting in /etc/periodic.conf [n]?
===>   Registering installation for bsdstats-3.3_1
===>  Cleaning for bsdstats-3.3_1

Read more »