0% found this document useful (0 votes)
51 views3 pages

Burn To Usb Base System Installation: YAOURT Edit /etc/pacman - Conf

This document provides instructions for: 1. Installing Arch Linux to USB or hard drive, partitioning disks, installing the base system, configuring locale, timezone, and hostname. 2. Installing and configuring a desktop environment like GNOME, enabling graphical login, and rebooting. 3. Additional post-installation steps like configuring GRUB, enabling extra repositories, installing packages, and configuring polkit rules for privileged actions.

Uploaded by

CJDMTester
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views3 pages

Burn To Usb Base System Installation: YAOURT Edit /etc/pacman - Conf

This document provides instructions for: 1. Installing Arch Linux to USB or hard drive, partitioning disks, installing the base system, configuring locale, timezone, and hostname. 2. Installing and configuring a desktop environment like GNOME, enabling graphical login, and rebooting. 3. Additional post-installation steps like configuring GRUB, enabling extra repositories, installing packages, and configuring polkit rules for privileged actions.

Uploaded by

CJDMTester
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 3

BURN TO USB –


speaker-test -c2
pacman -S xorg-server xorg-server-utils xorg-init xorg-
– dd bs=4M if= of=/dev/sdX twm xorg-xclock xterm
– startx
BASE SYSTEM INSTALLATION –

pacman -S xf86-video-ati mesa-libgl mesa-vdpau
EDITOR=nano visudo "uncheck %wheel all=(all) all"
– loadkeys – useradd -m -g users -G storage,power,wheel -s /bin/bash
– ping -c 3 www.google.com "myuser"
– fdisk or cfdisk "partioning; easier cfdisk" – passwd "myuser"
– mkfs.ext4 /dev/sdaX; mkswap /dev/sdaX; swapon – exit
/dev/sdaX – "log 'myuser"
– lsblk -f "list block devices" – sudo pacman -S gnome gnome-extra "or any DE"
– mount dev/sdaX /mnt – sudo systemctl enable gdm.service
– mkdir /mnt/home ("or
– mount /dev/sdaX /mnt/home ls -la
– pacstrap -i /mnt base base-devel nano.xinitrc
– genfstab -U -p /mnt >> /mnt/etc/fstab (check with nano chmod +x .xinitrc
/mnt/etc/fstab) ls -la")
– reboot
BASIC CONFIGURATION POST INSTALLATION
– arch-chroot /mnt [/bin/bash]
– nano /etc/locale.gen then locale-gen YAOURT > edit /etc/pacman.conf
– echo LANG=en_US.UTF-8 > /etc/locale.conf [archlinuxfr]
– export LANG=en_US.UTF-8 SigLevel = Never
– loadkeys es Server = http://repo.archlinux.fr/$arch
– nano /etc/vconsole.conf ">" KEYMAP=es – sudo pacman -Syy
– ln -s /usr/share/zoneinfo/America/Caracas /etc/localtime – sudo pacman -S yaourt
"make links between files"
– hwclock --systohc --utc GRUB edit /etc/default/grub:
– echo "myhostname" > /etc/hostname ">" nano /etc/hosts GRUB_DEFAULT=saved
"Sustituir con 'myhostname'" GRUB_TIMEOUT=10
– systemctl enable dhcpcd.service "optional" GRUB_CMDLINE_LINUX_DEFAULT="quiet"
– mkinitcpio -p linux "optional" GRUB_SAVEDEFAULT="true"
– passwd
– pacman -S grub os-prober "if with another OS" "Add to /etc/grub.d/40_custom":
– grub-install --target=i386-pc --recheck /dev/sda
– grub-mkconfig -o /boot/grub/grub.cfg menuentry "System shutdown" {
– exit ">" umount -R /mnt ">" reboot echo "System shutting down..."
– "log root user" halt
– pacman -Syy "edit /etc/pacman.conf for multilib if }
necesary"
– pacman -S mlocate
menuentry "System restart" {
– updatedb
echo "System rebooting..."
– pacman -S alsa-utils "set alsamixer"
reboot
}
– grub-mkconfig -o /boot/grub/grub.cfg Silent boot
WIFI Remove fsck from HOOKS=(...) in /etc/mkinitcpio.conf
– mkinitcpio -p linux
– systemctl disabled dhcpcd.service or netctl Edit /etc/default/grub:
– systemctl enable NetworkManager.service
GRUB_CMDLINE_LINUX_DEFAULT="quiet rd.udev.log-
POLKIT priority=3"
Rules to allow mounting, rebooting and network management – grub-mkconfig -o /boot/grub/grub.cfg
without a password
"If starting version 21X persist add "udev_log=3" "to
// /etc/polkit-1/rules.d/10-rules.rules /etc/udev/udev.conf" or (if it does not work) add"
// PolKit rules to allow mounting, rebooting and network rd.udev.log-priority=3 to the kernel command line (e on
management without password. boot)
// User needs to be in storage, power and users groups.
"Copy the files "systemd-fsck-root.service" and "systemd-
polkit.addRule(function(action, subject) { [email protected] located" at /usr/lib/systemd/system/ to
if (action.id.match("org.freedesktop.udisks2.") && /etc/systemd/system/ and edit them, configuring
subject.isInGroup("storage")) { StandardOutput and StandardError":
return polkit.Result.YES; (...)
}
}); [Service]
Type=oneshot
polkit.addRule(function(action, subject) { RemainAfterExit=yes
if (action.id.match("org.freedesktop.login1.") && ExecStart=/usr/lib/systemd/systemd-fsck
subject.isInGroup("power")) { StandardOutput=null
return polkit.Result.YES; StandardError=journal+console
} TimeoutSec=0
});
(...)
polkit.addRule(function(action, subject) {
if (action.id.match("org.freedesktop.upower.") && [Service]
subject.isInGroup("power")) { Type=oneshot
return polkit.Result.YES; RemainAfterExit=yes
} ExecStart=/usr/lib/systemd/systemd-fsck
}); StandardOutput=null
StandardError=journal+console
polkit.addRule(function(action, subject) { FsckPassNo=1
if (action.id.match("org.freedesktop.NetworkManager.") && TimeoutSec=0
subject.isInGroup("users")) { Access phone, cameras, USB disks
return polkit.Result.YES; – gvfs-afc
} – gvfs-mtp
});
Totem h264 codec In case grub is unable to boot your kernel, or if your
– gst-libav initramfs is broken, you can boot into a safe system using an
Arch live CD. Once finished with repairs, unmount the
Flac tools (split flac albums: cuebreakpoints broken system, and reboot.
album.cue | shnsplit -o flac album.flac)
Mounting and chrooting a broken system
– pacman -S cuetools shntool id3v2
Once booted and at a console prompt, use the following to
Windows partitions mount and repair your broken system (where /dev/sda3 is
– pacman -S ntfs-3g “/” and /dev/sda1 is “/boot”):
Mount Media First, create the mount point, and mount your root / file
Edit /etc/fstab system to it; then, cd into it.
– # mkdir /mnt/arch
/dev/sdaX /media/CJDMedia ext4 defaults 0 0
– # mount /dev/sda3 /mnt/arch
Font configuration – # cd /mnt/arch
Edit /etc/pacman.conf Now, create the proc, sysfs, and dev file systems
[infinality-bundle] – # mount -t proc proc proc/
Server = http://bohoomil.com/repo/$arch – # mount -t sysfs sys sys/
– # mount -o bind /dev dev/
Add the key Next, mount the boot partition if you use one.
– sudo pacman-key -r 4209170B – # mount /dev/sda1 boot/
– pacman-key -f keyid Finally, chroot into /mnt/arch which will become /.
– pacman-key --lsign-key keyid – # chroot .
You may first need to run dirmngr as root Turn on networking.
– sudo dirmngr < /dev/null Reinstalling with pacman
HP Photosmart C3180 PRINTING and SCANNING The author uses pacman in a chrooted broken system to
– cups reinstall the kernel, GRUB, initramfs, udev, and any other
– systemctl "start & enable" org.cups.cupsd.service packages that may be broken and/or needed to get the
– sane system up and running.
– hplip This will reinstall the kernel and initramfs so check that
"if printer is not recognised, add hpaio to /etc/sane.d/dll.conf" /etc/mkinitcpio.conf is correct or remove the file entirely and
Insults re-install mkinitcpio.
– # pacman -Syyu mkinitcpio linux udev
add to the "Defaults specification" in /etc/sudoers
Afterwards, unmount and reboot.
Defaults insults
Gnome-documents libreoffice support
– pacman -S unoconv
Misc software
– yaourt -S libreoffice quodlibet smplayer smplayer-themes
smplayer-skins easytag soundconverter audacity
transmission-gtk rar google-chrome goldendict-git rar

REPAIRING WITH ARCH LIVE CD

You might also like