ARCH

From ZENotes
Jump to: navigation, search

Installing Arch quick and dirty without 1000 hyperlinks.

1. From arch, to new drive, use the arch-install-scripts. Or burn an arch linux .iso to a fresh thumb drive (use sudo mkfs.vfat /dev/sdX –I for that. Do not use the trailing partition number!) with the 'dd' command and boot it. Reminder : dd works as if=/source/file of=/destination/folder where if means Input File and of means Output File. Don't confuse your /dev/sdX stuff, or you gonna erase something else.

2. Mount your target drive(s) ie root and home, possibly others to suit your taste.

3. Lets say your root is in /mnt of your target installation :

# pacstrap /mnt base linux linux-firmware pacman-contrib

And any other package you wish to have at hand at once, ie fucking networking for instance I say again: WIRELESS networking. Nano, sudo also probably. linux-lts if a fallback is in order 'current kernel dev' is moving great, but with way too much issues)

 pacstrap /mnt/Arch1-30 base linux-lts nano sudo nfs-utils iwd netctl dhcpcd networkmanager
 pacstrap /mnt/Arch1-30 mpg123 xmms2 mpv mplayer lame imlib2
 pacstrap /mnt/Arch1-30 xorg xorg-xinit

4. after installing everything and the kitchen sink, it's time to chroot into the install, and proceed to set up some parameters (users and such) & install more software. There's a limit to the installs you can do before configuring the system, since without a User for instance, Wine couldn't set up a drive_c anywhere; so basically one install as much base stuff as needed, then configure, then install end-user stuff.

[root@ThinkDMX2 /]# lsblk -dno UUID /dev/sdb4
ad860c96-ba47-4eac-8783-66e623213331
[root@ThinkDMX2 /]# genfstab -U /mnt/Arch1-30 >> /mnt/Arch1-30/etc/fstab 
[root@ThinkDMX2 /]# nano /mnt/Arch1-30/etc/fstab 
[root@ThinkDMX2 /]# arch-chroot /mnt/Arch1-30
[root@ThinkDMX2 /]# less /etc/fstab 
[root@ThinkDMX2 /]# ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime
[root@ThinkDMX2 /]# hwclock --systohc
[root@ThinkDMX2 /]# nano /etc/locale.gen    (remove en_GB and fr_FR)
[root@ThinkDMX2 /]# locale-gen              
Generating locales...
  en_GB.UTF-8... done
  fr_FR.UTF-8... done
Generation complete.
[root@ThinkDMX2 /]# nano /etc/vconsole.conf        (add KEYMAP=fr-latin1)
[root@ThinkDMX2 /]# nano /etc/locale.conf          (add LANG=en_US.UTF-8)
[root@ThinkDMX2 /]# nano /etc/hostname             (add any name of your choosing)
[root@ThinkDMX2 /]# nano /etc/hosts                (Use same name! 127.0.0.1       localhost
                                                                   ::1             localhost
                                                                   127.0.1.1       ThinksPLAY.SquirrelsLupanar     ThinkPLAY
                                                                   192.168.4.250   naspas

Make root password:

passwd

make a normal user:

useradd -m -G wheel username

then get YAY : https://ebblr.com/how-to-install-yay-on-arch-linux/

to be continued. Install base-devel.

Back to Linux

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox