forked from nihilist/blog-contributions
163 lines
5.2 KiB
Bash
163 lines
5.2 KiB
Bash
#!/bin/sh
|
|
########################SECOND SCRIPT##########################
|
|
|
|
|
|
if [ "$EUID" -eq 0 ]
|
|
then
|
|
echo 'MUST NOT RUN AS ROOT!'
|
|
exit
|
|
fi
|
|
|
|
sudo pacman -Syy
|
|
sudo pacman -S reflector
|
|
sudo reflector -c "France" -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist
|
|
|
|
sudo pacman -Syu
|
|
echo
|
|
#sudo pacman -S python3 python-pip
|
|
#sudo pacman -S arch-wiki-docs adobe-source-han-sans-jp-fonts adobe-source-han-sans-tw-fonts feh vi ttf-dejavu
|
|
#sudo pacman -S rofi xorg bash-completion vlc tmux git engrampa alacritty lightdm base-devel lightdm-gtk-greeter
|
|
#sudo pacman -S i3lock dmenu network-manager-applet wmctrl thunar gnome-disk-utility thunar-volman gvfs lxappearance
|
|
#sudo pacman -S udiskie mesa xorg i3 flameshot nvidia nvidia-settings nvidia-utils
|
|
#sudo pacman -S gnome-keyring
|
|
sudo pacman -S mpd ncmpcpp gnome-keyring udiskie mesa xorg i3 flameshot nvidia nvidia-settings nvidia-utils i3lock dmenu network-manager-applet wmctrl thunar gnome-disk-utility thunar-volman gvfs lxappearance python3 rofi xorg bash-completion vlc tmux git engrampa alacritty lightdm base-devel lightdm-gtk-greeter python-pip arch-wiki-docs adobe-source-han-sans-jp-fonts adobe-source-han-sans-tw-fonts feh vi ttf-dejavu remmina torbrowser-launcher
|
|
#arch wiki is in file:///usr/share/doc/arch-wiki/html/en/Arch_Linux.html
|
|
|
|
username=$(ls /home | head -n1 | sed 's/\/$//')
|
|
|
|
#I3 !
|
|
cd /home/$username
|
|
mkdir .config
|
|
cd .config
|
|
mkdir i3
|
|
cd i3
|
|
wget https://ech1.github.io/blog/Conf/i3config -O config
|
|
|
|
|
|
cd /home/$username
|
|
git clone https://github.com/gpakosz/.tmux.git
|
|
ln -s -f .tmux/.tmux.conf
|
|
cp .tmux/.tmux.conf.local .
|
|
|
|
wget https://ech1.github.io/blog/Conf/tmux.conf.local
|
|
mv tmux.conf.local .tmux.conf.local
|
|
|
|
|
|
wget https://ech1.netlify.app/conf/bashrc -O .bashrc
|
|
|
|
sudo wget https://ech1.github.io/blog/Conf/i3status.conf -O /etc/i3status.conf
|
|
|
|
cd .config
|
|
mkdir alacritty
|
|
cd alacritty
|
|
wget https://ech1.github.io/blog/Conf/alacritty.yml
|
|
|
|
cd /home/$username/
|
|
mkdir Pictures
|
|
mkdir Documents
|
|
mkdir .ssh
|
|
cd Pictures
|
|
wget https://ech1.github.io/blog/wallpaper3.png
|
|
#wget https://ech1.github.io/blog/wallpaper_triple.png
|
|
|
|
cd /home/$username/
|
|
mkdir Music
|
|
cd Music
|
|
mkdir Life
|
|
cd Life
|
|
wget https://ech1.github.io/blog/Conf/Infiltration.mp3
|
|
|
|
#sudo
|
|
#apt install sudo -y
|
|
#/usr/sbin/usermod -aG sudo $username
|
|
|
|
bash -c "$(wget https://ech1.netlify.app/Conf/xfce.sh -O -)"
|
|
|
|
#chown -R $username:$username /home/$username/
|
|
#cp /home/$username/.bashrc ~/.bashrc
|
|
|
|
|
|
cd /home/$username/
|
|
wget https://ech1.github.io/blog/Conf/lockedscreen.png
|
|
wget https://ech1.github.io/blog/assets/img/user1.png
|
|
mkdir Tools
|
|
cd Tools
|
|
|
|
git clone https://aur.archlinux.org/yay-git.git
|
|
cd yay-git
|
|
makepkg -si
|
|
yay -S pnmixer i3lock-color xrdp archtorify-git polybar picom-jonaburg-git i3-gaps
|
|
|
|
#yay -S polybar-git
|
|
mkdir -p /home/$username/.config/polybar/
|
|
#cp /usr/share/doc/polybar/config ~/.config/polybar/polybar.conf
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p /home/$username/.config/picom/
|
|
wget https://ech1.github.io/blog/Conf/picom.conf -O /home/$username/.config/picom/picom.conf
|
|
|
|
#sudo pip3 install i3-workspace-names-daemon
|
|
|
|
|
|
sudo systemctl enable xrdp
|
|
|
|
cd
|
|
|
|
sudo wget https://ech1.github.io/blog/servers/Arch/20-keyboard.conf -O /etc/X11/xorg.conf.d/20-keyboard.conf
|
|
sudo wget https://ech1.github.io/blog/servers/Arch/lightdm-gtk-greeter.conf -O /etc/lightdm/lightdm-gtk-greeter.conf
|
|
sudo sed -i 's/#greeter-session=.*/greeter-session=lightdm-gtk-greeter/gi' /etc/lightdm/lightdm.conf
|
|
sudo wget https://ech1.github.io/blog/Conf/Lain.rasi -O /usr/share/rofi/themes/Lain.rasi
|
|
sudo wget https://ech1.github.io/blog/servers/Arch/archtor.service -O /etc/systemd/system/archtor.service
|
|
sudo pacman -S ranger
|
|
sudo mkdir /home/$username/.config/ranger/
|
|
sudo wget https://ech1.github.io/blog/Conf/rc.conf -O /home/$username/.config/ranger/rc.conf
|
|
sudo wget https://ech1.github.io/blog/Conf/rifle.conf -O /home/$username/.config/ranger/rifle.conf
|
|
|
|
sudo systemctl daemon-reload
|
|
#sudo systemctl enable archtor
|
|
|
|
|
|
sudo mkdir /usr/share/backgrounds/
|
|
sudo cp /home/$username/Pictures/wallpaper3.png /usr/share/backgrounds/wallpaper2.png
|
|
sudo cp /home/$username/Pictures/user1.png /usr/share/backgrounds/
|
|
|
|
sudo wget https://ech1.github.io/blog/servers/Arch/i3locker.sh -O /usr/local/bin/i3locker
|
|
sudo wget https://ech1.github.io/blog/servers/Arch/music.sh -O /usr/local/bin/music
|
|
sudo wget https://ech1.github.io/blog/servers/Arch/music_trance.sh -O /usr/local/bin/music_trance
|
|
chmod +x /usr/local/bin/i3locker
|
|
chmod +x /usr/local/bin/music
|
|
|
|
|
|
curl https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh | sh
|
|
|
|
|
|
|
|
#sudo pacman -S picom
|
|
mkdir -p /home/$username/.config/picom/
|
|
sudo wget https://ech1.github.io/blog/Conf/picom.conf -O /home/$username/.config/picom/picom.conf
|
|
|
|
|
|
echo '[multilib]' >> /etc/pacman.d/mirrorlist
|
|
echo 'Include = /etc/pacman.d/mirrorlist' >> /etc/pacman.d/mirrorlist
|
|
|
|
#mpd
|
|
mkdir -p /home/$username/.config/mpd/playlists
|
|
wget https://blog.void.yt/Conf/mpd.conf -O /home/$username/.config/mpd/mpd.conf
|
|
#systemctl enable --now mpd
|
|
#broken garbage ^ must be ran by user as i3config
|
|
|
|
sudo pacman -S noto-fonts-emoji
|
|
|
|
|
|
|
|
#echo '[+] PLEASE CHOOSE THE CORRECT CARD DRIVER FOR THE STEAM INSTALLATION !!!'
|
|
#sudo pacman -Sy steam
|
|
|
|
sudo systemctl enable --now lightdm
|
|
#lxappearance
|
|
#sudo gnome-disks to automount everything
|
|
#and you're done!
|