Skip to content

Instantly share code, notes, and snippets.

@fabioluciano
Last active April 30, 2024 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabioluciano/d51e642c9ed1cce914c41ce62fa5e33f to your computer and use it in GitHub Desktop.
Save fabioluciano/d51e642c9ed1cce914c41ce62fa5e33f to your computer and use it in GitHub Desktop.
ArchInstall

Arch Install

Set Font

setfont ter-g22n

localectl list-keymaps | grep us-acentos loadkeys us-acentos

configure Network

iwctl device list
iwctl station wlan0 scan
iwctl station wlan0 get-networks
iwctl station wlan0 connect Blackhole
iwctl station wlan0 show

test network

curl -I google.com
reflector --country BR --latest 5 --sort rate --save /etc/pacman.d/mirrorlist
sed -i 's/^#Color/Color/' /etc/pacman.conf
sed -i 's/^#ParallelDownloads/ParallelDownloads/' /etc/pacman.conf
sed -i '/^\[extra\].*/i [community]\nInclude = /etc/pacman.d/mirrorlist\n' /etc/pacman.conf
timedatectl set-ntp true

LVM

mkfs.ext4 /dev/nvme/root -L root
mkfs.vfat /dev/nvme0n1p1 -n boot


mount /dev/nvme/root /mnt

mkdir -p /mnt/{boot/efi,home,opt,var,mnt/{srv,vdi,doc,shared}}

mount /dev/nvme0n1p1 /mnt/boot

mount -o defaults,uid=1000,gid=1000 /dev/sda1 /mnt/mnt/shared




pacstrap /mnt base base-devel linux linux-firmware vim linux-headers reflector
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime
hwclock --systohc --utc
reflector --country BR --latest 5 --sort rate --save /etc/pacman.d/mirrorlist
sed -i 's/ˆ#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
locale-gen
echo LANG=en_US.UTF-8 > /etc/locale.conf
echo aesahaettr > /etc/hostname
echo -e "127.0.0.1\tlocalhost" >> /etc/hosts
echo -e "::1\tlocalhost" >> /etc/hosts
echo -e "127.0.1.1\taesahaettr.localdomain aesahaettr" >> /etc/hosts

base

pacman -S --needed - $(curl -X GET -L https://is.gd/oRE0ys)

base2

pacman -S --needed - $(curl -X GET -L https://is.gd/hKMZyg)
pacman -S --needed - $(curl -X GET -L https://is.gd/RrjBSA)
pacman -S --needed - $(curl -X GET -L https://is.gd/o8sTbq)
pacman -S --needed - $(curl -X GET -L https://is.gd/6Vq7bV)
passwd
useradd -m -G sys,log,network,floppy,scanner,power,rfkill,users,video,storage,optical,lp,audio,wheel,adm -s /bin/zsh fabioluciano
passwd fabioluciano
sed -i 's/ˆ# %wheel ALL=(ALL:ALL) ALL$/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=ArchLinux

nvidia

pacman -S --needed - $(curl -X GET -L https://is.gd/8OD7Ib)

xfce

pacman -S --needed - $(curl -X GET -L https://is.gd/R26Rod)
vim /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 nvidia-drm.modeset=1"
grub-mkconfig -o /boot/grub/grub.cfg
vim /etc/mkinitcpio.conf

MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)
mkinitcpio -p linux
systemctl enable bluetooth dhcpcd firewalld fstrim.timer lightdm NetworkManager plocate-updatedb.timer sshd upower
alsa-utils
amd-ucode
arch-install-scripts
archinstall
base
dhcpcd
diffutils
dmidecode
dnsmasq
dosfstools
efibootmgr
exfatprogs
fatresize
fsarchiver
gnu-netcat
gpart
gptfdisk
grub
hdparm
iw
iwd
less
libfido2
libusb-compat
linux
linux-firmware
lsscsi
lvm2
man-db
man-pages
memtest86+
mkinitcpio
mkinitcpio-archiso
mkinitcpio-nfs-utils
nano
nfs-utils
nilfs-utils
nmap
ntfs-3g
nvme-cli
open-iscsi
openconnect
openssh
openvpn
partclone
parted
partimage
reflector
rsync
tmux
sdparm
smartmontools
sof-firmware
sudo
syslinux
systemd-resolvconf
tcpdump
usb_modeswitch
usbutils
vim
neovim
wireless-regdb
wireless_tools
wpa_supplicant
zsh
archiso
aspell
aspell-en
aspell-pt
base-devel
bash-completion
bluez
bluez-utils
cmake
devtools
dkms
efitools
fuse3
fwupd
git
htop
hunspell
hunspell-en_us
hwdata
hwdetect
hwinfo
linux-headers
logrotate
lsb-release
os-prober
p7zip
pacman-contrib
perl
plocate
python-setuptools
python-sphinx
tlp
udisks2
unrar
unace
unzip
upower
xz
zstd
archlinux-wallpaper
cantarell-fonts
freetype2
mesa
noto-fonts
opendesktop-fonts
ttf-bitstream-vera
ttf-caladea
ttf-carlito
ttf-croscore
ttf-dejavu
ttf-inconsolata
ttf-liberation
ttf-opensans
ttf-roboto
ttf-ubuntu-font-family
xorg
xorg-server
xorg-apps
xorg-drivers
xorg-xkill
xorg-xinit
xterm
xdg-user-dirs
lxqt
kwin
connman
sddm
slock
alsa-card-profiles
alsa-lib
alsa-plugins
alsa-firmware
alsa-utils
faac
faad2
ffmpeg
ffmpegthumbnailer
flac
gstreamer
gst-libav
gst-plugin-pipewire
gst-plugins-base
gst-plugins-good
gst-plugins-bad
gst-plugins-ugly
imagemagick
lame
libopenraw
mencoder
mjpegtools
mpv
pipewire
pipewire-alsa
pipewire-docs
pipewire-jack
pipewire-pulse
sox
vlc
x265
x264
xvidcore
curl
dnsutils
ethtool
firewalld
iptables
modemmanager
net-tools
netctl
networkmanager
networkmanager-openvpn
network-manager-applet
nftables
nm-connection-editor
nss-mdns
whois
nvidia-open-dkms
nvidia-utils
nvidia-settings
xfce4
xfce4-goodies
lightdm
lightdm-gtk-greeter
lightdm-gtk-greeter-settings
gvfs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment