Anda di halaman 1dari 3

## SIMPLE AND BRIEF INSTALLATION GUIDE FOR ARCHLINUX

## DO CHECK ARCHLINUX WIKI PAGE FOR FURTHER EXPLANATION AND GUIDES


## Here I am assuming a network with static ip configuration
1.stop dhcpcd service eno1 is ethernet interface. Find yours interface card by c
ommand "ip link" without quotes
systemctl stop dhcpcd.service eno1
2.set your interface up
ip link set eno1 up
3.Assign your ip address and route. Here is just and example
ip addr add 10.8.20.184/22 dev eno1 ## /22 is subnet mask
ip route add default via 10.8.20.1
4.Add dns server in resolve file 10.1.1.10 an 11 here is my dns server. write yo
ur own network dns server.
nano /etc/resolv.conf
nameserver 10.1.1.10
nameserver 10.1.1.11
5.Export Proxy if you uses it
export http_proxy="username:password@host:port/"
export https_proxy=$http_proxy
export ftp_proxy=$http_proxy
export rsync_proxy=$http_proxy
export no_proxy="localhost,127.0.0.1"
6.Partitioning disk using cfdisk .. Assuming disk to be mbr
lsblk ## lsblk displays all your partitions
cfdisk /dev/sdb ## assuming mine hard disk is "sdb" where I want
to install arch
7.Partion your Hard disk unallocated partion into three. One for root, one for s
wap and one for home with appropriate size.
8.Now format the partion as below ,Assuming my partions are sdb5 --root sdb6 --s
wap and sdb7 --home
mkfs.ext4 /dev/sdb5
mkfs.ext4 /dev/sdb7
mkswap /dev/sdb6
swapon /dev/sdb6
mount /dev/sdb5 /mnt
mkdir /mnt/home
mount /dev/sdb7 /mnt/home
9.Edit mirrorlist and add nearest mirror at the top from the list in following f
ile
nano /etc/pacman.d/mirrorlist ## If you are from India put IIT-Kanpur a
t top.
10.Now install base system and generate fstab as below
pacstrap -i /mnt base base-devel
genfstab -U -p /mnt : sed 's/rw,realtime,data=ordered/defaults,realtim
e/' >> /mnt/etc/fstab
11.Now chroot into your new system and edit locale file to uncomment (remove # f
rom your preferred language)
arch-chroot /mnt
nano /etc/locale.gen
12.Now save it by ctrl plus x then yes and then type
locale=gen
echo LANG=en_US.UTF-8 > /etc/locale.conf
export LANG=en_US.UTF-8
13.Set localtime assuming mine to be kolkata
ln -s /usr/share/zonetime/Asia/Kolkata/etc/localtime
hwclock --systohc --utc
14.Edit pacman file to uncomment multilib and include repository and save it.
nano /etc/pacman.conf
15.Now generate initial ram disk as below
mkinitcpio -p linux
16.Change root password by typing command
passwd
17.Add a user as below supposing my username is dxd and then add password
useradd -m -g users -G wheel -s /bin/bash dxd
passwd dxd
18.Now update repository and install grub bootmanager
pacman -Syy
pacman -S grub-bios
pacman -S os-prober
grub-install /dev/sdb
grub-mkconfig -o /boot/grub/grub.cfg
19.Now exit from chroot by typing
exit
20.unmount mounted volume as below and reboot and also remove installation media
(cd or usb stick)
umount /mnt/home
umount /mnt
reboot
21.Now login as root user and install sudo and edit it to give superuser access
to users like dxd here and then reboot
root
pacman -S sudo
nano /etc/sudoers
dxd All=(All) All ## This is the line in sudoers file root ALL=(ALL) Al
l . replace root to dxd
reboot
22.Now login as user here dxd
dxd ## and then type your user password
23.Now again follow steps 1 to 5 to establish internet connection and then insta
ll gnome (a window manager)
pacman -S gnome xorg
systemctl enable gdm.service
reboot
24.Now you will prompted with nice dialog box asking user and password, select y
our user and type password and then configure
your system for net using network manager and then enjoy ARCHLINUX.....
Thanks for following...
ANY SUGGESTION AND REQUEST FOR EDITING IS ACCEPTABLE.
MAIL ME at s.sumitsaxena93@gmail.com

Anda mungkin juga menyukai