FreeBSD Introduction Joel Jaeggli rehashed for pacnog 2006.

Slides:



Advertisements
Similar presentations
Static Routing Exercise AFNOG 2003/ Track 2 # 1 Static Routing Exercise u Unix network interface configuration u Cisco network interface configuration.
Advertisements

Static Routing Exercise. What will the exercise involve?  Unix network interface configuration  Cisco network interface configuration  Static routes.
DHCP -Ameeta and Haripriya -cmsc 691x. DHCP ► Dynamic Host Configuration Protocol ► It controls vital networking parameters of hosts with the help of.
LinuxChix Africa UNIX BASICS. To r00t or not to r00t ● Unix security is (in most cases) binary. Either you are root or you are not. – Effects on permissions.
Linux+ Guide to Linux Certification, Second Edition Chapter 14 Network Configuration.
Linux Shell. 2 Linux Command-Line Interface ■ Linux shells: A shell is a command interpreter that allows you to type commands from the keyboard to interact.
Telnet/SSH: Connecting to Hosts Internet Technology1.
Linux Filesystem Management
Computation for Physics 計算物理概論 Introduction to Linux.
ITI-481: Unix Administration Meeting 3. Today’s Agenda Hands-on exercises with booting and software installation. Account Management Basic Network Configuration.
1 FreeBSD Installation ISOC/AfNOG Michuki Mwangi (Original materials by Hervey Allen – NSRC)
Linux+ Guide to Linux Certification, Second Edition Chapter 14 Network Configuration.
Linux Services Muhammad Amer. 2 xinetd Programs  In computer networking, xinetd, the eXtended InterNET Daemon, is an open-source super-server daemon.
Basic Router Configuration 1.1 Global configuration Cisco allows us to configure the router to support various protocols and interfaces. The router stores.
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 13 FTP and Telnet.
Static Routing Exercise
PacNOG 6: Nadi, Fiji Terminal and Console Access Hervey Allen Network Startup Resource Center.
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.
Networking in Linux. ♦ Introduction A computer network is defined as a number of systems that are connected to each other and exchange information across.
Static Routing Exercise Mark Tinka & Isatou Jah. What will the exercise involve?  Unix network interface configuration  Cisco network interface configuration.
SCSC 455 Computer Security Chapter 3 User Security.
1 FreeBSD Installation AFNOG Chix 2011 Blantyre, Malawi 31 st Oct - 4 th Nov 2011 Dorcas Muthoni and Evelyn Namara.
Installing Applications in FreeBSD lctseng. Computer Center, CS, NCTU 2 Before we start  Permission issue root: the super user Like administrator in.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
Post Install Configuration FreeBSD SANOG 9 January 14, 2007 Colombo, Sri Lanka Hervey Allen.
Using Networks. Assignment Issues find syntax Permissions HW4 3c /proc vs /tmp vs /var.
Chapter 7: Using Network Clients The Complete Guide To Linux System Administration.
PRESENTED BY ALI NASIR BITF13M040 AMMAR HAIDER BITF13M016 SHOIAB BAJWA BITF13M040 AKHTAR YOUNAS BITF13M019.
Building programs LinuxChix-KE. What happens in your CPU? ● It executes a small set of instructions called "machine code" ● Each instruction is just a.
Using Linux Kaya Oğuz Room: 310.
FreeBSD ports & packages. FreeBSD ports & packages - overview Different UNIX distributions use differents package systems for distributing software Debian.
SECURE LAB: CREATING A CISCO 3550 VLSM NETWORK
Installing Applications in FreeBSD
Operating System Kernel Compilation
Ssh: secure shell.
Lab 05 Firewalls.
slides created by Marty Stepp, modified by Josh Goodwin
Chapter 2: Configure a Network Operating System
NTP, Syslog & Secure Shell
LINUX ADMINISTRATION
FTP Lecture supp.
Part 3 – Remote Connection, File Transfer, Remote Environments
Managing Software.
FTP - File Transfer Protocol
Unix Systems Administration
Introduction to Networking
Introduction to Networking
Telnet/SSH Connecting to Hosts Internet Technology.
Operating System Kernel Compilation
Chapter 2: Configure a Network Operating System
CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller.
Hardware Appliance Installation and Configuration
Lab 7 - Topics Establishing SSH Connection Install SSH Configure SSH
Building an Internet of Things Device
slides created by Marty Stepp, modified by Jessica Miller
CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller.
slides created by Marty Stepp, modified by Jessica Miller
Post Install Configuration FreeBSD
Linux and TCP/IP Networking
CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller.
Introduction to Cisco IOS -(Internetwork Operating System)
Lecture9: Embedded Network Operating System: cisco IOS
CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller.
FreeBSD ports & packages
CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller.
Linux Filesystem Management
Chapter 7 Network Applications
1.3 Given a scenario, apply appropriate Microsoft command line tools
Lecture9: Embedded Network Operating System: cisco IOS
Presentation transcript:

FreeBSD Introduction Joel Jaeggli rehashed for pacnog 2006

Account Information ● Account: root ● Password given in class ● To create an account for yourself you can use adduser or sysinstall. ● or: ● pw useradd username -m -G wheel -s /bin/csh – add a password by typing: ● passwd username

Post-installation Configuration ● There is a menu-based system you can use for configuring the system - setting IP address, configuring hostname, adding further distribution sets and packages, adding users etc: – # sysinstall ● However, you may find that some of this is quicker to do from the command line, some of which is explained below.

SSH and SCP instead of telnet and FTP ● From now on, use SSH and SCP instead of Telnet and FTP. ● Telnet and FTP send your passwords and sessions out using clear text - no encryption. This is bad and a major security hole. ● We will, however, use FTP for anonynmous user sessions to get software. This is because with anonymous ftp your password is your address. ● If supported, you can use SFTP as well.

pkg_add, adding packages and ports by hand ● Many third-party software is supplied in ready-to-use form, but is not in the base system. This is – (a) to keep the base system smaller, and – (b) because of different licensing terms. (The FreeBSD license is actually less restrictive than the GNU/GPL license under which a lot of open-source software is distributed) ● All this third-party software installs under /usr/local. ● You can use sysinstall to add packages, but it is quicker to use 'pkg_add' from the command line.

pkg_add continued ● pkg_add -r ftp://ftp.pacnog2.dnsdojo.net/freebsd/6.1/packa ges/All/bash _1.tbz ftp://ftp.pacnog2.dnsdojo.net/freebsd/6.1/packa ges/All/bash _1.tbz ● You can also compile packages directly from the source code, if you have the "ports" distribution installed. The ports system automatically fetches the source file via FTP or anonCVS, applies any FreeBSD- specific patches, and compiles and installs the code. ● A "package" is really just a "port" which has been compiled. ● # cd /usr/ports/shells/bash ● # make ● # make install ● # make clean

pkg_add part 3 ● You can query installed packages, or package.tbz files, using pkg_info. ● pkg_info -aI-- list all installed packages (one line per package) ● pkg_info emacs-21.3_3-- description of package ● pkg_info -L emacs-21.3_3-- list all files in package ● man pkg_info-- read this for more details

Network Information ● ifconfig – This is the command you use to interactively start and stop network interfaces and to define how they run. ● rc.conf ● The main system configuration file is /etc/rc.conf. It is in this file that you configure the hostname, IP address for each interface, and so on. Changes you make in here won't take effect until you reboot. – defaultrouter=" " – hostname="host1.t1.ws.afnog.org" – ifconfig_ed0="inet netmask "

Stop and Start the Network ● ifconfig – This displays your network interface status. Notice that "sis0" (Fast Ethernet) has an IP address assigned. Not that lo0 as an address as well. This is your loopback device. ● To bring sis0 down type: – ifconfig sis0 down ● Now to bring it back up just type: – ifconfig sis0 up ● There is quite a bit more to ifconfig, you can type "man ifconfig" for more information.

A few differences from Linux ● Some key differences between Linux and FreeBSD center around the naming of devices and some of the configuration files: ● Linux: eth0 = first ethernet device (of any type) ● FreeBSD: sis0 = first SIS900 10/100 ethernet, ed0 = first NE2000 device, ep0 = first 3Com 3c509, etc. ● Linux: COM1 serial port = /dev/ttyS0 ● FreeBSD: COM1 serial port = /dev/cuaa0 (call out) or /dev/ttyd0 (call in) ● Linux: /etc/inittab configures incoming serial connections ● FreeBSD: /etc/ttys configures incoming serial connections

A quick exercise ● Install bash from packages using a url: ● pkg_add -r ftp://ftp.pacnog2.dnsdojo.net/freebsd/6.1/p ackages/All/bash _1.tbz ● As root type: ● chsh ● Using the editor change the root shell from csh to bash ● Then, some changes we made to the profile will work properly...

Adding a service ● Now, how about a adding service ● pkg_add -r apache-2.2.0_7.tbz ● or if you haven't switched to bash ● pkg_add -r ftp://ftp.pacnog2.dnsdojo.net/freebsd/6.1/p ackages/All/apache-2.2.0_7.tbz ● follow the post install instructions.

Note, about the root user. ● note that root's environment in FreeBSD is substantially different than the default for most users so it's a good idea when suing up to do: ● su - ● rather than just: ● su