Uniquely FreeBSD ccTLD Amman November 26, 2007 Amman, Jordan Hervey Allen.

Slides:



Advertisements
Similar presentations
Chapter 9: Understanding System Initialization The Complete Guide To Linux System Administration.
Advertisements

Booting and Shutting Down the UNIX Operating System Arcadio A. Sincero Jr. 6/6/2001 CMSC 691X, Section 6080.
Linux can be generally divided into four major components: 1. KERNEL – OS, ultimate boss The kernel is the core program that runs programs and manages.
Linux+ Guide to Linux Certification, Second Edition
'08 Rabat Why are we using FreeBSD? Scaleable Services Workshop AfNOG 2008 Rabat, Morocco slides by Hervey Allen presented by Joe Abley.
Linux+ Guide to Linux Certification, Second Edition Chapter 3 Linux Installation and Usage.
1 Web Server Administration Chapter 3 Installing the Server.
CMPTR1 CHAPTER 3 COMPUTER SOFTWARE Application Software – The programs/software/apps that we run to do things like word processing, web browsing, and games.
GNU/Linux Filesystem 1 st AUT GNU/Linux Festival Computer Engineering & IT Department Bahador Bakhshi.
Computer Forensics Principles and Practices by Volonino, Anzaldua, and Godwin Chapter 6: Operating Systems and Data Transmission Basics for Digital Investigations.
Guide To UNIX Using Linux Third Edition
Linux Install. Resources Guide to Linux Installation and Administration, Nicholas Wells, Course Technology, 2000.
Overview Basic functions Features Installation: Windows host and Linux host.
Installing software on personal computer
Linux Operations and Administration
1 Introduction to Tool chains. 2 Tool chain for the Sitara Family (but it is true for other ARM based devices as well) A tool chain is a collection of.
UNIX ™ /Linux Overview Unix/IP Preparation Course June 9, 2013 Lusaka, Zambia.
Linux Operations and Administration
UNIX ™ /Linux Overview Unix/IP Preparation Course May 6, 2012 Serrekunda, The Gambia.
Linux+ Guide to Linux Certification, Third Edition
CompTIA Linux+ Certification
Fundamentals of Networking Discovery 1, Chapter 2 Operating Systems.
1 Web Server Administration Chapter 3 Installing the Server.
Introduction to Linux Installing Linux User accounts and management Linux’s file system.
Booting and boot levels
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
4 1 Operating System Activities  An operating system is a type of system software that acts as the master controller for all activities that take place.
1 ITSK 2611 Welcome. 2 Operating System 3 What is an OS Resource Manager –Disk –Memory –CPU Device Manager –Printers –Video Card –Sound Card Utility.
Chapter 2 Installation Overview. Planning the Installation Questions: –Size of partitions –Where to put partitions –Which software packages to install.
workshop eugene, oregon UNIX ™ /Linux Overview Unix/IP Preparation Course July 19, 2009 Eugene, Oregon, USA
CIS 191 – Lesson 2 System Administration. CIS 191 – Lesson 2 System Architecture Component Architecture –The OS provides the simple components from which.
UNIX Concepts AfNOG 2009 May 11, 2009 Cairo, Egypt Hervey Allen presenting a presentation morphed from... Me, Brian Candler, Dorcas Muthoni & Phil Regnauld.
Introduction to UNIX AfNOG X May 2009 Cairo, Egypt.
1 Web Server Administration Chapter 3 Installing the Server.
Working with Ubuntu Linux Track 2 Workshop June 2010 Pago Pago, American Samoa.
FreeBSD Overview Comparison with Linux SANOG VI IP Services Workshop July 16, 2005 Thimphu, Bhuan Hervey Allen.
AfNOG 2006 Track E0: Unix System Administration. Welcome! Who are we? Timetable and administrivia Objectives for the week  Learn your way around Unix/FreeBSD.
1 FreeBSD Installation ISOC/AfNOG Michuki Mwangi (Original materials by Hervey Allen – NSRC)
Guide to Linux Installation and Administration, 2e1 Chapter 2 Planning Your System.
UNIX ™ /Linux Overview Unix/IP Preparation Course May 23, 2010 Kigali, Rwanda.
Installation Overview Lab#2 1Hanin Abdulrahman. Installing Ubuntu Linux is the process of copying operating system files from a CD, DVD, or USB flash.
UNIX ™ /Linux Overview Unix/Linux Preparation Course June 27, 2010 Pago Pago, American Samoa.
UNIX BootCamp AfNOG IX May 2008 Rabat, Morocco. BootCamp Summary Time Table.
Linux Administration. Pre-Install Different distributions –Redhat, Caldera, mandrake, SuSE, FreeBSD Redhat Server Install –Check HCL –Significant issues.
A Tour of UNIX SANOG 9 January 14, 2007 Colombo, Sri Lanka Hervey Allen Thanks to Brian Candler & Phil Regnauld.
UNIX (Linux) Introduction Module-1. OS Kernel In computing, the kernel is the central component of OS. It is a bridge between applications and the actual.
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.
FreeBSD Overview Comparison with Linux ccTLD Workshop September 12, 2005 Nairobi, Kenya Hervey Allen.
1 FreeBSD Installation AFNOG X Cairo, Egypt May 2009 Hervey Allen.
UNIX ™ /Linux Overview Unix/IP Preparation Course May 29, 2011 Dar es Salaam, Tanzania.
UNIX™/Linux Overview Unix/LINUX Intro Instructors: Reasons:
Chapter 8: Installing Linux The Complete Guide To Linux System Administration.
UNIX Concepts AfNOG 2008 May 26, 2008 Rabat, Morocco Dorcas Muthoni Kenya Thanks to Hervey Allen, Brian Candler & Phil Regnauld.
Introduction to Unix AfNOG 2006 Workshop May 7, 2006 Nairobi, Kenya Hervey Allen Phil Regnauld.
2: Operating Systems Networking for Home & Small Business.
UNIX Filesystem and Hierarchy AfNOG 2008 Workshop May Rabat, Morocco.
Introduction to Linux PacNOG5 June 2009 Papeete, French Polynesia.
Building programs LinuxChix-KE. What happens in your CPU? ● It executes a small set of instructions called "machine code" ● Each instruction is just a.
Introduction to Unix AfNOG 2007 Workshop April 22, Abuja, Nigeria Hervey Allen Phil Regnauld.
FreeBSD ports & packages. FreeBSD ports & packages - overview Different UNIX distributions use differents package systems for distributing software Debian.
Chapter 8 Unix & Linux.
Guide to Linux Installation and Administration, 2e
Introduction to UNIX AfNOG X May 2009 Cairo, Egypt Instructors:
Chapter 6 File Systems CSNB113 SYSTEM ADMINISTRATION
UNIX Filesystem and Hierarchy
ccTLD Amman November 26, 2007 Amman, Jordan Hervey Allen
Structure of Unix OS.
Booting Up 15-Nov-18 boot.ppt.
FreeBSD ports & packages
Presentation transcript:

Uniquely FreeBSD ccTLD Amman November 26, 2007 Amman, Jordan Hervey Allen

Amman This is YOUR Workshop Stop us if we're speaking too fast Stop us if you don't understand anything Please ask lots of questions – you might wake up your neighbor!

Amman Why Did we Choose FreeBSD? Our survey shows you are using Solaris and Linux. FreeBSD is an excellent option as well. If we teach Solaris or Linux we'll pick the wrong option. So, is it any good? Yes. Here's a bunch of reasons why we believe this to be true:

Amman Is FreeBSD Any Good? Check out Four of the top five most stable web sites run FreeBSD. Very stable under heavy load, particularly under heavy TCP/IP traffic loads. A very mature and copied TCP/IP stack. FreeBSD is a UNIX variant and has been around since Community supported project that is not going commercial. Software distribution is under the BSD license, which is less strict than GPL.

Amman Is FreeBSD Any Good? Excellent packaging system. Multiple firewall packages built-in (PF, IPF, IPFW). Single source tree with kernel and base system. Scalability features are standard, such as indexed pwd.db. Debugging and tracing tools. Ability to gather fine-grained statistics inherently supported:  systat, gstat, iostat, di, swapinfo, disklabel. Many root servers run/ran FreeBSD. Much of this is available in Linux, but only recently.

Amman Is FreeBSD Any Good? Heavy emphasis on Enterprise Level functionality, such as: New file system support, such as zfs. GEOM: Modular Disk Transformation Framework. iSCSI support. ARM support coming. DTrace coming to FreeBSD soon (Solaris debugging tool)‏ General multiprocessors support improvements. FreeBSD 7 now exceeds current Linux DB performance. FreeBSD Discretionary Access Control for security auditing (Handbook chapter 17).

Amman Just How Different is it? If you use Linux or any Unix flavor, then using FreeBSD should not be hard. Releases are labeled as:  Production (6.2 and 5.5)‏  Stable (already tested, but not committed)‏  Current (“work-in-progress” or “bleeding edge”)‏ See

Amman Some Differences Installation Booting Configuring the kernel OS upgrades Packaging system Configuration of services, devices and system Naming conventions for devices Services (separated, must be enabled to start)‏ Unified source tree Only two run-levels Disk divisioning

Amman Some Differences Cont. Multiple firewall utilities built in to kernel 17,500+ packages & can run Linux software The BSD License Different file system Directory paths may differ Bash not available by default Runs on lots of hardware The FreeBSD “pedigree” “Sparky” vs. “Tux”

Amman Installation (The Differences)‏ Installer runs from many mediums Is console-based (no GUI available)‏ Is counter-intuitive (in this author's opinion)‏ Is really fast once you get used to it You won't have to run it, but we'll give you examples...

Amman Configuring the Kernel (The Differences)‏ The recipe (included with your materials): # cd /usr/src/sys/i386/conf # cp GENERIC /root/ccTLD # ln -s /root/ccTLD ccTLD # vi ccTLD Make some changes. Read /usr/share/doc/handbook/kernelconfig.html and /usr/src/sys/i386/conf/NOTES for details. # cd /usr/src/sys # make KERNCONF=ccTLD # make install KERNCONF=ccTLD Reboot and test.

Amman OS Upgrades (The Differences)‏ You can upgrade your OS version several ways: 1) Binary upgrade using sysinstall. 2) Complete re-install. 3) Source upgrade using make world. Source upgrade is very cool. See Rebuilding “world” in the Handbook (23.4).

Amman Packaging System (The Differences)‏ The FreeBSD package system (pkg). A package is built from a port (/usr/ports). You can install via source or from a package. The end-result is the same. Packages & Ports install the same. Both methods resolve dependencies. You can keep your ports collection “up-to- date” (does not track to your OS version).  Good tools for doing this (portupgrade)‏ pkg has man components.  pkg_add, pkg_delete, pkg_info, etc...

Amman Ports Collection (17,800+) (The Differences)‏ There are more ports than packages. If you keep your local ports collection up-to- date this allows you to obtain the latest versions of software more quickly (in general). You can specify configuration parameters when installing via ports vs. packages. You can create dependency issues with ports, ports versions, OS version and packages.

Amman Configuration (The Differences)‏ Critical difference are: /etc/defaults/rc.conf has your default system configuration. /etc/rc.conf is where you override the defaults. Do not change /etc/defaults/rc.conf. Base service startup scripts are in /etc/rc.d. They must be enabled in /etc/rc.conf to start. Third party service startup scripts are in /usr/local/etc/rc.d. Read the script to see how it starts.

Amman Separation of System & 3 rd Party Services (The Differences)‏ As noted scripts are separated between /etc/rc.d and /usr/local/etc/rc.d. So are the configuration files. Example: Apache (version 2.2) has configuration files here: /usr/local/etc/apache22

Amman Naming Convention of Devices (The Differences)‏ Device names in FreeBSD are based on the device driver name supporting that device. Examples include: /dev/ad0 (IDE drive 1)‏ /dev/ad0s1 (IDE drive 1, slice 1 – see later)‏ /dev/ad0s1a (IDE drive 1, slice 1, partition a)‏ /dev/acd0 (IDE CD-ROM drive)‏ /dev/bge0 (Broadcom gigabit ethernet card 1)‏ /dev/da0 (SCSI drive 1)‏ USB flash drive, e.g. da0, created dynamically

Amman Disk “Partitioning” (The Differences)‏ The MBR contains a table allowing the disk to be divided into (up to) four partitions. Beyond that, you can nominate one partition as an "extended partition" and then further subdivide it into "logical partitions". FreeBSD has its own partitioning system, because Unix predates the PC. FreeBSD recognizes MBR partitions, but calls them "slices" to avoid ambiguity.

Amman FreeBSD partitions (The Differences)‏ Partitions (usually) sit within a slice Partitions called a,b,c,d,e,f,g,h CANNOT use 'c'  for historical reasons, partition 'c' refers to the entire slice By convention, 'a' is root partition and 'b' is swap partition 'swap' is optional... if you dare ;-)‏

Amman Simple partitioning: /dev/ad0 (The Differences)‏ MBR Single slice /dev/ad0s1 ad0s1aad0s1bad0s1d ad0s1e ad0s1f / swap /var/tmp/usr / (root partition) ad0s1a 256MB swap partition ad0s1b ~ 2 x RAM /var ad0s1d 256MB (+)‏ /tmp ad0s1e 256MB /usr ad0s1f rest of disk

Amman 'Auto' partition does this: (The Differences)‏ Small root partition  this will contain everything not in another partition  /boot for kernel, /bin, /sbin etc. A swap partition for virtual memory Small /tmp partition  so users creating temporary files can't fill up your root partition Small'ish /var partition Rest of disk is /usr  Home directories are /usr/home/ Issues?

Amman Two Run Levels (The Differences)‏ Linux users may be used to run-levels 1-5. FreeBSD has single-user mode (1) and multi- user mode. init 1 : takes you to run-level 1. exit : takes you back to multi-user level.

Amman The BSD License (The Differences)‏ GPL: “You can copy, change, charge, but the code must be made publicly and freely available.” BSD: “You can copy, change, charge and the code does not need to be made publicly available.”

Amman No Bash by Default (The Differences)‏ BASH (the Bourne Again SHell) is governed by the GNU GPL license. The FreeBSD Base system distributes under the more permissive BSD license. Thus... BASH is not installed by default. You must add it manually.

Amman The Differences “Sparky” vs. “Tux”

Amman Finding more information Our reference handout man pages  esp. when you know the name of the command  handbook, searchable website / mail archives "The Complete FreeBSD" (O'Reilly)‏ comp.unix.shell FAQ  STFW (Search The Friendly Web)‏

Amman Any questions? ?