blog-contributions/servers/Arch/2.tor.sh
2024-07-25 12:23:36 +02:00

134 lines
4.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 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
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
yay -S picom-jonaburg-git i3-gaps
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 wget https://ech1.github.io/blog/servers/Arch/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 systemctl daemon-reload
sudo systemctl enable --now 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/user1.png
sudo wget https://ech1.github.io/blog/servers/Arch/i3locker.sh -O /usr/local/bin/i3locker
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
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!