Pacman is the package manager utility for Arch Linux and its derivatives.
To install a single package or list of packages, including dependencies: pacman -S package_name1 package_name2 …, e.g., pacman -S barrier
To remove a simple package and its dependencies which are not required by any other installed package: pacman -Rs package_name.
System Update, update all packages on the system: sudo pacman -Syu, sudo reboot
Visit Pacmam Mirrorlist Generator, select your country, and replace the content of vim /etc/pacman.d/mirrorlist with your generated list.
sudo vim /etc/pacman.conf
[multilib]include= /etc/pacman.d/mirrorlist # Uncomment/enable the multilib repository to run 32-bit application on your 64-bit systems.
The Arch User Repository (AUR) is a community-driven repository for Arch users. There is a huge number of packages available in the Arch User Repository and there are also many AUR helpers that make using the AUR really easy. Yay is a popular AUR Helper written in Go.
First, we need to download the git package: sudo pacman -S git
Use. Install a package: yay -S package_name. Remove a package and its dependencies: sudo yay -Rns package_name. Upgrade all the packages on your system: sudo yay -Syu.
An SSH server, by default, listens on the standard TCP port 22. To start the sshd service: sudo systemctl start sshd.service. To enable and start sshd at boot time: sudo systemctl enable sshd.service.
Client. Let’s use locally available keys to authorise logins on a remote machine. ssh_copy uses ssh to log into a remote machine and adds the keys by appending them to the remote user’s ~/.ssh/authorized_keys: ssh-copy-id [email protected].
Create an alias, gedit .bash_aliases: alias sshRemoteComputer=‘ssh [email protected]’.
To keep alive ssh sessions. sudo vim /etc/ssh/ssh_config:
RealVNC is a company that provides remote access software. It provides a secure, cross-platform remote desktop experience, so it works across devices and operating systems.
Install both the client and the server from the AUR repositories: yay -S realvnc-vnc-server, yay -S realvnc-vnc-viewer
Create a RealVNC account. Their Home subscription is a free solution for personal use. You can access up to 5 internet-connected computers securely from any device running their VNC® Viewer app.
Start the service (sudo systemctl start vncserver-x11-serviced) and enable it (sudo systemctl enable vncserver-x11-serviced).
When the RealVNC service is running, a VNC icon will be displayed in the system tray. Click on it to start the server GUI tool and provide your account details (email and password) so VNC is licensed and configured correctly to accept connections.
Barrier: pacman -S barrier. Let’s install it as a client.
Server (let’s say your laptop or PC with macOS, Windows or GNU/Linux): Server (share this computer’s mouse and keyboard).
Client (Arch Linux): Client (use another computer’s mouse and keyboard). Screen name (Arch Linux’s name, e.g., nmaximo7Arch), Server IP (self-explanatory).
Barrier, Change Settings: Start Barrier on startup.
Autostart Barrier. Remember that an xprofile file (~/.xprofile) allows you to execute commands at the beginning of the X user session - before the window manager is started. gedit ~/.xprofile:
#!/bin/sh /usr/bin/barrier -f --no-tray --debug INFO --name nmaximo7Arch [192.168.1.40]:24800 &
It means, -f: run in the foreground; ‐‐no-tray: disable the system tray icon; ‐‐name nmaximo7Arch: use nmaximo7Arch instead of hostname to identify this screen in the barrier’s configuration; [192.168.1.40]:24800: server’s dirIP:port.
Dropbox. Firstly, we clone its repository: git clone https://aur.archlinux.org/dropbox.git, cd dropbox. Secondly, we create a package, install the package and missing dependencies after a successful build using pacman (-si): makepkg -si. Finally, we want the service to autostart on boot with systemd: sudo systemctl edit [email protected] (e.g., [email protected]):
Brave: Firstly, we clone its repository: git clone https://aur.archlinux.org/brave-bin.git, cd brave-bin. Secondly, we create a package, install the package and missing dependencies after a successful build using pacman (-si): makepkg -si. Alternatively, you may want to install Google Chrome: yay -S google-chrome.
Enable Brave Rewards: Click the Rewards icon △ Rewards Settings, Verify Wallet, Uphold. Fine-tune your Brave Rewards settings: Auto-Contribute (disable, this is a way to automatically support publishers and content creators), Brave Private Ads Settings (10 ads per hour).- Generating a new GPG keypair: gpg ‐‐full-generate-key. Git: git config ‐‐global user.name “YourName”, git config ‐‐global user.email [email protected]
Install (sudo pacman -S keepassxc) and launch KeePassXC (password manager), select the Settings option or the cog wheel icon from the Tools menu, and then, Browser Integration, Enable browser integration. In the General tab: Enable integration for these browsers: Chrome, Firefox, Brave, etc. Open your browser, install the extension KeePassXC-Browser, and connect it to KeePassXC. Give the connection a unique name, then click on Save and allow access.
Error: VSCode: There is no Pip installer available in the selected environment. Solution: Edit ./venv/pyvenv.cfg: include-system-site-packages = true. Python files will now go to the virtual environment and the system packages are visible, too.
Change your user settings. Open the Command Palette (Ctrl+Shift+P) and type: Preference: Open Settings (JSON) (File, Preferences, Settings), e.g., “editor.fontFamily”: “Consolas”, // It controls the font family, yay -S consolas-font
Changing GRUB timeout in Arch.
Edit GRUB’s configuration file: sudo vim /etc/default/grub
Multimedia: PulseAudio is a general-purpose sound server intended to run as a proxy or middleware between your applications and your hardware devices: sudo pacman -S pulseaudio pavucontrol (PulseAudio Volume Control), yay -S paman (PulseAudio Manager, GUI). Nuclear Music Player (yay -s nuclear-player-bin) is a free music streaming app that allow its users to listen to music from many services.
%wheel ALL=(ALL:ALL) ALL # It allows members of group wheel to execute any command (sudo access).Defaults insults # It is useless, but funny.Defaults:USER_NAME !authenticate # It disables asking for a password for user USER_NAME (not safe).
Rambox allows you to manage all your web services from one place in an efficient manner. Installation: yay -Sy rambox-bin. Configuration: File, Preferences, Override User-Agent for all services: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.87 Safari/537.36 (WhatIsMyBrowser.com).