Computer Center, CS, NCTU. Outline. FreeBSD version 9.0-RELEASE 9.1-RC1. Installing FreeBSD. From CD-ROM From USB

Similar documents
Computer Center, CS, NCTU. Outline. FreeBSD version 8.2-RELEASE. Installing FreeBSD. From CD-ROM

Computer Center, CS, NCTU. Outline. FreeBSD version 11.1-RELEASE. Installing FreeBSD. From CD-ROM From USB

Outline. Computer Center, CS, NCTU. FreeBSD version. Installing FreeBSD. Build world and kernel. Software installation Appendix 8.

Exercise 1 FreeBSD Installation. Announced Date: 2006/9/20 Due Date: 2005/10/4

Sysinstall main menu. Move the cursor down by using the DOWN-ARROW and select Standard.

PC-SYSINSTALL - A new system installer backend for PC-BSD & FreeBSD. By Kris Moore

Linux+ Guide to Linux Certification, Third Edition. Chapter 2 Linux Installation and Usage

Some Practical Matters. Introduction to Unix. What's Our Goal? Linux!= UNIX

CompTIA Linux+ Guide to Linux Certification Fourth Edition. Chapter 2 Linux Installation and Usage

MODULE 02. Installation

SANOG VI IP Services Workshop: FreeBSD Install

Booting Up and Shutting Down. lctseng / Liang-Chi Tseng

Linux Systems Administration Getting Started with Linux

Embedded Systems Ch 3A Linux Development Environment

LAN Setup Reflection

LAN Setup Reflection. Ask yourself some questions: o Does your VM have the correct IP? o Are you able to ping some locations, internal and external?

Installing VMware vsphere 5.1 Components

INSTALLATION. Security of Information and Communication Systems. Table of contents

Xcalenets Console Setup Guide. Xcalenets Console Setup Guide (Standalone version)

Network Drawing. Computer Specs, I ve used. Installing a Network-Based Intrusion Detection

Welcome to getting started with Ubuntu Server. This System Administrator Manual. guide to be simple to follow, with step by step instructions

CS Fundamentals of Programming II Fall Very Basic UNIX

Pluggable Authentication Module (2) directory. /etc/pam.d. config files with sections. auth authentication functions

GNU/Linux 101. Casey McLaughlin. Research Computing Center Spring Workshop Series 2018

Linux Administration

Southern Maine Community College Information Technology Professor Howard Burpee. Installing Windows Server 2012

Deploying Cisco UCS Central

Lab 0: Intro to running Jupyter Notebook on a Raspberry Pi

Quick Start Guide for Intel FPGA Development Tools on the Microsoft* Azure* Platform

Requirements for ALEPH 500 Installation

FreeBSD Installation ISOC/AfNOG

IBM AIX Operating System Courses

INSTALLATION. Security of Information and Communication Systems

MASSACHUSETTS INSTITUTE OF TECHNOLOGY HAYSTACK OBSERVATORY WESTFORD, MASSACHUSETTS October, 2015

Critical Analysis and last hour guide for RHCSA/RHCE Enterprise 7

Oregon State University School of Electrical Engineering and Computer Science. CS 261 Recitation 1. Spring 2011

Linux Essentials Objectives Topics:

RedHat. Rh202. Redhat Certified Technician on Redhat Enterprise Linux 4 (Labs)

Manually Change Default Gateway Centos Command Line Windows

CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX

CST Algonquin College 2

CA Agile Central Administrator Guide. CA Agile Central On-Premises

Ftp Command Line Manual Windows Username Password Linux

Chapter 02 Linux Installation and Usage

Installation of Fedora 12 with CD

Basic Shell Commands. Bok, Jong Soon

CST8207: GNU/Linux Operating Systems I Lab Nine Disks, Partitions, and File Systems Part 2. Disks, Partitions, and File Systems - Part 2 of 2

CompTIA Linux Course Overview. Prerequisites/Audience. Course Outline. Exam Code: XK0-002 Course Length: 5 Days

INTRODUCTION TO LINUX

Lab E2: bypassing authentication and resetting passwords

Overview of the Cisco NCS Command-Line Interface

Introduction to Linux. Fundamentals of Computer Science

Installation Guide-x86, x86-64

This is Worksheet and Assignment 12. Disks, Partitions, and File Systems

INF322 Operating Systems

UNIX System Administration

Introduction to Linux (Part I) BUPT/QMUL 2018/03/14

Installing caos with Cinch on Floppy Disk

vcenter Server Appliance Configuration Modified on 17 APR 2018 VMware vsphere 6.7 VMware ESXi 6.7 vcenter Server 6.7

The Microdrive and CF card are electrically compatible this means that a CF card reader can be used to program a Microdrive.

Topics. Operating System. What is an Operating System? Let s Get Started! What is an Operating System? Where in the Book are we?

WLM1200-RMTS User s Guide

NETW 110 Lab 4 Using eth0 Configuration Mounting Drives and Devices Page 1

CCNA 1 Chapter 2 v5.0 Exam Answers %

UNIX COMMANDS AND SHELLS. UNIX Programming 2015 Fall by Euiseong Seo

Installing Linux (Chapter 8) Note packet # 4. CSN 115 Operating Systems Ken Mead Genesee Community College. Objectives

ELASTIX HIGH AVAILABILITY (HA) MODULE

File Transfers. Contents

3 INSTALLING WINDOWS XP PROFESSIONAL

Topics. Operating System I. What is an Operating System? Let s Get Started! What is an Operating System? OS History.

ExtraHop Command-line Reference

Installing and Upgrading Cisco Network Registrar Virtual Appliance

The Online Unix Manual

SVProxy3. User Guide

CSDA UNIT I. Introduction to the LAB environment. Practical classes Lab 0. Computer Engineering Degree Computer Engineering.

System Manager Unit (SMU) Hardware Reference

Chapter 2 Operating-System Structures

Setting-up WAN Emulation using WAN-Bridge Live-CD v1.10

FreeBSD Installation

Figure 1 0: AMI Instances

RAP Installation README

Installing Applications in FreeBSD. wengyc

The table below lists the domains measured by this examination and the extent to which they are represented in the examination.

Getting Started Guide. Installation and Setup Instructions. For version Copyright 2009 Code 42 Software, Inc. All rights reserved

FreeBSD Overview Comparison with Linux. Welcome. Class Schedule. Some Practical Matters. Introduction. SANOG VI IP Services Workshop

LENS Server Maintenance Guide JZ 2017/07/28

CS370 Operating Systems

TestOut PC Pro - English 6.0.x COURSE OUTLINE. Modified

Parallel Programming Pre-Assignment. Setting up the Software Environment

Day 1 IT Network Systems Administration Trade 39 WSC 2011 London

Linux Survival Guide

Section G.1.1. Athena Changes to Berkeley 4.3 UNIXTM. 1. Introduction. 2. Kinds of Changes. by Win Treese

Overview LEARN. History of Linux Linux Architecture Linux File System Linux Access Linux Commands File Permission Editors Conclusion and Questions

Configure the Cisco DNA Center Appliance

MiPDF.COM. 3. Which procedure is used to access a Cisco 2960 switch when performing an initial configuration in a secure environment?

Table of Contents. Course Introduction. Table of Contents Getting Started About This Course About CompTIA Certifications. Module 1 / Server Setup

IPBrick - Version 4.2 Installation Manual. iportalmais - Serviços de Internet e Redes, Lda.

User and System Administration

Lab - Connect to a Router for the First Time

alcasar_documentation Documentation

Transcription:

FreeBSD huanghs

Outline FreeBSD version 9.0-RELEASE 9.1-RC1 Installing FreeBSD From CD-ROM From USB 2

FreeBSD Version

4 FreeBSD Branches/Tags Three parallel development branches: -RELEASE Latest Release Version: 9.0 (January, 2012) http://www.freebsd.org/releases/ Upcoming 9.1 (September, 2012) -STABLE http://wiki.freebsd.org/releng/9.1todo Tested new features and bug fixes MFC: Merge From Current -CURRENT Working space for FreeBSD developers Current version: 10-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 PRERELEASE BETA RC RELEASE STABLE CURRENT Choosing the FreeBSD Version That Is Right For You: http://www.freebsd.org/doc/en/articles/version-guide/ 5

FreeBSD Installation

FreeBSD view of Disk (1) MBR Slice 1 (ad0s1) Windows XP (NTFS) Slice 2 (ad0s2) Linux (EXT3FS) Slice 3 (ad0s3) bsdlabel Slice 4 (ad0s4) Extended Partiton ad0s3a ad0s3b ad0s3c ad0s3d / (root) swap 7 D-Disk NTFS Linux Swap ad0s3e /home

FreeBSD View of Disk (2) What is the meaning of ad0s1a Disk name ad: da: IDE, SATA SCSI, usb stick Replace { ad da } by ada, and link to ada s 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 slice defgh: /usr, /home, MBR Slice 1 (/dev/ad0s1) Slice 2 (/dev/ad0s2) Slice 3 (/dev/ad0s3) Slice 4 (/dev/ad0s4) Slice 5 (/dev/ad0s5) Slice 6 (/dev/ad0s6) 8

Knowing Your Hardware CPU 32bit or 64bit Intel AMD Architecture: amd64, i386 (, ia64, pc98, powerpc, sparc64) RAM Size HD Size, amount, SCSI or IDE VGA Brand, ram size Sound Brand Network Interface Card Brand IP Netmask Default gateway Hostname DNS Other Special device pciconf -lv 9

Pre-Installation Tasks One PC or Notebook (don t use Virtual PC!!!) Another Hard Disk or Shrink a Partition on Your Hard Drive (20 G) One IP (no private!!) Network Information IP address Subnet mask Default router IP address domain name of the local network DNS server IP address(es) Prepare the Installation Media ftp://tw.freebsd.org/pub/releases/ 10

bsdinstall (FreeBSD 9) (1) http://www.freebsd.org/doc/handbook/bsdinstall.html 11

bsdinstall (FreeBSD 9) (2) Install Shell Live CD 12

bsdinstall (FreeBSD 9) (3) Setting hostname Ex. xxxsa.cs.nctu.edu.tw 13

bsdinstall (FreeBSD 9) (4) Selecting components to install 14

bsdinstall (FreeBSD 9) (5) Partitioning methods Shell gpart(8) fdisk(8) bsdlabel(8) 15

bsdinstall (FreeBSD 9) (6) Guided Partitioning Select disk Replace { ad da } by ada { ad da } s are linked to ada s How to partition the disk Entire Disk Partition use free space 16

bsdinstall (FreeBSD 9) (7) Guided Partitioning result 17

bsdinstall (FreeBSD 9) (8) Manual Partitioning 18

bsdinstall (FreeBSD 9) (9) Choose a partitioning scheme Master Boot Record (MBR) 4 Primary Partition, 1 Extended Partition, multiple Logical Partition GUID Partition Table (GPT) 128 Partitions per disk DON T use BSD!!! 19

bsdinstall (FreeBSD 9) (10) Add partitions freebsd-boot FreeBSD boot code. This partition must be first on the disk. 20

bsdinstall (FreeBSD 9) (11) Final confirmation 21

bsdinstall (FreeBSD 9) (12) Fetching Checksum Verification Extraction 22

bsdinstall (FreeBSD 9) (13) Post-installation root password Network interfaces Wired Static IPv4 / DHCP / Static IPv6 / SLAAC Wireless DNS Time Zone Services Add users 23

Post-installation Setting the root Password 24

Post-installation Network interfaces 25

Post-installation Configuring IPv4 Networking 26

Post-installation Configuring IPv6 Networking IPv6 Stateless Address Auto configuration (SLAAC) 27

Post-installation Configuring DNS 28

Post-installation Setting the Time Zone 29

Post-installation Selecting Services to Enable 30

Post-installation Enabling Crash Dumps (no) 31

32 Post-installation Add Users Username - huanghs Full name - Cage Huang Uid - User ID. Typically left blank. Login group - The user's group. Typically left. Invite user into other groups? - wheel Login class - Typically left blank for the default. Shell - The interactive shell for this user. CSCC use tcsh. Home directory - The user's home directory. Home directory permissions - The default is usually correct. Use password-based authentication? - Typically "yes". Use an empty password? - Typically "no". Use a random password? - Typically "no". Enter password - The actual password for this user. Enter password again - The password must be typed again for verification. Lock out the account after creation? - Typically "no".

Post-installation Final Configuration 33

FreeBSD Handbook Chapter 3 FreeBSD 9.X and Later http://www.tw.freebsd.org/doc/en/books/handbook/bsdinstall.html Chinese resources http://www.tw.freebsd.org/doc/zh_tw/books/handbook/install.html Chapter 2 Installing FreeBSD 8.X and Earlier 34

Login SSH (Secure Shell) PuTTY: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Chinese Environment: http://www.cs.nctu.edu.tw/help/putty.html 35

Play with Your FreeBSD Useful commands passwd, chsh, chfn, chpass ls ps, top mkdir/rmdir cp/mv/rm write man login/exit/logout/screen Editor: ee, vim, joe, etc. Connecting: ssh/telnet Email reader: mutt, etc. News reader: tin File Transmittion: ftp, ncftp, lftp, scp, wget, curl, etc. Compilers: gcc, g++, javac, etc. Scripting: perl, php, ruby, python etc. 36

Help Yourself man (1) man pages (manual) Contain descriptions of Individual command. % man cp File format. % man rc.local Library routines. % man strcpy 37

Help Yourself man (2) Command % man [section] title % man printf (printf command) % man 3 printf (C Standard printf func.) % man k exit (keyword search) Man pages organization AT&T BSD Contents 1 1 User-Level commands and applications %man man 38 2 2 System calls and kernel error code 3 3 Library calls 4 5 Standard file format 5 7 Miscellaneous files and documents 6 6 Games and demonstrations 7 4 Device Drivers and network protocols 1m 8 System administration commands 9 9 Obscure kernel specs and interfaces

Conventions Syntax of commands: Anything between [ & ] are optional. Anything followed by can be repeated. {a b} you should choose one of them. Example: bork [-x] { on off } filename bork on /etc/hosts bork x off /etc/hosts /etc/passwd bork x /etc/hosts bork -h /etc/hosts X X 39

HOWTO - Shutdown FreeBSD Shutdown shutdown -p now reboot 40