FreeBSD V8.1からV8.3にアップグレードしてみる。

昨日は必死のパッチの作業が途中のままで寝てしまったのですが、朝起きたらYesを押すところで止まっていた!
なんてこった。

さっさとぽちっとして、ごはんを食べながらアップデートを進めておくさ。
ってことで、出社時間になったらどうしようかなぁって困ってたんだけど、残りの作業は何故だかあっという間に終わったのであった。

めでたしめでたし。

 

もうちょっとだけ続くのじゃ。

 

$ uname -v
FreeBSD 8.1-RELEASE-p11 #0: Mon Jun 11 21:02:13 UTC 2012     root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC

そして今日だけんども、FreeBSDの本を見に行くことなんかすっきり忘れてしまっていて、そのまま直帰で帰ってきました。
仕方ないのでそのままやります。

とりあえずサポート期間を見るとこのまま8.3までアップグレードやっちゃう方がよいのかな。
やっちゃおう。

だがしかし、ここで問題点が。

Vyattaを毎回起動するのは大変だし、めんどくさいし、なによりパソコンが重たくなってしまうのでネットやったりアニメ見たりの作業に支障がでるので、VMwareは1個だけ起動してFreeBSDを使えるようようにネットワーク設定の切り替えをするべし。

 

vi /etc/rc.confを書き直して、設定修正はifupとかじゃなくて/etc/netstartっていうコマンドでOKのようだ。
SSHもターミナルから直接入れるようにパスワードOKと変更やっとく。

$ egrep -i "usepam|passwordauthentication" /etc/ssh/sshd_config
#PasswordAuthentication no
PasswordAuthentication yes
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication, then enable this but set PasswordAuthentication
#UsePAM yes
UsePAM no
freebsd# /etc/rc.d/sshd restart
Stopping sshd.
Starting sshd.

んでターミナルから接続、できるか分からんけど、一気に8.1から8.3にアップグレードできるか試してみた。

# freebsd-update -r 8.3-RELEASE upgrade

今回も必死のパッチが始まる。

freebsd#  uname -v
FreeBSD 8.1-RELEASE-p11 #0: Mon Jun 11 21:02:13 UTC 2012     root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC 
freebsd# freebsd-update -r 8.3-RELEASE upgrade
Looking up update.FreeBSD.org mirrors... 4 mirrors found.
Fetching metadata signature for 8.1-RELEASE from update5.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... 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 8.3-RELEASE from update5.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 8.1-RELEASE for merging... done.
Preparing to download files... 
done.
Fetching 31822 patches.....10....20....30....40....50....60....70....80....90....100....110....120....130....140....150....160....170....180....190....200....210....220....230....240....250....260....270....280....290....300....310....320....330....340....350....360....370....380....390....400....410....420....430....440....450....460....470....480....490....500....510....520....530....540....550....560....570....580....590....600....610....620....630....640....650....660....670....680....690....700....710....720....730....740....750....760....770....780....790....800....810....820....830....840....850....860....870....880....890....900....910....920....930....940....950....960....970....980....990....1000....1010....1020....1030....1040....1050....1060....1070....1080....1090....1100....1110....1120....1130....1140....1150....1160....1170....1180....1190....1200....1210....1220....1230....1240....1250....1260....1270....1280....1290....1300....1310....1320....1330....1340....1350....1360....1370....1380....1390....1400....1410....1420....1430....1440....1450....1460....1470....1480....1490....1500....1510....1520....1530....1540....1550....1560....1570....1580....1590....1600....1610....1620....1630....1640....1650....1660....1670....1680....1690....1700....1710....1720....1730....1740....1750....1760....1770....1780....1790....1800....1810....1820....1830....1840....1850....1860....1870....1880....1890....1900....1910....1920....1930....1940....1950....1960....1970....1980....1990....2000....2010....2020....2030....2040....2050....2060....2070....2080....2090....2100....2110....2120....2130....2140....2150....2160....2170....2180....2190....2200....2210....2220....2230....2240....2250....2260....2270....2280....2290....2300....2310....2320....2330....2340....2350....2360....2370....2380....2390....2400....2410....2420....2430....2440....2450....2460....2470....2480....2490....2500....2510....2520....2530....2540....2550....2560....2570....2580....2590..



31630....31640....31650....31660....31670....31680....31690....31700....31710....31720....31730....31740....31750....31760....31770....31780....31790....31800....31810....31820. done.
Applying patches... done.

Fetching 2195 files... done.
Attempting to automatically merge changes in files... done.

The following changes, which occurred between FreeBSD 8.1-RELEASE and
FreeBSD 8.3-RELEASE have been merged into /etc/group:
--- current version
+++ new version
@@ -1,6 +1,6 @@
-# $FreeBSD: src/etc/group,v 1.35.10.1.4.1 2010/06/14 02:09:06 kensmith Exp $
+# $FreeBSD: src/etc/group,v 1.35.10.2.2.1 2012/03/03 06:15:13 kensmith Exp $
 #
 wheel:*:0:root,takeken
 daemon:*:1:
 kmem:*:2:
 sys:*:3:
@@ -25,7 +25,8 @@
 uucp:*:66:
 dialer:*:68:
 network:*:69:
 audit:*:77:
 www:*:80:
+hast:*:845:
 nogroup:*:65533:
 nobody:*:65534:
Does this look reasonable (y/n)? Does this look reasonable (y/n)? Does this look reasonable (y/n)? y

The following changes, which occurred between FreeBSD 8.1-RELEASE and
FreeBSD 8.3-RELEASE have been merged into /etc/manpath.config:
--- current version
+++ new version
@@ -1,6 +1,6 @@
-# $FreeBSD: src/gnu/usr.bin/man/manpath/manpath.config,v 1.26.2.1.4.1 2010/06/14 02:09:06 kensmith Exp $
+# $FreeBSD: src/gnu/usr.bin/man/manpath/manpath.config,v 1.26.2.1.8.1 2012/03/03 06:15:13 kensmith Exp $
 #
 # This file is read by manpath(1) to configure the mandatory manpath,
 # optional manpath and to map each path element to a manpath element.
 # The format is:
 #
Does this look reasonable (y/n)? y

The following changes, which occurred between FreeBSD 8.1-RELEASE and
FreeBSD 8.3-RELEASE have been merged into /etc/master.passwd:
--- current version
+++ new version
@@ -1,6 +1,6 @@
-# $FreeBSD: src/etc/master.passwd,v 1.40.22.1.4.1 2010/06/14 02:09:06 kensmith Exp $
+# $FreeBSD: src/etc/master.passwd,v 1.40.22.2.2.1 2012/03/03 06:15:13 kensmith Exp $
 #
 root:$1$bVSGUIBj$/rPwubehywsbkqv4mBErG.:0:0::0:0:Charlie &:/root:/bin/csh
 toor:*:0:0::0:0:Bourne-again Superuser:/root:
 daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin
 operator:*:2:5::0:0:System &:/:/usr/sbin/nologin
@@ -18,7 +18,8 @@
 _pflogd:*:64:64::0:0:pflogd privsep user:/var/empty:/usr/sbin/nologin
 _dhcp:*:65:65::0:0:dhcp programs:/var/empty:/usr/sbin/nologin
 uucp:*:66:66::0:0:UUCP pseudo-user:/var/spool/uucppublic:/usr/local/libexec/uucp/uucico
 pop:*:68:6::0:0:Post Office Owner:/nonexistent:/usr/sbin/nologin
 www:*:80:80::0:0:World Wide Web Owner:/nonexistent:/usr/sbin/nologin
+hast:*:845:845::0:0:HAST unprivileged user:/var/empty:/usr/sbin/nologin
 nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin
 takeken:$1$J7NZmjEx$WwdSKujLtimLeiiGiT5Fn/:1001:0::0:0:takeken:/home/takeken:/bin/sh
Does this look reasonable (y/n)? y

The following changes, which occurred between FreeBSD 8.1-RELEASE and
FreeBSD 8.3-RELEASE have been merged into /etc/passwd:
--- current version
+++ new version
@@ -1,6 +1,6 @@
-# $FreeBSD: src/etc/master.passwd,v 1.40.22.1.4.1 2010/06/14 02:09:06 kensmith Exp $
+# $FreeBSD: src/etc/master.passwd,v 1.40.22.2.2.1 2012/03/03 06:15:13 kensmith Exp $
 #
 root:*:0:0:Charlie &:/root:/bin/csh
 toor:*:0:0:Bourne-again Superuser:/root:
 daemon:*:1:1:Owner of many system processes:/root:/usr/sbin/nologin
 operator:*:2:5:System &:/:/usr/sbin/nologin
@@ -18,7 +18,8 @@
 _pflogd:*:64:64:pflogd privsep user:/var/empty:/usr/sbin/nologin
 _dhcp:*:65:65:dhcp programs:/var/empty:/usr/sbin/nologin
 uucp:*:66:66:UUCP pseudo-user:/var/spool/uucppublic:/usr/local/libexec/uucp/uucico
 pop:*:68:6:Post Office Owner:/nonexistent:/usr/sbin/nologin
 www:*:80:80:World Wide Web Owner:/nonexistent:/usr/sbin/nologin
+hast:*:845:845:HAST unprivileged user:/var/empty:/usr/sbin/nologin
 nobody:*:65534:65534:Unprivileged user:/nonexistent:/usr/sbin/nologin
 takeken:*:1001:0:takeken:/home/takeken:/bin/sh
Does this look reasonable (y/n)? y

The following changes, which occurred between FreeBSD 8.1-RELEASE and
FreeBSD 8.3-RELEASE have been merged into /etc/ssh/sshd_config:
--- current version
+++ new version
@@ -1,7 +1,7 @@
 #      $OpenBSD: sshd_config,v 1.81 2009/10/08 14:03:41 markus Exp $
-#      $FreeBSD: src/crypto/openssh/sshd_config,v 1.49.2.2.2.1 2010/06/14 02:09:06 kensmith Exp $
+#      $FreeBSD: src/crypto/openssh/sshd_config,v 1.49.2.3.2.1 2012/03/03 06:15:13 kensmith Exp $
 
 # This is the sshd server system-wide configuration file.  See
 # sshd_config(5) for more information.
 
 # This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
/boot/kernel/if_txp.ko
/boot/kernel/if_txp.ko.symbols
/boot/kernel/if_uath.ko
/boot/kernel/if_uath.ko.symbols
/boot/kernel/if_udav.ko
/boot/kernel/if_udav.ko.symbols
/boot/kernel/if_upgt.ko
/boot/kernel/if_upgt.ko.symbols
/boot/kernel/if_ural.ko
/boot/kernel/if_ural.ko.symbols
/boot/kernel/if_urtw.ko
/boot/kernel/if_urtw.ko.symbols
/boot/kernel/if_vge.ko
/boot/kernel/if_vge.ko.symbols
/boot/kernel/if_vlan.ko
/boot/kernel/if_vlan.ko.symbols
/boot/kernel/if_vr.ko
/boot/kernel/if_vr.ko.symbols
/boot/kernel/if_vx.ko
/boot/kernel/if_vx.ko.symbols
/boot/kernel/if_wb.ko
/boot/kernel/if_wb.ko.symbols
/boot/kernel/if_wi.ko
/boot/kernel/if_wi.ko.symbols
freebsd#

問題なく終わってくれた、この辺はWindowsと違うっぽいところを感じる。

# freebsd-update -r 8.3-RELEASE install
# reboot
$ uname -v
FreeBSD 8.3-RELEASE-p9 #0: Fri Jul 26 23:03:48 UTC 2013     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC

なんかめちゃくちゃ適当な日記になってるけど、ある意味これも日記の形かな。

 

Related Posts


投稿者: Takeken

インターネット利用者のITリテラシーを向上したいという設定の2次元キャラです。 サーバー弄りからプログラミングまで手を付けた自称エッセイストなたけけんの物語。

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です