Skip to content

A set of scripts and configs to help with installation and configuration of Arch Linux

License

Notifications You must be signed in to change notification settings

koponomarenko/arch_linux_setup_tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arch Linux configs and scripts

A set of scripts and configs to help with installation and configuration of Arch Linux


Installation details

  • x86_64 CPU
  • Intel CPU and Intel IGP (integrated graphics).
  • UEFI boot mode
  • Only one system disk.
  • GPT for the system disk
  • No shared OS on this hardware - only one OS.
  • Only US English locale is used.
  • init system: systemd
  • boot loader: GRUB
  • One user account

Set up tips

Options are set using environment variables.

set_environment.sh - sets a minimum needed environment for those tools to work.

prepare.sh - generates high level scripts.

Use sudo -E <script> to run the script with root privileges and keep the environment.

To print all packages without installing them, set export print_pkgs=yes.

HiDPI boot

The Arch Linux ISO uses systemd-boot, so you can hit “e” when the menu appears and append parameters to the kernel line (or at the very end). Setting only this one should do the work:

video=1280x720

Set up WiFi

https://wiki.archlinux.org/index.php/WPA_supplicant#Connecting_with_wpa_passphrase

Connect to the network

wpa_supplicant -i <interface> -c <(wpa_passphrase MYSSID passphrase)

Then start dhcpcd for the interface

systemctl start dhcpcd@<interface>.service

Getting those tools

curl -L https://github.com/koponomarenko/arch_linux_setup_tools/archive/master.tar.gz | tar zx

Manual settings

HiDPI

Add the lines belows to /etc/default/grub:

GRUB_CMDLINE_LINUX="video=1280x720"
GRUB_GFXMODE=1280x720x32,1280x1024x32,auto
# Comment out this one
#GRUB_GFXPAYLOAD_LINUX=keep

Generate the updated GRUB config:

sudo grub-mkconfig -o /boot/grub/grub.cfg

Power management

Add this kernel parameter (in bootloader) for STR(S3):

mem_sleep_default=deep

logind suspend delay

Delayed lid switch action should be set to 0.

/etc/systemd/logind.conf
...
HoldoffTimeoutSec=30s
...

bluetoothctl

Don't forget to start bluetoothctl with sudo.
Try NoInputNoOutput agent to eliminate request of any pass codes when pairing.

Network Manager

Disable MAC randomization

sudo vim /etc/NetworkManager/conf.d/wifi_rand_mac.conf

[device]
wifi.scan-rand-mac-address=no

Some useful tips for a day to day work

Detect xwayland users (apps)

Tags: xeyes xwayland

Install xorg-xeyes and run it using xeyes.

Start moving a mouse over a window. If eyes are moving - then the app is using xWayland.

NetworkManager

Tags: nmcli nmtui wifi

Check status

nmcli radio
nmcli device

Show available networks and connect

nmcli device wifi rescan
nmcli device wifi list
nmcli -a device wifi connect <SSID-name>

An alternative is nmtui - Text User Interface for controlling NetworkManager.

nmcli and WiFi wpa2 enterprise

nmcli con add type wifi ifname IFNAME con-name CONNECTION_NAME ssid SSID
nmcli con edit id CONNECTION_NAME
nmcli> set 802-1x.eap peap
nmcli> set 802-1x.phase2-auth mschapv2
nmcli> set wifi-sec.key-mgmt wpa-eap
nmcli> set 802-1x.identity USERNAME
nmcli> save
nmcli> quit
nmcli -a con up CONNECTION_NAME

Sound/audio control

Tags: sound audio volume pulseaudio

pavucontrol is a GUI volume control tool ("mixer") for PulseAudio.

Markdown Preview

Tags: markdown

grip is a nice tool to preview a markdown file in a browser - https://github.com/joeyespo/grip.

cd <dir_with_file>
grip

or

grip <file_name>

Java

Android Studio

if you are facing the floating menu issue the fastest way for me was to open Android Studio 4.0+
Then Help > Open Custom VM Options
And add this line as suggested above:

-Djbre.popupwindow.settype=false

About

A set of scripts and configs to help with installation and configuration of Arch Linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published