#发行版本 Arch Linux
0.系统安装
0.dd
dd if=/dev/zero of=/dev/sda bs=512 count=1
parted -s /dev/sda mklabel msdos
fdisk
m
o
#清空GPT/MBR分区格式
dd if=arch.iso of=/dev/sda
#此处of为设备,而不是设备分区
#无法引导需要尝试切换USB2.0/USB3.0接口
1.fdisk
#option fdisk
#SATA3.0中/dev/sda的跳线一定要接在0第一个位置
fdisk /dev/sda
n
p
default
+40G
n
p
default
+80G
p
w
#option cfdisk
cfdisk
#选择dos(MBR)
#设置bootable
#option gdisk for UEFI/GPT
efivar -l #测试ISO是否EFI
gdisk /dev/sda
#option cgdisk for UEFI/GPT
2.mkfs.ext4
mkfs.ext4 /dev/sda1
mkfs.ext4 /dev/sda2
3.mount
mount /dev/sda1 /mnt
4.install
vim /etc/pacman.d/mirrorlist
pacstrap -i /mnt base net-tools
genfstab -U -p /mnt >> /mnt/etc/fstab
arch-chroot /mnt /bin/bash
5.Launcher
refer to http://blog.lucode.net/linux/archlinux-install-tutorial.html ###syslinux
syslinux-install_update -i -a -m
vim /boot/syslinux/syslinux.cfg
Pacman Source Configure
vim /etc/pacman.conf
#添加archlinuxcn源
[archlinuxcn]
#The Chinese Arch Linux communities packages.
SigLevel = Optional TrustedOnly
Server = http://repo.archlinuxcn.org/$arch
#添加multiarch源
[multilib]
Include = /etc/pacman.d/mirrorlist
window manager
pacman -S xorg pacman -S xorg-xinit pacman -S awesome
pacman -S fcitx fcitx-configtool fcitx-qt5
awesome主题 http://awesome.naquadah.org/wiki/Beautiful_themes
#更换桌面
cd /usr/share/awesome/themes/default
cp -f ~/Desktop/hy1.png ./background.png
多屏幕
#查看已接入显示器设备
xrandr
#awesome多屏幕设置
xrandr --output eDP --mode 1366x768 --output VGA-0 --mode 1920x1080 --left-of eDP
Mod4 + o //send to another screen
Wifi
wifi-menu
pacman -S dialog wpa_supplicant
#连接Wifi指令
ip link
wpa_supplicant -D nl80211,wext -i wlp3s0 -c <(wpa_passphrase "KaiYuanTech" "940914940914")
dhcpcd wlp3s0
Terminal
pacman -S terminator
#手动配置或者右键-Preferences
~/.config/terminator/config
sh命令行
pacman -S zsh
Font & Beautify
pacman -S wqy-microhei wqy-zenhei
Input Method
pacman -S fcitx fcitx-qt5 fcitx-configtools
#添加到.xinitrc的awesome前面
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
fcitx -d &
图书馆&笔记系统
pacman -S calibre
pacman -S wiznote
firefox http://www.leanote.com
Financial & Accounting
pacman -S gnucash
Develop Tools
pacman -S android-studio
Security Tools
#渗透测试
pacman -S metasploit
#网络封包
pacman -S wireshark
#漏洞扫描
pacman -S nmap
pacman -S openvas
nessus优于openvas,openvas仅为开源免费替代方案
https://wiki.archlinux.org/index.php/Nessus
Multi Media
Flash Plugin
pacman -S flashplugin
Audio Driver
pacman -S alsa-utils
#配置card中MM为00,按m键
alsamixer
#查看声卡
aplay -l
#添加/etc/asound.conf文件,设置默认声卡
defaults.ctl.card 1
defaults.pcm.card 1
defaults.timer.card 1
#重载配置
alsactl restore
alsactl kill quit
alsactl init 1
#reboot
数学建模
pacman -S sagemath http://www.sagemath.org
Disk Mnt Tool
pacman -S ntfs-3g
mount /dev/<your-NTFS-partition> /media/<folder>
作者:ryanemax
微信关注:ryanemax (刘雨飏)
本文出处:https://romantic-hoover-f991f1.netlify.com/cookbook/devops/archlinux/
授权协议:
CC BY-SA 4.0