花見

cherry blossom

[FreeBSD] Root-on-ZFS recovery by using snapshots

Introduction

An HDD for a rootFS of my FreeBSD machine has broken. I installed a new HDD and recovered the rootFS from ZFS snapshots.

続きを読む →

[FreeBSD] Several installations and settings

sudo

Installation

# pkg install sudo
続きを読む →

[FreeBSD] Using the ports collection

Initial process

To download a compressed snapshot into /var/db/portsnap

# portsnap fetch
# du -sh /var/db/portsnap/
153M	/var/db/portsnap/

To extract the snapshot into /usr/ports

# portsnap extract
# du -sh /usr/ports/
860M	/usr/ports/

After the first steps shown above, /usr/ports can be updated by running

# portsnap fetch && portsnap update
続きを読む →

[FreeBSD] SSH settings

Configuration

# cp /etc/ssh/sshd_config /etc/ssh/sshd_config.org
# vi /etc/ssh/sshd_config
PermitRootLogin no
RSAAuthentication yes
PubkeyAuthentication yes
PasswordAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no
AllowUsers yourUserName
続きを読む →

Installation of FreeBSD 10.0 on ConoHa VPS

Benchmark for virtio

Notice: there is no result when virtio is disabled.

# /usr/bin/time dd if=/dev/zero of=/tmp/foo bs=16384 count=16384
16384+0 records in
16384+0 records out
268435456 bytes transferred in 0.468838 secs (572554847 bytes/sec)
0.47 real         0.00 user         0.39 sys

OK, good result is shown. ConoHa’s disk I/O speed is near to Sakura’s one.

cf. さくらVPSにFreeBSD 9.0R を入れて virtio化したらディスク爆速すぎワロタ! - 俺の日記

続きを読む →

[Kinesis] Advantage USB Contoured Keyboard 購入記 (発送から到着まで)

商品のトラッキング

UPS の貨物追跡サービスにより,商品がどのように移動しているのかが分かります.「UPS 施設でのルーティングが間違って」いたのはご愛敬.

続きを読む →

[Kinesis] Advantage USB Contoured Keyboard 購入記 (注文から発送まで)

購入前の右往左往

どれを買おうか

以下の二つで悩みました.

というのも,最近 Dvorak 配列を練習し始めたからです. QWERTY 配列しか使わないのであれば前者しか考えられないのですが.とりあえず,先に価格を見てみることにしました.

続きを読む →

[Ubuntu 10.04 LTS] サービスの起動と停止

sysv-rc-conf のインストール

$ sudo apt-get install sysv-rc-conf
続きを読む →

[CentOS 5.4] DLNA サーバ構築

MediaTomb のインストール

# wget http://downloads.sourceforge.net/mediatomb/mediatomb-0.11.0.tar.gz
# tar zxvf mediatomb-0.11.0.tar.gz
# cp mediatomb-0.11.0/mediatomb.spec /usr/src/redhat/SPECS/
# cp mediatomb-0.11.0.tar.gz /usr/src/redhat/SOURCES/
# vi /usr/src/redhat/SPECS/mediatomb.spec
BuildRequires: sqlite-devel, mysql-devel, libexif-devel, taglib-devel, file, js-devel, zlib-devel, expat-devel
# rpmbuild -bb --clean /usr/src/redhat/SPECS/mediatomb.spec
エラー: ビルド依存性の失敗:
        sqlite-devel は mediatomb-0.11.0-8.x86_64 に必要とされています
        mysql-devel は mediatomb-0.11.0-8.x86_64 に必要とされています
        libexif-devel は mediatomb-0.11.0-8.x86_64 に必要とされています
        taglib-devel は mediatomb-0.11.0-8.x86_64 に必要とされています
        js-devel は mediatomb-0.11.0-8.x86_64 に必要とされています
        zlib-devel は mediatomb-0.11.0-8.x86_64 に必要とされています
        expat-devel は mediatomb-0.11.0-8.x86_64 に必要とされています

依存関係で叱られたため,必要なものをインストールしていく. taglib-devel と js-devel は公式リポジトリに存在しないためRPMforge のリポジトリを登録 してインストールした.

# yum -y install sqlite-devel mysql-devel libexif-devel taglib-devel js-devel zlib-devel expat-devel
# rpmbuild -bb --clean /usr/src/redhat/SPECS/mediatomb.spec
# rpm -ivh /usr/src/redhat/RPMS/x86_64/mediatomb-0.11.0-8.x86_64.rpm
準備中...                ########################################### [100%]
   1:mediatomb              ########################################### [100%]
# rm -f /usr/src/redhat/RPMS/x86_64/mediatomb-*
# rpmbuild --rmsource --rmspec /usr/src/redhat/SPECS/mediatomb.spec
# rm -rf mediatomb-0.11.0
# rm -f mediatomb-0.11.0.tar.gz
続きを読む →