Archive: 2012/05/08

さくらのVPS乗り換え

3月に書いたさくらのVPSリニューアルについて、そのうち1GBに増量される予定があるとはいえHDD容量は20GBと100GBの差があり、同じ月額料金でスペックに差が付いてしまう事に悔しい思いをしていたのだが、新プラン乗り換え優遇策が実施されているので、乗り換えることに。

メモリ2GBのCloudCore VPSも試そうかと思ったのだが、月額945円が年契約のキャンペーン価格であり、正規の3ヶ月契約だと2,100円になるので見送った。

何はともあれコンソールから

$ sudo apt-get install openssh-server vim
してopenssh-servervimをインストール。 旧サーバから~/.ssh
$ scp -pr ~/.ssh 49.212.xx.yyy:~/
と、まるごとコピーした後、/etc/ssh/sshd_config
  • Port番号を22から変更
  • PasswordAuthenticationをnoに
  • PermitRootLoginをnoに
を変更。
$ sudo service ssh restart
sshdを再起動した後、remoteからのssh作業にスイッチ。

続いてお約束の設定変更。

$ sudo /usr/sbin/groupmod -n owner yano
$ sudo update-alternatives --config editor
で、グループ名とデフォルトエディタを変更。
$ sudo visudo
~~
%admin ALL=(ALL) NOPASSWD: ALL
sudoでいちいちパスワードを打たなくていいようvisudoでNOPASSWDオプションを付与しておく。

続いてaptをアップデートし、ntpbuild-essentialを導入。/etc/ntp.confを編集して、サーバをntp.jst.mfeed.ad.jpに変更。

$ sudo apt-get update
$ sudo apt-get install ntp build-essential
$ sudo vi /etc/ntp.conf
$ sudo /etc/init.d/ntp restart
それからロケール設定。
$ sudo apt-get install language-pack-ja
$ sudo locale-gen ja_JP.UTF-8
$ sudo /usr/sbin/update-locale LANG=ja_JP.UTF-8
で日本語(ja_JP.UTF-8)環境をインストールし、~/.bashrc
export LC_ALL="ja_JP.UTF-8"
てな具合にLC_ALLをexport。

続いてnsdを導入。パッケージとしてはnsd3nsdがあるが、積極的に旧版をチョイスするだけの根拠は持ち合わせて無いので、素直にnsd3を導入。

$ sudo apt-get install nsd3
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
nsd3
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 842kB of archives.
After this operation, 1,622kB of additional disk space will be used.
Get:1 http://jp.archive.ubuntu.com/ubuntu/ lucid/universe nsd3 3.2.4-1 [842kB]
Fetched 842kB in 0s (1,037kB/s)
Selecting previously deselected package nsd3.
(Reading database ... 42388 files and directories currently installed.)
Unpacking nsd3 (from .../archives/nsd3_3.2.4-1_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Setting up nsd3 (3.2.4-1) ...
dpkg-statoverrides: warning: --update given but /etc/nsd3/nsd.conf does not exist
Could not open /etc/nsd3/nsd.conf: No such file or directory
* Building nsd3 zones...
nsd3
$ sudo ls -la /etc/nsd3/
total 16
drwxr-x--- 2 nsd nsd 4096 May 8 11:21 .
drwxr-xr-x 80 root root 4096 May 8 11:46 ..
-rw-r--r-- 1 root root 4406 Dec 14 10:06 nsd.conf.sample
という具合にインストールできて、昨年のようなエラーは出なくなった。

若戸大橋50周年

若戸大橋開通50周年記念特設サイト
若戸大橋開通50周年記念特設サイトより

昭和37年9月に供用開始された洞海湾のシンボル、若戸大橋

今年の9月27日で50周年を迎えるそうで、特設サイトが開設されていた。

昭和62年5月までは歩道もあり、夏はよく自転車で若松まで泳ぎに行ったものだ。

新若戸道路(若戸トンネル)も今秋開通予定ということなので、やっぱり9月27日を目標にしているんじゃなかろうか。

ちなみに明治以前から運航している若戸渡船も、まだまだ元気に営業中ですよ。

【参照】
●北九州市道路公社 http://www.kitakyu-road.or.jp/
若戸大橋・若戸トンネルについての概要
●若戸大橋開通50周年記念特設サイト http://www.wakato-50th.jp/
●Wikipedia http://ja.wikipedia.org/wiki/
若戸大橋
若戸渡船
新若戸道路