17
15

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ArchLinuxをインストール (EFI)

Last updated at Posted at 2014-07-14

boot

  1. CD boot
  2. systemctl start sshd
  3. passwd
  4. ip -f inet addr

ssh

自分のPCからssh root@IPaddr

gdisk /dev/sda
Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048          206847   100.0 MiB   EF00  efi
   2          206846         4913151   2.0 GiB     8200  swap
   3         4913152        61071326   26.8 GiB    8300  /
フォーマット
mkfs.vfat -F32 /dev/sda1
mkswap /dev/sda2
mkfs.xfs /dev/sda3
mount
mount /dev/sda3 /mnt
mkdir -p /mnt/boot/efi
mount /dev/sda1 /mnt/boot/efi
/etc/pacman.d/mirrorlist
Server = http://ftp.tsukuba.wide.ad.jp/Linux/archlinux/$repo/os/$arch
pacstrap -i /mnt base base-devel vim openssh grub efibootmgr os-prober sudo
genfstab -U -p /mnt >> /mnt/etc/fstab
arch-chroot /mnt /bin/bash

chroot環境

chroot
sed -i.bak /etc/locale.gen \
  -e 's/#ja_JP.UTF-8 UTF-8/ja_JP.UTF-8 UTF-8/' \
  -e 's/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/'
echo LANG=ja_JP.UTF-8 > /etc/locale.conf
locale-gen
echo KEYMAP=jp106 > /etc/vconsole.conf
unlink /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
hwclock --systohc --utc
echo Arch >  /etc/hostname
sshdを最初から有効
systemctl enable sshd
mkinitcpio -p linux
passwd
EFIbootできるようにする
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --recheck
grub-mkconfig -o /boot/grub/grub.cfg

IP設定

あとはexit, umount -a, reboot

追加作業

useradd -m vagrant
passwd vagrant
visudo
pacman -Sy zsh git tig ranger docker
chsh -s `which zsh` `whoami`
zsh
~/.zshrc
VISUAL=vim
alias vi="vim -p"
alias d="sudo docker"
alias docker="sudo docker"
alias pacman="sudo pacman"
alias systemctl="sudo systemctl"
alias yaourt="yaourt --noconfirm"
docker
systemctl enable docker
systemctl start docker
for i in $(d search tukiyo3 | awk '/tukiyo3/{print $1}'); do d pull $i;done

yaourt

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

yaourt mutt

無線LANファームウェア

LIVA_PC
wget http://download.ecs.com.tw/dlfileecs/driver/mb/wlan/Ubuntu_1.0M.zip
unzip Ubuntu_1.0M.zip
unzip Ubuntu/WLAN/brcmfmac-sdio.zip
cp brcmfmac-sdio.bin /lib/firmware/brcm/brcmfmac43241b4-sdio.bin
cp brcmfmac-sdio.txt /lib/firmware/brcm/brcmfmac43241b4-sdio.txt
reboot
dmesg | grep brcmfmac

無線LAN設定

pacman -Sy iw wpa_supplicant
systemctl enable wpa_supplicant
systemctl start wpa_supplicant
ip link set wlan0 up
iw dev wlan0 scan

EFIについてメモ

メモ
# ラベル一覧を確認
$ efibootmgr -d /dev/mmcblk0
BootCurrent: 0000
Timeout: 2 seconds
BootOrder: 0008,0004,0003,0000,0002,0001
Boot0000* arch_grub
Boot0001* UEFI: Generic USB Flash Disk 0.00
Boot0002* biosupdate
Boot0003* biosupdate
Boot0004* Linux
Boot0005
Boot0006
Boot0007
Boot0008* Linux
# 不要なラベルの削除
$ efibootmgr -b 0002 -B
$ efibootmgr -b 0003 -B
$ efibootmgr -b 0004 -B
$ efibootmgr -b 0005 -B
$ efibootmgr -b 0006 -B
$ efibootmgr -b 0007 -B
$ efibootmgr -b 0008 -B
# カスタムラベルの追加
$ efibootmgr -c -d /dev/mmcblk0 -p 1 -w -L biosupdate -l \EFI\biosupdate\grubx64.efi
# この方法ではbiosupdateというラベルからboot出来ませんでした。

参考:GRUB (日本語) - ArchWiki

ECS - LIVA MINI PC KIT [LIVA B3 2G 32G]bios download

  • wodimはcdrtoolsに入っています。

systemctlの一覧

サウンド

  • audioグループに所属しておく。
音量調節
pacman -Sy alsa-utils
alsamixer

録音

録音(実験中)
arecord -l
amixer set Capture 80% unmute
arecord -D hw:0,0 -f cd -t wav sample.wav
17
15
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
17
15

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?