Monday, 19 July 2010

64-bit FreeBSD 8.1-RC2 (GENERIC) setup, part 1

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 cvsup

The 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 -
[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:    23.90 ms
    - 2st:    24.45 ms
    - 3st:    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 e.g.:
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix
*default compress
ports-all tag=.

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