Fisrt time, I'll install ArchLinux inside of VirtualBox.
| Name | Link |
|-------------------|---------------------------------------------------------|
| ArchLinux ISO | https://www.archlinux.org/download/ |
| VirtualBox | https://www.virtualbox.org/wiki/Downloads |
| All mirror list | https://www.archlinux.org/mirrorlist/all/ |
ping -c 3 www.archlinux.org
Type [ef02]
on type definition for BIOS partition
BIOS partition
| Reference | Mounting point | Size | File system |
|-----------|-------------------|------------------------------|------------------|
| /dev/sda1 | /boot | 512 M | ext2 |
| /dev/sda2 | | RAM size or more | swap |
| /dev/sda3 | / | 20 Go | ext4 |
| /dev/sda4 | /home | The rest of the disc | ext4 |
cfdisk /dev/sda
$ mkfs.ext4 /dev/sda1
$ mkfs.ext4 /dev/sda2
$ mkswap /dev/sda3
$ swapon /dev/sda3
$ mkfs.ext4 /dev/sda4
$ mount /dev/sda2 /mnt
$ mkdir -p /mnt/{boot,home}
$ mount /dev/sda1 /mnt/boot
$ mount /dev/sda4 /mnt/home
$ mount /dev/sda3 /mnt
cgdisk /dev/sda
| Reference | Mounting point | Size | File system |Style |
|-----------|-------------------|------------------------------|------------------|----------|
| /dev/sda1 | /boot | 512 M | EFI | EF00 |
| /dev/sda2 | | RAM size or more | swap | 8200 |
| /dev/sda3 | / | 20 Go | ext4 | 8300 |
| /dev/sda4 | /home | The rest of the disc | ext4 | 8300 |
$ mkfs.fat -F32 /dev/sda1
$ mkswap /dev/sda2
$ swapon /dev/sda2
$ mkfs.ext4 /dev/sda3
$ mkfs.ext4 /dev/sda4
$ mount /dev/sda3 /mnt
$ mkdir -p /mnt/{boot,home}
$ mount /dev/sda1 /mnt/boot
$ mount /dev/sda4 /mnt/home
$ nano /etc/pacman.d/mirrorlist
$ pacstrap /mnt base base-devel
$ genfstab -U -p /mnt >> /mnt/etc/fstab
$ arch-chroot /mnt
$ nano /etc/locale.gen
...
[en_US.UTF-8 UTF-8]
...
$ locale-gen
$ echo LANG=en_US.UTF-8 > /etc/locale.conf
$ export LANG=en_US.UTF-8
$ ln -sf /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime
$ hwclock --systohc --utc
$ echo "YourArch" > /etc/hostname
$ cat /etc/hostname
YourArch
$ passwd
$ pacman -S grub
$ grub-install --recheck /dev/sda
$ grub-mkconfig -o /boot/grub/grub.cfg
$ mkinitcpio -p linux
$ pacman -S bash-completion intel-ucode
$ bootctl install
$ nano /boot/loader/entries/archlinux.conf
add more:
title ArchLinux
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options root=/dev/sda3 rw
$ useradd -m -g users -G wheel,storage,power -s /bin/bash username
$ passwd username
$ pacman -S sudo
$ EDITOR=nano visudo
...
root ALL =(ALL) ALL
add more: username ALL =(ALL) ALL
...
#Uncomment
wheel ALL=(ALL) ALL
$ nano /etc/pacman.conf
[multilib]
Include = /etc/pacman.d/mirrorlist # Uncomment
add this on bottom of file
[archlinuxfr]
SigLevel = Never
Server = http://repo.archlinux.fr/$arch
After run: pacman -Syy
$ pacman -S networkmanager
$ systemctl enable NetworkManager.service
$ systemctl start NetworkManager.service
$ pacman -S wpa_supplicant dialog network-manager-applet gnome-keyring vim tmux git
$ exit
$ umount -R /mnt
$ reboot
Arch Machine Setup is Done ! Let's take a coffee break
--------------------------------------------------------------------------
$ pacman -S zsh
$ chsh
$ /bin/zsh
$ pacman -S xorg-server xorg-server-utils xorg-xinit xorg-xclock xterm
$ pacman -S slim archlinux-themes-slim slim-themes
$ vim /etc/slim.conf
login_cmd exec /bin/zsh -l ~/.xinitrc %session
daemon yes
default_user duyhenry
focus_password yes
current_theme archlinux-simplyblack
$ systemctl enable slim.service
$ pacman -S xfce4 xfce4-goodies gamin
$ cp /etc/X11/xinit/xinitrc ~/.xinitrc
$ vim ~/.xinitrc
replace this
twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login
to this
exec startxfce4
copy to duyhenry's home directory
$ cp ~/.xinitrc /home/duyhenry/
$ su user
$ cd
$ chsh
$ /bin/zsh
$ pacman -S xorg-drivers
$ pacman -S gvfs
$ pacman -S virtualbox-guest-utils
$ modprobe -a vboxguest vboxsf vboxvideo # try to copy things from host to guest with the clipboard to see if it works
$ VBoxClient-all
$ systemctl enable vboxservice
in ~/.xinitrc, add this line before exec startxfce4
# Read More https://wiki.archlinux.org/index.php/VirtualBox#Launch_the_VirtualBox_guest_services
/usr/bin/VBoxClient-all
$ pacman -S chromium firefox flashplayer
[Install xfce4 Desktop Environment]
$ sudo pacman -S xfce4 xfce4-goodies
[Install Budgie Desktop Environment]
$ sudo pacman -S budgie-desktop
[Install GNOME Desktop Environment]
$ sudo pacman -S gnome gnome-extra
[Install Cinnamon Desktop Environment]
$ sudo pacman -S cinnamon nemo-fileroller
[Install KDE Desktop Environment]
$ sudo pacman -S plasma
[Install Mate Desktop Environment]
$ sudo pacman -S mate mate-extra
[Install Deepin Desktop Environment]
$ sudo pacman -S deepin deepin-extra
[Install Enlightenment Desktop Environment]
$ sudo pacman -S enlightenment
[Install LXDE Desktop Environment]
$ sudo pacman -S lxde
[Install LXQT Desktop Environment]
$ sudo pacman -S lxqt
run these commands
$ pacman -S --refresh yaourt