A set of scripts and configs to help with installation and configuration of Arch Linux
- 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
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
.
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
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
curl -L https://github.com/koponomarenko/arch_linux_setup_tools/archive/master.tar.gz | tar zx
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
Add this kernel parameter (in bootloader) for STR(S3):
mem_sleep_default=deep
Delayed lid switch action should be set to 0.
/etc/systemd/logind.conf
...
HoldoffTimeoutSec=30s
...
Don't forget to start bluetoothctl
with sudo
.
Try NoInputNoOutput
agent to eliminate request of any pass codes when pairing.
sudo vim /etc/NetworkManager/conf.d/wifi_rand_mac.conf
[device]
wifi.scan-rand-mac-address=no
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.
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 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
Tags: sound
audio
volume
pulseaudio
pavucontrol
is a GUI volume control tool ("mixer") for PulseAudio.
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>
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