Step-by-step to get my archlinux configuration
- Download Arch Linux .iso at http://archlinux.org/download/
- Create a live usb and boot:
dd bs=4M if=/home/Downloads/archlinux-2020.11.01-x86_64 of=/dev/sdb status=progress && sync
- Insert arch boot disk
- Setup the keyboard layout:
# list all available keyboard layout
ls /usr/share/kbd/keymaps/**/*.map.gz
# load the keyboard layout
loadkeys br-abnt2.map.gz
- Set the partitions of the disk:
-
list all partitions:
fdisk -l
-
start cfdisk tool:
cfdisk /dev/sda
-
create three partition (one for arch linux, boot and another for swap area):
- Delete all partitions
- Add new partition for arch and define the partition size
- Add another partition for swap and define the partition size (it should be twice the RAM size)
- Define its type as Linux swap
- Add another partition for bios boot and define the partition size
- Define its type as BIOS Boot
- Choose
write
option to write the partition table
- Create a system file:
mkfs.ext4 /dev/sda1
- Create a swap file system:
mkswap /dev/sda2
- Mount the root file system:
mount /dev/sda1 /mnt
- Turn on the swap:
swapon /dev/sda2
- Install the base system:
pacstrap /mnt base linux linux-firmware vim nano wget
- Create the filesystem table:
genfstab -U /mnt >> /mnt/etc/fstab
- Login as root to newly installed Arch:
arch-chroot /mnt
- Configure timezone:
ln -sf /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime
- Generate Locale File:
locale-gen
echo "LANG=pt_BR.UTF-8" > /etc/locale.conf
- Install DHCP:
pacman -S dhcpcd
- Create a hostname:
echo [hostname] > /etc/hostname
- Create a hostname file:
nano /etc/hosts
# type:
127.0.0.1 localhost
::1 localhost
127.0.0.1 [hostname]
- Enable DHCP:
systemctl enable dhcpcd
- Generate root password:
passwd
- Create GRUB boot loader:
pacman -S grub os-prober
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
- Restart without boot disk:
# Last steps
exit
shutdown now
- Create a sudo user:
# Create a sudo user
useradd -m [user]
passwd [user]
pacman -S sudo
EDITOR=nano visudo
# Add the following line after root
[user] ALL=(ALL) ALL
- Install the packages:
# Installing KDE Plasma desktop
pacman -S --needed xorg sddm
pacman -S --needed plasma kde-applications
- Enable display server and network:
sudo systemctl enable sddm.service
sudo systemctl enable NetworkManager.service
- The Linux kernel includes open-source video drivers and support for hardware accelerated framebuffers. However, userland support is required for OpenGL and 2D acceleration in X11:
- First, identify the graphics card (the Subsystem output shows the specific model):
lspci -v | grep -A1 -e VGA -e 3D
- Install an appropriate driver. You can search the package database for a complete list of open-source video drivers: https://wiki.archlinux.org/index.php/xorg#Driver_installation
# Search at pacman
pacman -Ss xf86-video
# Install the correct one
pacman -S xf86-video-intel
- Configure sddm and reboot:
# To change manual configuration at theme
sudo nano /usr/lib/sddm/sddm.conf.d/default.conf
# In theme add
Current=breeze
# Last steps
sudo systemctl reboot
- Install wifi drivers:
# Configure internet connection
pacman –S b43-fwcutter
export FIRMWARE_INSTALL_DIR="/lib/firmware"
wget https://www.lwfinger.com/b43-firmware/broadcom-wl-5.100.138.tar.bz2
tar xjf broadcom-wl-5.100.138.tar.bz2
sudo b43-fwcutter -w "$FIRMWARE_INSTALL_DIR" broadcom-wl-5.100.138/linux/wl_apsta.o
pacman –S wireless_tools wpa_supplicant dialog
- In System settings:
- Show menu > Configure > Show in icons
- Plasma Style > Install Layan and select it
- App Styles > Window decoration > Download Arc-OSX-aurorae > Select dark version
- Click Edit at Arc Dark > Button Size: Tiny
- In tab Titlebar Buttons > remove the two buttons of the left side
- Drag and drop close, minimize and maximize buttons to the left side
- Icons > Download Ghost Flat and select
- Screen Behavior > Screen Locking > Appearance > Select Fluxo
- In Panel:
- Right Click > Add Widget...
- Add Global Menu
- Right button click > Edit panel...
- Drag Screen edge and drop upper limit of the screen
- Panel height: 22
- Remove desktop button
- Add spacer between global menu and notification widget
- Right click at notification > Settings > Entries:
- Vault: Always hidden
- Clipper: Always hidden
- Battery: Always shown
- Volume Control: Always hidden
- Volume Audio: Always shown
- Right Click at launcher > Show Alternatives > Application Menu
- Right Click > Add Widget...
- Open Dolphin:
- Hide Recent and Search For sessions
- Right Click at Toolbar:
- Text Position: Icons Only
- sudo pacman -S latte-dock
- Open Latte Dock:
- Right click > Add Widgets:
- Add Trash Can > ok
- Right click > Dock Settings:
- Remove Clock
- Visibility > Dodge All Windows
- Appearance > Active Advanced
- Right click > Add Widgets:
- Open Latte Dock:
Tutorial for i3: https://www.tecmint.com/i3-tiling-window-manager/amp/
Set my vim for typescript development: https://thoughtbot.com/blog/modern-typescript-and-react-development-in-vim