

| สั่งการ | คำอธิบาย |
|---|---|
| Xrandr | ตรวจสอบรายการตรวจสอบความละเอียดของรายการ |
| Xrandr-OUTPUT "Virtual-1"-โหมด 1920x1080 | เปลี่ยนการตรวจสอบความละเอียด |
# xrandr
# xrandr --output HDMI-1 --mode 1280x720 --left-of VGA-1 --output VGA-1 --mode 1366x768 --primary
# xrandr --output HDMI-1 --brightness 1.2
# iwctl
# station wlan0 show
# station wlan0 scan
# station wlan0 connect name_wifi
| คีย์ | คำอธิบาย |
|---|---|
| Alt + Shift + Enter | เทอร์มินัลเปิด |
| Alt + J | สลับไปข้างหน้าและย้อนกลับระหว่างการดูหน้าต่างไปข้างหน้า |
| Alt + K | สลับไปข้างหน้าและย้อนกลับระหว่างการดูหน้าต่างย้อนหลัง |
| Alt + Shift + C | ปิดหน้าต่างที่ใช้งานอยู่ |
| Alt + P | รันโปรแกรมด้วย dmenu |
| Alt + 1 2 3 4 | ย้ายพื้นที่ทำงาน |
| Alt + Shift + 1 2 3 4 | ย้ายหน้าต่างไปยังพื้นที่ทำงานที่แตกต่างกัน |
| Alt + H | เลื่อนหน้าต่างอวกาศไปทางซ้าย |
| Alt + L | ย้ายหน้าต่างอวกาศไปทางขวา |
| Alt + D | ย้ายหน้าต่างไปลง |
| Alt + i | ย้ายหน้าต่างไปที่ UP |
| Alt + Space | เปลี่ยนหน้าต่างโหมดเป็นลอยตัว |
| Alt + B | ซ่อนบาร์ด้านบน dmenu |
| ctrl + shift pgup | ซูมเข้าและซูมในเทอร์มินัล |
| ctrl + shift + pgdn | ซูมเข้าและซูมออกเทอร์มินัล |
function cdf() {
cd " $( find * -type d | fzf ) "
}
alias sn= ' sudo shutdown now '
n () {
nvim " $@ "
}
# pacman -Syy
# lsblk
# gdisk /dev/"name disk"
# gdisk /dev/sda
เอาท์พุท: 
# pacman -S archlinux-keyring
# pacman -Sy archinstall
# archinstall
ภาพเอาต์พุต:




# reboot
# shutdown now
ALT F1 or F2 # sudo pacman -Syu
# sudo pacman -S firefox
# git clone https://aur.archlinux.org/yay-bin.git
# cd yay-bin
# makepkg -si
// install app with yay
# yay -S firefox
# sudo pacman -S xorg
# sudo pacman -S plasma-desktop
# sudo pacman -S xorg-xinit
# vim .bash_profile
// Add script
if [ -z "${DISPLAY}"] && [ "${XDG_VTNR}" -eq 1 ]; then
exec startx
fi
# vim .xinitrc
// Add script
exec startplasma-x11
# sudo pacman -S konsole
# sudo pacman -S gnu-free-fonts noto-fonts ttf-jetbrains-mono
การอ้างอิง: https://dwm.suckless.org/
# git clone https://git.suckless.org/dwm
# git clone https://git.suckless.org/dmenu
# git clone https://git.suckless.org/st
# mkdir suckless
# mv dwm dmenu st suckless/
# cd dwm
# sudo make clean install
# vim .xinitrc
// Add script
#exec startplasma-x11
exec dwm
ALT + SHIFT + ENTERALT + J , backward = ALT + KALT + SHIFT + c ที่ใช้งานอยู่ALT + pALT + 1 2 3 4ALT + SHIFT + 1 2 3 4ALT + h , ALT + l ขวาALT + d ไปทางซ้าย ALT + iALT + SPACE ลอยตัวALT + BCTRL + SHIFT PgUp และ CTRL + SHIFT + pgDnsuckless/dwm/patchescp config.h config.def.hpatch -i patches/dwm-name-version.diffsudo make clean install บนโฟลเดอร์ dwm ~ /.fehbg &
xrandr --output " Virtual-1 " --mode 1280x720 &
picom &
slstatus &
# exec startplasma-x11
exec dwm
ดู man feh
sudo pacman -S fehfeh --bg-scale Pictures/name-wallpapersudo pacman -S picompicom &cd /etc/xdg/sudo vim picom.conf


การอ้างอิง: https://github.com/dylanaraps/pywal
sudo pacman -S python-pywalwal -i wallpaper/name-wallpaper.pngcd .cache/wal เพื่อดูผลลัพธ์สี#include "/home/<USER>/.cache/wal/colors-wal-dwm.h" ในไฟล์ config.h บนโฟลเดอร์ /dwmpacman -S cmake freetype2 fontconfig pkg-config make libxcb libxkbcommon pythonsudo pacman -S alacritty~/.config/alacritty/alacritty.toml [ font ]
normal = { family = " Hack " , style = " Regular " }
bold = { family = " Hack " , style = " Bold " }
size = 12
[ window ]
opacity = 1
blur = trueA. ติดตั้งและเรียกใช้ dcoker
sudo pacman -S docker -ydocker --versionsudo pacman -U ./docker-desktop- < version > - < arch > .pkg.tar.zstsudo systemctl status dockersudo systemctl start dockerB. คำสั่ง Docker
| สั่งการ | คำอธิบาย |
|---|---|
| Sudo Docker เวอร์ชัน | ตรวจสอบเวอร์ชัน Docker |
การอ้างอิง: https://github.com/sharkdp/bat A Cat (1) โคลนที่มีการเน้นไวยากรณ์และการรวม Git
sudo pacman -S batyay -S fzffzf alias cdf= ' cd $(find * -type d | fzf) ' vim ~ /.bashrc.bashrc function cdf() {
cd " $( find * -type d | fzf ) "
}cdf สคริปต์ที่กำหนดเองsudo pacman -S pipewire pipewire-pulsesudo pacman -S pavucontrolการอ้างอิง: https://linux-packages.com/arch-linux/package/kdenlive
ติดตั้งแพ็คเกจ Kdenlive และอัปเดต
sudo pacman -Sy
sudo pacman -S kdenlive
ถอนการติดตั้ง kdenlive
sudo pacman -Rcns kdenlive
การอ้างอิง: https://archlinux.org/packages/extra/x86_64/gimp/
ติดตั้งแพ็คเกจ GIMP และอัปเดต
sudo pacman -Sy
sudo pacman -S gimp
ถอนการติดตั้ง gimp
sudo pacman -Rcns gimp
การอ้างอิง: https://archlinux.org/packages/extra/x86_64/gimp/
ติดตั้งแพ็คเกจ Krita และ Update
sudo pacman -Sy
sudo pacman -S krita
ถอนการติดตั้ง Krita
sudo pacman -Rcns krita
ระบบอัปเดตครั้งแรก
sudo pacman -Syuติดตั้ง VirtualBox ด้วยส่วนหัว
sudo pacman -S linux $( uname -r | grep -o -E ' [0-9]+ ' | head -n 2 | sed ' N;s/n// ' ) -headers virtualbox virtualbox-host-dkmsเพิ่มผู้ใช้ในกลุ่ม
sudo usermod -aG vboxusers $USERการอ้างอิง: https://gist.github.com/oddlyspaced/8856bd3db5132ef3714ecc40a9fe37ea
ระบบอัปเดต
sudo pacman -Syyuการติดตั้งการพึ่งพาซอฟต์แวร์
sudo pacman -S git gnome-keyringรวบรวมและติดตั้ง MySQL Server, หมายเหตุ: (อาจใช้เวลา ~ 4 ชั่วโมงเนื่องจากรวบรวมแหล่งที่มา)
git clone https://aur.archlinux.org/mysql.git
cd mysql
makepkg -siติดตั้ง mysql-workbench
sudo pacman -S mysql-workbenchการตั้งค่าฐานข้อมูล
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!การเปิดใช้งานบริการ
sudo systemctl enable --now mysqldการยืนยัน
mysql -u root -p
# ^ Enter your dummy password from Part 5การอ้างอิง: https://wiki.archlinux.org/title/xampp
Downloads# sudo chmod +x xampp-linux-x64-8.2.12-0-installer.run# ./xampp-linux-x64-8.2.12-0-installer.run# sudo pacman -S libxcrypt-compat และ # sudo pacman -S net-tools# /opt/lampp/lampp startapache# /opt/lampp/lampp startmysql# /opt/lampp/xampp start,stop,restarthttp://localhost/phpmyadmin/การอ้างอิง: https://getComposer.org/download
# sudo pacman -Sy
# sudo pacman -S composer
# composer -v
/etc/locale.gen. ไม่ใส่เครื่องหมายภาษาที่คุณต้องการ #en_SG ISO-8859-1
en_US.UTF-8 UTF-8
#en_US ISO-8859-1
locale-gen เพื่อโหลดภาษาเหล่านั้น $ sudo locale-gen
Generating locales...
en_US.UTF-8... done
en_US.UTF-8... done
Genertaion complete.
vim /etc/locale.conf. เพิ่ม LANG= และภาษา #! /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 " )
การอ้างอิง: https://ostechnix.com/how-to-fix-unable-to-lock-database-error-in-arch-linux/
ลบไฟล์ db.lck
sudo rm /var/lib/pacman/db.lck
และอัปเดตแพ็คเกจอีกครั้ง
sudo pacman -Syu
amixer scontrols
amixer sset 'Master' 100%