From owner-freebsd-questions@FreeBSD.ORG Sun May 19 21:41:30 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A37041BE for ; Sun, 19 May 2013 21:41:30 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by mx1.freebsd.org (Postfix) with ESMTP id 691DFAEF for ; Sun, 19 May 2013 21:41:30 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UeBM8-0003JL-Gd for freebsd-questions@freebsd.org; Sun, 19 May 2013 23:41:28 +0200 Received: from pool-173-79-84-117.washdc.fios.verizon.net ([173.79.84.117]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 May 2013 23:41:28 +0200 Received: from nightrecon by pool-173-79-84-117.washdc.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 May 2013 23:41:28 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Subject: Re: How to get kernel source code of free-BSD release 9.1 Date: Sun, 19 May 2013 17:41:16 -0400 Lines: 47 Message-ID: References: <360A224CA5291F458103405CD90949367CB15A60@ORSMSX105.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-173-79-84-117.washdc.fios.verizon.net X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: nightrecon@hotmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 May 2013 21:41:30 -0000 Chou, David J wrote: > Hi, > > I have created a virtual machine of PC-BSD release 9.1 64 bit in VMware > Player Version 5.0.0 build-812388 based on PCBSD9.1-x64-DVD.iso downloaded > from ftp://mirrors.isc.org/pub/pcbsd/9.1/amd64/PCBSD9.1-x64-DVD.iso , and > setup network configuration and installed Firefox 20.0 by AppCafe, and > configured the network setting in Preference->Advanced of Firefox, and I > could access Internet. > > Now I need to build my own customized kernel, but there is no src > subdirectory in /usr, so here is my question: > > 1. Is there any way to install kernel source when I create the virtual > machine from PCBSD9.1-x64-DVD.iso ? Not sure about PCBSD as I haven't used it, but with regular FreeBSD I believe you can by selecting the appropriate package distribution group. Been a while since I've done an install, but even so the source will be the static RELEASE bits and not contain any security updates. > 2. Any BKM to get the kernel source after the Virtual Machine already > created as my case now? Yes - install the devel/subversion port. Go ahead and create the src directory under /usr. Then do: svn checkout svn://svn.freebsd.org/base/releng/9.1 /usr/src Once having checked out you can then issue a svn update /usr/src command to pull in security updates as they become available over time. There are also two US mirrors available such as: svn checkout svn://svn0.us-east.freebsd.org/base/releng/9.1 /usr/src svn checkout svn://svn0.us-west.freebsd.org/base/releng/9.1 /usr/src I have used the us-east one. There is also a project underway to add in to base an 'svnup', similar in scope to how csup replaced cvsup to make it easier in the future. I believe freebsd-update is also a possibility but I have no experience with it. At any rate, more details can be found in the Handbook. -Mike