Sponsored Content
Full Discussion: Building 'world' in FreeBSD
Operating Systems BSD Building 'world' in FreeBSD Post 302516228 by figaro on Friday 22nd of April 2011 05:46:23 AM
Old 04-22-2011
I am assuming t hat you are logged in as root, since creating jails requires higher level privileges. You may want to use zabbix to control your jails.

Try some or all of the following commands to create a jail called TEST:
Code:
mkdir /usr/jail
mkdir /usr/jail/TEST
cd /usr/src
make world DESTDIR=/usr/jail/TEST
make distribution DESTDIR=/usr/jail/TEST
echo "jail_enable="\""YES"\" >> /etc/rc.conf
echo "jail_list="\""TEST PROD"\" >> /etc/rc.conf
echo "jail_TEST_rootdir="\""/usr/jail/TEST"\"  >> /etc/rc.conf
echo "jail_TEST_ip="\""192.168.2.1"\"  >> /etc/rc.conf
echo "jail_TEST_hostname="\""jail.TEST"\"  >> /etc/rc.conf
echo "jail_sysvipc_allow="\""YES"\" >> /etc/rc.conf
echo "security.jail.allow_raw_sockets=1" >> /etc/sysctl.conf
cp /etc/resolv.conf /usr/jail/TEST/etc
mkdir /usr/jail/TEST/usr/ports
echo 'mount_nullfs /usr/ports  /usr/jail/TEST/usr/ports' >> /etc/rc.local

 

7 More Discussions You Might Find Interesting

1. Solaris

hello world

just wanted to give salutations to all in here. i hope to contribute as much as i take. happy "unix-ing" :b: (0 Replies)
Discussion started by: JeepResQ
0 Replies

2. Programming

Application crashes in FreeBSD 7.1 while working ok in FreeBSD 6.3

Hello there, My mulithreaded application (which is too large to represent the source code here) is crashing after installing FreeBSD 7.1-RELEASE/amd64. It worked properly on others machines (Dual Cores with 4GB of RAM - FreeBSD 6.2-RELEASE/i386). The current machine has 2x Core 2 Duo... (1 Reply)
Discussion started by: Seenquev
1 Replies

3. UNIX for Dummies Questions & Answers

What in the world does $$ mean?

If I type "echo $$" in to the command line it outputs some random number but it outputs the same one every time. What is this? (7 Replies)
Discussion started by: weexpectedthis
7 Replies

4. Programming

Almost -> Hello World!

Hello! I know I must take the efforts of learning C..! I need to recompile a binary with the following at the beginning: test if a file exists, remove it and exit. All in "C". As simple as this in sh: file=/tmp/filename if ; then rm -f $file exit 0 fi Thanks! (8 Replies)
Discussion started by: teresaejunior
8 Replies

5. Programming

Exact meaning of the "world" in "hello world"

Hello! I have a question to native English-speaking people. In the popular program's "hello world" greeting, what meaning the "world" has: "all", "everybody", "people", "friends" or "whole world", "planet", "Earth", "Universe"? In other words, to whom this greeting is addressed: to the... (14 Replies)
Discussion started by: Eugene Muzychen
14 Replies

6. What is on Your Mind?

Mad World Remix of Moby Video (Are You Lost In The World Like Me)

This is an excellent video comment on modern society and the remix is good too: https://www.youtube.com/watch?v=5DU1B_XkyIk 5DU1B_XkyIk Watch the video above and post your comments. (3 Replies)
Discussion started by: Neo
3 Replies

7. What is on Your Mind?

UNIX: Building The Most Important OS in the World By John Loeffler

Nice UNIX history article by John Loeffler, February, 05th 2019 UNIX: Building The Most Important OS in the World The most widely used operating system in the world was a project born out of failure. (0 Replies)
Discussion started by: Neo
0 Replies
cvsd(8) 						      System Manager's Manual							   cvsd(8)

NAME
cvsd - chroot wrapper to run 'cvs pserver' more securely. SYNOPSIS
cvsd [options] DESCRIPTION
cvsd is a wrapper program for cvs in pserver mode. it will run 'cvs pserver' under a special uid/gid in a chroot jail. cvsd is run as a daemon and is controlled through a configuration file (see cvsd.conf(5) ). It is relatively easy to configure and tools are provided for easily setting up a chroot jail (see cvsd-buildroot(8) ) and managing repositories (see cvsd-passwd(8) ). See the README for more information and details to setting up a chroot jail and repositories. OPTIONS
cvsd accepts the following options: -f, --config=FILE Use FILE as configfile (default is /etc/cvsd/cvsd.conf). -d, --debug Enable debugging mode. cvsd will not put itself in the background and sends verbose debugging info to stderr. Otherwise cvsd handles connections as usual. This option is for debugging purposes only. --help Display short help and exit. -V, --version Output version information and exit. SEE ALSO
cvsd.conf(5) cvsd-buildroot(8) cvsd-passwd(8) FILES
/etc/cvsd/cvsd.conf - the configuration file (see cvsd.conf(5) ) AUTHOR
Arthur de Jong <arthur@arthurdejong.org>. Version 1.0.24 Jun 2012 cvsd(8)
All times are GMT -4. The time now is 01:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy