SA-NA Junction. FreeBSD Branches/Tags Three parallel development branches: -RELEASE Latest Release version 7.0 January 2009, 6.3 November 2008

Slides:



Advertisements
Similar presentations
Drivers and the kernel1-1 Drivers and the kernel UNIX system has three layers: m The hardware m The operating system kernel m The user-level programs Kernel.
Advertisements

VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
MCITP Guide to Microsoft Windows Server 2008, Server Administration (Exam #70-646) Chapter 2 Installing Windows Server 2008.
 Two technologies › Packages › Ports  Packages › contains pre-compiled copies of all the commands for the application, as well as any configuration.
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.
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.
Installing Applications Chia-Hung Tsai. Computer Center, CS, NCTU 2 Overview  Two technologies Packages Ports  Packages contains pre-compiled copies.
Hands-On Microsoft Windows Server 2003 Chapter 2 Installing Windows Server 2003, Standard Edition.
Cambodia-India Entrepreneurship Development Centre - : :.... :-:-
Installing software on personal computer
Installation Ubuntu for Libraries. Step 1: Download Head on to Pick Ubuntu LTS; just click the big orange.
How to Install Windows 7.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
Installing Linux Redhat: A how to guide in installing and configuring Redhat 6.2.
PacNOG 6: Nadi, Fiji Installing Ubuntu Server 9.04 Hervey Allen Network Startup Resource Center.
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.
Ashita Srivastava ISM High Five Corporations Chain of fast food restaurants Using Windows XP for clients and Windows Server 2008 Needs a robust.
Fundamentals of Networking Discovery 1, Chapter 2 Operating Systems.
2/12/2003 Lecture 2 Computer System Administration Lecture 2 Setup and Installation Irix & FreeBSD.
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 15 Installing and Using Windows XP Professional.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
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.
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.
Home Media Network Hard Drive Training for Update to 2.0 By Erik Collett Revised for Firmware Update.
Please Note: Information contained in this document is considered LENOVO CONFIDENTIAL For Lenovo Internal Use Only Do Not Copy or Distribute!! For Lenovo.
W2K Server Installation It is very important that before you begin to install Windows 2000 Server, you must prepare for the installation by gathering specific.
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.
Installation Overview Lab#2 1Hanin Abdulrahman. Installing Ubuntu Linux is the process of copying operating system files from a CD, DVD, or USB flash.
Japan UNIX Society September 18, 2002 FreeBSD Release Engineering Murray Stokely FreeBSD Mall, Inc.
Installation and Upgrade Campus-Booster ID : **XXXXX Copyright © SUPINFO. All rights reserved Solaris 10 installation.
O’Reilly Open Source Con October 19, 2005 FreeBSD Release Engineering Murray Stokely
Keeping Up-to-date AfNOG X Cairo, Egypt. Recap on FreeBSD design Distribution includes kernel, and some user-land binaries (bind, shells, network tools,
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.
Apache, MySQL and PHP Installation and Configuration Chapter 2 MySQL Installation and Configuration.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop V Files and the File System Part B – File System.
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.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
FreeBSD. Computer Center, CS, NCTU 2 Outline  FreeBSD version 8.1-RELEASE  Installing FreeBSD From CD-ROM  Build world and kernel Update source Rebuild.
Installing Applications in FreeBSD lctseng. Computer Center, CS, NCTU 2 Before we start  Permission issue root: the super user Like administrator in.
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.
Installing Applications in FreeBSD. Computer Center, CS, NCTU 2 Install software  Package Pre-built rpm, yum, dpkg, … FreeBSD: pkg_add, pkg_delete, pkg_info.
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.
BSDCon Europe November 11, 2001 FreeBSD Release Engineering Murray Stokely Wind River Systems
Linux Introduction Linux was developed in the early 1990’s by Linus Torvald computer science student at the University of Helsinki Linux is distributed.
FreeBSD ports & packages. FreeBSD ports & packages - overview Different UNIX distributions use differents package systems for distributing software Debian.
Updating FreeBSD Unix System Administration. Objectives At the end of this session you should be able to: 1. Understand the differences between the CURRENT.
Installing Applications in FreeBSD
Homework #01 FreeBSD Installation
Guide to Linux Installation and Administration, 2e
FreeBSD.
5.0 : Windows Operating System
Drivers and the kernel UNIX system has three layers: Kernel
Keeping Up-to-date AfNOG X Cairo, Egypt.
Post Install Configuration FreeBSD
FreeBSD ports & packages
Presentation transcript:

SA-NA Junction

FreeBSD Branches/Tags Three parallel development branches: -RELEASE Latest Release version 7.0 January 2009, 6.3 November STABLE: Tested new features and bug fixes ABI-compatibility MFC: Merge From Current -CURRENT: Working space for FreeBSD developers Current version 8.0-CURRENT 2

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 (0, 1, 2…) -RELEASE -STABLE -CURRENT Choosing the FreeBSD Version That Is Right For You: 3

FreeBSD Development Branches Simultaneous parallel development Divergence based on feature maturity “MFC” merges changes from CURRENT to STABLE branches 4

FreeBSD Release Cycle Most of the tome open development Release cycle on STABLE branches Code slush Code freeze Beta series, branching (-BETA) Release candidate series (-RC) Release (-RELEASE) Errata/Security advisories Big "dot zero" release less frequently 5

FreeBSD Release Engineering Release Engineering Information Upcoming Release Schedule To be defined FreeBSD 7.2 June 2009 FreeBSD 8.0 Code-Freeze Status BranchStatusContactNotes HEADOpenCommittersActive development branch for 8-CURRENT. RELENG_7OpenCommittersDevelopment branch for 7- STABLE. 7.1 supported errata fix branch. 6.2 errata fix branch (not officially supported). RELENG_5OpenCommittersMaintenance branch for 5- STABLE (not officially supported). 6

Documentation Handbook Chinese resources Wiki 7

Getting FreeBSD Taiwan Official Mirror Site ftp.tw.FreeBSD.org ftp://FreeBSD.cs.nctu.edu.tw FTP site layout pub/ FreeBSD/ ISO-IMAGES-*/ (linked to ISO-IMAGES under release/ ) branches/ 7.0-stable/ releases/ amd64/ i386/ 7.1-RELEASE/ ISO-IMAGES/  7.1/ 7.1-RELEASE- I 386- DISC 1. ISO 8

Booting 9

Booting… Just press Enter “loader prompt”: some custom/special settings Ex: loading modules, loader tunables 10

Country Selection Just use default or… 11

Country - Taiwan This is loving Taiwan! 12

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

Sysinstall Main Menu Being experts! 14

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

Options Sometimes you can change "Release Name“ Leave default is enough Only change things when you know what you're doing 16

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

Partition Size of the partition Default value: entire free space 18

Partition FreeBSD's magic number 19

Partition Partition hard disk as only one partition 20

Partition S = Set bootable 21

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

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

Label C = Create D = Delete Q = Finish 24

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

Label Set to be used for swap Swap spaces can be distributed on different disks Good practice when you have more than one disk 26

Label Default is all that remained… 27

Label File system type, for data storage 28

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

Label Then we have two labels for meet minimal requirement 30

Label S = Toggle SoftUpdates (something like journaling)

Distributions 32

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

Distributions - kernel SMP 34

Media - CD/DVD 35

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

Commit Just do it! 37

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

Installing… 39

Configuration Root Password User Management Time Zone Networking 40

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

User Management Create a user different than root for remote login 42

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

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

Network Services Interface sshd 45

Network Services - Interface DHCP? IPv6? 46

Network Services - sshd Open a way for remote login 47

Done! 48

Last Step… Be sure to remove booting media. Finally, reboot and enjoy! 49

Keeping Updating -build world and kernel

CVS Tags Branch Tags HEAD (.) (-CURRENT) RELENG_7 (-STABLE) RELENG_7_1 (-RELEASE) RELENG_7_1_BP Release Tags RELENG_7_1_0_RELEASE 51

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_1 *default delete use-rel-suffix csup csup(1) 52

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 53

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 54

Steps (Read /usr/src/UPDATING) cd /usr/src make update mergemaster -p (Pre-buildworld mode) Make (-s) (-j N ) buildworld make (-s) (-j N ) 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) 55

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 56

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

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 58

Handbook! Chapter 8 Configuring the FreeBSD Kernel config.html 23.4 Rebuilding "world" world.html 8.7 If Something Goes Wrong config-trouble.html 59

Make FreeBSD more useable -Install 3rd party software

FreeBSD ports/package Package 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 61

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 62

Updating Ports Tree Update your ports tree every time you want to install/upgrading software Read /usr/ports/UPDATING CVSup csup cd /usr/ports && \ make update && \ make fetchindex 63

portsnap /etc/portsnap.conf portsnap.freebsd.org -> portsnap.tw.freebsd.org first time portsnap fetch extract update portsnap fetch update portsnap(8) 64

Ports system Find your application cd /usr/ports make search name=program name make search key=string change to the directory for the port you want to install Type "make install clean" to install your application make make install make clean /usr/ports/Mk/bsd.port.mk "Default targets and their behaviors" 65

Package System pkg_add(1) pkg_add pkg_name # pkg_add lsof tgz pkg_add -r pkg_name If you don't have a source of local packages If you are using FreeBSD-CURRENT or FreeBSD-STABLE, pkg_add will download the latest version of your application If your are using FreeBSD-RELEASE, it will grab the version of the package that was built with your release PACKAGESITE environment variable 66

pkg_info(1) pkg_version(1) pkg_delete(1) # pkg_delete xchat x:~ -lwhsu- pkg_info adns-1.4 Easy to use, asynchronous-capable DNS client library and ut amap-5.2 Application mapper apache-2.2.6_1 Version 2.2 of Apache web server with prefork MPM. apr-gdbm-db _1 The Apache Group's Portability Library autoconf-2.61_2 Automatically configure source code on many Un*x platforms x:~ -lwhsu- pkg_version -IvL = adns-1.4 < needs updating (index has 1.4_1) apache-2.2.6_1 < needs updating (index has 2.2.9) apr-gdbm-db _1 < needs updating (index has ) autoconf-2.61_2 < needs updating (index has 2.62) Managing Packages

More port utilities All under "ports-mgmt" catalog Search ports Psearch Delete unnecessary ports pkg_cutleaves pkg_rmleaves Upgrading portsupgrade Portmaster Security portaudit 68

Miscellaneous 69

__FreeBSD_version values /usr/src/sys/sys/param.h handbook/freebsd-versions.html /* * __FreeBSD_version numbers are documented in the Porter's Handbook. * If you bump the version for any reason, you should update the documentation * there. * Currently this lives here: * * doc/en_US.ISO8859-1/books/porters-handbook/book.sgml * * scheme is: Rxx * 'R' is 0 if release branch or x.0-CURRENT before RELENG_*_0 * is created, otherwise 1. */ #undef __FreeBSD_version #define __FreeBSD_version /* Master, propagated to newvers */ 70

Maintenance Root Mails Daily run output Security run output packages with security vulnerabilities Monthly run output Read mailing-lists -announce -stable -ports -cvs -svn 71