# By Dandadiqiu
# Run only once,to prepare the system.
#!/bin/sh
# chmod +x before run it.
# Install base system,how to:https://wiki.archlinux.org/index.php/Beginners%27_Guide_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)
echo "Hello World."
# Pacman Prepare.
pacman-key --init
pacman-key --populate archlinux
# Prepare to install yaourt.
echo "AUR-CN" > /etc/pacman.conf
echo "Server = http://repo.archlinuxcn.org/$arch" > /etc/pacman.conf
# Install yaourt&pacman-color
pacman -Syu
pacman -S pacman-color yaourt
rm /usr/sbin/pacman
ln -s '/usr/sbin/pacman-color' '/usr/sbin/pacman' #
#Install X&LXDE
pacman -S xorg-server xorg-xinit xorg-utils xorg-server-utils xorg lxde
echo "startlxde" > ~/.xinitrc #...Root?Are you SB?
#Let Systemd eat shit
pacman -S initscripts net-tools sysvinit bridge-utils dhcpcd
echo "/etc/rc.d/./network start" > /etc/rc.local
# Install & config UFW
pacman -S ufw
ufw enable
ufw default reject
echo "/etc/rc.d/./ufw start" > /etc/rc.local
init 6
# END
# Run only once,to prepare the system.
#!/bin/sh
# chmod +x before run it.
# Install base system,how to:https://wiki.archlinux.org/index.php/Beginners%27_Guide_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)
echo "Hello World."
# Pacman Prepare.
pacman-key --init
pacman-key --populate archlinux
# Prepare to install yaourt.
echo "AUR-CN" > /etc/pacman.conf
echo "Server = http://repo.archlinuxcn.org/$arch" > /etc/pacman.conf
# Install yaourt&pacman-color
pacman -Syu
pacman -S pacman-color yaourt
rm /usr/sbin/pacman
ln -s '/usr/sbin/pacman-color' '/usr/sbin/pacman' #

#Install X&LXDE
pacman -S xorg-server xorg-xinit xorg-utils xorg-server-utils xorg lxde
echo "startlxde" > ~/.xinitrc #...Root?Are you SB?

#Let Systemd eat shit
pacman -S initscripts net-tools sysvinit bridge-utils dhcpcd
echo "/etc/rc.d/./network start" > /etc/rc.local
# Install & config UFW
pacman -S ufw
ufw enable
ufw default reject
echo "/etc/rc.d/./ufw start" > /etc/rc.local
init 6
# END