I decided to upgrade server from 32-bit version FreeBSD 6.4 to 64-bit FreeBSD 8.1
I am expecting more problems with 64-bit O
In this part:
- modify slices
- install Port Collection
- change shell
- install security vulnerabilities check
- install cvsupThe easiest way is always a clean installation. However the installation (standard) failed for first time. I was not successful to remote login. The problem I found was not enough space??? in first slice (/ ) - well probably I've done something nasty
1. BASIC INSTALLATION - modify slices similar way:
Filesystem Size Mounted on
/dev/ad2s1a 1.0G /
/dev/ad2s1b 2.0G swap
/dev/ad2s1d 5.2G /var
/dev/ad2s1e 1.0G /tmp
/dev/ad2s1f 21G /usr< /dev/ad2s1g 164G /sys
Now the problem with terminal (ssh) login has vanished.
So next useful steps could by:
2. Install the Ports Collection for first time:
server# portsnap fetch extract
3. Change shell:
I used pkg while I waited for portsnap...
server# pkg_add -r bash
4. I like system utilities, eg.: screen:
(suitable for bad connection + run more terminals in one window) server# pkg_add -r screen
5. Change shell:
server# chpass -s bash
chpass: user information updated
- time to logout + login back with new shell
server# [Ctrl+D] = logout
$ su -
Password:
[root@server ~]#
6. Try screen:
[root@server ~]# screen
7. Keep the Ports Collection up to date with CVSUP:
[root@server ~]# cd /usr/ports/net/cvsup-without-gui; make install clean
While waiting for CVSUP we can install
8. A security vulnerabilities check:
[root@server ~]# cd /usr/ports/ports-mgmt/portaudit; make install clean
9. Test cvsup servers which one is the fastest:
[root@server /usr/ports/sysutils/fastest_cvsup]# fastest_cvsup -c all
Speed Daemons:
- 1st: cvsup3.uk.freebsd.org 23.90 ms
- 2st: cvsup2.uk.freebsd.org 24.45 ms
- 3st: cvsup4.uk.freebsd.org 25.82 ms
10. Configure and run CVSUP:
Last two lines altered standard-supfile in order to keep ports and source code up to date
[root@server ~]# vi ports-supfile
# cvsup -g -L 2 ports-supfile
*default host=CHANGE_THIS.FreeBSD.org e.g.: cvsup3.uk.freebsd.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix
*default compress
ports-all tag=.
src-all
IMPORTANT tag=RELENG_8_1
For the reason I left tag=. I upgraded kernel to FreeBSD 9.0-CURRENT
Now update source code and all SW collections
[root@server ~]# cvsup -g -L 2 ports-supfile
0 komentářů:
Post a comment