![]() |
|
|||||||
| OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|||
|
hello, i ve OpenBSD 4.4 CD.
I want to customize install. i ve seen it is possible with an answer file : dot.profile and a custom package : site44.tgz. I ve read the faq at : 4.13-14 But i don't understand how to do that. If someone can help me. Thank's ! |
|
||||
|
It's easy.
You create a site*.tgz file that includes any or all local modifications you want to have in your systems. There are only two skills required:
Step 1. Learn what files are included with each package: Step 2. Create the site file. In this example, it includes /etc/passwd, /home, the specific files that make up these packages, and their entries from /var/db/pkg: Code:
# tar czf /path/to/mystuff/site44.tgz /etc/passwd /home \ /usr/local/bin/screen \ /usr/local/info/screen.* \ /usr/local/man/man1/screen.1 \ /usr/local/share/examples/screen \ /usr/local/share/screen \ /usr/local/bin/tcsh \ /usr/local/man/man1/tcsh.1 \ /usr/local/share/nls/*/tcsh.cat \ /var/db/pkg/screen-4.0.3p1 \ /var/db/pkg/tcsh-6.15.00
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
Last year I used the following install.site script for a box called 'hercules'.
Code:
#!/bin/sh . ./install.site.hercules 2>&1 | tee ./install.report Some snippets from the actual 'install.site.hercules' script which does the real work.
CAVEAT: Please keep in mind that these snippets are tailored to OBSD 4.2 current of August 2007. So they are a year old and thus some of them will need to be modified to work on the just released 4.4. I just show them here to give you some ideas
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
|
thank's!
But if i want to custom my openbsd 4.4 cd (to build a firewall), where i need to put my site44.tgz and .profile before burn?? what is the steps ? Last edited by milo974; 6th November 2008 at 04:24 AM. |
|
|||
|
Quote:
The .profile can either be inside the site44.tgz file or you can modify it like I did in the install.site file, shown in my first post. Before wasting too much time with burning CD's I would recommend to set up a local FTP server, put all installation filesets including your site44.tgz file on it and use that ftp server during your test installs. While testing you even don't need a CD at all. Just use the bsd.rd install technique described in http://openbsd.org/faq/faq4.html#bsd.rd.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
||||
|
You seem completely confused, milo.
Regarding your question on where to place site44.tgz: Typically, if you are doing multiple installs, a local http or ftp server is used to store all filesets, and one would just place the site44.tgz fileset in the same directory on the server. Generally, an admin in this situation uses either cd44.iso or PXE to boot the ramdisk kernel, then installs from the local server. If you are installing on a machine that has no network connection, place the site44.tgz file with your other filesets on appropriate removeable media, such as a CD/DVD or USB stick. If CD/DVD is used, the admin burns two discs: cd44.iso and a CD9660 disc containing all filesets, including site44.tgz. Once the ramdisk kernel has booted, the admin merely swaps discs before running the install script.
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
Jggimi, I do use the site*.tgz install technique.
![]() The install.site script is inside the site*.tgz file. This site*.tgz file is unpacked at the end of the install. As a result the install.site script is located at the "/" directory, and thus the following quote from the OpenBSD FAQ/installation guide is applicable ![]() Quote:
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
||||
|
Ooops, sorry, J65. I had forgotten about the script execution feature.... thanks for straightening me out.
__________________
OpenBSD LiveCDs/LiveDVDs |
![]() |
| Tags |
| install.site, sitexx.tgz |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| OBSD 4.3 Customize site43 & install.site problems | gamaliel | OpenBSD Installation and Upgrading | 7 | 3rd June 2008 03:25 PM |