Homework #01 FreeBSD Installation

Slides:



Advertisements
Similar presentations
UNIX System Programming Installing OpenSolaris. 2/86 Contents How to setup a virtual machine guest How to install OpenSolaris as a guest How to update.
Advertisements

INSTALLING LINUX.  Identify the proper Hardware  Methods for installing Linux  Determine a purpose for the Linux Machine  Linux File Systems  Linux.
 Two technologies › Packages › Ports  Packages › contains pre-compiled copies of all the commands for the application, as well as any configuration.
5-9/12/2005 CPE How to format your computer and re-install Windows XP.
Linux+ Guide to Linux Certification, Second Edition Chapter 3 Linux Installation and Usage.
Exercise 1 – FreeBSD Installation Announced Date: 2006/9/20 Due Date: 2005/10/4.
Linux Installation Chapter II. Linux Distributions Pre-packaged, installable Linux Anyone can compile a distribution, have to inculde GPL Available for.
Lesson 15 – INSTALL AND SET UP NETWARE 5.1. Understanding NetWare 5.1 Preparing for installation Installing NetWare 5.1 Configuring NetWare 5.1 client.
11 INSTALLING WINDOWS XP Chapter 2. Chapter 2: Installing Windows XP2 INSTALLING WINDOWS XP  Prepare a computer for the installation of Microsoft Windows.
Installing Applications in FreeBSD. Computer Center, CS, NCTU 2 Overview  Two technologies Packages Ports  Packages contains pre-compiled copies of.
1 Web Server Administration Chapter 3 Installing the Server.
Lesson 4-Installing Network Operating Systems. Overview Installing and configuring Novell NetWare 6.0. Installing and configuring Windows 2000 Server.
 Contents 1.Introduction about operating system. 2. What is 32 bit and 64 bit operating system. 3. File systems. 4. Minimum requirement for Windows 7.
How to Install Windows 7.
Installing Linux Redhat: A how to guide in installing and configuring Redhat 6.2.
Step 1 - Start your PC and place your Windows XP CD in your CD/DVD- ROM drive. Your PC should automatically detect the CD and you will get a message saying.
Va-scanCopyright 2002, Marchany Unit 3 – Installing Solaris Randy Marchany VA Tech Computing Center.
SUSE Linux Enterprise Desktop Administration Chapter 1 Install SUSE Linux Enterprise Desktop 10.
Fundamentals of Networking Discovery 1, Chapter 2 Operating Systems.
Configuring the MagicInfo Pro Display
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
Chapter 7 Microsoft Windows XP. Windows XP Versions XP Home XP Home XP Professional XP Professional XP Professional 64-Bit XP Professional 64-Bit XP Media.
Tutorial 11 Installing, Updating, and Configuring Software
NUMOSS NURUL ‘IZZATI BINTI OTHMAN A
System Administration HW1 huanghs. Computer Center, CS, NCTU 2 Requirements  Basic Install FreeBSD and upgrade to up-to-date –RELEASE Recompile your.
Chapter SIx Maintaining a Computer Part I: Configuring, Updating, and Upgrading the OS.
Initial Boot from Install Disc 1 Turn on the power for your machine. Immediately place the first CD-ROM of the FreeBSD 5.3 install set in your machine's.
Cap 333 Network Administration. Solution Rules  Your solution must be typed by computer. Otherwise, it will not be accepted.  If the question is a project.
Window xp installation. Minimum HARDWARE REQUIREMENTS Minimum HARDWARE REQUIREMENTS PC with 300 megahertz or higher processor clock speed recommended;
Please Note: Information contained in this document is considered LENOVO CONFIDENTIAL For Lenovo Internal Use Only Do Not Copy or Distribute!! For Lenovo.
1 FreeBSD Installation ISOC/AfNOG Michuki Mwangi (Original materials by Hervey Allen – NSRC)
Maintain Installed Applications. Computer Center, CS, NCTU 2 In Ports Tree  / Makefile  COMMENT pkg-descr  WWW pkg-message  Shown after installed.
Guide to Linux Installation and Administration, 2e1 Chapter 2 Planning Your System.
FreeBSD huanghs. Computer Center, CS, NCTU 2 Outline  FreeBSD version 9.0-RELEASE 9.1-RC1  Installing FreeBSD From CD-ROM From USB.
Installation Overview Lab#2 1Hanin Abdulrahman. Installing Ubuntu Linux is the process of copying operating system files from a CD, DVD, or USB flash.
Installation and Upgrade Campus-Booster ID : **XXXXX Copyright © SUPINFO. All rights reserved Solaris 10 installation.
CHAPTER 2. Overview 1. Pre-Installation Tasks 2. Installing and Configuring Linux 3. X Server 4. Post Installation Configuration and Tasks.
What is a port The Ports Collection is essentially a set of Makefiles, patches, and description files placed in /usr/ports. The port includes instructions.
1 FreeBSD Installation AFNOG X Cairo, Egypt May 2009 Hervey Allen.
1 Copyright © 2015 Pexus LLC Patriot PS Personal Server Installing Patriot PS ISO Image on.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop V Files and the File System Part B – File System.
FreeBSD. Computer Center, CS, NCTU 2 Outline  FreeBSD version 9.2-RELEASE  Installing FreeBSD From CD-ROM From USB.
1 FreeBSD Installation AFNOG Chix 2011 Blantyre, Malawi 31 st Oct - 4 th Nov 2011 Dorcas Muthoni and Evelyn Namara.
VirtualBox: How to create a Linux Virtual Machine.
Page 1 of 38 Lenovo Confidential Lenovo Confidential Lenovo Confidential Lenovo Confidential Lenovo Confidential Please Note: Information contained in.
FreeBSD. Computer Center, CS, NCTU 2 Outline  FreeBSD version 8.1-RELEASE  Installing FreeBSD From CD-ROM  Build world and kernel Update source Rebuild.
SA-NA Junction. FreeBSD Branches/Tags Three parallel development branches: -RELEASE Latest Release version 7.0 January 2009, 6.3 November 2008
HOW TO INSTALL WINDOWS 7? This step-by-step guide demonstrates how to install Windows 7 Ultimate. The guide is similar for other versions of Windows 7.
Post Install Configuration FreeBSD SANOG 9 January 14, 2007 Colombo, Sri Lanka Hervey Allen.
SA-NA Junction FreeBSD. Computer Center, CS, NCTU 2 Outline  FreeBSD version  Installing FreeBSD  Update source and make world  Rebuild kernel.
Virtualisation Exercise Installing VirtualBox Installing FreeBSD in a virtual machine Chris Wilson Joel Jaeggli AfNOG 2012.
Linux Introduction Linux was developed in the early 1990’s by Linus Torvald computer science student at the University of Helsinki Linux is distributed.
Updating FreeBSD Unix System Administration. Objectives At the end of this session you should be able to: 1. Understand the differences between the CURRENT.
DIT314 ~ Client Operating System & Administration
Chapter Objectives In this chapter, you will learn:
Guide to Linux Installation and Administration, 2e
Seamless Guest OS's and more!
How to Bypass Windows 8 Password without Reset Disk
FreeBSD.
Drivers and the kernel UNIX system has three layers: Kernel
CONFIGURING HARDWARE DEVICE & START UP PROCESS
Booting Up 15-Nov-18 boot.ppt.
Installing Linux Redhat:
SUSE Linux Enterprise Desktop Administration
Chapter 9 Linux Installation Procedures
Post Install Configuration FreeBSD
Instructor Materials Chapter 5: Windows Installation
Operating System Kernel Compilation
Presentation transcript:

Homework #01 FreeBSD Installation Announce: 20080930 Due: 20081007

FreeBSD Branches/Tags Three parallel development branches: -RELEASE Latest Release version: 7.0 February 2008, 6.3 January 2008 http://www.freebsd.org/releases/ -STABLE: Tested new features and bug fixes ABI-compatibility MFC: Merge From Current -CURRENT: Working space for FreeBSD developers Current version: 8.0-CURRENT http://www.freebsd.org/releng/

FreeBSD version FreeBSD-A.B.C–Type A: major version Number B: minor version Number C: slight patch version number Type: version type PRELEASE BETA RC RELEASE STABLE CURRENT Choosing the FreeBSD Version That Is Right For You: http://www.freebsd.org/doc/en/articles/version-guide/index.html

FreeBSD view of Disk (1) The meaning of ad0s1e Disk name IDE: ad SCSI: da Slice is equal to the partition of common use Primary partition: s1 ~ s4 Extended partition: s5 ~ sn Label in each slice a: root partition b: swap c: entire disk d: entire partition efgh: /usr, /home, … MBR Slice 1 (/dev/ad0s1) Slice 2 (/dev/ad0s2) Slice 3 (/dev/ad0s3) Slice 4 (/dev/ad0s4) http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-steps.html Slice 5 (/dev/ad0s5) Slice 6 (/dev/ad0s6)

FreeBSD view of Disk (2) An Example MBR Slice 1 (ad0s1) Windows XP (NTFS) Linux (EXT3FS) disklabel ad0s3a ad0s3b ad0s3c ad0s3d ad0s3e / (root) swap Extended Partiton /home D-Disk NTFS Linux Swap

Installing FreeBSD Steps Knowing your hardware Obtaining installation file Booting from CD sysinstall main menu Custom Installation Options Partition Label Distribution Media Commit Post Installation configurations

Installing FreeBSD – 1. knowing your hardware CPU 32bit or 64bit Architecture: alpha, amd64, i386, ia64, pc98, powerpc, sparc64 RAM Size HD Size, amount, SCSI or IDE VGA Brand, ram size Sound Brand Network Interface Card IP、Netmask、Default gateway、Hostname、DNS Other Special device

Installing FreeBSD – 2. Obtaining installation file FreeBSD installation CD ftp://freebsd.cs.nctu.edu.tw/pub/ISO-IMAGES-i386/7.0/7.0-RELEASE-i386-bootonly.iso ftp://freebsd.cs.nctu.edu.tw/pub/ISO-IMAGES-i386/7.0/7.0-RELEASE-i386-disc1.iso Burn CD or USB! Unofficial snapshot http://pub.allbsd.org/FreeBSD-snapshots/

Handbook! Chapter 2 Installing FreeBSD Chinese resources http://www.freebsd.org/doc/en/books/handbook/install.html Chinese resources http://freebsddoc.twbbs.org https://opensvn.csie.org/traccgi/freebsddoc

Booting

Booting… Just press Enter “loader prompt”: some custom/special settings Ex: loading modules, loader tunables Note that “sysctl value” and “loader tunable” are different, even they usually happen to have same name …

Country Selection Just use default or…

Country - Taiwan This is loving Taiwan!

Keymap Use USA ISO keymap because we don’t have our keyboard layout…

Sysinstall Main Menu Being experts!

Custom Installation Installation variables Partition your disk Label your disk What to install How to install Do it!

Options Sometimes you can change “Release Name”

Partition C = Create D = Delete W = Write Q = Finish

Partition Size of the partition Default value: entire free space

Partition 165 - FreeBSD's magic number

Partition Partition hard disk as only one partition

Partition S = Set bootable

Partition - Boot Manager BootMgr - install a simple boot manager to disk MBR Standard - write to disk MBR None - leave it unchanged

Partition - More than 1 HDs Be aware which disk is your right target!

Label C = Create D = Delete Q = Finish

Label Allocation space for swap: typically is 2x~2.5x of your memory size. But this is not the absolute rule!

Label Setting which label is used for swap Swap spaces can be distributed on different disks FreeBSD will actively swap from memory to swap

Label Default is all that remained…

Label File system type, for data storage

Label Setting mount point For learning ‘/’ is enough. (Not so good for practical using, unless all other things are on other machines)

Label Then we have two labels for meet minimal requirement

Label S = Toggle SoftUpdates (something like journaling) http://en.wikipedia.org/wiki/Soft_updates http://www.mckusick.com/softdep/

Distributions

Distributions Minimum: base and kernel Also be good: src and ports

Distributions - kernel SMP

Media - CD/DVD

Media - FTP Passive Mode: Server opens the port and let client to connect to. (recommended)

Commit Just do it!

Last Chance! We can take no responsibility for lost disk contents! Don’t forget backup!

Installing…

Configuration Root Password User Management Time Zone Networking

Root Password Or your computer will be cracked barely by hitting one [Enter]

User Management Create a user different than root for remote login

User Management For administration user, “staff” is a good group. If you want to become root, be sure you are in “wheel” group.

Time Zone Asia -> Taiwan Is BIOS time UTC? No. CST? Yes.

Network Services Interface sshd

Network Services - Interface DHCP? IPv6?

Network Services - sshd Open a way for remote login

Done!

Last Step… Be sure to remove booting media. You would not want restart whole process again… Finally, reboot and enjoy!

Other Installers Finstall http://sourceforge.net/projects/finstall/

Exercise 1 – Keeping update - build world and kernel

CVS Tags Branch Tags Release Tags HEAD (.) (-CURRENT) RELENG_7 (-STABLE) RELENG_7_0 (-RELEASE) RELENG_7_0_BP Release Tags RELENG_7_0_0_RELEASE http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvs-tags.html

CVSup Configuration File /usr/share/examples/cvsup/ standard-supfile *default host=cvsup.tw.FreeBSD.org *default base=/var/db *default prefix=/usr *default release=cvs tag=RELENG_7_0 *default delete use-rel-suffix csup <supfile> csup(1)

Make configuration file /etc/make.conf: SUP_UPDATE= yes SUP= /usr/bin/csup SUPFLAGS= -L 2 SUPFILE= /usr/local/etc/src-supfile PORTSSUPFILE=/usr/local/etc/ports-supfile KERNCONF= SABSD CPUTYPE= core2 /usr/share/examples/etc/make.conf /usr/share/mk/bsd.cpu.mk

Make configuration file (advanced) NO_CLEANDIR=yes NO_CLEAN=yes NO_KERNELCLEAN= yes #NO_MODULES= yes #MODULES_WITH_WORLD= true NO_PORTSUPDATE= yes Use these options carefully! /usr/src/Makefile.inc1

Steps cd /usr/src make update mergemaster -p (Pre-buildworld mode) make buildworld make kernel (buildkernel, installkernel) (reboot and boot in single user mode) make installworld mergemaster (or mergemaster -Ui) (make check-old, make delete-old) reboot /usr/src/Makefile, mergemaster(8)

Kernel configuration file Kernel configure file cd /usr/src/sys/{i386,amd64}/conf/ “LINT” make LINT Make your own kernel configuration file cp GENERIC “YOUR-KERNEL-NAME” Edit your configuration file Edit /etc/make.conf

Parallel make -jN N: how many parallel process Not useable in ports

Reboot & Check Reboot and enjoy it # reboot Check # uname -a

Handbook! Chapter 8 Configuring the FreeBSD Kernel http://www.freebsd.org/doc/en/books/handbook/kernelconfig.html 23.4 Rebuilding “world” http://www.freebsd.org/doc/en/books/handbook/makeworld.html

If Something Goes Wrong Boot from old kernel “6. Escape to loader prompt” Boot /boot/kernel.old/kernel cd /boot cp -R kernel.old kernel.ok rm -fr kernel mv kernel.old krenel

Handbook! 8.7 If Something Goes Wrong http://www.freebsd.org/doc/en/books/handbook/kernelconfig-trouble.html

Exercise 2 – Make FreeBSD more useable - Install 3rd party software

Install software Use the Source! Tar ball tar xzvf certain-source.tar.gz ./configure make; make install

Install software Package Ports Pre-built ports pkg_add, pkg_delete, pkg_deinstall, pkg_info, pkg_version Ports cd /usr/ports, make search, make install clean ports/ports-mgmt/portupgrade portinstall, portupgrade, portversion /usr/local/etc/pkgtools.conf Ports/ports-mgmt/portmaster No body uses packages on CD

CVSup Configuration File /usr/share/examples/cvsup/ ports-supfile *default host=cvsup.tw.FreeBSD.org *default base=/var/db *default prefix=/usr *default release=cvs tag=. *default delete use-rel-suffix

Try to use ports Try to install some software, such as: vim mutt wget w3m Perl, Python Ruby