DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 4th October 2010
fender0107401's Avatar
fender0107401 fender0107401 is offline
Real Name: Li.
Port Guard
 
Join Date: May 2010
Location: China, Tian Jin.
Posts: 24
Default How to build a OpenBSD server?

Hi all:

I want build a OpenBSD server to facilitate maintaing my system.

I need some guides such as how much disk space is required and which software should be installed and how to keep it update.
Reply With Quote
  #2   (View Single Post)  
Old 4th October 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by fender0107401 View Post
I need some guides such as how much disk space is required...
We have no idea what is your system. Please describe.
Quote:
...and which software should be installed and how to keep it update.
Again, we have no knowledge of your system. As for information on updating, study the Upgrade Guide.
Reply With Quote
  #3   (View Single Post)  
Old 4th October 2010
fender0107401's Avatar
fender0107401 fender0107401 is offline
Real Name: Li.
Port Guard
 
Join Date: May 2010
Location: China, Tian Jin.
Posts: 24
Default

Quote:
Originally Posted by ocicat View Post
We have no idea what is your system. Please describe.

Again, we have no knowledge of your system. As for information on updating, study the Upgrade Guide.
I am sorry, I didn't describe my question clearly.

I mean I want build a OpenBSD package server that only provide service for me.
I am not a stingy guy, but in China most people run funny Windows , only a few Linux user around me and I don't like Linux distributions any more, so I don't think I have to share this server with others.
When I want install some package I can use my server instead of downloading packages from other OpenBSD package server.
I think that can save time and is more reliable.
Sometimes "pkg_add -u" stuck in somewhere, because no reliable package server is available.

My plan is run OpenBSD as desktop, run FreeBSD as computation platform and build a server that provides:
  1. cvs and package service for my OpenBSD desktop.
  2. cvs service for my FreeBSD computation platform.

I found a FreeBSD document: http://www.freebsd.org/doc/en/articles/hubs/
Reply With Quote
  #4   (View Single Post)  
Old 4th October 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by fender0107401 View Post
I mean I want build a OpenBSD package server...
It comes down to what packages do you want to build?

The larger applications I tend to build are:
  • Firefox
  • Python
  • OpenOffice
  • JDK
I also build a number of small ports, but in no way do I build all applications found in the ports tree. When installing OpenBSD, I create a 4GB partition for /usr/ports/ & a 60GB partition for /usr/ports/pobj/. So far, these sizes have been sufficient.

Given that building huge applications such as OpenOffice can take more than a day with a ~1.5GHz i386 processor, faster hyperthreaded Xeon processors will build more quickly, but they cost more. A somewhat related thread can be found at the following:

http://www.daemonforums.org/showthre...4070#post34070
Quote:
  1. cvs and package service for my OpenBSD desktop.
  2. cvs service for my FreeBSD computation platform.
OpenBSD's /src tree (typically saved locally into /usr/src...) fits easily into a 2GB partition for the tree & another 2GB partition for /usr/obj is more than enough for disk space for building OpenBSD (I also create a 2GB partition for /usr/xenocara & another 2GB partition for /usr/xobj...). If you have other CVS repositories you wish to maintain, disk usage will obviously go up.

It is very easy to stress out about partition sizes. jggimi frequently points newbies to install new systems into one very large / partition until they have had enough experience to understand their own usage patterns. You may find this easier. The numbers I give above are numbers which work for me & what applications I build for myself.

I would also be remiss if I don't mention that carefully studying Section 5 & Section 15 of the FAQ will be highly worth your time. As for manpages, studying release(8) & ports(8) are both highly recommended.
Reply With Quote
  #5   (View Single Post)  
Old 5th October 2010
fender0107401's Avatar
fender0107401 fender0107401 is offline
Real Name: Li.
Port Guard
 
Join Date: May 2010
Location: China, Tian Jin.
Posts: 24
Default

Thank you very much for the detailed explanation.
Reply With Quote
  #6   (View Single Post)  
Old 5th October 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

A friend of mine has a small network of OpenBSD platforms for his organization -- routers and firewalls, primarily, and a few desktops. He has a dedicated build machine, and he builds -current packages approximately once per month for his architecture, which I believe is i386. To the best of my recollection, he told me that a "make package" of the entire ports collection takes somewhere between three and four days on his build server.

Most -release/-stable users should never need to build ports, the exception being only those for which packages are not available.

Those -current users on the popular architectures may be able to reduce their port-building efforts by using pre-built "snapshot" packages that are made available for convenience. Usability will depend on how close the packaging is to the particular -current system they are using, per FAQ 15.4.1.

I build portions of the ports tree for my live media offerings, and that only because building them is necessary. It takes days and days, just to build the software to provision the various workstation environments on two architectures. These port builds easily fit within 25GB or so for each architecture, but that is because I use $BULK, allowing for object erasure as the builds proceed, and there is no individual application as large as ocicat's JDK build, which needs, I think, something on the order of 40-50GB of free space for the objects and source.
Reply With Quote
  #7   (View Single Post)  
Old 15th October 2010
passthejoe passthejoe is offline
Real Name: Steven
Port Guard
 
Join Date: Oct 2010
Location: Los Angeles
Posts: 30
Default

In any situation where there are multiple machines, maintaining a local package repository is a great idea. Aside from saving all that CPU for building from ports, or building kernel and userland for patches, the reduced bandwidth (and increased update speeds) with a local repo are a huge benefit.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Openbsd x terminal server wyginwys OpenBSD General 2 9th June 2010 12:11 PM
Caching-only DNS server on OpenBSD Oko OpenBSD General 1 13th September 2009 08:30 PM
The right way to build an OpenBSD port with debug symbols WeakSauceIII OpenBSD Packages and Ports 7 20th April 2009 12:40 PM
build a sftp server milo974 OpenBSD General 9 26th September 2008 11:09 AM
New server build tanked FreeBSD General 1 5th June 2008 06:41 AM


All times are GMT. The time now is 06:02 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick