Skip to content

Instantly share code, notes, and snippets.

@furdarius
Last active December 23, 2020 06:34
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save furdarius/20964fa0f49a7c563c4ba87a1b41e3b0 to your computer and use it in GitHub Desktop.
Save furdarius/20964fa0f49a7c563c4ba87a1b41e3b0 to your computer and use it in GitHub Desktop.
Arch Linux (Manjaro with xfce) bootstrap

How to Dual-boot Manjaro 16.10, Windows 10 on a computer with UEFI firmware

Mirrors

Build mirrors list and update packages

sudo pacman-mirrors --fasttrack && sudo pacman -Syyu

Language

Settings -> Keyboard -> Layout -> Add -> Choose

Also Change layout option

Show keyboard layout on panel

Settings -> Panel -> Items -> + -> Keyboard Layouts

Update Firmware

Use https://github.com/hughsie/fwupd

What if i have problems with sound on Dell Dock Station?

edrose/dell-dock-audio-fix#2

Try to patch /usr/share/alsa/ucm/Dell-WD15-Dock/HiFi.conf with: https://patchwork.kernel.org/patch/10647179/

diff --git a/src/conf/ucm/Dell-WD15-Dock/HiFi.conf b/src/conf/ucm/Dell-WD15-Dock/HiFi.conf
index b07f34400086..1b6bd21237f1 100644
--- a/src/conf/ucm/Dell-WD15-Dock/HiFi.conf
+++ b/src/conf/ucm/Dell-WD15-Dock/HiFi.conf
@@ -3,7 +3,7 @@  SectionDevice."Headphone" {
 
 	Value {
 		PlaybackChannels "2"
-		PlaybackPCM "hw:WD15Dock,0"
+		PlaybackPCM "hw:Dock,0"
 	}
 }
 
@@ -12,7 +12,7 @@  SectionDevice."LineOut" {
 
 	Value {
 		PlaybackChannels "2"
-		PlaybackPCM "hw:WD15Dock,1"
+		PlaybackPCM "hw:Dock,1"
 	}
 }
 
@@ -21,6 +21,6 @@  SectionDevice."Mic" {
 
 	Value {
 		CaptureChannels "2"
-		CapturePCM "hw:WD15Dock,0"
+		CapturePCM "hw:Dock,0"
 	}
 }

Disable beep sound

  1. Open "Session And Startup", tab "Application Autostart".
  2. Add command xset b off as Beep Disabler.

Wireless drivers

sudo pacman -Syu linux419-headers base-devel

Install broadcom-wl-dkms via "Add/Remove Software".

Terminal

Install Terminator: sudo pacman -Syu terminator

Use Terminator as default terminal emulator:

Preferred Applications -> Utilities Tab -> Change Terminal Emulator

To open Terminator on "CTRL+ALT+T" open Keyboard -> Application Shortcuts

ZSH + Oh-My-Zsh

Install ZSH: sudo pacman -Syu zsh zsh-completions

Install Oh-My-Zsh: sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Install powerline font

mkdir -p $HOME/.fonts
mkdir -p $HOME/.config/fontconfig/conf.d
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
mv PowerlineSymbols.otf $HOME/.fonts/
mv 10-powerline-symbols.conf $HOME/.config/fontconfig/conf.d/
fc-cache -vf $HOME/.fonts/

Change Theme

Edit ~/.zshrc, set ZSH_THEME: ZSH_THEME="agnoster"

Timezone troubleshooting

https://wiki.archlinux.org/index.php/System_time#Time_zone

Time sync example for Europe/Moscow timezone:

sudo timedatectl set-timezone Europe/Moscow && sudo ntpd -qg && sudo hwclock --systohc

Setup your daily basis software

As example, my dotfiles repo: https://github.com/furdarius/dotfiles

Virtualization

Complete Installation of KVM,QEMU and Virt Manager on Arch Linux and Manjaro

After installation add yourself to libvirt group

sudo usermod --append --groups libvirt `whoami`

Windows VM

https://dennisnotes.com/note/20180614-ubuntu-18.04-qemu-setup/

Minikube

See: http://blog.programmableproduction.com/2018/03/08/Archlinux-Setup-Minikube-using-KVM/

See: https://gist.github.com/furdarius/ba21ed14b6894515aec33d18d0f21793

Simplest way:

Via "Add/Remove software" install:

Starting: minikube start --cpus=4 --memory=8192 --vm-driver kvm2

Perfomance Optimizations

See: https://gist.github.com/furdarius/94c178d437f56de19a115dc37941d972

NFS:

# Refresh exported mounts
sudo exportfs -rav
# Check exported mounts
sudo exportfs -v
# Restart NFS server
sudo systemctl restart nfs-server.service

Font

https://github.com/tonsky/FiraCode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment