Skip to content

MurikiGY/Dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

143 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

General Setup

Good tutorial for i3 customization

https://itsfoss.com/i3-customization/

Discord for wayland

https://lemmy.ml/post/1557630

Text editor setup

Delete files that might conflict.

rm -rf ~/.local/share/nvim

Copy the files from config/nvim to ~/.config/nvim.

Call nvim in a terminal and wait for the compiling of all the packages. It might take some time.

For LSP configuration, open nvim and install using mason.

Cmake projects

First, make sure clangd is installed with mason and is working. Add the following line to CMakeLists.txt and build the project.

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

This will generate a file in build/compile_commands.json or build/release/compile_commands.json.
Create the file .clangd at the root of the project.

---
CompileFlags:
  CompilationDatabase: build/release

Finally, test clangd is finding the functions and classes definitions.

Arch Linux

Based on Diolinux: https://diolinux.com.br/sistemas-operacionais/arch-linux/como-instalar-arch-linux-tutorial-iniciantes.html

!!! BIOS CHECK !!!

Verify if the options:

  • RST is disabled
  • Secure Boot is disabled
  • AHCI is set instead of RAID

Verify boot mode

Check if the /sys/firmware/efi/efivars file exists.
If it exists then the instalation will be for UEFI, otherwise BIOS.

Internet connection

iwctl
station list
station <device> scan
station <device> get-networks
station <device> connect <connetion>

Check the internet connection with ping google.com

Partition the disks

In BIOS:

  • /dev/sda1 # Root
  • /dev/sda2 # Home

In UEFI

  • /dev/sda1 # Root
  • /dev/sda2 # Home
  • /dev/sda3 # Boot

Format partitions

# Root and home
mkfs.ext4 </dev/sda*>
# Boot
mkfs.fat -F32 </dev/sda*>

Mount the filesystem

# Root and home
mount /dev/sda1 /mnt
mount --mkdir /dev/sda2 /mnt/home
# If using EFI also mount boot
mount --mkdir /dev/sda3 /mnt/boot/efi

Install essential packages

# Scrach system install
pacstrap -K /mnt base linux linux-firmware vim iwd dhcpcd dosfstools
# Fstab for mounting partitions
genfstab -U -p /mnt >> /mnt/etc/fstab
# Enter the new system as root
arch-chroot /mnt

Basic setup

# Timezone
ln -sf /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime
# Localization
# Uncomment the line pt_BR.UTF-8 in /etc/locale.gen
locale-gen
# locale config
echo LANG=pt_BR.UTF-8 >> /etc/locale.conf
# Keyboard
echo KEYMAP=br-abnt2 >> /etc/vconsole.conf
# Hostname
echo thehostnameilike >> /etc/hostname

Initramfs

mkinitcpio -P

Root and User password

# Root password
passwd
# Create new user and set password
useradd -m -g users -G wheel,storage,power -s /bin/bash theusernameilike
passwd theusernameilike

Bootloader with GRUB

Now make sure to known if you are using BIOS Legacy or EFI

For BIOS

pacman -S grub
grub-install --target=i386-pc --recheck /dev/sda --force
grub-mkconfig -o /boot/grub/grub.cfg

For UEFI

pacman -S grub efibootmgr
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --recheck
grub-mkconfig -o /boot/grub/grub.cfg

Exit the arch-chroot and dismount the disks

umount -l /dev/sda1
umount -l /dev/sda2
umount -l /dev/sda3

Finally, reboot and pray.

And then login with the user you created

Internet connection

Start and enable dhcpcd and iwd

systemctl enable dhcpcd
systemctl enable iwd
systemctl start dhcpcd
systemctl start iwd

8021x Networks

Create a file as root in /var/lib/iwd/mywifiname.8021x

[Security]
EAP-Method=TTLS
EAP-Identity=myusername
EAP-TTLS-Phase2-Method=Tunneled-PAP
EAP-TTLS-Phase2-Identity=myusername
EAP-TTLS-Phase2-Password=thepasswordformyusername

[Settings]
AutoConnect=true

Update clock/date/locale

timedatectl set-ntp true
localectl set-locale LANG=pg_BR.UTF-8
localectl set-keymap --no-convert bt-abnt2

Mirrors

Update the pacman mirrors to improve pacman

Server = https://archlinux.c3sl.ufpr.br/$repo/os/$arch

Graphical interface

Check the files i3_setup.md and sway_setup.md

Firefox

Compact mode

about:config -> browser.compactmode.show -> set true -> customize toolbar -> Density -> Compact

Screenshot

customize toolbar -> add screenshot

Usual system problems and solutions

# Get device name
for i in /sys/class/hwmon/hwmon*/temp*input; do echo "$(<$(dirname $i)/name): $(cat ${i%}label 2>/dev/null || echo $(basename ${i%})) $(readlink -f $i)"; done

# Edit /etc/xdg/waybar/config.jsonc and change hwmon-path
    "temperature": {
        // "thermal-zone": 2,
        // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
        "hwmon-path": "/sys/devices/platform/coretemp.0/hwmon/hwmon7/temp1_input",
        "critical-threshold": 80,
        // "format-critical": "{temperatureC}°C {icon}",
        "format": "{temperatureC}°C {icon}",
        "format-icons": ["", "", ""]
    },

About

Arch i3/sway setup files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors