From owner-freebsd-questions@FreeBSD.ORG Tue May 31 09:20:21 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E71821065675 for ; Tue, 31 May 2011 09:20:21 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6A1C28FC18 for ; Tue, 31 May 2011 09:20:20 +0000 (UTC) Received: by bwz12 with SMTP id 12so5128286bwz.13 for ; Tue, 31 May 2011 02:20:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=J2UdbJxY+GyU0VkN+fcoGOKJcZ2c7zS/QxiTQkjeqwY=; b=gudfnfg7Xq/r8WCoNLG9hcQuAkpjf1z1SjJg96M2rgjCZ8KpwPtmsH8O0swBxbxhOa wc9/i9cIVja80dTR34hqLE2n+HuMIWEnAunXxE1leOyIPUdyh2Ty35diXugbLODFvQpy U/ZTE7TA7Zr9v8aoWojTYO4tM9Kpnlqudjf8U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; b=jRNDFsHKuUuS1hX5JD+FAezA5OYpgJHtc4AYQxWpoEkJkX8EtwR2jQnr9Y4YrI1QD5 bCXc6yzRi2dsR9JQEWBOQxLVFmoUgW1ANMWlnnhylBEJVZNcDEjEOvYjj8bAi3WvAlPc yHc4JGeiy0dOYdWOXeRoBPP+U8IhEyzH6Yixc= Received: by 10.204.14.144 with SMTP id g16mr5389104bka.34.1306833620158; Tue, 31 May 2011 02:20:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.66.81 with HTTP; Tue, 31 May 2011 02:19:50 -0700 (PDT) In-Reply-To: References: From: Chris Rees Date: Tue, 31 May 2011 10:19:50 +0100 Message-ID: To: Xn Nooby Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Mailing List Subject: Re: A small script to customize FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: utisoft@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2011 09:20:22 -0000 On 31 May 2011 04:19, Xn Nooby wrote: > Hello. =A0I wrote a script to install FreeBSD 8.2 on to a real machine, > or a 64-bit Virtualbox VM. =A0It has a modular approach where you can > pick which functions will be run on a different target system. It can > be tweaked easily. =A0I wrote it so that I could do a quick "plain > vanilla install", and then run this script to set up my user, SVN > server, gnome, firefox4, flash, nvidia driver, vbox additons, and > other things. I thought I would post it in case other beginners need > some thing like this to help them configure a machine. =A0I started off > with detailed notes, then thought I might as well script it. When you > run it, the only user interaction is having to enter the user password > twice. =A0Let me know if anyone has any suggestions. How about using $1 instead of theuser? You could always have ${1:-theuser} instead to have a default of theuser, but take the value for username as the first argument. Chris