Arch Gnome on Oracle VM VirtualBox

インストールに使用しましたISOファイルは、archlinux-2017.06.01-x86_64.isoです。

仮想マシンを起動します。

loadkeys jp106

30GB - root Partition 2GB - Swap Partition Remainder of space allocated to home

fdisk /dev/sda

o

〈Create root partition with fdisk〉
n - Creates a new partition
p - Selected a Primary Partition
Enter - To accept default starting sector.
+30G - Specify a size of 30GB
t - Select Partition Type
1 - Specify we are working with Partition number 1
83 - 83 was selected as this is used for a standard Linux partition (default is 83)

〈Create Swap Partition〉
n - Creates a new partition
p - Selected a Primary Partition
2 - Selected Partition Number 2
Enter - To accept default starting sector.
+2G - Specify a size of 2GB
t - Select Partition Type
2 - Specify we are working with Partition number 2
82 - 82 was selected as this is the type used for Swap

〈Create Home Partition〉
n - Creates a new partition
p - Selected a Primary Partition
3 - Selected Partition Number 3
Enter - To accept default starting sector.
Enter - To accept default end sector. (Uses all remaining space)
t - Select Partition Type
3 - Specify we are working with Partition number 3
83 - 83 was selected as this is used for a standard Linux partition (default is 83)

w

mkfs.ext4 /dev/sda1
mkfs.ext4 /dev/sda3

mkswap /dev/sda2
swapon /dev/sda2

lsblk

mount /dev/sda1 /mnt
mkdir /mnt/home
mount /dev/sda3 /mnt/home

cp -vf /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup

pacman -Syy

pacman -S reflector
reflector --verbose -l 5 --sort rate --save /etc/pacman.d/mirrorlist

cat /etc/pacman.d/mirrorlist
################################################################################
################# Arch Linux mirrorlist generated by Reflector #################
################################################################################

# With:       reflector --verbose -l 5 --sort rate --save /etc/pacman.d/mirrorlist
# When:       2017-06-17 03:51:18 UTC
# From:       https://www.archlinux.org/mirrors/status/json/
# Retrieved:  2017-06-17 03:51:13 UTC
# Last Check: 2017-06-17 02:45:42 UTC

Server = http://archlinux.prometeolibero.eu/archlinux/$repo/os/$arch
Server = rsync://rsync.osbeck.com/archlinux/$repo/os/$arch
Server = https://mirror.osbeck.com/archlinux/$repo/os/$arch
Server = http://archmirror.tomforb.es/$repo/os/$arch
Server = https://archmirror.tomforb.es/$repo/os/$arch

pacstrap /mnt base base-devel
genfstab -U -p /mnt >> /mnt/etc/fstab

arch-chroot /mnt /bin/bash

nano /etc/locale.gen
en_US.UTF-8.
ja_JP.UTF-8

locale-gen

echo LANG=en_US.UTF-8 > /etc/locale.conf
export LANG=en_US.UTF-8

nano /etc/vconsole.conf
KEYMAP=jp106

ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
hwclock --systohc --utc

echo 〈ホスト名〉 > /etc/hostname
nano /etc/hosts
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost 〈ホスト名〉
::1            localhost.localdomain localhost 〈ホスト名〉
...

nano /etc/pacman.conf
[multilib]
Include = /etc/pacman.d/mirrorlist

pacman -Syy

nano /etc/pacman.conf
[archlinuxfr]
SigLevel = Never
Server = http://repo.archlinux.fr/$arch

pacman -Syy
pacman -Syu

passwd

useradd -mg users -G wheel,storage,power -s /bin/bash user_name
passwd user_name

pacman -S sudo

After issuing the "nano /etc/sudoers" command, you will need to uncomment the following line:
%wheel ALL=(ALL) ALL

pacman -S grub
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg

exit
umount /mnt/home
umount /mnt
reboot

ip link

From the above output we can see that the our interface has a name of "enp0s3". Next issue the command: "sudo nano /etc/systemd/network/enp0s3.network". This will create an empty file with the name of our network interface. Once the empty file has been created and opened, you will need to add the following lines of information:

sudo nano /etc/systemd/network/enp0s3.network

[Match]
Name=enp0s3

[Network]
DHCP=yes

sudo systemctl restart systemd-networkd
sudo systemctl enable systemd-networkd

sudo nano /etc/resolv.conf

#
# /etc/resolv.conf
#
#nameserver ip
nameserver 8.8.8.8
nameserver 8.8.4.4

ip a s
ping -c 3 www.google.com

PING www.google.com (216.58.197.164) 56(84) bytes of data.
64 bytes from nrt12s02-in-f164.1e100.net (216.58.197.164): icmp_seq=1 ttl=53 time=8.52 ms
64 bytes from nrt12s02-in-f164.1e100.net (216.58.197.164): icmp_seq=2 ttl=53 time=7.27 ms
64 bytes from nrt12s02-in-f164.1e100.net (216.58.197.164): icmp_seq=3 ttl=53 time=7.88 ms
--- www.google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 7.271/7.892/8.523/0.521 ms

sudo pacman -Syu

sudo pacman -S xorg-server xorg-xinit xf86-video-vesa xf86-video-fbdev mesa xorg-twm xorg-xclock xterm
sudo pacman -S virtualbox-guest-modules-arch virtualbox-guest-dkms
sudo pacman -S gnome gnome-extra gdm
sudo pacman -S net-tools
sudo pacman -S pulseaudio pulseaudio-alsa pavucontrol gnome-terminal flashplugin deluge audacious qmmp xfburn gnome-system-monitor
sudo pacman -S chromium firefox firefox-i18n-ja
sudo pacman -S thunderbird thunderbird-i18n-ja
sudo pacman -S a52dec faac faad2 flac jasper lame libdca libdv libmad libmpeg2 libtheora x264 wget leafpad mutt pcmanfm
sudo pacman -S otf-ipafont ttf-hanazono ttf-sazanami
sudo pacman -S adobe-source-han-sans-jp-fonts
sudo pacman -S yaourt

sudo systemctl enable vboxservice
sudo systemctl enable gdm.service

sudo poweroff

ロケールの変更について
user $ sudo nano /etc/locale.conf
下記のとおり編集しました。

LANG=ja_JP.UTF-8
LC_NUMERIC=ja_JP.UTF-8
LC_TIME=ja_JP.UTF-8
LC_MONETARY=ja_JP.UTF-8
LC_PAPER=ja_JP.UTF-8
LC_MEASUREMENT=ja_JP.UTF-8
# LANG=en_US.UTF-8

日本語入力ソフトFcitx Mozcのインストールについて

user $ sudo pacman -S fcitx fcitx-mozc fcitx-configtool fcitx-im

user $ sudo nano ~/.xprofile
下記のとおり編集しました。

export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
export DefaultIMModule=fcitx

GNOME3.22になり、Waylandウィンドウサーバーがデフォルトですが、Fcitxを使うためには、Xorgウィンドウサーバーを使用する必要があります。
Xorgを使用するモードでGNOMEを起動します。

こちらを見させていただきました。
http://landoflinux.com/linux_install_archlinux_process.html
http://qiita.com/tomioage/items/ddd9c7b0f0f7c774a222
http://archlinux-blogger.blogspot.jp/2016/02/ibus-mozcfcitx-mozc.html
http://archlinux-blogger.blogspot.jp/2016/03/arch-linux-x-gnome.html

Arch Gnomeスクリーンショットです。

https://cdn.scrot.moe/images/2017/06/18/2017-06-17_20h02_16.png

https://cdn.scrot.moe/images/2017/06/18/2017-06-17_20h02_34.png

https://cdn.scrot.moe/images/2017/06/18/2017-06-17_20h59_51.png