FreeBSD Install Part One

PART ONE


This setup here is for FreeBSD 5.2 for any older version like 4.7 and up the paper i have not revised yet and is incomplete
and i will not publish that since its only part of my notes i refer to for each time i need to setup a host for any of my
clients or friends. This setup here is also assuming you are not running any daemons such as FTP, http, NIS, NFS, and only
thing enabled on the system is ssh for remote access and maybe X desktop if this host is going to be a workstation with local
http, and misc services for testing only and added on at a later time but will not be included with this paper. I advise you to
read the whole doc if you decide to proceed and use this here for a installation and understand and plan ahead before you start,
reason for that is along the installation i do and will use examples for things to plan and watch out for in different senario's
and implementations. Most administrators or end users come from different enviroments and some examples are easier for different
individuals to comprehend.


OS Installation


Our installation is going to be from the FreeBSD CD so please keep that in mind.


Installing FreeBSD from CD

Here we go put your BSD disk in the CD-ROM and set your MOBO's bios to boot from cd-rom and when the GUI starts up follow
through with the below.


Select .Standard. from the main menu.


Select the size for the partition. Press Z to toggle to show its size, this makes it easier to see the actual size of the
harddrive and partitions. Press A to use the whole disk and then press S to make this a bootable partition. Then Q when
finished.


Choose your boot manager. Since FreeBSD is the only OS on the machine, we will be using standard. If you forget to do so
your computer will not boot up after the installation.

Use auto assign for the disk space. The program will automatically assign most of the space to /usr. Most of the disk space
will be assigned to that file system. Move your cursor to the /usr and delete the partition. Create /usr again with 4G, which
is more than sufficient for most purposes, and assign all other space to

/usr will be used to install most of the binaries and programs that do not come with FreeBSD
and should have enough space for storage. When this is done, press Q.

You might want to think about how your partition scheme is layed out, "example if you are setting up a backend logging system,
a MySQL Server, Mail Server, Desktop workstation and or General Server. Each setup can make or break you in the long run due to
running out of partition space and etc. It's recommended by most to make a separate /usr/home partition as well as a separate
/chroot partition for misc situations but on this paper I will not get into that for this being a quick install guide. Here is
a quick view below of what i have layed out on one of my systems for lite http traffic, mininmal mail and a few accounts for
system maintaince and shell access for friends and when i need remote admin when i am away. Remember this is not a server SETUP!
Workstation setups I usually load http or apache and misc. for local usage and not for public use but from time to time it can
be used to test stuff out before offloading it to your dedecaited host thats serving http or mail.


Filesystem Size Used Avail Capacity Mounted on


/dev/ad0s1a 126M 41M 75M 35% /


/dev/ad0s1f 252M 166K 232M 0% /tmp


/dev/ad0s1g 36G 17G 16G 52% /usr


/dev/ad0s1e 252M 68M 164M 29% /var

When prompted for distribution sets, select Minimal config and then select .Custom.. At the .Custom. menu, select .man..
This is MAN or manual for all binaries, and a very important component and resource for all administrators and also end users.
The Doc's and the man is very helpful. It is always a learning experience and no one is perfect so hands on is going to get you
more learning experience then making a ass out of yourself asking questions on forums out on the net where most of your infomation
is there in front of you.

Networking Configuration

When prompted for configuration for Ethernet adapter, answer YES and select the type of interface or iface you have, its going to be
labeled as xl0, rl0, em0, and fxp0 for most common network interfaces and ath0 and wlan0 if you have a wireless interface, select
which ever on is the type your system is using for your network interface.


When prompted for IPv6 configuration, answer YES, if you are going to be implementing ipv6 and NO if your not going to be using ipv6,
My suggestion is install it and don't be such a pussy ("excuse my language") if your experienced and if your new to computers then
your forgiven and excused. IPV6 is comming around the corner and its been available for sometime now so its not as easy as ipv4 but
don't fear it and try to walk or shy away from it like it don't exist because it will only be harder if you don't try to learn it now.


When prompted for DHCP configuration, answer Yes if you are behind a SOHO router and you get your ip address from a dhcp server if not
then answer YES and then follow through with the installation.


The IPv4 configuration screen will come up, and fill in the information that is need since you are using a static ip address unless you
choosed DHCP from the above. When done select okay and move on to the rest of the installation.


When prompted for this host being a gateway, answer NO, remember this host we're setting up is not going to be hosting any services and
is only running a single network interface. For systems with dual network interfaces and will be used in a routing setup i will have another
paper out soon with HOST-AP setup for FreeBSD but at the moment they are only notes and can be real confusing trying to read it without me
editing whats important and whats not.

Going on with the install, when prompt for configuring inetd and simple Internet services will come up, answer NO.

When asked whether this host is going to run anonymous FTP server, NFS server and NFS client, answer NO.
These services are subceptable to many different attacks and at the moment we will not go into them but at a later time when needed a correct
path and measure for installation will be discussed.


When prompt for security profile, answer YES.

This will allow a choice of security profiles which can make the OS more secure but not always a benifit depending on your enviroment. If you
make a wrong descision here you can always return as root users and run /stand/sysinstall and change your options.

Choosing "Extreme" in selection for security profile will default the system to no sshd and sendmail enabled.
and it also sets the kernel securelevel to 2, which requires single-user mode for a lot of system modification.

When prompted for time zone, select YES and choose your correct time zone.

Answer NO to Linux Compatibility.

When prompted for packages answer NO.

The packages in the CD may not be up to date and may require lots of updating depending on when you created your ISO images.
Software installation will be done when you update your system so everything is up2date and current.

Answer YES to adding user to system, and then add a normal user to the system. When prompted for root password, enter a strong password.

When offered to view the options again, answer YES and review all options before exiting the installation and rebooting.

 

Support . Contact 3Segment . Network . Site Map . Policies