https://youtu.be/XEjVyU3iRSA
#dhcpcd
#wifi-menu
#ping 8.8.8.8
#timedatectl set-ntp true
#lsblk
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้ตรวจดูพาทิชั่นต่างๆ จดจำไว้
#cgdisk /dev/sda
#lsblk
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้ตรวจดูอีกครั้ง จดจำไว้
#cryptsetup -y -v luksFormat /dev/sda7
#cryptsetup open /dev/sda7 cryptroot
#lsblk
#mkfs.ext4 /dev/mapper/cryptroot
#mkdir -p /mnt
#mount /dev/mapper/cryptroot /mnt
#mkfs.fat -F32 /dev/sda6
#mkdir /mnt/boot
#mount /dev/sda6 /mnt/boot
#mkdir /mnt/boot/efi
#mount /dev/sda2 /mnt/boot/efi
##nano /etc/pacman.d/mirrorlist
#pacstrap /mnt linux linux-firmware base base-devel nano
#genfstab -U /mnt >> /mnt/etc/fstab
#arch-chroot /mnt
#ln -s /usr/share/zoneinfo/Asia/Bangkok /etc/localtime
#hwclock --systohc --utc
#nano /etc/locale.gen
#locale-gen
#nano /etc/locale.conf
#nano /etc/hostname
#nano /etc/hosts
#passwd
#useradd -m -g users -G wheel,storage,power -s /bin/bash kidtoongtor
#passwd kidtoongtor
#chage -d 0 kidtoongtor
#nano /etc/sudoers
#ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules
#nano /etc/systemd/journald.conf
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้แก้ไขไฟล์ตามนี้ อย่าลืม uncomment:
Storage=volatile
SystemMaxUse=16M
#blkid >> /tmp/id.txt
#nano /tmp/id.txt
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้ตรวจดู /dev/sdX7: UUID=? จดจำไว้
#nano /etc/mkinitcpio.conf
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้HOOKS=(base udev autodetect modconf block encrypt filesystems keyboard fsck)
#mkinitcpio-p linux
#pacman -S grub efibootmgr dosfstools os-prober mtools
#nano /etc/default/grub
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้แก้ไขตามนี้:
GRUB_CMDLINE_LINUX="cryptdevice=UUID=?:cryptroot root=/dev/mapper/cryptroot"
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้เพื่อความสะดวกใน nano นี้ ใช้การแทรกไฟล์ (/tmp/id.txt) ที่มีอยู่เข้ามาโดย
วิธีวางเคอร์เซอร์ไว้ด้านล่างสุดแล้วกด Ctrl+r แล้วพิมพ์ชื่อไฟล์นี้ Enter แล้วหา
UUID=? ที่ต้องการแล้ววางเคอร์เซอร์ไว้ท้ายกด Ctrl + ศรซ้าย ลากคลุมไว้แล้วกด Ctrl+k แล้วเลื่อนเคอร์เซอร์ไปยังตำแหน่งที่ต้องการแล้ว กด Ctrl+u วางเสร็จแล้วกด Backspace ลบไฟล์ที่แทรกมาออกให้หมด ถ้างงก็กด Ctrl+x ตอบ n ออกมาตั้งสติก่อน ^^ (ถ้าพิมพ์ที่จดจำไว้ลงไปได้เลยก็ดี แหะๆ)
#grub-install --target=i386-pc --boot-directory /boot /dev/sda
#grub-install --target=x86_64-efi --efi-directory /boot --boot-directory /boot --removable
#grub-install --target=x86_64-efi --bootloader-id=aarchlinux --recheck --removable
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้สำหรับคนใหม่ Install มันสามอย่างเลย กันพลาด^^
#grub-mkconfig -o /boot/grub/grub.cfg
#pacman -S ifplugd
#pacman -S wireless_tools
#pacman -S iw wpa_supplicant dialog
#pacman -S xf86-video-amdgpu xf86-video-ati xf86-video-intel xf86-video-nouveau xf86-video-vesa
#pacman -S xf86-input-synaptics
#pacman -S acpi
#pacman -S polkit
#pacman -S dhcpcd
#systemctl enable dhcpcd
#pacman -S virtualbox-guest-utils
#systemctl enable vboxservice
#grub-mkconfig -o /boot/grub/grub.cfg
#mkinitcpio -p linux
#exit
#umount /mnt/boot/efi
#umount /mnt/boot
#umount /mnt
#poweroff
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้เมื่อ poweroff เรียบร้อยแล้วก็ถอด USB bootable (ตัวติดตั้ง) ออกได้เพื่อจะบูทระบบ New Archlinux USBstick ของเราที่เพิ่งแต่งตั้งมันเองนั้น ที่เหลือหลังจากนี้เป็นการเสริมแต่งระบบได้ตามใจชอบ
Power up > root login
#dhcpcd
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้ต่อสายออกเน็ตเอาก่อน ทดลอง ping 8.8.8.8
#timedatectl set-ntp true
#passwd kidtoongtor
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้เปลี่ยน passwd ให้ kidtoongtor
#pacman -Syyy
#pacman-S xorg
#pacman -S ttf-freefont
#pacman -S lxde
#pacman -S pulseaudio pulseaudio-alsa
#systemctl enable lxdm.service
#nano /etc/lxdm/lxdm.conf
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้แก้ไขไฟล์เพื่อตั้งค่าล็อกอินโดย uncomment ตามนี้:
autologin=dgod
session=/usr/bin/startlxde
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้หากรีบูทแล้ว Grub ไม่พบ Windows Boot Manager ค่อยย้อนกลับมาทำก็ได้ ตอนข้ามไปเลยก็ได้ สองคำสั่งนี้^^:
#mount /dev/sda2 /boot/efi
#grub-mkconfig -o /boot/grub/grub.cfg
#poweroff
Power up > archh login > LXTerminal
$sudo pacman -S networkmanager network-manager-applet
$sudo systemctl enable NetworkManager.service
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้จะ Reboot ก่อนแล้วลองออกเน็ตไวไฟ ก็ย่อมได้
$sudo pacman -S udisks2
$sudo pacman -S udiskie
$udiskie -2 -s &
$sudo pacman -S gvfs
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้เพื่อ Auto mount USB flash drive
$sudo pacman -S --needed base-devel
$sudo nano /etc/makepkg.conf
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้แก้ไขไฟล์ uncomment , 2 คือจำนวน core ใส่ไปตามจำนวนที่เครื่องเรามีอย่างนี้:
MAKEFLAGS="-j2"
$sudo pacman -S git
$git clone
https://aur.archlinux.org/yay.git
$cd yay/
$makepkg -si
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้เพื่อติดตั้ง yay เมื่อสำเร็จแล้วสามารถไว้ใช้ติดตั้งแพ็กเก็จใน AUR ได้โดยตรง
$yay fonts-tlwg
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้จะเปลี่ยนเป็น fonts-tlwg นี้ก็สวยดี
$yay brave-bin
$yay ksnip
$sudo pacman -S xdm-archlinux
$sudo pacman -S archlinux-wallpaper
$sudo pacman -S gnome-screenshot
$sudo pacman -S leafpad
$sudo pacman -S simplescreenrecorder
$sudo pacman -S vlc
$sudo pacman -S clipgrab
$sudo pacman -S libreoffice-still-th
$sudo pacman -Ss archlinux
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้-Ss ค้นหาแล้วติดตั้งแพ็กเก็จตามชอบ^^
$poweroff
Windows 10 EFI + Arch Linux Encrypt Complete!
ฝึกหัดติดตั้ง Windows 10 EFI Encrypted ครับ
https://youtu.be/XEjVyU3iRSA
#dhcpcd
#wifi-menu
#ping 8.8.8.8
#timedatectl set-ntp true
#lsblk
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้
#cgdisk /dev/sda
#lsblk
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้
#cryptsetup -y -v luksFormat /dev/sda7
#cryptsetup open /dev/sda7 cryptroot
#lsblk
#mkfs.ext4 /dev/mapper/cryptroot
#mkdir -p /mnt
#mount /dev/mapper/cryptroot /mnt
#mkfs.fat -F32 /dev/sda6
#mkdir /mnt/boot
#mount /dev/sda6 /mnt/boot
#mkdir /mnt/boot/efi
#mount /dev/sda2 /mnt/boot/efi
##nano /etc/pacman.d/mirrorlist
#pacstrap /mnt linux linux-firmware base base-devel nano
#genfstab -U /mnt >> /mnt/etc/fstab
#arch-chroot /mnt
#ln -s /usr/share/zoneinfo/Asia/Bangkok /etc/localtime
#hwclock --systohc --utc
#nano /etc/locale.gen
#locale-gen
#nano /etc/locale.conf
#nano /etc/hostname
#nano /etc/hosts
#passwd
#useradd -m -g users -G wheel,storage,power -s /bin/bash kidtoongtor
#passwd kidtoongtor
#chage -d 0 kidtoongtor
#nano /etc/sudoers
#ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules
#nano /etc/systemd/journald.conf
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้
#blkid >> /tmp/id.txt
#nano /tmp/id.txt
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้
#nano /etc/mkinitcpio.conf
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้
#mkinitcpio-p linux
#pacman -S grub efibootmgr dosfstools os-prober mtools
#nano /etc/default/grub
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้
#grub-install --target=i386-pc --boot-directory /boot /dev/sda
#grub-install --target=x86_64-efi --efi-directory /boot --boot-directory /boot --removable
#grub-install --target=x86_64-efi --bootloader-id=aarchlinux --recheck --removable
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้
#grub-mkconfig -o /boot/grub/grub.cfg
#pacman -S ifplugd
#pacman -S wireless_tools
#pacman -S iw wpa_supplicant dialog
#pacman -S xf86-video-amdgpu xf86-video-ati xf86-video-intel xf86-video-nouveau xf86-video-vesa
#pacman -S xf86-input-synaptics
#pacman -S acpi
#pacman -S polkit
#pacman -S dhcpcd
#systemctl enable dhcpcd
#pacman -S virtualbox-guest-utils
#systemctl enable vboxservice
#grub-mkconfig -o /boot/grub/grub.cfg
#mkinitcpio -p linux
#exit
#umount /mnt/boot/efi
#umount /mnt/boot
#umount /mnt
#poweroff
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้
Power up > root login
#dhcpcd
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้
#timedatectl set-ntp true
#passwd kidtoongtor
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้
#pacman -Syyy
#pacman-S xorg
#pacman -S ttf-freefont
#pacman -S lxde
#pacman -S pulseaudio pulseaudio-alsa
#systemctl enable lxdm.service
#nano /etc/lxdm/lxdm.conf
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้
#poweroff
Power up > archh login > LXTerminal
$sudo pacman -S networkmanager network-manager-applet
$sudo systemctl enable NetworkManager.service
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้
$sudo pacman -S udisks2
$sudo pacman -S udiskie
$udiskie -2 -s &
$sudo pacman -S gvfs
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้
$sudo pacman -S --needed base-devel
$sudo nano /etc/makepkg.conf
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้
$sudo pacman -S git
$git clone https://aur.archlinux.org/yay.git
$cd yay/
$makepkg -si
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้
$yay fonts-tlwg
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้
$yay brave-bin
$yay ksnip
$sudo pacman -S xdm-archlinux
$sudo pacman -S archlinux-wallpaper
$sudo pacman -S gnome-screenshot
$sudo pacman -S leafpad
$sudo pacman -S simplescreenrecorder
$sudo pacman -S vlc
$sudo pacman -S clipgrab
$sudo pacman -S libreoffice-still-th
$sudo pacman -Ss archlinux
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้
$poweroff
Windows 10 EFI + Arch Linux Encrypt Complete!