最近Vyattaで遊ぼうシリーズが続いてたので、ちょっと息抜きも兼ねて、インフラの勉強するならFreeBSDだと昔のSOFTWARE-DESIGNに書いてたしっていう事でちょとだけ触ってみようかと。
FreeBSDはPlayStation3と4で使われているらしい。
だーーーいぶ前にインストールだけやったのだけど、今回はもうちょい操作をしてみようかしらと思います。
探すのが少し面倒だったので、昔インストールしてVMwareに入っていた7.4を起動させる。
こないだ作ったVyatta4をゲートウェイにしてネットワークに参加させて、Vyatta経由でいろいろとやってみた。
$ ssh -l takeken 192.168.22.200 Password: Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 7.4-RELEASE (GENERIC) #0: Thu Feb 17 03:51:56 UTC 2011 Welcome to FreeBSD!
コマンドを叩くも、LINUXとはだいぶ使い勝手も違うみたい。ネットワークはこんな感じだった。
$ cat /etc/rc.conf # -- sysinstall generated deltas -- # Thu Jul 18 06:11:42 2013 # Created: Thu Jul 18 06:11:42 2013 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. # gateway_enable="YES" defaultrouter=192.168.22.4 hostname="freebsd" ifconfig_em0="inet 192.168.22.200 netmask 255.255.255.0" # hostname=".localdomain" # ifconfig_em0="DHCP" keymap="jp.106" linux_enable="YES" sshd_enable="YES"
Apacheはこんな感じでどうもここから入れるらしい?。LINUXとだいぶ違うように感じるけど、おなじUNIXから生まれたんだなあ。
$ ll | grep apache drwxr-xr-x 3 root wheel - 512 Jul 18 06:05 apache-contrib/ drwxr-xr-x 3 root wheel - 512 Jul 18 06:05 apache-forrest/ drwxr-xr-x 2 root wheel - 512 Jul 18 06:05 apache-mode.el/ drwxr-xr-x 3 root wheel - 512 Jul 18 06:05 apache13/ drwxr-xr-x 3 root wheel - 512 Jul 18 06:05 apache13+ipv6/ drwxr-xr-x 3 root wheel - 512 Jul 18 06:05 apache13-modperl/ drwxr-xr-x 3 root wheel - 512 Jul 18 06:05 apache13-modssl/ drwxr-xr-x 2 root wheel - 512 Jul 18 06:05 apache13-modssl+ipv6/ drwxr-xr-x 3 root wheel - 512 Jul 18 06:05 apache13-ssl/ drwxr-xr-x 3 root wheel - 512 Jul 18 06:05 apache20/ drwxr-xr-x 3 root wheel - 512 Jul 18 06:05 apache22/ drwxr-xr-x 2 root wheel - 512 Jul 18 06:05 apache22-event-mpm/ drwxr-xr-x 2 root wheel - 512 Jul 18 06:05 apache22-itk-mpm/ drwxr-xr-x 3 root wheel - 512 Jul 18 06:05 apache22-peruser-mpm/ drwxr-xr-x 2 root wheel - 512 Jul 18 06:05 apache22-worker-mpm/ drwxr-xr-x 2 root wheel - 512 Jul 18 06:05 mkapachepw/ drwxr-xr-x 2 root wheel - 512 Jul 18 06:05 mod_jk-apache2/ drwxr-xr-x 2 root wheel - 512 Jul 18 06:05 py-apachelog/
アプデートしてみるのだが。
$ sudo freebsd-update upgrade -r 7.4 Looking up update.FreeBSD.org mirrors... 4 mirrors found. Fetching metadata signature for 7.4-RELEASE from update5.freebsd.org... done. Fetching metadata index... done. Fetching 1 metadata files... done. Inspecting system... done. The following components of FreeBSD seem to be installed: kernel/generic src/base src/bin src/cddl src/contrib src/crypto src/etc src/games src/gnu src/include src/krb5 src/lib src/libexec src/release src/rescue src/sbin src/secure src/share src/sys src/tools src/ubin src/usbin world/base world/dict world/doc world/info world/manpages world/proflibs The following components of FreeBSD do not seem to be installed: world/catpages world/games Does this look reasonable (y/n)? y Fetching metadata signature for 7.4 from update5.freebsd.org... failed. Fetching metadata signature for 7.4 from update2.freebsd.org... failed. Fetching metadata signature for 7.4 from update4.freebsd.org... failed. Fetching metadata signature for 7.4 from update3.freebsd.org... failed. No mirrors remaining, giving up.
うまくいかない、できないんかいなー?
$ uname -v FreeBSD 7.4-RELEASE-p3 #0: Tue Sep 27 14:47:23 UTC 2011 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC $ sudo freebsd-update upgrade -r 7.4-RELEASE-p3 Looking up update.FreeBSD.org mirrors... 4 mirrors found. Fetching metadata signature for 7.4-RELEASE from update5.freebsd.org... done. Fetching metadata index... done. Inspecting system... done. The following components of FreeBSD seem to be installed: kernel/generic src/base src/bin src/cddl src/contrib src/crypto src/etc src/games src/gnu src/include src/krb5 src/lib src/libexec src/release src/rescue src/sbin src/secure src/share src/sys src/tools src/ubin src/usbin world/base world/dict world/doc world/info world/manpages world/proflibs The following components of FreeBSD do not seem to be installed: world/catpages world/games Does this look reasonable (y/n)? y Fetching metadata signature for 7.4-RELEASE-p3 from update5.freebsd.org... failed. Fetching metadata signature for 7.4-RELEASE-p3 from update4.freebsd.org... failed. Fetching metadata signature for 7.4-RELEASE-p3 from update2.freebsd.org... failed. Fetching metadata signature for 7.4-RELEASE-p3 from update3.freebsd.org... failed. No mirrors remaining, giving up.
$ sudo freebsd-update upgrade -r 7.4-RELEASE freebsd-update: Cannot upgrade from 7.4-RELEASE to itself
どうも変な感じなので、調べてみたら
★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆
引用URL
gihyo.jp
FreeBSD Daily Topics
http://gihyo.jp/admin/clip/01/fdt/201207/03
現在のサポート期間は次のとおりです。
FreeBSD 9.0 2013年1月31日まで
FreeBSD 8.3 2014年4月30日まで
FreeBSD 8.2 2012年7月31日まで
FreeBSD 8.1 2012年7月31日まで
FreeBSD 7.4 2013年2月28日まで
FreeBSD 9-STABLE 最終リリースより2年間
FreeBSD 8-STABLE 最終リリースより2年間
FreeBSD 7-STABLE 2013年2月28日まで
★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆
サポート期限がきれてる??
このFreeBSDとやらですが、Portsやら何やらアップデートすら容易にできないみたいで、ウェブ上にも情報が少ないので、書籍が必要かなあ。
とりあえず、ここは素直にFreeBSD 8.3まで上げてみることにする!
アップデートをやりだしてから、もっと素直にISOをDLしたらよかったと思った。
必死のパッチやでー、ってなもんやで。これは。
必死のパッチが終わりそうもないので、ISOのDLも始めたんだけど、やっぱりDLの方が先に終わった。
さすがだあなあ。
すこし昔じゃああ考えられないぜー。
$ sudo portsnap fetch update Looking up portsnap.FreeBSD.org mirrors... 6 mirrors found. Fetching snapshot tag from ec2-ap-northeast-1.portsnap.freebsd.org... done. Fetching snapshot metadata... done. Updating from Sun Jul 28 15:20:20 JST 2013 to Sun Jul 28 22:21:40 JST 2013. Fetching 3 metadata patches.. done. Applying metadata patches... done. Fetching 0 metadata files... done. Fetching 16 patches.....10... done. Applying patches... done. Fetching 0 new ports or files... done. /usr/ports was not created by portsnap. You must run 'portsnap extract' before running 'portsnap update'. $ $ sudo freebsd-update upgrade -r 8.1-RELEASE Looking up update.FreeBSD.org mirrors... 4 mirrors found. Fetching metadata signature for 7.4-RELEASE from update2.freebsd.org... done. Fetching metadata index... done. Inspecting system... done. The following components of FreeBSD seem to be installed: kernel/generic src/base src/bin src/cddl src/contrib src/crypto src/etc src/games src/gnu src/include src/krb5 src/lib src/libexec src/release src/rescue src/sbin src/secure src/share src/sys src/tools src/ubin src/usbin world/base world/dict world/doc world/info world/manpages world/proflibs The following components of FreeBSD do not seem to be installed: world/catpages world/games Does this look reasonable (y/n)? y Fetching metadata signature for 8.1-RELEASE from update2.freebsd.org... done. Fetching metadata index... done. Fetching 1 metadata patches. done. Applying metadata patches... done. Fetching 1 metadata files... done. Inspecting system... done. Fetching files from 7.4-RELEASE for merging... done. Preparing to download files... done. Fetching 31101 patches.....10....20....30....40....50....60....70....80.... 90....100....110.
~~~~~~~ 省略 ~~~~~~~~
.31050....31060....31070....31080....31090....31100 done. Applying patches... done. Fetching 29661 files...
終わらんので、今日はここまでー。