LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices



Reply
 
Search this Thread
Old 12-22-2004, 10:36 PM   #1
vaworx
Member
 
Registered: Nov 2003
Location: Honolulu/HI
Distribution: Slackware current, FreeBSD 4.10, 5.4, 6.2, Debian, RedHat, CentOS, Sun Cobalt OS
Posts: 66

Rep: Reputation: 15
Keeping FreeBSD 4.10-stable (current)


wazuuup :d,
usually i don't do this but this time i felt lazy so i decided to ask the forum.
I just installed FreeBSD 4.10 cuz i suppose i mess up the version that i have installed before that by trying to upgrade it to current-stable. I've checked with the FreeBSD Handbook online but still cannot figure out how to do the updates on that damn thing . So my questions are:

1. Which way is better to keep my system running up and table with the current snapshot updates.--I suppose i have to use cvsup with some of the example supfiles in /usr/share/examples/cvsup. Of ourse before that i need to edit the file and provide one of the mirror servers say: cvsup1.us.FreeBSD.org. Which file is better cvs-supfile or the stable-supfile. What is the difference between the stable and the cvs? If i'm about to run and update from the console(not from X) i would do the following:
Quote:
cvsup -g L 2 /usr/share/examples/cvsup/stable-supfile
2. After the aforementioned process is done what am i supposed to do next. Does the command above updates the packages + the kernel or just the packages or just the kernel. I suppose i have to recompile the kernel too.--As from what i see it just downloads some patches or something and then i need to apply them somehow since i see files such as Makefile with v extensions(ex.Makefile,v) and the stuff inside doesn't look like that's an installation script.

3. Does the buildworld upgrades everything(packages + kernel) or that's just for the kernel.

# make buildworld
# make buildkernel
# make installkernel
# reboot

And then after reboot i should boot in single user mode (using boot -s from loader prompt for example). Then run:

# mergemaster -p
# make installworld
# mergemaster
# reboot

If you have some spare time could you share your experience since i'm still waiting for my FreeBSD book to come and i have no idea what i'm doing .

Regards,
vaworx

Last edited by vaworx; 02-18-2009 at 04:11 AM.
 
Old 12-23-2004, 02:13 AM   #2
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
Covered in detail in chapter 19 of the handbook.

Also, the handbook and friends are some of the best documentation in the tech industry. While I have a good deal of tech books, the handbook is great because it's never outdated.
 
Old 12-23-2004, 06:02 AM   #3
vaworx
Member
 
Registered: Nov 2003
Location: Honolulu/HI
Distribution: Slackware current, FreeBSD 4.10, 5.4, 6.2, Debian, RedHat, CentOS, Sun Cobalt OS
Posts: 66

Original Poster
Rep: Reputation: 15
I've read this chapter before i started trying the update procedure but i wanted to make sure. Here is what i'm doing. On a fresh install FreeBSD 4.10-STABE i did the following:

1. Edit stable-supfile as follows:
Code:
*default host=cvsup2.us.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=RELENG_4
*default delete use-rel-suffix
# Since i'm using DSL i did comment the following
# *default compress 

## Main Source Tree.
src-all
ports-all tag=.
doc-all tag=.
2. Then run this from console (not X) as root:
Code:
freebsd#cd /usr/src
freebsd#cvsup -g -L 2 /usr/share/examples/cvsup/stable-supfile
I'm not sure if i'm supposed to be at /usr/src while running "cvsup" since i'm not quite familiar as of how it works.
Quote:
So the question here is does "cvsup" updates the /usr/src/ tree automatically even if i'm not at /usr/src/ or
i'm supposed to ALWAY be at /usr/src/ while downloading the updates with "cvsup"?
3. After this process what's next?
 
Old 12-23-2004, 08:33 AM   #4
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
Quote:
Originally posted by vaworx
I've read this chapter before i started trying the update procedure but i wanted to make sure. Here is what i'm doing. On a fresh install FreeBSD 4.10-STABE i did the following:

1. Edit stable-supfile as follows:
2. Then run this from console (not X) as root:
I'm not sure if i'm supposed to be at /usr/src while running "cvsup" since i'm not quite familiar as of how it works.
3. After this process what's next?
1) Your supfile looks fine, though you'll want to move it to another location than the default or it'll be overwritten on installworld.
2) Doesn't matter where you issue the cvsup command from either in terms of the directory or from an xterm or a vt. The program is smart enough to change directories to where the supfile tells it to.
3) This whole deal:

Code:
READ /usr/src/UPDATING -- Very important!
make buildworld
make kernel
mergemaster -p
make installworld 
mergemaster 
reboot
 
Old 12-23-2004, 01:26 PM   #5
vaworx
Member
 
Registered: Nov 2003
Location: Honolulu/HI
Distribution: Slackware current, FreeBSD 4.10, 5.4, 6.2, Debian, RedHat, CentOS, Sun Cobalt OS
Posts: 66

Original Poster
Rep: Reputation: 15
tnx for the reply and clarification . So i'll go by the book and do the following by the time i see how custom kernel config is done on FreeBSD . BTW one last little thing as of what i've read is it true that there is no big of a difference in terms of performance if recompiling the kernel in FreeBSD for my needs cuz in Linux things appear to be different.

Quote:
# make buildworld
# make buildkernel
# make installkernel
# reboot
Note: There are a few rare cases when an extra run of mergemaster -p is needed before the buildworld step. These are described in UPDATING. In general, though, you can safely ommit this step if you are not updating across one or more major FreeBSD versions.

After installkernel finishes successfully, you should boot in single user mode (i.e. using boot -s from the loader prompt). Then run:

# mergemaster -p
# make installworld
# mergemaster
# reboot
Regards,
Vladimir
 
Old 12-23-2004, 01:28 PM   #6
vaworx
Member
 
Registered: Nov 2003
Location: Honolulu/HI
Distribution: Slackware current, FreeBSD 4.10, 5.4, 6.2, Debian, RedHat, CentOS, Sun Cobalt OS
Posts: 66

Original Poster
Rep: Reputation: 15
Oh and one question on the side.
How do you change the resolution in Console (mine now is 640x480). I tried something with vidcontrol but maybe i'm doing something wrong or there is another way?
 
Old 12-23-2004, 02:03 PM   #7
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
Quote:
Originally posted by vaworx
tnx for the reply and clarification . So i'll go by the book and do the following by the time i see how custom kernel config is done on FreeBSD . BTW one last little thing as of what i've read is it true that there is no big of a difference in terms of performance if recompiling the kernel in FreeBSD for my needs cuz in Linux things appear to be different.
Correct. The GENERIC kernel is perfectly fine for 99% of the applications out there.

The main reason to build a custom is to have SMP support (which you need for a multi-processor machine, or a HTT P4). Some people will tell you that removing driver code from the kernel will make it faster (which is funny, as these are the type of people who will sing the praises of kernel tweaks, never read tuning(7), and run GNOME or KDE ). My personal experience does not reflect this assertion. It does make the kernel smaller, which I don't see as an issue either, since my kernel (which is GENERIC+IPF+BRIDGE and stuff like that) is just a hair under 6MB. I suppose on an embedded system this might be big, but geeze ... with a 512MB stick going for <$100USD, GENERIC is fine.

On the vt res question -- I dunno. Never wanted to do that.

Last edited by sigsegv; 12-23-2004 at 02:07 PM.
 
Old 12-23-2004, 09:53 PM   #8
vaworx
Member
 
Registered: Nov 2003
Location: Honolulu/HI
Distribution: Slackware current, FreeBSD 4.10, 5.4, 6.2, Debian, RedHat, CentOS, Sun Cobalt OS
Posts: 66

Original Poster
Rep: Reputation: 15
looks like my system is updated but now i ran cvsup and i see that there are some new updates. I'm i supposed to go through the aforementioned procedure everytime i get updates? What if i want to set a cron job for cvsup how is that going to work. I'm using Slackware from 5 years and since apps such as swaret, slack-pg, etc. came out updates are fairly easy as long as i'm not about to recompile a new kernel. Can i just update a package say open_ssh to a newer version without going through the whole cvs tree but just downloading the needed packages. Any useful links would be appreciated if you don't have time to deal with these *BSD n00b questions.
 
Old 12-24-2004, 06:14 AM   #9
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
There are two separate pieces to update FreeBSD.
1. System. Consider the system everything except /usr/local/.
2. Ports / Packages. The same, but different means on updating. Consider all your ports apps as /usr/local/.

The system is cvsup via
## Main Source Tree.
src-all
and updated by;
# make buildkernel
# make installkernel
# reboot
# mergemaster -p
# make installworld
# mergemaster
# reboot

The ports / packages are cvsup via;
## Main Source Tree.
ports-all tag=.
Then cd /usr/ports and as root;
# make fetchindex (only once after the ports cvsup)
# portupgrade -varR (many variations can apply here)

I say this because you mentioned "package ... open_ssh..." As far as I can tell, you have only updated #1 above. To have your system complete up to date, you need to upgrade your ports.

Now to your question. You can cron the cvsup process. Actually, once you have your system running and unless you are in the kernel development process, you shouldn't need to do this very often, only when there is a security advisory. You can subscribe to the security advisory mail list, or check FreeBSD.org, on the right about half way down. If there is a security advisory like fetch, you can cvsup the src, drill down to the fetch directory, and make install without going through the lengthly build process.

If you want to perform a binary system upgrade like Slackware does, there is freebsd-update. Search this forum for it for more detail. I'm guessing it works for 4.x.

I say all of this because lots of folks thinks it is a continuing process updating FreeBSD kernel and ports, which it isn't. Once setup, there is little work to keep the system upgraded.

As far as I can tell, you still need to upgrade your ports section.

edit: added make fetchindex

Last edited by -X-; 12-24-2004 at 08:41 AM.
 
Old 12-24-2004, 10:17 AM   #10
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
Also, /usr/X11R6 is a port destination too.

Most of what -X- points out is true, except in cases like yours where the user is tracking stable. When you track stable, you'll have new code to build pretty much any time you sup your sources, since stable has a constant stream of commits. There's nothing wrong with tracking -STABLE, it's just a pain sometimes.

Normal users (especially new ones) would probably find tracking a release (such as RELENG_4_10) much more like what they're used to out of a linux distro.
 
Old 12-24-2004, 05:09 PM   #11
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
You're right sigsegv, I missed the RELENG_4 above and forgot about X11R6. I also believe new users should stay with their current release as RELENG_4_10 until they get the hang of things.

Merry Christmas to all.
 
Old 12-24-2004, 05:10 PM   #12
vaworx
Member
 
Registered: Nov 2003
Location: Honolulu/HI
Distribution: Slackware current, FreeBSD 4.10, 5.4, 6.2, Debian, RedHat, CentOS, Sun Cobalt OS
Posts: 66

Original Poster
Rep: Reputation: 15
tnx for the help again and tnx so much for the ports upgrade addition -X-. I ran it and it start upgrading but it seems like it stoped till some point:

Quote:
/usr/ports/INDEX:12148:Port info line must consist of 10 fields.
......done]
And i have no shell like it's still thinking and doing something. Maybe i did something wrong but i'll track that back and see what happens. I looked into the freebsd-update but it seems like update.daemonology.net doesn't have the leatest and the greatest maybe. After all i consider official mirrors as being the latest and the greatest . I'm gonna play around these day and i suppose by the time i'm done with this i'll come back and post a manual of the things that i did.

BTW Marry X-MAs and tnx for the support again.

Regards,
vaworx

Last edited by vaworx; 02-18-2009 at 04:11 AM.
 
Old 12-24-2004, 06:07 PM   #13
vaworx
Member
 
Registered: Nov 2003
Location: Honolulu/HI
Distribution: Slackware current, FreeBSD 4.10, 5.4, 6.2, Debian, RedHat, CentOS, Sun Cobalt OS
Posts: 66

Original Poster
Rep: Reputation: 15
I think i was supposed to run:
Quote:
make index
portsdb -u
before the aforementioned. I'll give some updates later to tell you what happens.
 
Old 12-24-2004, 06:15 PM   #14
vaworx
Member
 
Registered: Nov 2003
Location: Honolulu/HI
Distribution: Slackware current, FreeBSD 4.10, 5.4, 6.2, Debian, RedHat, CentOS, Sun Cobalt OS
Posts: 66

Original Poster
Rep: Reputation: 15
BTW i asked about the open_ssh because after doing a local scan with Tenable NeWT i got several vulnerabilities one of which was the Open_SSH + i need to disable the use of Protocol 1 shich i haven't figured out yet but i suppse its some config file in /etc/ say /etc/ssh.config or something lines.
 
Old 12-25-2004, 01:21 AM   #15
vaworx
Member
 
Registered: Nov 2003
Location: Honolulu/HI
Distribution: Slackware current, FreeBSD 4.10, 5.4, 6.2, Debian, RedHat, CentOS, Sun Cobalt OS
Posts: 66

Original Poster
Rep: Reputation: 15
IIIIIIITTTTSSSSSS WOOOOOOOORKIIIIING !!!!!!!!! :d

Quote:
Watching the console of FreeBSD updating with cvsup and portupgrade is the most sexiest thing i've ever seen. Sexier than compiling kernel ."
vaworx

Last edited by vaworx; 02-18-2009 at 04:10 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Most current and stable version of Evolution linuxRunner Linux - Software 0 09-21-2005 03:26 AM
FreeBSD Making my Software stable MA_D *BSD 4 04-18-2005 10:14 AM
which slackware current distro is stable masand Slackware 10 01-19-2005 03:52 AM
FreeBSD 4.10-STABLE vs. 5.2.1-CURRENT entob *BSD 3 09-01-2004 04:30 PM
Installing FreeBSD 4.9 keeping XP? as400 *BSD 5 05-04-2004 01:27 PM


All times are GMT -5. The time now is 09:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration