SlideShare a Scribd company logo
-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

More Related Content

What's hot

Linux basic
Linux basicLinux basic
Linux basic
Pragyagupta37
 
17 Linux Basics #burningkeyboards
17 Linux Basics #burningkeyboards17 Linux Basics #burningkeyboards
17 Linux Basics #burningkeyboards
Denis Ristic
 
Linux Fundamental
Linux FundamentalLinux Fundamental
Linux Fundamental
Gong Haibing
 
The basic concept of Linux FIleSystem
The basic concept of Linux FIleSystemThe basic concept of Linux FIleSystem
The basic concept of Linux FIleSystem
HungWei Chiu
 
005 skyeye
005 skyeye005 skyeye
005 skyeye
Sherif Mousa
 
Linux
LinuxLinux
Introduction to Linux for bioinformatics
Introduction to Linux for bioinformaticsIntroduction to Linux for bioinformatics
Introduction to Linux for bioinformatics
BITS
 
Raspberry Pi 101
Raspberry Pi 101Raspberry Pi 101
Raspberry Pi 101
Tonny Adhi Sabastian
 
Dockerの準備
Dockerの準備Dockerの準備
Dockerの準備
koedoyoshida
 
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
Kentaro Hatori
 
UNIX/Linux training
UNIX/Linux trainingUNIX/Linux training
UNIX/Linux training
Michael Olafusi
 
Linux basic commands tutorial
Linux basic commands tutorialLinux basic commands tutorial
Linux basic commands tutorial
Teja Bheemanapally
 
Linux basics
Linux basicsLinux basics
Linux basics
Geeta Vinnakota
 
11 linux filesystem copy
11 linux filesystem copy11 linux filesystem copy
11 linux filesystem copy
Shay Cohen
 
Introduction to-linux
Introduction to-linuxIntroduction to-linux
Introduction to-linux
rowiebornia
 
System administration
System administrationSystem administration
System administration
puspa joshi
 
Os Bernier
Os BernierOs Bernier
Os Bernier
oscon2007
 
Unix 6 en
Unix 6 enUnix 6 en
Unix 6 en
Simonas Kareiva
 
Linux Introduction (Commands)
Linux Introduction (Commands)Linux Introduction (Commands)
Linux Introduction (Commands)
anandvaidya
 
Linux presentation
Linux presentationLinux presentation
Linux presentation
Nikhil Jain
 

What's hot (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
 

Viewers also liked

Quality of life through Unit Testing
Quality of life through Unit TestingQuality of life through Unit Testing
Quality of life through Unit Testing
Sian 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
 
Python and you
Python and youPython and you
Python and you
Sian Lerk Lau
 
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
 
ArchLinux
ArchLinuxArchLinux
ArchLinux
Radu Potop
 
Arch linux
Arch  linuxArch  linux
Arch linuxを試したお話
Arch linuxを試したお話Arch linuxを試したお話
Arch linuxを試したお話
Yuta Takahashi
 
Arch linux
Arch linuxArch linux
Arch linux
Martin Laporga
 
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 answers
Maria 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 @prezly
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
Leslie Samuel
 
Inaugural Addresses
Inaugural AddressesInaugural Addresses
Inaugural Addresses
Booz Allen Hamilton
 
How to think like a startup
How to think like a startupHow to think like a startup
How to think like a startup
Loic 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 version
Tim O'Reilly
 
Teaching Students with Emojis, Emoticons, & Textspeak
Teaching Students with Emojis, Emoticons, & TextspeakTeaching Students with Emojis, Emoticons, & Textspeak
Teaching Students with Emojis, Emoticons, & Textspeak
Shelly Sanchez Terrell
 
The Future of Everything
The Future of EverythingThe Future of Everything
The Future of Everything
Charbel 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 Cars
LinkedIn
 
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
Jonathon Colman
 

Viewers also liked (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
 

Similar to Install Archlinux in 10 Steps (Sort of) :)

Sun raysetup
Sun raysetupSun raysetup
Sun raysetup
Portal Oliveira
 
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
Kentaro Hatori
 
(Practical) linux 104
(Practical) linux 104(Practical) linux 104
(Practical) linux 104
Arie Bregman
 
Description of GRUB 2
Description of GRUB 2Description of GRUB 2
Description of GRUB 2
iamumr
 
Andresen 8 21 02
Andresen 8 21 02Andresen 8 21 02
Andresen 8 21 02
FNian
 
Samba 4 - debian instalacao
Samba 4 - debian instalacaoSamba 4 - debian instalacao
Samba 4 - debian instalacao
Eduardo Charquero
 
Containers with systemd-nspawn
Containers with systemd-nspawnContainers with systemd-nspawn
Containers with systemd-nspawn
Gá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 RPM
Alexander 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 System
Jian-Hong Pan
 
Domino9on centos6
Domino9on centos6Domino9on centos6
Domino9on centos6
a8us
 
Ch12 system administration
Ch12 system administration Ch12 system administration
Ch12 system administration
Raja Waseem Akhtar
 
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-admin
badamisri
 
Linux Conf Admin
Linux Conf AdminLinux Conf Admin
Linux Conf Admin
Srinivas Badami
 
Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-admin
badamisri
 
vbsd2013
vbsd2013vbsd2013
vbsd2013
krispcbsd
 
Dev ops
Dev opsDev ops
Dev ops
Tom Hall
 
Solaris
SolarisSolaris
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
Joshua Thijssen
 
Slackware Demystified [SELF 2011]
Slackware Demystified [SELF 2011]Slackware Demystified [SELF 2011]
Slackware Demystified [SELF 2011]
Vincent Batts
 

Similar to 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]
 

Recently uploaded

GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
kumardaparthi1024
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
tolgahangng
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 
Infrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI modelsInfrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI models
Zilliz
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
SOFTTECHHUB
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 

Recently uploaded (20)

GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 
Infrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI modelsInfrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI models
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 

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