SlideShare uma empresa Scribd logo
1 de 21
Baixar para ler offline
-11-15
2013

Brown Bag
Guess what’s the topic? :D
I’m introducing you how to build a….
T OF
SOR
Build [a lie]
[Set up] a Linux OS
Let’s look at some terms
● Distributions (Distros)
● Package Managers
Distros
● Red Hat / Fedora
● Debian / Ubuntu / Mint
● and mooooooooore...
Package Manager
Handles dependencies
Format usually are source or binary.
Source
● portage - src
Binaries
● apt - deb
● yum - rpm
● pacman - tar.gz
● and moooooooore...
Build [a lie]
[Set up] a Linux OS
scratch
from
Benefits?
What’s the benefits of setting up a linux OS
from scratch?
Setting up a Linux OS from scratch often like building a house
Often it is very trivial a.k.a. mafan
So instead of building one, we often choose to purchase one.
We choose to install a Linux OS with packages pre-installed.
Often it is a bloated, gluten OS.
So.. How ah?
[Set up] a Linux OS from scratch
i

eps +/n 10 st
A simple, lightweight distribution
Let’s do it!
1. Storage

ps +/n 10 ste
i

○ Partition
○ Format
○ Mount

2. OS
○
○
○
○
○

Base system
File system table
Initial Ramdisk Env
Initial configurations
Boot loader

3. Moooooore
○ New user account
○ Windows (not that WindowsTM)
0. Set Up VM
● Create a new VM
● Attach ISO to the VM as storage
● Start!
1. Storage
Partition
$ cfdisk <Storage-Device-Name>

$ cfdisk /dev/sda

Format
$ mkfs.ext4 <StoragePartition-Name>

$ mkfs.ext4 /dev/sda1

$ mkswap <Storage-PartitionName>

$ mkswap /dev/sda2

Mount
$ mount <From> <To>

$ mount /dev/sda1 /mnt

$ swapon <Storage-PartitionName>

$ swapon /dev/sda2

More: https://wiki.archlinux.org/index.php/Partitioning
2. OS (Part 1 of 3)
Base System
$ pacstrap -i <OS-Drive>
base

$ pacstrap -i /mnt base

File system table

$ genfstab -U -p /mnt >>
/mnt/etc/fstab

$ genfstab -U -p <OS-Drive>
>> <OS-Drive>/etc/fstab
“Enter the OS”

$ arch-chroot /mnt

$ arch-chroot <OS-Drive>
Initial Ramdisk Environment
$ mkinitcpio -p linux
fstab: https://wiki.archlinux.org/index.php/Fstab
chroot: https://wiki.archlinux.org/index.php/Chroot
initrd: https://wiki.archlinux.org/index.php/mkinitcpio

$ mkinitcpio -p linux
2. OS (Part 2 of 3)
Initial configurations
# Set timezone
$ ln -s
/usr/share/zoneinfo/<Continent>
/<City>

$ ln -s
/usr/share/zoneinfo/Asia/Kual
a_Lumpur /etc/localtime

# Set clock
$ hwclock --systohc --utc

$ hwclock --systohc --utc

# Set hostname
$ echo archieVM > /etc/hostname
# Enable dhcp client
$ systemctl enable dhcpcd

$ $ echo archieVM >
/etc/hostname
$ systemctl enable dhcpcd

# Set password for root
$ passwd

$ passwd
2. OS (Part 3 of 3)
Boot loader
$ pacman -S <package>

$ pacman -S grub

$ grub-install -target=<architecture> --recheck
<Storage-Device-Name>

$ grub-install -target=i386-pc --recheck
/dev/sda

$ grub-mkconfig -o <grub-configlocation>

$ grub-mkconfig -o
/boot/grub/grub.cfg

Restart!
$ exit

$ exit

$ reboot

$ reboot

fstab: https://wiki.archlinux.org/index.php/Fstab
initrd: https://wiki.archlinux.org/index.php/mkinitcpio
3. More (Part 1 of 2)
Create new user account
$ useradd -m -G <other-groups>
<username>

$ useradd -m -G users
sianlerk

$ passwd <username>

$ passwd sianlerk

Windows
$ pacman -S xorg-server xorgserver-utils xorg-xinit mesa
xf86-video-vesa alsa-utils
mesa-libgl

$ pacman -S xorg-server
xorg-server-utils xorg-xinit
mesa xf86-video-vesa alsautils mesa-libgl

$ pacman -S openbox

$ pacman -S openbox

Restart
$ reboot
X-Windows: http://en.wikipedia.org/wiki/X_Window_System
Openbox: https://wiki.archlinux.org/index.php/Openbox

$ reboot
3. More (Part 2 of 2)
Windows
<logged in as non-root>

<logged in as sianlerk>

$ echo exec openbox-session >
~/.xinitrc

$ echo exec openbox-session
> ~/.xinitrc

$ startx

$ startx

Mais conteúdo relacionado

Mais procurados

17 Linux Basics #burningkeyboards
17 Linux Basics #burningkeyboards17 Linux Basics #burningkeyboards
17 Linux Basics #burningkeyboardsDenis Ristic
 
The basic concept of Linux FIleSystem
The basic concept of Linux FIleSystemThe basic concept of Linux FIleSystem
The basic concept of Linux FIleSystemHungWei Chiu
 
Introduction to Linux for bioinformatics
Introduction to Linux for bioinformaticsIntroduction to Linux for bioinformatics
Introduction to Linux for bioinformaticsBITS
 
Booting directly opensuse iso file by grub2 @ openSUSE Asia Summit2015
Booting directly opensuse iso file by grub2 @ openSUSE Asia Summit2015Booting directly opensuse iso file by grub2 @ openSUSE Asia Summit2015
Booting directly opensuse iso file by grub2 @ openSUSE Asia Summit2015Kentaro Hatori
 
11 linux filesystem copy
11 linux filesystem copy11 linux filesystem copy
11 linux filesystem copyShay Cohen
 
Introduction to-linux
Introduction to-linuxIntroduction to-linux
Introduction to-linuxrowiebornia
 
System administration
System administrationSystem administration
System administrationpuspa joshi
 
Linux Introduction (Commands)
Linux Introduction (Commands)Linux Introduction (Commands)
Linux Introduction (Commands)anandvaidya
 
Linux presentation
Linux presentationLinux presentation
Linux presentationNikhil Jain
 

Mais procurados (20)

Linux basic
Linux basicLinux basic
Linux basic
 
17 Linux Basics #burningkeyboards
17 Linux Basics #burningkeyboards17 Linux Basics #burningkeyboards
17 Linux Basics #burningkeyboards
 
Linux Fundamental
Linux FundamentalLinux Fundamental
Linux Fundamental
 
The basic concept of Linux FIleSystem
The basic concept of Linux FIleSystemThe basic concept of Linux FIleSystem
The basic concept of Linux FIleSystem
 
005 skyeye
005 skyeye005 skyeye
005 skyeye
 
Linux
LinuxLinux
Linux
 
Introduction to Linux for bioinformatics
Introduction to Linux for bioinformaticsIntroduction to Linux for bioinformatics
Introduction to Linux for bioinformatics
 
Raspberry Pi 101
Raspberry Pi 101Raspberry Pi 101
Raspberry Pi 101
 
Dockerの準備
Dockerの準備Dockerの準備
Dockerの準備
 
Booting directly opensuse iso file by grub2 @ openSUSE Asia Summit2015
Booting directly opensuse iso file by grub2 @ openSUSE Asia Summit2015Booting directly opensuse iso file by grub2 @ openSUSE Asia Summit2015
Booting directly opensuse iso file by grub2 @ openSUSE Asia Summit2015
 
UNIX/Linux training
UNIX/Linux trainingUNIX/Linux training
UNIX/Linux training
 
Linux basic commands tutorial
Linux basic commands tutorialLinux basic commands tutorial
Linux basic commands tutorial
 
Linux basics
Linux basicsLinux basics
Linux basics
 
11 linux filesystem copy
11 linux filesystem copy11 linux filesystem copy
11 linux filesystem copy
 
Introduction to-linux
Introduction to-linuxIntroduction to-linux
Introduction to-linux
 
System administration
System administrationSystem administration
System administration
 
Os Bernier
Os BernierOs Bernier
Os Bernier
 
Unix 6 en
Unix 6 enUnix 6 en
Unix 6 en
 
Linux Introduction (Commands)
Linux Introduction (Commands)Linux Introduction (Commands)
Linux Introduction (Commands)
 
Linux presentation
Linux presentationLinux presentation
Linux presentation
 

Destaque

Quality of life through Unit Testing
Quality of life through Unit TestingQuality of life through Unit Testing
Quality of life through Unit TestingSian Lerk Lau
 
Don't screw it up: how to build durable web apis @ PHPDay 2014 in Verona (ITA)
Don't screw it up: how to build durable web apis @ PHPDay 2014 in Verona (ITA)Don't screw it up: how to build durable web apis @ PHPDay 2014 in Verona (ITA)
Don't screw it up: how to build durable web apis @ PHPDay 2014 in Verona (ITA)Alessandro Nadalin
 
Replacing "exec" with a type and provider: Return manifests to a declarative ...
Replacing "exec" with a type and provider: Return manifests to a declarative ...Replacing "exec" with a type and provider: Return manifests to a declarative ...
Replacing "exec" with a type and provider: Return manifests to a declarative ...Puppet
 
Distro Recipes 2013 : Introduction to Arch Linux: a simple, rolling-release d...
Distro Recipes 2013 : Introduction to Arch Linux: a simple, rolling-release d...Distro Recipes 2013 : Introduction to Arch Linux: a simple, rolling-release d...
Distro Recipes 2013 : Introduction to Arch Linux: a simple, rolling-release d...Anne Nicolas
 
Arch linuxを試したお話
Arch linuxを試したお話Arch linuxを試したお話
Arch linuxを試したお話Yuta Takahashi
 
Learning python with flask (PyLadies Malaysia 2017 Workshop #1)
Learning python with flask (PyLadies Malaysia 2017 Workshop #1)Learning python with flask (PyLadies Malaysia 2017 Workshop #1)
Learning python with flask (PyLadies Malaysia 2017 Workshop #1)Sian Lerk Lau
 
English book oxford practice grammar with answers
English book   oxford practice grammar with answersEnglish book   oxford practice grammar with answers
English book oxford practice grammar with answersMaria José Silva
 
Visual guide to selling software as a service by @prezly
Visual guide to selling software as a service by @prezlyVisual guide to selling software as a service by @prezly
Visual guide to selling software as a service by @prezlyPrezly
 
Nine Pages You Should Optimize on Your Blog and How
Nine Pages You Should Optimize on Your Blog and HowNine Pages You Should Optimize on Your Blog and How
Nine Pages You Should Optimize on Your Blog and HowLeslie Samuel
 
How to think like a startup
How to think like a startupHow to think like a startup
How to think like a startupLoic Le Meur
 
WTF - Why the Future Is Up to Us - pptx version
WTF - Why the Future Is Up to Us - pptx versionWTF - Why the Future Is Up to Us - pptx version
WTF - Why the Future Is Up to Us - pptx versionTim O'Reilly
 
Teaching Students with Emojis, Emoticons, & Textspeak
Teaching Students with Emojis, Emoticons, & TextspeakTeaching Students with Emojis, Emoticons, & Textspeak
Teaching Students with Emojis, Emoticons, & TextspeakShelly Sanchez Terrell
 
The Future of Everything
The Future of EverythingThe Future of Everything
The Future of EverythingCharbel Zeaiter
 
Study: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving CarsStudy: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving CarsLinkedIn
 
What I Carry: 10 Tools for Success
What I Carry: 10 Tools for SuccessWhat I Carry: 10 Tools for Success
What I Carry: 10 Tools for SuccessJonathon Colman
 

Destaque (20)

Quality of life through Unit Testing
Quality of life through Unit TestingQuality of life through Unit Testing
Quality of life through Unit Testing
 
Don't screw it up: how to build durable web apis @ PHPDay 2014 in Verona (ITA)
Don't screw it up: how to build durable web apis @ PHPDay 2014 in Verona (ITA)Don't screw it up: how to build durable web apis @ PHPDay 2014 in Verona (ITA)
Don't screw it up: how to build durable web apis @ PHPDay 2014 in Verona (ITA)
 
Replacing "exec" with a type and provider: Return manifests to a declarative ...
Replacing "exec" with a type and provider: Return manifests to a declarative ...Replacing "exec" with a type and provider: Return manifests to a declarative ...
Replacing "exec" with a type and provider: Return manifests to a declarative ...
 
Python and you
Python and youPython and you
Python and you
 
Distro Recipes 2013 : Introduction to Arch Linux: a simple, rolling-release d...
Distro Recipes 2013 : Introduction to Arch Linux: a simple, rolling-release d...Distro Recipes 2013 : Introduction to Arch Linux: a simple, rolling-release d...
Distro Recipes 2013 : Introduction to Arch Linux: a simple, rolling-release d...
 
ArchLinux
ArchLinuxArchLinux
ArchLinux
 
Arch linux
Arch  linuxArch  linux
Arch linux
 
Arch linuxを試したお話
Arch linuxを試したお話Arch linuxを試したお話
Arch linuxを試したお話
 
Arch linux
Arch linuxArch linux
Arch linux
 
Learning python with flask (PyLadies Malaysia 2017 Workshop #1)
Learning python with flask (PyLadies Malaysia 2017 Workshop #1)Learning python with flask (PyLadies Malaysia 2017 Workshop #1)
Learning python with flask (PyLadies Malaysia 2017 Workshop #1)
 
English book oxford practice grammar with answers
English book   oxford practice grammar with answersEnglish book   oxford practice grammar with answers
English book oxford practice grammar with answers
 
Visual guide to selling software as a service by @prezly
Visual guide to selling software as a service by @prezlyVisual guide to selling software as a service by @prezly
Visual guide to selling software as a service by @prezly
 
Nine Pages You Should Optimize on Your Blog and How
Nine Pages You Should Optimize on Your Blog and HowNine Pages You Should Optimize on Your Blog and How
Nine Pages You Should Optimize on Your Blog and How
 
Inaugural Addresses
Inaugural AddressesInaugural Addresses
Inaugural Addresses
 
How to think like a startup
How to think like a startupHow to think like a startup
How to think like a startup
 
WTF - Why the Future Is Up to Us - pptx version
WTF - Why the Future Is Up to Us - pptx versionWTF - Why the Future Is Up to Us - pptx version
WTF - Why the Future Is Up to Us - pptx version
 
Teaching Students with Emojis, Emoticons, & Textspeak
Teaching Students with Emojis, Emoticons, & TextspeakTeaching Students with Emojis, Emoticons, & Textspeak
Teaching Students with Emojis, Emoticons, & Textspeak
 
The Future of Everything
The Future of EverythingThe Future of Everything
The Future of Everything
 
Study: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving CarsStudy: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving Cars
 
What I Carry: 10 Tools for Success
What I Carry: 10 Tools for SuccessWhat I Carry: 10 Tools for Success
What I Carry: 10 Tools for Success
 

Semelhante a Install Archlinux in 10 Steps (Sort of) :)

How to make multi-boot USB drive for LiveCD iso images on EFI/UEFI and BIOS
 How to make multi-boot USB drive for LiveCD iso images on EFI/UEFI and BIOS How to make multi-boot USB drive for LiveCD iso images on EFI/UEFI and BIOS
How to make multi-boot USB drive for LiveCD iso images on EFI/UEFI and BIOSKentaro Hatori
 
(Practical) linux 104
(Practical) linux 104(Practical) linux 104
(Practical) linux 104Arie Bregman
 
Description of GRUB 2
Description of GRUB 2Description of GRUB 2
Description of GRUB 2iamumr
 
Andresen 8 21 02
Andresen 8 21 02Andresen 8 21 02
Andresen 8 21 02FNian
 
Containers with systemd-nspawn
Containers with systemd-nspawnContainers with systemd-nspawn
Containers with systemd-nspawnGábor Nyers
 
Bundling Packages and Deploying Applications with RPM
Bundling Packages and Deploying Applications with RPMBundling Packages and Deploying Applications with RPM
Bundling Packages and Deploying Applications with RPMAlexander Shopov
 
Launch the First Process in Linux System
Launch the First Process in Linux SystemLaunch the First Process in Linux System
Launch the First Process in Linux SystemJian-Hong Pan
 
Domino9on centos6
Domino9on centos6Domino9on centos6
Domino9on centos6a8us
 
Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)Ata Rehman
 
Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-adminbadamisri
 
Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-adminbadamisri
 
Deploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APTDeploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APTJoshua Thijssen
 
Slackware Demystified [SELF 2011]
Slackware Demystified [SELF 2011]Slackware Demystified [SELF 2011]
Slackware Demystified [SELF 2011]Vincent Batts
 

Semelhante a Install Archlinux in 10 Steps (Sort of) :) (20)

Sun raysetup
Sun raysetupSun raysetup
Sun raysetup
 
How to make multi-boot USB drive for LiveCD iso images on EFI/UEFI and BIOS
 How to make multi-boot USB drive for LiveCD iso images on EFI/UEFI and BIOS How to make multi-boot USB drive for LiveCD iso images on EFI/UEFI and BIOS
How to make multi-boot USB drive for LiveCD iso images on EFI/UEFI and BIOS
 
(Practical) linux 104
(Practical) linux 104(Practical) linux 104
(Practical) linux 104
 
Description of GRUB 2
Description of GRUB 2Description of GRUB 2
Description of GRUB 2
 
Andresen 8 21 02
Andresen 8 21 02Andresen 8 21 02
Andresen 8 21 02
 
Samba 4 - debian instalacao
Samba 4 - debian instalacaoSamba 4 - debian instalacao
Samba 4 - debian instalacao
 
Containers with systemd-nspawn
Containers with systemd-nspawnContainers with systemd-nspawn
Containers with systemd-nspawn
 
Bundling Packages and Deploying Applications with RPM
Bundling Packages and Deploying Applications with RPMBundling Packages and Deploying Applications with RPM
Bundling Packages and Deploying Applications with RPM
 
Launch the First Process in Linux System
Launch the First Process in Linux SystemLaunch the First Process in Linux System
Launch the First Process in Linux System
 
Domino9on centos6
Domino9on centos6Domino9on centos6
Domino9on centos6
 
Ch12 system administration
Ch12 system administration Ch12 system administration
Ch12 system administration
 
Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)
 
Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-admin
 
Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-admin
 
Linux Conf Admin
Linux Conf AdminLinux Conf Admin
Linux Conf Admin
 
vbsd2013
vbsd2013vbsd2013
vbsd2013
 
Dev ops
Dev opsDev ops
Dev ops
 
Solaris
SolarisSolaris
Solaris
 
Deploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APTDeploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APT
 
Slackware Demystified [SELF 2011]
Slackware Demystified [SELF 2011]Slackware Demystified [SELF 2011]
Slackware Demystified [SELF 2011]
 

Último

"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKJago de Vreede
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)Samir Dash
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 

Último (20)

"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 

Install Archlinux in 10 Steps (Sort of) :)

  • 2. I’m introducing you how to build a….
  • 4. Build [a lie] [Set up] a Linux OS
  • 5. Let’s look at some terms ● Distributions (Distros) ● Package Managers
  • 6. Distros ● Red Hat / Fedora ● Debian / Ubuntu / Mint ● and mooooooooore...
  • 7. Package Manager Handles dependencies Format usually are source or binary. Source ● portage - src Binaries ● apt - deb ● yum - rpm ● pacman - tar.gz ● and moooooooore...
  • 8. Build [a lie] [Set up] a Linux OS scratch from
  • 9. Benefits? What’s the benefits of setting up a linux OS from scratch?
  • 10. Setting up a Linux OS from scratch often like building a house Often it is very trivial a.k.a. mafan
  • 11. So instead of building one, we often choose to purchase one. We choose to install a Linux OS with packages pre-installed. Often it is a bloated, gluten OS.
  • 12. So.. How ah? [Set up] a Linux OS from scratch i eps +/n 10 st
  • 13. A simple, lightweight distribution
  • 14. Let’s do it! 1. Storage ps +/n 10 ste i ○ Partition ○ Format ○ Mount 2. OS ○ ○ ○ ○ ○ Base system File system table Initial Ramdisk Env Initial configurations Boot loader 3. Moooooore ○ New user account ○ Windows (not that WindowsTM)
  • 15. 0. Set Up VM ● Create a new VM ● Attach ISO to the VM as storage ● Start!
  • 16. 1. Storage Partition $ cfdisk <Storage-Device-Name> $ cfdisk /dev/sda Format $ mkfs.ext4 <StoragePartition-Name> $ mkfs.ext4 /dev/sda1 $ mkswap <Storage-PartitionName> $ mkswap /dev/sda2 Mount $ mount <From> <To> $ mount /dev/sda1 /mnt $ swapon <Storage-PartitionName> $ swapon /dev/sda2 More: https://wiki.archlinux.org/index.php/Partitioning
  • 17. 2. OS (Part 1 of 3) Base System $ pacstrap -i <OS-Drive> base $ pacstrap -i /mnt base File system table $ genfstab -U -p /mnt >> /mnt/etc/fstab $ genfstab -U -p <OS-Drive> >> <OS-Drive>/etc/fstab “Enter the OS” $ arch-chroot /mnt $ arch-chroot <OS-Drive> Initial Ramdisk Environment $ mkinitcpio -p linux fstab: https://wiki.archlinux.org/index.php/Fstab chroot: https://wiki.archlinux.org/index.php/Chroot initrd: https://wiki.archlinux.org/index.php/mkinitcpio $ mkinitcpio -p linux
  • 18. 2. OS (Part 2 of 3) Initial configurations # Set timezone $ ln -s /usr/share/zoneinfo/<Continent> /<City> $ ln -s /usr/share/zoneinfo/Asia/Kual a_Lumpur /etc/localtime # Set clock $ hwclock --systohc --utc $ hwclock --systohc --utc # Set hostname $ echo archieVM > /etc/hostname # Enable dhcp client $ systemctl enable dhcpcd $ $ echo archieVM > /etc/hostname $ systemctl enable dhcpcd # Set password for root $ passwd $ passwd
  • 19. 2. OS (Part 3 of 3) Boot loader $ pacman -S <package> $ pacman -S grub $ grub-install -target=<architecture> --recheck <Storage-Device-Name> $ grub-install -target=i386-pc --recheck /dev/sda $ grub-mkconfig -o <grub-configlocation> $ grub-mkconfig -o /boot/grub/grub.cfg Restart! $ exit $ exit $ reboot $ reboot fstab: https://wiki.archlinux.org/index.php/Fstab initrd: https://wiki.archlinux.org/index.php/mkinitcpio
  • 20. 3. More (Part 1 of 2) Create new user account $ useradd -m -G <other-groups> <username> $ useradd -m -G users sianlerk $ passwd <username> $ passwd sianlerk Windows $ pacman -S xorg-server xorgserver-utils xorg-xinit mesa xf86-video-vesa alsa-utils mesa-libgl $ pacman -S xorg-server xorg-server-utils xorg-xinit mesa xf86-video-vesa alsautils mesa-libgl $ pacman -S openbox $ pacman -S openbox Restart $ reboot X-Windows: http://en.wikipedia.org/wiki/X_Window_System Openbox: https://wiki.archlinux.org/index.php/Openbox $ reboot
  • 21. 3. More (Part 2 of 2) Windows <logged in as non-root> <logged in as sianlerk> $ echo exec openbox-session > ~/.xinitrc $ echo exec openbox-session > ~/.xinitrc $ startx $ startx