Skip to content

Instantly share code, notes, and snippets.

@xorphitus
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xorphitus/9867775 to your computer and use it in GitHub Desktop.
Save xorphitus/9867775 to your computer and use it in GitHub Desktop.
Arch Linux快適デスクトップ環境の構築 ref: http://qiita.com/xorphitus/items/3711895eb5d9f946c782
# pvcreate /dev/sda2
# pvdisplay
pacstrap -i /mnt base base-devel
# genfstab -U -p /mnt >> /mnt/etc/fstab
# vi /mnt/etc/fstab
# arch-chroot /mnt
# vi /etc/locale.gen
en_US.UTF-8 UTF-8
ja_JP.UTF-8 UTF-8
# locale-gen
# echo LANG=ja_JP.UTF-8 > /etc/locale.conf
ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
hwclock --systohc --utc
echo お好みのほすとねーむ > /etc/hostname
# vgcreate VolGroup00 /dev/sda2
systemctl enable dhcpcd.service
# vi /etc/pacman.conf
# pacman -Sy
# vi /etc/mkinitcpio.conf
# mkinitcpio -p linux
# pacman -S gummiboot
# umount /sys/firmware/efi/efivars
# modprove -r efivars
# modprove efivarfs
# mount -t efivarfs efivarfs /sys/firmware/efi/efivars
# gummiboot install
umount: /sys/firmware/efi/efivars/: not mounted
# vi /boot/loader/loader.conf
default arch
timeout 4
# vgdisplay
# vi /boot/loader/entries/arch.conf
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=/dev/mapper/VolGroup00-lvolroot rw
# gummiboot install
File system /boot is not an EFI ystem Partition (ESP)
Not booted with EFI, skipping EFI variable setup.
Missing operating system.
Reboot and Select proper Boot device
or Insert Boot Media in selected Boot device and press a key
# wget http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/iso/2013.08.01/archlinux-2013.08.01-dual.iso
# pacman -Sy
# pacman -S cdrkit
# wodim -v -sao dev=/dev/cdrw archlinux-2013.08.01-dual.iso
# exit
# umount /mnt/boot
# umount /mnt
# reboot
# export LANG=en_US.UTF-8
# pacman -Syu
# lvcreate -l +100%FREE VolGroup00 -n lvolroot
# useradd -m {username}
# passwd {username}
# pacman -S sudo
# visudo
{username} ALL=(ALL) ALL
# pacman -S xorg-server
# pacman -S openbox
# pacman -S xterm
# lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
# pacman -S xf86-video-intel
# pacman -S slim
# systemctrl enable slim.service
Faliled to execute loggin command
# lvdisplay
#!/bin/sh
exec openbox-session
# pacman -S emacs zsh tmux openssl git vim
# git clone http://github.com/xxxxx/xxxxx.git
# dotfiles/setup.sh
login_cmd exec /bin/sh - ~/.xinitrc %session
login_cmd exec /bin/zsh -l ~/.xinitrc %session
# yarourt -S ttf-ricty
[archlinuxfr]
SigLevel = Never
Server = http://repo.archlinux.fr/$arch
# pacman --sync --refresh yaourt
[pnsft-pur]
SigLevel = Optional TrustAll
Server = http://downloads.sourceforge.net/project/pnsft-aur/pur/$arch
# mkfs.vfat -F32 /dev/sda1
# mkfs.ext4 /dev/mapper/VolGroup00-lvolroot
# sudo pacman -Syy
# sudo pacman -S mozc ibus-mozc emacs-mozc
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
ibus-daemon --xim -d &
$ ibus-setup
# sudo reboot
# pacman -S alsa-utils
$ alsamixer
$ aplay -D plughw:{card_id},{device_id} /usr/share/sounds/alsa/Front_Center.wav
pcm.!default {
type hw
card {card_id}
device {device_id}
}
echo blacklist snd_intel8x0m | sudo tee /etc/modprobe.d/modprobe.conf
dropboxd &
skype &
# mount /dev/mapper/VolGroup00-lvolroot /mnt
# mkdir -p /mnt/boot
# mount /dev/sda1 /mnt/boot
# pacman -S dunst
$ mkdir ~/.config/dunst
$ cp /usr/share/dunstrc ~/.config/dunst/
# pacman -S ntp
# ntpd ntp.nict.jp
# yarourt -S compton
# pacman -S nitrogen
$ nitrogen {wallpapers_path}
nitrogen --restore &
compton &
# pacman -S faenza-icon-theme
# pacman -S lxappearance lxappearance-obconf
$ lxappearance &
# yaourt -S gtk-engine-murrine gtk-engine-equinox gtk-engines
# vi /etc/pacman.d/mirrorlist
Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment