archlinux init

  • openssh
  • ssh key
  • neovim
  • ln -s … vi… vim to nvim
  • sudo nopassword for wiloon
  • python for ansible
  • pacman -Syu
  • yay for telegraf

before ansible script

1
pacman -Syu && pacman -S git ansible

clone ansible script

1
git clone git@github.com:wiloon/ansible.git

config network by systemd-networkd

http://blog.wiloon.com/?p=9881

pacman -Syu

create user and set password

yay 不能在root下执行, 需要新建个用户 http://blog.wiloon.com/?p=911

ln -s /usr/bin/vim /usr/bin/vi visudo

/etc/sudoer.d/wiloon.conf

1
wiloon ALL=(ALL) NOPASSWD: ALL

install and enable sshd

pacman -S openssh systemctl start sshd systemctl enable sshd

connect to new system with user0 via ssh

  • ntp, chrony

http://blog.wiloon.com/ntp

  • 监控, telegraf

install app

  • zsh, oh-my-zsh install and switch to zsh - oh-my-zsh

http://blog.wiloon.com/zsh

  • 安装图形界面 kde 或 xfce4

install kde

http://blog.wiloon.com/kde

xfce4

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# install xfce4

sudo pacman -S xorg-server
# sudo pacman -S xorg #includes Xorg server,  xorg-apps
sudo pacman -S xf86-video-vesa
sudo pacman -S xf86-video-intel # for intel GPU
sudo pacman -S xf86-video-fbdev #for hyper v
sudo pacman -S xfce4
sudo pacman -S xfce4-goodies

startxfce4
登录后自动启动xfce4

登录shell后自动启动xfce4

http://blog.wiloon.com/?p=8940

restart to desktop to continue

wenquanyi 中文字体

sudo pacman -S wqy-microhei

font for terminal

sudo pacman -S ttf-inconsolata sudo pacman -S chromium yay -S google-chrome

输入法

输入法ibus

http://www.wiloon.com/?p=7507

for right click extrace package

pacman -S file-roller

xfce4 date time plugin format

Date Format: Custom Format

1
%b %d%n%V %a%n%R

Time Format: Custom Format

1
%a %R

http://goodies.xfce.org/projects/panel-plugins/xfce4-datetime-plugin

sddm

1
systemctl enable sddm

removed “SigLevel = RecquiredPackage” from /etc/pacman.conf and now it’s O.K.

pacman -S binutils

pacman -S patch xmarks ntfs-3g mount -t ntfs-3g /dev/sda5 /mnt

重启

1
reboot