= Session-(1.4) Preparing the Workstation for the Lab / OS Installation = Session-(1.4) Preparing the Workstation for the Lab / OS Installation

Similar documents
Installation Manual InfraManage.NET Installation Instructions for Ubuntu

HOW-TO-GUIDE: demonstrating Fabric Attach using OpenVSwitch

Ubuntu installation alongside windows 8/8.1 and 10

Installation of the OS

Comodo Dome Data Protection Software Version 3.8

CS 716: Introduction to communication networks. Instructor: Sridhar Iyer Demo by: Swati Patil IIT Bombay

ELE409 SPRING2018 LAB0

Title: Demonstrate the linux installation and administration settings.

CIS 76 VLab Pod Setup

Wowza Media Server Pro for Riverbed Steelhead. Installation Guide

INSTALL GUIDE FOR HQPLAYER EMBEDDED (FOR DEBIAN AND UBUNTU CONFIGURATION)

How to Use This Lab Manual

HANDS UP IF YOU DON T HAVE A VM OR IF YOU DON T REMEMBER YOUR PASSWORDS. Or something broke

Appliance Guide. Version 1.0

The mixed environment will have PCs from both environments. Usually this environment uses the Linux server as an SSH, DNS or mail server.

IT 341 Introduction to System Administration Project I Installing Ubuntu Server on a Virtual Machine

SETTING UP SSH FOR YOUR PARALLELLA: A TUTORIAL FOR STUDENTS

Different ways to use Kon-Boot

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?

Ubuntu installation alongside windows 8/8.1 and 10

Unit- 5. Linux Systems

Using RDP with Azure Linux Virtual Machines

Lab E2: bypassing authentication and resetting passwords

Manually Change Default Gateway Centos Command Line Windows

Step by Step Single KVM/Virtual Ubuntu Server 14.04

How to Install a DHCP Server in Ubuntu and Debian

This document guides the user through: 1. Setting up and configuring networking for the BeagleBone black or green with the host.

dnsmasq configuration

PROBE INSTALLATION AND CONFIGURATION GUIDE RELEASE 5.1

Endian Proxy / Firewall

LAN Setup Reflection

Cisco Modeling Labs OVA Installation

The TinyHPC Cluster. Mukarram Ahmad. Abstract

Installation of Lubuntu Linux, Koha, DSpace and other software using LibLiveCD

Hawk Server for Linux. Installation Guide. Beta Version MHInvent Limited. All rights reserved.

Linux. Computer networks - Administration 1DV202. fredag 30 mars 12

PiCloud. Building owncloud on a Raspberry PI

Manual Install Ubuntu Alongside Windows 7 Using Usb

WELCOME TO SS-E AFNOG NAIROBI, KENYA. Scalable Services English

How To Configure Grub In Windows 7 Ftp Server At Home

Production Installation and Configuration. Openfiler NSA

CIS 191A Final Exam. Fall CIS 191 Final Exam

Advantech General FAQ. How to change ubuntu specific kernel for quick cross test

VIRTUAL MACHINES. By Seth Lemanek

Installation of Fedora 12 with CD

INSTALLATION. Security of Information and Communication Systems

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

Installing Prime Optical

Networks Lab Pod Diagram

DUAL OS INSTALLATION


Jackson State University Department of Computer Science CSC 437/539 Computer Security Fall 2013 Instructor: Dr. Natarajan Meghanathan

3 Connection, Shell Serial Connection over Console Port SSH Connection Internet Connection... 5

Build your own NAS with OpenMediaVault

ABOUT ZEPCAM SOFTWARE INSTALLATION MANAGEMENT AND BACKUPS. Description What is it Installation requirement Server requirement

Step By Step Ubuntu (Precise) LAMP Server Setup

CIS 76 VLab Pod Setup

Raspberry Pi (RPi) Setup Documentation Instrumentation Development Lab Department of Physics and Astronomy University of Hawaii at Manoa

Windows Subsystem for Linux Guide Documentation

Openstack Installation Guide

3. Click on the Download ZIP button under Raspbian Jessie, and select a folder to save it to.

Password: admin DW-BJCUBE2T-LX DW-BJCUBE4T-LX DW-BJCUBE6T-LX DW-BJCUBE9T-LX DW-BJCUBE12T-LX DW-BJCUBE18T-LX

IT 341 Introduction to System Administration Project I Installing Ubuntu Server on an Virtual Machine

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

Guideline for the installation of C-MOR Video Surveillance Virtual Machine on VMware ESX Server

IT 341 Introduction to System Administration Project I Installing Ubuntu Server on an Virtual Machine

CIS 76 Ethical Hacking Building an open source Pentest Sandbox, carrying out a Remote Code Execution exploit, and Remediating the RCE vulnerability.

Build your own Lightweight Webserver - Hands-on I - Information Network I. Marius Georgescu. Internet Engineering Laboratory. 17 Apr

Back Up/Restore Hard Drives And Partitions With CloneZilla Live

The article performs the following task:-

IT341 Introduction to System Administration Project II Setting up our LAN

Troubleshooting. Contacting Cisco TAC. Checking the Version Number of Cisco Configuration Engine APPENDIXA

Table of Contents 1 V3 & V4 Appliance Quick Start V4 Appliance Reference...3

Operating Systems Lab 1. Class topic: Installation of the operating system. Install Ubuntu on Oracle VirtualBox

Link Gateway Initial Configuration Manual

202 Lab Introduction Connecting to the Lab Environment

Redhat OpenStack 5.0 and PLUMgrid OpenStack Networking Suite 2.0 Installation Hands-on lab guide

CCNA Discovery Server Live CD v2.0

LAB-5: NAT64/DNS64. Lab Environment. Configure the IPv6 only client: Open the GNS3 project file: The lab topology has:

MT LoadMaster Cisco UCS C-Series. Multi-Tenant LoadMaster for Cisco UCS C-Series Rack Server. Installation Guide

Raspberry Pi as an Ad Blocking Access Point

Downloading and installing Db2 Developer Community Edition on Ubuntu Linux Roger E. Sanders Yujing Ke Published on October 24, 2018

Alarm Counter. A Ceilometer OpenStack Application

Cisco UCS C-Series. Installation Guide

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

How To Reinstall Grub In Windows 7 Without Losing Data And Programs

WLM1200-RMTS User s Guide

Quick Start Guide. State of the art hyper-optimized video management platform designed for ease, speed and efficiency.

Sit with your new teammate

KVM Guest Management With Virt-Manager On Ubuntu 8.10

Installing Altiris Agent on Ubuntu

Introduction to Raspberry Pi 3 Model B Updates: 9/18/17 6/2/2018

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

Introduction. What is Linux? What is the difference between a client and a server?

Hacking Techniques & Intrusion Detection. Ali Al-Shemery arabnix [at] gmail

Build Nested Openstack. Using Ubuntu as BaseOS on BareMetal

Image Management Service. User Guide. Issue 03. Date

EVE-NG Professional Cookbook

Deploying Cisco UCS Central

Transcription:

= Session-(1.4) Preparing the Workstation for the Lab / OS Installation = Session-(1.4) Preparing the Workstation for the Lab / OS Installation (1.4.1) Hardware Recommendation. (1.4.2) Operating System Installation. (1.4.3) First login & connecting the host to Internet. (1.4.4) Restore classic network configuration option. (1.4.5) Using local apt-cache-server & modify apt-mirror. (1.4.6) Tuning some system parameters & configure ssh. related video link -:- https://youtu.be/pmvacxbaoco =1= Documentation By, Rezaul Karim (rkarim@redskybd.com)

= Session-(1.4) Preparing the Workstation for the Lab / OS Installation = (1.4.1) = Hardware Recommendation for Lab Laptop/Workstation with, Intel Core-i3/i5/i7 processor, 4GB RAM, 200GB free HDD partition for installing 64-bit Linux based on Ubuntu 18.04. note: if you do not have 200GB free HDD partition, please arrange/manage it, otherwise you will not be able to do the lab-works properly. (1.4.2) = Operating System Installation Recommended Operating System for the lab; (a) Ubuntu Desktop 18.04 Mate Edition. (Our lab/documentation is based on it.) note: for production environment you are strongly recommended to use Ubuntu 18.04 Server version. Now, you have to install the operating system using the following partition-scheme. We are guessing that, - Most of you already have Linux installation experience. - You will install OS by dual-booting with pre-installed Windows operating system. - You got the Ubuntu Live ISO USB-stick at your hand. (if not, collect it). - You have 200GB free HDD partition & 4GB RAM in your laptop. Boot your laptop from that USB-stick and proceed to installation. If you have Windows7/8/10 pre-installed laptops, then you have to create the following partitions; 1. / # 36 GB 2. swap # 8 GB 3 additional partition # 1 50 GB 4 additional partition # 2 50 GB 5 additional partition # 3 50 GB note: please take extra caution to follow the partition-scheme, take help from us as you need. =2= Documentation By, Rezaul Karim (rkarim@redskybd.com)

= Session-(1.4) Preparing the Workstation for the Lab / OS Installation = If you want to do a clean install and your BIOS is UEFI compatible, then you have to create the following partitions; 0. esp # 200 MB 1. / # 36 GB 2. swap # 8 GB 3 additional partition # 1 50 GB 4 additional partition # 2 50 GB 5 additional partition # 3 50 GB While installation, you have to create a user for the lab-works, you have to create the user-name as abc with password 123789_pw also set hostname as groupx-nodey Complete the installation, remove USB-stick & reboot you laptop. note: to follow the partition scheme is very important to practice the lab-works. (1.4.3) = First login & connecting the host to Internet. After Reboot, Login; and you have to do the followings, -Goto power option and modify all time related settings Never /maximum Value. -Disable screen saver. (We will uninstall it later). note: please keep in mind that, from now on, whatever commands we will apply in the terminal, we will do it as root (#). to become the root you have to apply the command sudo su after opening the terminal application. When you will apply sudo su it will ask for password; apply the password that you have provided while installation. Open Terminal and apply the following commands; sudo su /etc/init.d/network-manager stop apt remove -y --purge network-manager* mate-screensaver* systemctl stop NetworkManager.service systemctl disable NetworkManager.service Now find your network interface, ip addr networkctl Suppose, your interface name is enp1s0, apply following commands to set the ip address temporarily, please collect your node ip address from instructor. ifconfig enp1s0 0 ifconfig enp1s0 192.168.108.11/24 up ip route add default via 192.168.108.1 ip link set enp1s0 up echo 'nameserver 192.168.108.1'> /etc/resolv.conf networkctl status systemd-resolve --status =3= Documentation By, Rezaul Karim (rkarim@redskybd.com)

= Session-(1.4) Preparing the Workstation for the Lab / OS Installation = Now make sure your are connected to the internet, check by the following command, ping 8.8.8.8 ping google.com (1.4.4) = Restore classic network configuration option Install packages which will restore classic network options, apt update apt install -y ifupdown vim net-tools resolvconf In Ubuntu 18.04 classic network configuration option (ifupdown) is disabled with a new network configuration tool named netplan. But netplan lacks some features like post-up script, which is require to start some service after network is up. For our lab-setup we need that feature (post-up), To restore the classic network option (disable netplan and install/configure ifupdown), we have to complete the following steps. vim /etc/default/grub Change the line -into- GRUB_CMDLINE_LINUX="netcfg/do_not_use_netplan=true" sudo update-grub Configure the ip address in the classic way; vim /etc/network/interfaces Add the following lines; auto enp1s0 iface enp1s0 inet static address 192.168.108.11 netmask 255.255.255.0 gateway 192.168.108.1 Use our local caching dns server; echo 'nameserver 192.168.108.1'> /etc/resolvconf/resolv.conf.d/head reboot =4= Documentation By, Rezaul Karim (rkarim@redskybd.com)

= Session-(1.4) Preparing the Workstation for the Lab / OS Installation = After reboot check that your ip configuration is working properly and your are connected to the internet. (1.4.5) = Using local apt-cache-server & modify apt-mirror Replace the default apt-mirror with Bangladeshi mirror site (like mirror.amberit.com.bd); vim /etc/apt/sources.list Apply the following vim command in ESC (By pressing esc key first) mode; :%s/archive.ubuntu.com/mirror.amberit.com.bd/g Or by the the following sed command; sed -i 's/us.archive.ubuntu.com/mirror.amberit.com.bd/g' /etc/apt/sources.list Now activate local apt-cache-server for faster package installation; echo 'Acquire::http { Proxy "http://192.168.108.8:4444"; };' \ > /etc/apt/apt.conf.d/50apt-cacher apt update =5= Documentation By, Rezaul Karim (rkarim@redskybd.com)

= Session-(1.4) Preparing the Workstation for the Lab / OS Installation = (1.4.6) = Tuning some system parameters & configure ssh. Make some other important changes/tuning, which we will require for the practice; In the following line replace X with group number given to you. echo 'groupx-node1' > /etc/hostname Some system tuning; echo 'fs.file-max = 1024000' >> /etc/sysctl.conf echo 'root soft nofile 1024000' >> /etc/security/limits.conf echo 'root hard nofile 1024000' >> /etc/security/limits.conf echo 'performance' > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor In Ubuntu 18.04 /etc/rc.local file is depreciated which was used to execute start-up program/services, So now here we have to make use of post-up script to perform the same task. In the network configuration file add the following line as follows; vim /etc/network/interfaces auto enp1s0 iface enp1s0 inet static address 192.168.108.11 netmask 255.255.255.0 gateway 192.168.108.1 post-up /etc/network/if-up.d/startup-script.sh Create the the post-up script; vim /etc/network/if-up.d/startup-script.sh And add the following lines; #!/bin/bash echo 'performance' > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor echo 'nameserver 192.168.108.1'> /etc/resolv.conf Make the script executable; chmod 755 /etc/network/if-up.d/startup-script.sh =6= Documentation By, Rezaul Karim (rkarim@redskybd.com)

= Session-(1.4) Preparing the Workstation for the Lab / OS Installation = Now install some important system packages, activate root & configure ssh-server apt update apt install -y vim openssh-server htop tasksel mtr gparted pv vim /etc/ssh/sshd_config In the file sshd_config Change ssh port for security --> Set Port 22 Permit root login --> Set PermitRootLogin yes Add UseDNS no at the end of the configuration file /etc/init.d/ssh restart passwd root ; set the password 123789_pw for this lab In production change ssh port to any other port like 7979 In production use strong root password combining alpha-numeric characters. = Getting Gbps Local Lan Speed Now we have to do a final check to ensure that every participant got the Gbps-Speed, in their workstation/laptop. We can check that with any of the following two commands, Syntax1 : mii-tool <interface name> Syntax2 : ethtool <interface name> grep Speed mii-tool enp1s0 Output > enp1s0: negotiated 1000baseT-FD flow-control, link ok ethtool enp1s0 grep speed Output > Speed: 1000Mb/s If the speed is not 1000Mb/s, we have to do some troubleshoot (mainly cable connection) to achieve Gbps Speed. Now reboot the workstation/laptop. reboot Also after reboot check that you got Gbps Speed or not. =7= Documentation By, Rezaul Karim (rkarim@redskybd.com)

Session-(1.4) Preparing the Workstation for the Lab / OS Installation (1.4.7) Installation Screenshots.