Arch Linux Installation Command Notes

Recently I installed Arch Linux on virtualbox, however, as of 1/1/2014 cfdisk was not working right
and I could not boot the OS by both grub and syslinux. Here is what I did.

1.Partitioning. (Just one logical partition is enough for me. No boot partition, no swap partition…)
cgdisk /dev/sda
#first sector = 2048(default)
#type = 8300(linux)

2. Boot Flagging
parted /dev/sda set 1 boot on

3. Formatting
mkfs.ext4 /dev/sda1

4. Installing packages and etc (follow the begginers guide of arch wiki)
vi /etc/pacman.d/mirrorlist
# bring up mirror site of your favourite location.
mount /dev/sda1 /mnt
pacstrap -i /mnt
genfstab -p -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
vi /etc/locale.gen
# uncomment en_GB.UTF8
locale-gen
echo LANG=en_GB.UTF8 > /etc/locale.conf
ln -s /usr/share/zoninfo/Japan /etc/localtime
hwclock -w -u
echo “your_hostname” >> /etc/hostname
passwd
useradd “username” -m -s /bin/bash
passwd “username”

5. Configuring grub
pacman -S grub
vi /etc/default/grub
append GRUB_DISABLE_SUBMENU=y
grub-mkconfig -o /boot/grub/grub.cfg
grub-install —force /dev/sda

6. Reboot
exit
umount /mnt
reboot

GUI setup on Virtualbox(xfce4 & slim)
pacman -S xorg-server xorg-server-utils xorg-xinit mesa
cp /etc/skel/.xinitrc ~/.xinitrc
pacman -S ttf-dejavu
pacman -S xfce4
pacman -S slim
vi /etc/slim.conf and specify default user and enable auto login
localectl set-x11-keymap layout jp106 to set jp106 keymap

Resource usage
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 7.8G 1.7G 5.8G 23% /
dev 248M 0 248M 0% /dev
run 250M 300K 250M 1% /run
tmpfs 250M 192K 250M 1% /dev/shm
tmpfs 250M 0 250M 0% /sys/fs/cgroup
tmpfs 250M 12K 250M 1% /tmp

free -h

total used free shared buffers cached
Mem: 499M 476M 22M 2.8M 15M 379M
-/+ buffers/cache: 81M 417M
Swap: 0B 0B 0B

top
455 user 9 -11 98860 6000 4256 S 6.7 1.2 1:34.90 pulseaudio
385 user 20 0 9536 1524 960 S 0.6 0.3 0:12.77 VBoxClient
96 root 20 0 0 0 0 S 0.1 0.0 0:01.71 kworker/0:2
136 root 20 0 11252 1656 1256 S 0.1 0.3 0:01.24 VBoxService
338 root 20 0 39696 4164 3376 S 0.1 0.8 0:00.19 upowerd
1 root 20 0 4704 2636 1980 S 0.0 0.5 0:00.77 systemd

Advertisements
Previous Post
Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: