Download: https://mirrors.kernel.org/archlinux/iso/ /archlinux x86_64.iso

Similar documents
Linux Kernel Update - from scratch (almost) Platform: Archlinux, UEFI, GRUB2, and initramfs. Prof. Rossano Pablo Pinto

Installation of the OS

Operating System. Hanyang University. Hyunmin Yoon Operating System Hanyang University

How to securely isolate Damn Vulnerable Linux with VirtualBox

Arch Linux Grub You Need To Load The Kernel First

Linux Systems Security. Backup and Change Management NETS Fall 2016

NASA Lab. Partition/Filesystem/Bootloader. TinRay, Yu-Chuan

Grub Manual Install Ubuntu Without >>>CLICK HERE<<<

Installing Virtualbox Guest Additions Vboxadditions on CentOS 7, Fedora 19 / 20 and RHEL 6.5 / 5.10 on Windows host

Project 3: An Introduction to File Systems. COP 4610 / CGS 5765 Principles of Operating Systems

A Kernel Compiling Adventure By Grant Nelson

Cross-compilation with Buildroot

Ex.no:2 Date: Kernel Configuration, Compilation and Installation

Lab E2: bypassing authentication and resetting passwords

Week 10 Project 3: An Introduction to File Systems. Classes COP4610 / CGS5765 Florida State University

(Ubuntu 10.04), the installation command is slightly different.

Bash exercices. Write 6 random numbers between 0 and 9 in a file named randoms then display them in a sorted way on the screen.

Build your own NAS with OpenMediaVault

Adding a block devices and extending file systems in Linux environments

Travis Cardwell Technical Meeting

LiLo Crash Recovery. 1.0 Preparation Tips. 2.0 Quick Steps to recovery

How To Jailbreak A PogoPlug Step One: Get Access Step Two: Set Up Your Flash Drive Step 3: Download and install Arch Linux ARM...

Sit with your new teammate

Fedora Linux Installation Guide

Project 3: An Introduction to File Systems. COP4610 Florida State University

Topics. Installation Basics of Using GNU/ Linux Administration Tools

CTEC1863/2018F Bonus Lab Page 1 of 5

Upgrade Cisco Interface Module for LoRaWAN IXM using the Console

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

Lab #5 Guide: Installing Ubuntu as a Virtual Machine

OPS235. Linux File Systems Partitioning Mounting File Systems

Part A: Setup your kernel development environment

TestOut Linux Pro - English 4.0.x OBJECTIVE MAPPING: CompTIA Linux+ LX0-103

exam.30q. Number: Passing Score: 800 Time Limit: 120 min File Version: 1 LPI

GL-280: Red Hat Linux 7 Update. Course Description. Course Outline

LPIC-1 System Administrator

Build Ubuntu System on Rockchip Sapphire Excavator Board

Freeing Disk Space on a Cryptshare Server. Applies to. Purpose. Solution. Freeing Disk Space on a Cryptshare Server. Situation.

How to Dual-Boot OS X and Ubuntu

cpouta exercises

RocketRAID 2310/2300 Controller Fedora Linux Installation Guide

University of Colorado at Colorado Springs CS4500/ Fall 2018 Operating Systems Project 1 - System Calls and Processes

Operating System. Hanyang University. Hyunmin Yoon Operating System Hanyang University

Getting Started with BeagleBoard xm

Chapter 6. Boot time configuration. Chapter 6 Boot time configuration

Building a 64-bit CentOS 7 Workstation using Oracle Virtual Box

System Requirements ENTERPRISE

There are three separate utilities for configuring Linux kernel and they are listed below: Command-line interface # make config. Figure 1.

Course 55187B Linux System Administration

Linux Development Getting Started

Managing Xen With Xen-Tools, Xen-Shell, And Argo

Linux Distribution: Kernel Configuration

Please choose the best answer. More than one answer might be true, but choose the one that is best.

Installing MediaWiki using VirtualBox

iscsi storage is used as shared storage in Redhat cluster, VMware vsphere, Redhat Enterprise Virtualization Manager, Ovirt, etc.

Installing caos with Cinch on Floppy Disk

Install and Configure Enterprise Linux on the First Virtual Machine

Changing user login password on templates

QEMU and the Linux Kernel

Fedora Linux Installation Guide

Quick Start Guide V NLX-microUCS APPLIANCE Unified Communications Server

RH133. Red Hat Linux System Administration

Stop all processes and then reboot - same as above startx. Log in as superuser from current login exit

RocketRAID 2680/2684 SAS Controller Red Hat Enterprise/CentOS Linux Installation Guide

Rebuild Linux and Buildroot for the DCP-SH7785 board

3.5 Inch TFT Display

Installation of the DigitalSystemsVM virtual machine

Oracle Communication Policy Controller. Lab Environment Preparation

Ubuntu Manually Mount Cdrom Drive Command Line Vmware

Chapter 6. Linux File System

POSTouch Open Source Driver (OSE) Installation Guide

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

RocketRAID 231x/230x SATA Controller Fedora Linux Installation Guide

Linux Hardware Management. Linux System Administration COMP2018 Summer 2017

Formatting 1. Commands starting with $ are Linux console commands on the host PC:

Accurate study guides, High passing rate! IT TEST BOOK QUESTION & ANSWER. Ittestbook provides update free of charge in one year!

Zephyr Kernel Installation & Setup Manual

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

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

Quick Start Guide V NLX-microUCS APPLIANCE Unified Communications Server

Link Gateway ISO Installation Manual

RocketRAID 231x/230x SATA Controller Red Hat Enterprise/CentOS Linux Installation Guide

Installing caos with Cinch on CDROM

TROUBLESHOOTING. Sylvia MATE /dev/sda36 Linux Mint Artful GNOME /dev/sda27 Ubuntu 17.10

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

Reboot the server and start the hypervisor from the boot menu (Xen amd64 / Debian GNU/Linux, kernel xen-amd64)

Arch Linux with an SSD Cache using LVM on BCache. Jeremy Runyan

Exam LFCS/Course 55187B Linux System Administration

SCM EVK (SCM120

Creating WinSystems ELS 2.0

Manual File System Check Linux Command Line

CompTIA Linux+/LPIC-1 COPYRIGHTED MATERIAL

MaRTE OS FAT16 Filesystem

System Manager Unit (SMU) Hardware Reference

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

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

Deploying Cisco UCS Central

Certification. System Initialization and Services

NetBSD on Google Compute Engine --- Step by step guide ---

Getting Started with Linux Development

Transcription:

Install Arch Linux! Download: htts://mirrors.kernel.org/archlinux/iso/2017.12.01/archlinux-2017.12.01-x86_64.iso Ste 1: Build a Virtual Machine VirtualBox ========== New Machine 2 rocessors 40G hard drive (fixed) 4096 MB RAM Storage: hooku archlinux-2017.12.01-x86_64.iso Move the Virtual Machine to your SSD drive. ====== htt://zeus.cs.acificu.edu/chadd/cs460s18/lectures/cs460_1.df#age=22 Ste 2: Boot the ISO image Boot the Virtual Machine Arch Linux install disk. ====== We will follow the Installation Guide closely but I have all the commands you need in the document. htts://wiki.archlinux.org/index.h/installation_guide ls touch test ls ls /sys/firmware/efi/efivars (should not find this file when using Virtual Box) # check networking # should work ing -c 3 archlinux.org set the date/time date timedatectl list-timezones timedatectl set-timezone America/Los_Angeles timedatectl set-nt true timedatectl status date

===== fdisk (Partition Disk) and format artitions ===== fdisk -l fdisk /dev/sda # make / artition n 1 [enter] default start sector +15G (size of artition # make swa artition n 2 [enter] default start sector +2G (size of artition # make /home artition n 3 [enter] default start sector [enter] default size w = format artitions = mkfs.ext4 /dev/sda1 mkswa /dev/sda2 mkfs.xfs /dev/sda3 swaon /dev/sda2

===== mount ===== mount /dev/sda1 /mnt mkdir /mnt/home mount /dev/sda3 /mnt/home == install mirrors == vi /etc/acman.d/mirrorlist # Sread the load! # if your PUNetID's last digit is odd ut dx at the to # otherwise ut osuosl at the to! # coy the dx.edu mirror to the to! / dx yy :1 # coy the osuosl.edu mirror to the to! / osuosl yy :2 # make sure it worked head /etc/acman.d/mirrorlist ====== install base system ====== acstra /mnt base

===== fstab ===== genfstab -L /mnt >> /mnt/etc/fstab # make sure /home is added # sometimes it does not get added. vi /mnt/etc/fstab i /dev/sda2 swa swa defaults 0 0 /dev/sda3 /home xfs defaults 0 2 [escae] cat /mnt/etc/fstab ====== chroot ====== arch-chroot /mnt # now we are working with the newly installed system! ======== timezone ======== ln -sf /usr/share/zoneinfo/america/los_angeles /etc/localtime hwclock --systohc date ====== locale ====== vi /etc/locale.gen / en_us.utf / [to search twice] x [delete the hash mark] locale-gen vi /etc/locale.conf i LANG=en_US.UTF-8 [escae]

======== hostname ======== vi /etc/hostname # use your unetid i cs460-unetid [escae] vi /etc/hosts i 127.0.1.1 [escae] cs460-unetid root assword asswd Use any assword CS460PAC!! boot loader acman -S grub grub-install /dev/sda grub-mkconfig -o /boot/grub/grub.cfg ======= reboot! ======= exit umount -R /mnt shutdown -P now <remove iso from VirtualBox> Boot Virtual Machine! console login root/assword

= network config = lsci -v less # look for ethernet (should see e1000) dmesg gre e1000 # see the loaded driver # find address of network card (en0s3) i link i addr ing -c 3 archlinux.org # install network manager acman -S dhccd systemctl enable dhccd systemctl start dhccd # wait 30 seconds to get an i address slee 30 i addr ing -c 3 archlinux.org Create User useradd -m -G wheel -s /bin/bash unetid asswd unetid cat /etc/asswd cat /etc/shadow acman -S sudo visudo uncomment or add: %wheel ALL=(ALL) ALL exit console login unetid/assword

cat /etc/shadow sudo cat /etc/shadow Install VB Guest additions # you must install the guest additions and reboot # before building the new kernel! sudo acman -Syu linux-headers sudo acman -S virtualbox-guest-utils virtualbox-guest-dkms = Window Manager = # X Server sudo acman -S xorg # (all) 1 Y # Window Manager / Deskto environment # (all) (all) Y sudo acman -S xfce4 xfce4-goodies # Dislay Manager sudo acman -S lightdm lightdm-gtk-greeter sudo systemctl enable lightdm.service sudo reboot lightdm login # if the screen is a blurry mess here the VB drivers are # not loaded. # boot using init=/bin/bash # systemctl disable lightdm.service # reboot # go back and reinstall the VB Guest additions # Reinstalling the Guest Additions is almost always the answer. unetid/assword # choose default config Oen Terminal sudo acman -S terminator geany gvim sudo acman -S base-devel ttf-dejavu # (all)

sudo acman -S chromium OR firefox # 1 sudo acman -S subversion git = reboot # can you resize the Virtual Machine? # if not, reinstall Guest Additions # ugrade all the ackages -- do this later on your own time at your own risk sudo acman -Syu Add SSHD ======== sudo acman -S oenssh sudo systemctl enable sshd sudo systemctl start sshd ssh localhost exit Add atd ======= sudo acman -S at sudo systemctl enable atd sudo systemctl start atd at now+1 minutes ls > out control-d # wait 1 minute ls out Allow Host OS to ssh to guest OS === VirtualBox Network Advanced Port Forwarding Host Port 2222 Guest Port 22 In Windows: Putty Host Name: localhost Port: 2222 Accet key and connect as your unetid!

Custom Kernel uname -a # show current kernel acman -S base-devel xmlto docbook-xsl kmod inetutils bc wget qt5-base # (all) mkdir ~/kernelbuild cd ~/kernelbuild wget htts://www.kernel.org/ub/linux/kernel/v4.x/linux-4.14.6.tar.xz mkdir ristine-linux cd ristine-linux tar -xvjf linux-4.14.6.xz cd linux-4.14.6 make clean && make mrroer cd ~/kernelbuild tar -xvjf linux-4.14.6.xz cd linux-4.14.6 # this is the kernel you will edit geany Makefile & extraversion = -unetid lsmod gre vb # VB modules must be loaded! make clean && make mrroer make localmodconfig # VB modules must be loaded! (vboxvideo,vboxsf,vboxguest) # choose all defaults # not strictly necessary, just for show make xconfig # search for drm, should not need to make any changes make -j6 # (with 2 CPUs) ~10 min sudo make modules_install sudo c -v arch/x86_64/boot/bzimage /boot/vmlinuz-linux-cs460 sudo mkinitcio -k 4.14.6-unetid-ARCH -g /boot/initramfs-linux-cs640.img sudo c System.ma /boot/system.ma-cs460

sudo grub-mkconfig -o /boot/grub/grub.cfg reboot (default is new kernel, advanced config allows you to select the stock kernel (fallback)) choose default kernel unetid/assword uname -a # is your kernel running? # Can you resize the screen? acman -S virtualbox-guest-utils virtualbox-guest-dkms Build a Patch cd ~/kernelbuild/linux-4.14.6 make clean ; make mrroer diff -rcnp ~/kernelbuild/ristine-linux/linux-4.14.6 ~/kernelbuild/linux-4.14.6 > ~/kernelbuild/atch.out Resources ========= htts://wiki.archlinux.org/index.h/arch_boot_rocess htts://wiki.archlinux.org/index.h/installation_guide htts://wiki.archlinux.org/index.h/network_configuration htts://wiki.archlinux.org/index.h/general_recommendations htts://wiki.archlinux.org/index.h/hel:reading htts://wiki.archlinux.org/index.h/fstab htts://wiki.archlinux.org/index.h/network_configuration htts://wiki.archlinux.org/index.h/network_debugging htts://kernelnewbies.org/kernelbuild google: archlinux xxxxx

Toics Necessary === systemd / systemctl [enable disable start sto] journalctl dmesg kernel boot loader (grub) artition sudo lsci i link i addr ntd sshd dhccd / dhc disk /dev/sda artition / /home swa filesystem swa XServer (xorg) Window Manager (xfce) Dislaymanager (lightdm)