This commit is contained in:
Sajay 2021-10-24 10:57:32 +05:30
parent f9443ecb14
commit 1f6920a61b
11 changed files with 64 additions and 56 deletions

View File

@ -1,11 +1,11 @@
#!/usr/bin/env bash #!/usr/bin/env bash
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# █████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗ # █████╗ ██╗ ██╗████████╗ ██████╗ █████╗ ██████╗ ██████╗██╗ ██╗
# ██╔══██╗██╔══██╗██╔════╝██║ ██║╚══██╔══╝██║╚══██╔══╝██║ ██║██╔════╝ # ██╔══██╗██║ ██║╚══██╔══╝██╔═══██╗██╔══██╗██╔══██╗██╔════╝██║ ██║
# ███████║██████╔╝██║ ███████║ ██║ ██║ ██║ ██║ ██║███████╗ # ███████║██║ ██║ ██║ ██║ ██║███████║██████╔╝██║ ███████║
# ██╔══██║██╔══██╗██║ ██╔══██║ ██║ ██║ ██║ ██║ ██║╚════██║ # ██╔══██║██║ ██║ ██║ ██║ ██║██╔══██║██╔══██╗██║ ██╔══██║
# ██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║ # ██║ ██║╚██████╔╝ ██║ ╚██████╔╝██║ ██║██║ ██║╚██████╗██║ ██║
# ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ # ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
echo "-------------------------------------------------" echo "-------------------------------------------------"
@ -18,14 +18,14 @@ setfont ter-v22b
sed -i 's/^#Para/Para/' /etc/pacman.conf sed -i 's/^#Para/Para/' /etc/pacman.conf
pacman -S --noconfirm reflector rsync pacman -S --noconfirm reflector rsync
mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
echo -e "-------------------------------------------------------------------------" echo -e -------------------------------------------------------------------------
echo -e " █████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗" echo -e █████╗ ██╗ ██╗████████╗ ██████╗ █████╗ ██████╗ ██████╗██╗ ██╗
echo -e " ██╔══██╗██╔══██╗██╔════╝██║ ██║╚══██╔══╝██║╚══██╔══╝██║ ██║██╔════╝" echo -e ██╔══██╗██║ ██║╚══██╔══╝██╔═══██╗██╔══██╗██╔══██╗██╔════╝██║ ██║
echo -e " ███████║██████╔╝██║ ███████║ ██║ ██║ ██║ ██║ ██║███████╗" echo -e ███████║██║ ██║ ██║ ██║ ██║███████║██████╔╝██║ ███████║
echo -e " ██╔══██║██╔══██╗██║ ██╔══██║ ██║ ██║ ██║ ██║ ██║╚════██║" echo -e ██╔══██║██║ ██║ ██║ ██║ ██║██╔══██║██╔══██╗██║ ██╔══██║
echo -e " ██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║" echo -e ██║ ██║╚██████╔╝ ██║ ╚██████╔╝██║ ██║██║ ██║╚██████╗██║ ██║
echo -e " ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝" echo -e ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝
echo -e "-------------------------------------------------------------------------" echo -e -------------------------------------------------------------------------
reflector -a 48 -c $iso -f 5 -l 20 --sort rate --save /etc/pacman.d/mirrorlist reflector -a 48 -c $iso -f 5 -l 20 --sort rate --save /etc/pacman.d/mirrorlist
mkdir /mnt mkdir /mnt
@ -105,7 +105,7 @@ linux /vmlinuz-linux
initrd /initramfs-linux.img initrd /initramfs-linux.img
options root=LABEL=ROOT rw rootflags=subvol=@ options root=LABEL=ROOT rw rootflags=subvol=@
EOF EOF
cp -R ~/ArchTitus /mnt/root/ cp -R ~/autoarch /mnt/root/
cp /etc/pacman.d/mirrorlist /mnt/etc/pacman.d/mirrorlist cp /etc/pacman.d/mirrorlist /mnt/etc/pacman.d/mirrorlist
echo "--------------------------------------" echo "--------------------------------------"
echo "-- SYSTEM READY FOR 0-setup --" echo "-- SYSTEM READY FOR 0-setup --"

View File

@ -1,11 +1,11 @@
#!/usr/bin/env bash #!/usr/bin/env bash
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# █████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗ # █████╗ ██╗ ██╗████████╗ ██████╗ █████╗ ██████╗ ██████╗██╗ ██╗
# ██╔══██╗██╔══██╗██╔════╝██║ ██║╚══██╔══╝██║╚══██╔══╝██║ ██║██╔════╝ # ██╔══██╗██║ ██║╚══██╔══╝██╔═══██╗██╔══██╗██╔══██╗██╔════╝██║ ██║
# ███████║██████╔╝██║ ███████║ ██║ ██║ ██║ ██║ ██║███████╗ # ███████║██║ ██║ ██║ ██║ ██║███████║██████╔╝██║ ███████║
# ██╔══██║██╔══██╗██║ ██╔══██║ ██║ ██║ ██║ ██║ ██║╚════██║ # ██╔══██║██║ ██║ ██║ ██║ ██║██╔══██║██╔══██╗██║ ██╔══██║
# ██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║ # ██║ ██║╚██████╔╝ ██║ ╚██████╔╝██║ ██║██║ ██║╚██████╗██║ ██║
# ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ # ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
echo "--------------------------------------" echo "--------------------------------------"
echo "-- Network Setup --" echo "-- Network Setup --"
@ -73,7 +73,6 @@ PKGS=(
'btrfs-progs' 'btrfs-progs'
'celluloid' # video players 'celluloid' # video players
'cmatrix' 'cmatrix'
'code' # Visual Studio code
'cronie' 'cronie'
'cups' 'cups'
'dhcpcd' 'dhcpcd'
@ -94,7 +93,6 @@ PKGS=(
'fuseiso' 'fuseiso'
'gamemode' 'gamemode'
'gcc' 'gcc'
'gimp' # Photo editing
'git' 'git'
'gparted' # partition management 'gparted' # partition management
'gptfdisk' 'gptfdisk'
@ -267,14 +265,14 @@ fi
echo -e "\nDone!\n" echo -e "\nDone!\n"
if ! source install.conf; then if ! source install.conf; then
read -p "Please enter username:" username read -p "Please enter username:" username
echo "username=$username" >> ${HOME}/ArchTitus/install.conf echo "username=$username" >> ${HOME}/autoarch/install.conf
fi fi
if [ $(whoami) = "root" ]; if [ $(whoami) = "root" ];
then then
useradd -m -G wheel,libvirt -s /bin/bash $username useradd -m -G wheel,libvirt -s /bin/bash $username
passwd $username passwd $username
cp -R /root/ArchTitus /home/$username/ cp -R /root/autoarch /home/$username/
chown -R $username: /home/$username/ArchTitus chown -R $username: /home/$username/autoarch
else else
echo "You are already a user proceed with aur installs" echo "You are already a user proceed with aur installs"
fi fi

View File

@ -1,11 +1,11 @@
#!/usr/bin/env bash #!/usr/bin/env bash
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# █████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗ # █████╗ ██╗ ██╗████████╗ ██████╗ █████╗ ██████╗ ██████╗██╗ ██╗
# ██╔══██╗██╔══██╗██╔════╝██║ ██║╚══██╔══╝██║╚══██╔══╝██║ ██║██╔════╝ # ██╔══██╗██║ ██║╚══██╔══╝██╔═══██╗██╔══██╗██╔══██╗██╔════╝██║ ██║
# ███████║██████╔╝██║ ███████║ ██║ ██║ ██║ ██║ ██║███████╗ # ███████║██║ ██║ ██║ ██║ ██║███████║██████╔╝██║ ███████║
# ██╔══██║██╔══██╗██║ ██╔══██║ ██║ ██║ ██║ ██║ ██║╚════██║ # ██╔══██║██║ ██║ ██║ ██║ ██║██╔══██║██╔══██╗██║ ██╔══██║
# ██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║ # ██║ ██║╚██████╔╝ ██║ ╚██████╔╝██║ ██║██║ ██║╚██████╗██║ ██║
# ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ # ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
echo -e "\nINSTALLING AUR SOFTWARE\n" echo -e "\nINSTALLING AUR SOFTWARE\n"
@ -45,7 +45,17 @@ PKGS=(
'ttf-hack' 'ttf-hack'
'ttf-meslo' # Nerdfont package 'ttf-meslo' # Nerdfont package
'ttf-roboto' 'ttf-roboto'
'zoom' # video conferences 'firefox'
'librewolf' # Firefox fork
'mpv'
'vlc'
'signal-desktop'
'discord'
'librewolf'
'vscodium'
'qbittorrent'
'libreoffice-fresh'
'tor-browser'
'snap-pac' 'snap-pac'
) )
@ -54,9 +64,9 @@ for PKG in "${PKGS[@]}"; do
done done
export PATH=$PATH:~/.local/bin export PATH=$PATH:~/.local/bin
cp -r $HOME/ArchTitus/dotfiles/* $HOME/.config/ cp -r $HOME/autoarch/dotfiles/* $HOME/.config/
pip install konsave pip install konsave
konsave -i $HOME/ArchTitus/kde.knsv konsave -i $HOME/autoarch/kde.knsv
sleep 1 sleep 1
konsave -a kde konsave -a kde

View File

@ -1,11 +1,11 @@
#!/usr/bin/env bash #!/usr/bin/env bash
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# █████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗ # █████╗ ██╗ ██╗████████╗ ██████╗ █████╗ ██████╗ ██████╗██╗ ██╗
# ██╔══██╗██╔══██╗██╔════╝██║ ██║╚══██╔══╝██║╚══██╔══╝██║ ██║██╔════╝ # ██╔══██╗██║ ██║╚══██╔══╝██╔═══██╗██╔══██╗██╔══██╗██╔════╝██║ ██║
# ███████║██████╔╝██║ ███████║ ██║ ██║ ██║ ██║ ██║███████╗ # ███████║██║ ██║ ██║ ██║ ██║███████║██████╔╝██║ ███████║
# ██╔══██║██╔══██╗██║ ██╔══██║ ██║ ██║ ██║ ██║ ██║╚════██║ # ██╔══██║██║ ██║ ██║ ██║ ██║██╔══██║██╔══██╗██║ ██╔══██║
# ██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║ # ██║ ██║╚██████╔╝ ██║ ╚██████╔╝██║ ██║██║ ██║╚██████╗██║ ██║
# ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ # ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
echo -e "\nFINAL SETUP AND CONFIGURATION" echo -e "\nFINAL SETUP AND CONFIGURATION"

View File

@ -1,4 +1,4 @@
# ArchTitus Installer Script # autoarch Installer Script
<img src="https://i.imgur.com/YiNMnan.png" /> <img src="https://i.imgur.com/YiNMnan.png" />
@ -17,9 +17,9 @@ From initial Prompt type the following commands:
``` ```
pacman -Sy git pacman -Sy git
git clone https://github.com/ChrisTitusTech/ArchTitus git clone https://github.com/sajayprakash/AutoArch
cd ArchTitus cd autoarch
./archtitus.sh ./autoarch.sh
``` ```
### System Description ### System Description

View File

@ -1,7 +0,0 @@
#!/bin/bash
bash 0-preinstall.sh
arch-chroot /mnt /root/ArchTitus/1-setup.sh
source /mnt/root/ArchTitus/install.conf
arch-chroot /mnt /usr/bin/runuser -u $username -- /home/$username/ArchTitus/2-user.sh
arch-chroot /mnt /root/ArchTitus/3-post-setup.sh

7
autoarch.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/bash
bash 0-preinstall.sh
arch-chroot /mnt /root/autoarch/1-setup.sh
source /mnt/root/autoarch/install.conf
arch-chroot /mnt /usr/bin/runuser -u $username -- /home/$username/autoarch/2-user.sh
arch-chroot /mnt /root/autoarch/3-post-setup.sh

View File

@ -1,3 +1,3 @@
hostname=host hostname=host
username=titus username=s
password=1234 password=1234

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
cp -r $HOME/.config/kitty $HOME/ArchTitus/dotfiles/kitty cp -r $HOME/.config/kitty $HOME/autoarch/dotfiles/kitty
konsave -s kde konsave -s kde
konsave -e kde konsave -e kde

View File

@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
export PATH=$PATH:~/.local/bin export PATH=$PATH:~/.local/bin
cp -r $HOME/ArchTitus/dotfiles/* $HOME/.config/ cp -r $HOME/autoarch/dotfiles/* $HOME/.config/
pip install konsave pip install konsave
konsave -i $HOME/ArchTitus/kde.knsv konsave -i $HOME/autoarch/kde.knsv
sleep 1 sleep 1
konsave -a kde konsave -a kde

Binary file not shown.

Before

Width:  |  Height:  |  Size: 792 KiB