Ease MANJARO (ARCH Linux) Installation and Setup
To update mirror list for faster pacman ;)
sudo pacman-mirrors -c India
reboot
to update changes
Update and Upgrade
sudo pacman -Syyuu
to update and upgrade all packages including system packages.
To install earlier versions of package
- Download package from https://archive.archlinux.org/packages/
- Update it
sudo pacman -U path/to/downloaded/package.pkg.tar.xz
frequent pacman errors
- “unable to lock database” or “failed to synchronize any databases”
sudo rm /var/lib/pacman/db.lck
- “invalid or corrupted package:”
sudo find /var/cache/pacman/pkg/ -iname "*.part" -exec rm {} ;
sudo pacman -Syyu
Install some useful packages
sudo pacman -Syu base-devel netcat
to install strings(from binutils), make, gcc, netcat, etc.,
sudo pacman -S pacaur
to get packages from Arch User Repository
sudo pacman -S snapd
snap cross-distribution package manager
pacaur -S stacer
stacer for system optimizing and monitoring
sudo pacman -S bleachbit htop powertop iftop iotop
sudo pacman -S git
git to get packages from open source repos like github,etc,.
sudo pacman -S docker
docker to use containers (a form of operating system virtualization)
sudo pacaur -S apt --noedit
yes, you can use apt in manjaro !
but it is still buggy :smirk:
Simple Python Version Management: pyenv
pyenv lets you easily switch between multiple versions of Python.
It’s simple, unobtrusive, and follows the UNIX tradition of single-purpose tools that do one thing well.
you can setup pyenv (py) using a single line
curl -L bit.ly/setup-pyenv | sh
this included some useful startup commands
the above line just executes these commands
If you are using Zsh
change ~/.bashrc to ~/.zshrc (or) manually copy paste ‘#pyenv{[\s\S]*#pyenv}’ in .bashrc into ~/.zshrc
windows
sudo pacman -Syu wine
wine to run windows executable in linux
android
- anbox Anbox is a free and open-source compatibility layer that aims to allow mobile applications and mobile games developed for Android to run on GNU/Linux distributions.
you can install it this way
- AndroidStudio you can install by this way or simply
sudo pacman -Syu androidstudio
for more details about moving apps to AVD, etc,. see
To backup and restore whole system
use timeshift (recommended)
sudo pacman -Syu timeshift
To apply system themes for all apps
While changing theme or style in Appearance section in System Settings, some apps won’t change.
To solve this
You need to set your GTK theme. It is in System Settings > Application Style > GNOME/GTK Application Style
This is because they are gnome/gtk apps, we have to set theme for them seperatly.
Also for browsers we have to make some configurations.
- Chromium : enabled the use of gtk3 theme
- FireFox :
- In Firefox, go to the about:config page (type about:config in the address bar).
- Click through the warning dialog.
- Right-click anywhere and select New > String.
- For the preference name, type widget.content.gtk-theme-override.
- For the value, type Breath2-Dark.
- Close the about:config tab.
- Close and reopen the Firefox application.
For full dark experience in browser, use darkreader
Autostart
To set default brightness (set at each boot)
just create and add below lines in ‘/etc/udev/rules.d/81-backlight.rules’ file
# Set backlight level to 15
SUBSYSTEM=="backlight", ACTION=="add", KERNEL=="amdgpu_bl0", ATTR{brightness}="15"
you can find ‘KERNEL’ in ‘/sys/class/backlight/’, which is just a directory name
more info
If you can’t able to change screen brightness by keys
- add
GRUB_CMDLINE_LINUX="acpi_backlight=none"
line in ‘/etc/default/grub’ sudo update-grub
reboot
Extra tools
- buildozer Buildozer is a tool for creating application packages easily, using python and kivy
to setup and configure buildozer see
- debtap A script for converting .deb packages into Arch Linux packages, focused on accuracy.
then install it using pacman
sudo pacman -U path/to/arch/pak
- alien A program that converts between the rpm, dpkg, stampede slp, and slackware tgz file formats.
If you want to use a package from another distribution than the one you have installed on your system, you can use alien to convert it to your preferred package format and install it.
- LDD To find missing shared library dependencies.
After found missing librarys
- download library and paste it in appropriate locations eg:
/usr/lib/
- (or) find which package has the required and install it
To get info and list the files owned by package
pacman -Qil <package-name>
- download library and paste it in appropriate locations eg:
- SoundWire To Stream Audio from Your Linux PC to Android
pacaur -S soundwire
to install SoundWire from ArchlinuxUserRepository
dependencies:sudo pacman -Syu pavucontrol
If you find the GUI claims the Android device is connected, but you’re not hearing any sound on your mobile device, go back to the SoundWire Server GUI and click on the Open PulseAudio Volume Control button. In this new window, go to the Recording tab and make sure Monitor of Built-In Audio Analog Stereo is selected from the Alsa Capture from drop-down. Once that is selected, the sound should start spilling from your Android device.
- ARChon Run Android Apps in Chrome in OS X, Linux and Windows.
pacaur -S archon chromeos-apk-git
chromeos-apk generates chrome extension from apk file.
- comming_soon… :smiley: