From owner-freebsd-questions@FreeBSD.ORG Sun Oct 23 04:42:20 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B83516A420 for ; Sun, 23 Oct 2005 04:42:20 +0000 (GMT) (envelope-from michael@christie.org.au) Received: from dory.powerzone.net.au (dory.powerzone.net.au [203.23.237.240]) by mx1.FreeBSD.org (Postfix) with SMTP id 56EBA43D45 for ; Sun, 23 Oct 2005 04:42:18 +0000 (GMT) (envelope-from michael@christie.org.au) Received: (qmail 95897 invoked by uid 1012); 23 Oct 2005 04:42:17 -0000 Received: from 202.76.164.109 by 203.23.237.240 (envelope-from , uid 1010) with qmail-scanner-1.24-st-qms (clamdscan: 0.80/630. perlscan: 1.24-st-qms. Clear:RC:0(202.76.164.109):. Processed in 0.25236 secs); 23 Oct 2005 04:42:17 -0000 X-Antivirus-dory.powerzone.net.au-Mail-From: michael@christie.org.au via 203.23.237.240 X-Antivirus-dory.powerzone.net.au: 1.24-st-qms (Clear:RC:0(202.76.164.109):. Processed in 0.25236 secs Process 95891) Received: from dialup-2-109.melbournepwrtl2.dft.com.au (HELO ?202.81.98.161?) (michael@powerzone.net.au@202.76.164.109) by dory.powerzone.net.au with SMTP; 23 Oct 2005 04:42:17 -0000 Message-ID: <435B1576.6060406@christie.org.au> Date: Sun, 23 Oct 2005 14:45:42 +1000 From: Michael Christie User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org X-Priority: 1 (Highest) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Linux computability X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Oct 2005 04:42:20 -0000 Hi all, Last night I was trying to work out how to get Linux programs to run under freebsd. I have worked out how to get Linux programs to run in side a jail under freebsd Linux computability. 1, install linux_base on to the host server, edit rc.conf add linux_enable="YES" 2, make a jail using jail tools and or jail tools webmin. http://www.the-labs.com/FreeBSD/JailTools/ 3, add mounts from the host to the jail add mount, mount_nullfs /compat/ /usr/jails/myjailname/compat/ mount_linprocfs linprocfs /usr/jails/myjailname/compat/linux/proc To Mount at boot time edit /etc/fstab /compat /usr/jails/myjailname/compat nullfs rw 0 0 linproc /usr/jails/myjailname/compat/linux/proc linprocfs rw 0 0 4 edit rc.conf inside the jail add linux_enable="YES" Now Linux programs run in side of the jail. Thanks Michael www.thebushtelegraph.net