- My Arch Linux Setting
- Install App
- Install alacritty (terminal)
- Install Docker
- Install bat (for cat display)
- Install fzf (Fuzzy Finder)
- Install Audio
- Install Kdenlive
- Install GIMP
- Install krita
- Install Virtualbox
- Install Mysql and MySQL Workbench
- Install xampp and configuration
- Install Composer
- Change Languages Arch Linux
- Backup file .xinitrc manjaro-linux
- Fix Error In Arch Linux
- Command terminal perhaps help me
Command | Description |
---|---|
xrandr | Check list resolution monitor |
xrandr --output "Virtual-1" --mode 1920x1080 | Change resolution monitor |
Keybind | Description |
---|---|
ALT + SHIFT + ENTER | Open terminal |
ALT + J | Toggle forward and backward between window viewing FORWARD |
ALT + K | Toggle forward and backward between window viewing BACKWARD |
ALT + SHIFT + c | Close Window on active |
ALT + p | Run program with dmenu |
ALT + 1 2 3 4 | Move workspace |
ALT + SHIFT + 1 2 3 4 | Move window to different workspace |
ALT + h | move space window to left |
ALT + l | move space window to right |
ALT + d | Move window to down |
ALT + i | Move window to up |
ALT + SPACE | Change mode window to float |
ALT + B | hide top bar dmenu |
CTRL + SHIFT PgUp | zoom in and zoom in terminal |
CTRL + SHIFT + pgDn | zoom in and zoom out terminal |
function cdf() {
cd "$(find * -type d | fzf)"
}
alias sn='sudo shutdown now'
n() {
nvim "$@"
}
- synchronizing package database
# pacman -Syy
- check partition
# lsblk
- format partition
# gdisk /dev/"name disk"
# gdisk /dev/sda
- install archlinux keyring package
# pacman -S archlinux-keyring
- update package
# pacman -Sy archinstall
- trigger installation
# archinstall
Output Image :
- After installation done reboot or shutdown computer
# reboot
# shutdown now
- Change session cli to dekstop environment
ALT F1 or F2
- Upadate all package
# sudo pacman -Syu
- Install app
# sudo pacman -S firefox
- Install yay package
# git clone https://aur.archlinux.org/yay-bin.git
# cd yay-bin
# makepkg -si
// install app with yay
# yay -S firefox
- Install xorg for graphics
# sudo pacman -S xorg
- Install desktop environment (KDE Plasma)
# sudo pacman -S plasma-desktop
- Install xorg-xinit
# sudo pacman -S xorg-xinit
- Add script file .bash_profile
# vim .bash_profile
// Add script
if [ -z "${DISPLAY}"] && [ "${XDG_VTNR}" -eq 1 ]; then
exec startx
fi
- Edit file xinitrc
# vim .xinitrc
// Add script
exec startplasma-x11
- Install konsole terminal KDE
# sudo pacman -S konsole
- Install fonts
# sudo pacman -S gnu-free-fonts noto-fonts ttf-jetbrains-mono
reference : https://dwm.suckless.org/
- clone dwm
# git clone https://git.suckless.org/dwm
- clone dmenu
# git clone https://git.suckless.org/dmenu
- clone st
# git clone https://git.suckless.org/st
- create folder
# mkdir suckless
- move file dwm, dmenu and st to folder suckless
# mv dwm dmenu st suckless/
- open file dwm, dmenu and st and install
# cd dwm
# sudo make clean install
- edit script file .xinitrc (Home directory)
# vim .xinitrc
// Add script
#exec startplasma-x11
exec dwm
- Keybind dwm
- Open terminal
ALT + SHIFT + ENTER
- Toggle forward and backward between window viewing FORWARD =
ALT + J
, BACKWARD =ALT + K
- Close Window on active
ALT + SHIFT + c
- Run program with dmenu
ALT + p
- Move workspace
ALT + 1 2 3 4
- Move window to different workspace
ALT + SHIFT + 1 2 3 4
- move space window to left
ALT + h
, rightALT + l
- Move window to down
ALT + d
to leftALT + i
- Change mode window to float
ALT + SPACE
- hide top bar dmenu
ALT + B
- zoom in and zoom out in terminal
CTRL + SHIFT PgUp
andCTRL + SHIFT + pgDn
- Download patches : https://dwm.suckless.org/patches/
- create folder in
suckless/dwm/patches
- copy file config
cp config.h config.def.h
- install patch
patch -i patches/dwm-name-version.diff
- after isntall patch
sudo make clean install
on folder dwm
~/.fehbg &
xrandr --output "Virtual-1" --mode 1280x720 &
picom &
slstatus &
#exec startplasma-x11
exec dwm
see general command man feh
- install feh
sudo pacman -S feh
- set wallpaper
feh --bg-scale Pictures/name-wallpaper
- install picom
sudo pacman -S picom
- run picom
picom &
- open folder xdg
cd /etc/xdg/
- open file picom.conf
sudo vim picom.conf
- add script :
reference : https://github.com/dylanaraps/pywal
- Install pywwal
sudo pacman -S python-pywal
- generate color wallpaper which is being used
wal -i wallpaper/name-wallpaper.png
- open
cd .cache/wal
to see color results - add
#include "/home/<USER>/.cache/wal/colors-wal-dwm.h"
in fileconfig.h
on folder/dwm
- reference : https://github.com/alacritty/alacritty/blob/master/INSTALL.md
- Theme : https://github.com/alacritty/alacritty-theme
- First, On Arch Linux, you need a few extra libraries to build Alacritty. Here's a pacman command that should install all of them. If something is still found to be missing, please open an issue.
pacman -S cmake freetype2 fontconfig pkg-config make libxcb libxkbcommon python
- Install
sudo pacman -S alacritty
- Customize setting alacritty
create file on folder
~/.config/alacritty/alacritty.toml
[font]
normal = {family = "Hack", style = "Regular"}
bold = {family = "Hack", style = "Bold"}
size = 12
[window]
opacity = 1
blur = true
A. Install and Running Dcoker
- install docker
sudo pacman -S docker -y
- check version docker
docker --version
- install docker desktop, first download docker desktop for arc linux. link : https://docs.docker.com/desktop/release-notes/
- and install docker desktop
sudo pacman -U ./docker-desktop-<version>-<arch>.pkg.tar.zst
- check docker running or not
sudo systemctl status docker
- if not running run this command
sudo systemctl start docker
B. Command Docker
Command | Description |
---|---|
sudo docker version | Check version docker |
Reference : https://github.com/sharkdp/bat A cat(1) clone with syntax highlighting and Git integration.
- Install bat
sudo pacman -S bat
- Install fzf with yay
yay -S fzf
- run fzf
fzf
- open folder with fzf
alias cdf='cd $(find * -type d | fzf)'
- Custom script fzf
vim ~/.bashrc
- add script in file
.bashrc
function cdf() {
cd "$(find * -type d | fzf)"
}
- run fzf with custom script
cdf
- install pipewire
sudo pacman -S pipewire pipewire-pulse
- install pavucontrol
sudo pacman -S pavucontrol
- Restart computer
reference : https://linux-packages.com/arch-linux/package/kdenlive
-
Install kdenlive and update package
sudo pacman -Sy sudo pacman -S kdenlive
-
Uninstall kdenlive
sudo pacman -Rcns kdenlive
reference : https://archlinux.org/packages/extra/x86_64/gimp/
-
Install GIMP and update package
sudo pacman -Sy sudo pacman -S gimp
-
Uninstall GIMP
sudo pacman -Rcns gimp
reference : https://archlinux.org/packages/extra/x86_64/gimp/
-
Install krita and update package
sudo pacman -Sy sudo pacman -S krita
-
Uninstall krita
sudo pacman -Rcns krita
-
first update system
sudo pacman -Syu
-
Install virtualbox with headers
sudo pacman -S linux$(uname -r | grep -o -E '[0-9]+' | head -n 2 | sed 'N;s/\n//')-headers virtualbox virtualbox-host-dkms
-
Add user to group
sudo usermod -aG vboxusers $USER
Reference : https://gist.github.com/oddlyspaced/8856bd3db5132ef3714ecc40a9fe37ea
-
Updating system
sudo pacman -Syyu
-
Installing software dependencies
sudo pacman -S git gnome-keyring
-
Compile and Install MySQL Server, Note : (This might take like ~4 hours since it's compiling the source)
git clone https://aur.archlinux.org/mysql.git cd mysql makepkg -si
-
Install MySQL-Workbench
sudo pacman -S mysql-workbench
-
Setting up database
sudo rm -rf /var/lib/mysql sudo mysqld --initialize --user=mysql --basedir=/usr --datadir=/var/lib/mysql # ^ Once the above command is executed successfully, make sure to copy paste the demo password displayed at screen!
-
Enabling the service
sudo systemctl enable --now mysqld
-
Verifying
mysql -u root -p # ^ Enter your dummy password from Part 5
reference : https://wiki.archlinux.org/title/XAMPP
- Download xampp for linux on website https://www.apachefriends.org/download.html
- open file in directory
Downloads
- run this command
# sudo chmod +x xampp-linux-x64-8.2.12-0-installer.run
- and install xampp with
# ./xampp-linux-x64-8.2.12-0-installer.run
- install other package
# sudo pacman -S libxcrypt-compat
and# sudo pacman -S net-tools
- after install start xampp apache with this command
# /opt/lampp/lampp startapache
- start mysql
# /opt/lampp/lampp startmysql
- example command to start,stop,restart xampp
# /opt/lampp/xampp start,stop,restart
- open localhost in browser
http://localhost/phpmyadmin/
reference : https://getcomposer.org/download
- Update package
# sudo pacman -Sy
- install composer
# sudo pacman -S composer
- check version composer
# composer -v
- Add languages by editing
/etc/locale.gen.
Uncomment the languages you want to
#en_SG ISO-8859-1
en_US.UTF-8 UTF-8
#en_US ISO-8859-1
- Run
locale-gen
to load those languages.
$ sudo locale-gen
Generating locales...
en_US.UTF-8... done
en_US.UTF-8... done
Genertaion complete.
- Set your system language by editing
vim /etc/locale.conf.
AddLANG=
and the language - Reboot
#!/bin/bash
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
DEFAULT_SESSION=startplasma-x11
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
get_session(){
local dbus_args=(--sh-syntax --exit-with-session)
case $1 in
awesome) dbus_args+=(awesome) ;;
bspwm) dbus_args+=(bspwm-session) ;;
budgie) dbus_args+=(budgie-desktop) ;;
cinnamon) dbus_args+=(cinnamon-session) ;;
deepin) dbus_args+=(startdde) ;;
enlightenment) dbus_args+=(enlightenment_start) ;;
fluxbox) dbus_args+=(startfluxbox) ;;
gnome) dbus_args+=(gnome-session) ;;
i3|i3wm) dbus_args+=(i3 --shmlog-size 0) ;;
jwm) dbus_args+=(jwm) ;;
kde) dbus_args+=(startplasma-x11) ;;
lxde) dbus_args+=(startlxde) ;;
lxqt) dbus_args+=(lxqt-session) ;;
mate) dbus_args+=(mate-session) ;;
xfce) dbus_args+=(xfce4-session) ;;
openbox) dbus_args+=(openbox-session) ;;
*) dbus_args+=($DEFAULT_SESSION) ;;
esac
echo "dbus-launch ${dbus_args[*]}"
}
exec $(get_session "$1")
reference : https://ostechnix.com/how-to-fix-unable-to-lock-database-error-in-arch-linux/
-
Remove file db.lck
sudo rm /var/lib/pacman/db.lck
-
And update again package
sudo pacman -Syu
- Gets a list of simple mixer controls
amixer scontrols
- and set increse audio with this example
amixer sset 'Master' 100%