VoyForums
[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: [1] ]
Subject: Re: BSD


Author:
|nsane
[ Next Thread | Previous Thread | Next Message | Previous Message ]
Date Posted: 13:24:34 12/19/01 Wed
In reply to: Antony 's message, "Re: BSD" on 13:22:56 12/19/01 Wed

>>Erwthseis/Apanthseis Sxetika me leitourgika *BSD.
>
>
>Re pedia xreiazome epigontos update gia stable ver
>freebsd 4.* kapios na me help please!
>thanks.


RELEASE -> STABLE

Πρώτα πρέπει να δημιουργήσετε κάποια configuration files για το make και το cvsup, ακολουθούν παραδείγματα.

/etc/make.conf:
---
CFLAGS= -O -mcpu=i586 -march=i586 -pipe
COPTFLAGS= -O -mcpu=i586 -march=i586 -pipe
CXXFLAGS+= -fmemoize-lookups -fsave-memoized

USA_RESIDENT= NO

NOPROFILE= true
COMPAT1X= yes
COMPAT20= yes
COMPAT21= yes
COMPAT22= yes
COMPAT3X= yes

SUP_UPDATE= yes
SUP= /usr/local/bin/cvsup
SUPFLAGS= -g -L 2
SUPFILE= /etc/stable-supfile
PORTSSUPFILE= /etc/ports-supfile

Τα επόμενα δυο αρχεία είναι για το cvsup. Εάν έχετε αρκετό bandwidth (πχ πάνω από 2Mbps) με το host, καλό θα ήταν να αφαιρέσετε το "*default compress" γιατί το bottleneck θα είναι κατα πάσα πιθανότητα η CPU. Αντικαταστήστε το cvsup2.uk.FreeBSD.org με κάποιο άλλο mirror ανάλογα.

/etc/stable-supfile:
*default host=cvsup2.uk.FreeBSD.org
*default base=/usr
*default prefix=/usr
*default release=cvs tag=RELENG_4
*default delete use-rel-suffix
*default compress
src-all

/etc/ports-supfile:
*default host=cvsup2.uk.FreeBSD.org
*default base=/usr
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix
*default compress
ports-all


Βήμα προς βήμα
login ή su to root, και...
Θα πρέπει να ειστε root, στο C Shell, και να υπαρχουν καπου 300ΜΒ στο /usr
%cd /usr/src
%make update |& tee /var/tmp/`date "+%Y%m%d"`-cvsup

Αυτό θα συγχρονίσει το /usr/src με το τρέχων stable.

%make buildworld |& tee /var/tmp/`date "+%Y%m%d"`-buildworld

Αυτό κάνει compile σχεδόν τα πάντα, και θα πάρει αρκετή ώρα.

%make buildkernel KERNEL=FOO |& tee /var/tmp/`date "+%Y%m%d"`-buildkernel-FOO

Αυτό κανει compile τον kernel FOO και τα modules. Αντικαταστήστε το FOO με το όνομα του δικού σας kernel config φυσικά, ή το GENERIC εαν δεν έχετε ετοιμάσει (κακώς!) custom kernel config. Θα πάρει αρκετά λεπτά.

%make installkernel KERNEL=FOO |& tee /var/tmp/`date "+%Y%m%d"`-installkernel-FOO

Αυτό διαρκεί λίγα λεπτά καθώς εγκαθιστά τον kernel και τα modules που ετοιμάσατε προηγουμένως. Κρατάει backup kernel.old και modules.old.

%shutdown now

Ετσι θα κατεβείτε σε single user mode, κατι που είναι πολύ καλή ιδέα μιας και το επόμενο βήμα θα αντικαταστήσει με νέες εκδόσεις οτι binary υπάρχει στο σύστημα σας και όχι μόνο.

%cd /usr/src
%make installworld |& tee /var/tmp/`date "+%Y%m%d"`-installworld

Αυτό θα πάρει αρκετά λεπτά καθώς εγκαθιστά τα πάντα.

%mergemaster

Αυτό είναι interactive, οδηγίες to follow.

%reboot

Αυτό ήταν - αν όλα πήγαν καλα, σύντομα το σύστημα θα τρέχει το FreeBSD 4-STABLE!

[ Next Thread | Previous Thread | Next Message | Previous Message ]

Replies:
Subject Author Date
Re: BSDKostas13:26:24 12/19/01 Wed
    Re: BSDSystem Administrator13:27:55 12/19/01 Wed


    [ Contact Forum Admin ]


    Forum timezone: GMT-8
    VF Version: 3.00b, ConfDB:
    Before posting please read our privacy policy.
    VoyForums(tm) is a Free Service from Voyager Info-Systems.
    Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.