Arch Linuxインストール後の初期設定の概要
# ip addr add 192.168.0.100/24 dev enp0s4
# ip link set dev enp0s4 up
# ip route add default via 192.168.0.1
# echo nameserver 208.67.222.222 >> /etc/resolv.conf
コードのコピー
# cat /etc/udev/rules.d/10-network.rules
コードのコピー
#dhcpcd#eth 0にIPを自動的に取得させる
##またはサービスの自動起動(より便利)に設定
# systemctl enable dhcpcd@eth0
# systemctl start dhcpcd@eth0
コードのコピー
# pacman -S ifplugd
# systemctl disable dhcpcd@eth0
# systemctl stop dhcpcd@eth0DHCPを止めないと干渉する
# cd /etc/netctl
# cp examples/ethernet-static home
#vi home#私の静的IP設定profileを設定
# systemctl enable netctl
#再起動して、さっきの一時IP設定をクリア
# netctl start home
# netctl enable home
vimをインストールして、デフォルトのviは本当に使い慣れません:
コードのコピー
# pacman -S vim
# pacman -R vi
# ln -s /usr/bin/vim /usr/bin/vi
コードのコピー
# cat /etc/modprobe.d/nopcspkr.conf
blacklist pcspkr
インストールntp自動更新時間
コードのコピー
# pacman -S ntp libedit
# systemctl enable ntpd
# systemctl start ntpdコードのコピー
server 0.pool.ntp.org iburst
server 1.pool.ntp.org iburst
server 2.pool.ntp.org iburst < /dev/tty >server 3.pool.ntp.org iburst