From owner-freebsd-questions@FreeBSD.ORG Sat Jan 10 04:44:00 2004 Return-Path: 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 0E3DE16A4CE for ; Sat, 10 Jan 2004 04:44:00 -0800 (PST) Received: from etrn2.doruk.net.tr (etrn2.doruk.net.tr [212.58.5.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9E2B43D49 for ; Sat, 10 Jan 2004 04:43:55 -0800 (PST) (envelope-from vahric@doruk.net.tr) Received: from mail.doruk.net.tr ([212.58.5.6] helo=doruk.net.tr) by etrn2.doruk.net.tr with smtp (Exim 4.24) id 1AfIYj-00063v-1Z for freebsd-questions@freebsd.org; Sat, 10 Jan 2004 14:49:45 +0200 Received: from [212.58.13.17] (account vahric HELO VAHOXP) by doruk.net.tr (CommuniGate Pro SMTP 4.1.8) with ESMTP id 71281026 for freebsd-questions@freebsd.org; Sat, 10 Jan 2004 14:48:56 +0200 From: "Vahric MUHTARYAN" To: Date: Sat, 10 Jan 2004 14:42:53 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Thread-Index: AcPXd0OvEbuVmFlOR4249INQSI3XvQ== Message-ID: Subject: install.cfg X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jan 2004 12:44:00 -0000 Hi , You can see my install.cfg output below. I can't set hostname , ip address I'dont understand why ? and I red sysinstall but it's funny I cant find any variable for hostname and ip address . They are only available for mediaSetNFS . Do I have to use install media NFS ?!!!! Thanks, Vahric ############################################################# # This is my install.cfg for FreeBSD 4.8-RELEASE. You must save this in UNIX and not PC format! # This is a typical config that most people will want to use, modify as necessary. # # From the sysinstall manpage : # "sysinstall is currently at the end of its life cycle and will eventually be replaced." # # darren@dazRREEMMOOVVEEdaz.org # # *** WARNING *** DO NOT USE THIS CONFIG YOU'VE READ IT CAREFULLY AS IT WILL OVERWRITE YOUR DISK # # Use Alt F2 to see the debug output #installVarDefaults #nonInteractive=NO #tryDHCP=NO #noWarn=NO # router solicitation, turns off IPv6 #tryRTSOL=NO debug=yes ############################################################# # Installed host's configuration hostname=freebsd.try.net.tr domainname=try.net.tr nameserver=10.10.10.2 defaultrouter=10.10.10.1 ipaddr=10.10.10.102 netmask=255.255.255.0 ############################################################# # Which installation method to use # This is where the system will go - ftp://ftp.uk.freebsd.org/pub/FreeBSD/ports/i386/packages-4.8-release/All/ # If you use a different kernel, such as upgrading to 4.8-STABLE then you won't be able to ftp packages because # sysinstall does'nt allow it. #_ftpPath=ftp://ftp.uk.freebsd.org/pub/FreeBSD/ #netDev=xl0 #mediaSetFTP #mediaSetNFS #nfs=MyNfsServer:/export/ari_scratch2/gallatin/freebsd-dist mediaSetCDROM ############################################################# # Select which distributions we want. #dists=bin doc manpages dict info crypto compat3x compat4x ports ssecure sbase scontrib sgnu setc sinclude slib slibexec srelease sb in ssbin sshare ssys subin susbin ssmailcf Xbin Xcfg Xdoc Xhtml Xlib Xlk98 Xlkit Xman Xprog Xps Xset Servers/XSVGA Servers/XVG16 Ser vers/Xnest Servers/Xvfb Xfnts Xf100 Xfcyr Xfscl Xfnon Xfsrv #distSetCustom distSetEverything ############################################################# # Set the parameters for the partition editor # ad = IDE, da = SCSI disk=da0 # Enable this for interactive fdisk #diskInteractive # Change this to "all" if this is a server, we don't want any multi-booting rubbish on our servers #partition=existing #partition=all partition=exclusive bootManager=boot diskPartitionEditor ############################################################# # - All sizes are expressed in 512 byte blocks! # - "Size in MB" = sectors * 512 / 1024 / 1024 # - "Number of blocks" = xsize in mb * 1024 * 1024 / 512 # The non-zero value after the mountpoint means enable soft updates da0s1-1=ufs 2031616 / da0s1-2=swap 1015808 none da0s1-3=ufs 2031616 /var 56 da0s1-4=ufs 1015808 /tmp da0s1-5=ufs 0 /usr diskLabelEditor # runs diskLabelCommit diskPartitionWrite #configPackages #package=bash-2.05b.007 #packageAdd #package=cvsup-16.1h #packageAdd #package=vim-lite-6.2.72 #packageAdd installCommit package=bash-2.05b.007 packageAdd package=cvsup-16.1h packageAdd package=vim-lite-6.2.72 packageAdd # If you use execute a system command with parameters, then you must use double quotes, else it won't work # and will terminate the script. # I recommend that you execute as few commands here as possible because if they fail the subsequent commands # will not be executed, and so the entire installation may be unusable depending on the subsequent commands. # Remember to use the full path to the system command # WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING # These still don't work properly, i'm fed up with sysinstall!!! Just execute the script, that works. # WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING # In case of any problem with the script we enable remote access now and set a temporary root password #command="echo rc_conf_files="/etc/rc.conf /etc/rc.conf.local" >> /etc/rc.conf" #system #command="echo sshd_enable="YES" >> /etc/rc.conf" #system #command="echo 'abc123' | /usr/sbin/pw usermod -u root -h 0" #system # We write a script to make system changes as opposed to using a package as this way we have much more control # PATH is not set so also be careful to explicitly tell system where the script is #command=/stand/post-install.sh #system #command=/sbin/reboot #system shutdown # End of install.cfg