Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jan 2004 14:42:53 +0200
From:      "Vahric MUHTARYAN" <vahric@doruk.net.tr>
To:        <freebsd-questions@freebsd.org>
Subject:   install.cfg
Message-ID:  <auto-000071281026@doruk.net.tr>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?auto-000071281026>