Arch Linux新手配置脚本


1.添加国内pacman源
2.添加AUR源
3.添加Blackarch源
4.更新源,安装常用软件

#!/bin/bash
if [ `whoami` = "root" ];then
	echo -e "\033[32m SUCCESS \033[0m"  
else
	echo -e "\033[31m Are You Root ? Permission Denied \033[0m"
	exit
fi
#Delete & Update Sources
rm -f /etc/pacman.d/mirrorlist && wget -O /etc/pacman.d/mirrorlist https://www.archlinux.org/mirrorlist/?country=CN
sed -i.bak "/ustc/s/^#\(.*$\)/\1/g' mirrorlist

#Add AUR Sources
curl -s www.ixinian.com/sources/aur.txt  > /etc/pacman.conf

#Add BlackArch Sources
curl -s www.ixinian.com/sources/blackarch.txt > /etc/pacman.conf

#Update System
pacman -Syy

#Installation of Common Software
pacman -S metasploit sqlmap whatweb whois hydra john weevely


# echo -e "\033[32m Complete \033[0m" 

同样也可以执行

bash <(curl -Ss http://www.ixinian.com/script/arch.sh)

在 “Arch Linux新手配置脚本” 上有 3 条评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注