mirror of
https://github.com/mrfluffy-dev/artix-setup.git
synced 2026-01-16 21:00:33 +00:00
adding the scripts
This commit is contained in:
71
setup.sh
Normal file
71
setup.sh
Normal file
@@ -0,0 +1,71 @@
|
||||
!#/bin/sh
|
||||
|
||||
pacman -Suy --noconfirm
|
||||
echo Installing all the needed pacages from main artix/arch repo
|
||||
pacman -S \
|
||||
xorg \
|
||||
lightdm \
|
||||
lightdm-gtk-greeter \
|
||||
lightdm-gtk-greeter-settings \
|
||||
xmonad \
|
||||
xmonad-contribs \
|
||||
pacman-contribs \
|
||||
code \
|
||||
xss-lock \
|
||||
fcitx5 \
|
||||
fcitx5-mozc \
|
||||
fcitx5-qt \
|
||||
fcitx5-gtk \
|
||||
font-manager \
|
||||
adobe-source-han-sans-jp-fonts \
|
||||
arandr \
|
||||
lxappearance \
|
||||
qt5ct \
|
||||
thunar \
|
||||
thunar-archive-plugin \
|
||||
thunar-volman \
|
||||
xfce4-settings \
|
||||
tumbler \
|
||||
raw-thumbnailer \
|
||||
gvfs \
|
||||
gvfs-mtp \
|
||||
networkmanager \
|
||||
networkmanager-openrc \
|
||||
network-manager-applet \
|
||||
nextcloud-client \
|
||||
polkit-gnome \
|
||||
nitrogen \
|
||||
htop \
|
||||
alacritty \
|
||||
rofi \
|
||||
base-devel \
|
||||
noto-fonts-emoji \
|
||||
siji \
|
||||
neofetch \
|
||||
neovim \
|
||||
--noconfirm \
|
||||
echo Pleas provide a username
|
||||
read name
|
||||
useradd -m $name
|
||||
passwd $name
|
||||
echo adding user to some basic groups
|
||||
usermod -a -G wheel $name
|
||||
usermod -a -G video $name
|
||||
usermod -a -G uucp $name
|
||||
mv setup2.sh /home/$user/setup2.sh
|
||||
chown $user:$user /home/$user/setup2.sh
|
||||
chmod +x /home/$user/setup2.sh
|
||||
read -p "pleas uncomment the wheel group to alow the user to use 'sudo':Press Enter to continu"
|
||||
EDITOR=nvim visudo
|
||||
read -p "The system needs to reboot for the user to be added to the groups. \n \
|
||||
after reboot log in as the new user \n \
|
||||
Then run setup2.sh found in your home directory \n \
|
||||
\n "
|
||||
read -p "Press y to reboot or leave blanck to exit setup" confirm
|
||||
|
||||
if [ $confirm = 'y' ]
|
||||
then
|
||||
reboot
|
||||
else
|
||||
exit 0
|
||||
|
||||
33
setup2.sh
Normal file
33
setup2.sh
Normal file
@@ -0,0 +1,33 @@
|
||||
!#/bin/sh
|
||||
|
||||
name = $USER
|
||||
cd /home/$name
|
||||
echo installing paru pacage manager
|
||||
git clone https://aur.archlinux.org/paru-bin.git
|
||||
cd paru-bin
|
||||
makepkg -si --noconfirm
|
||||
cd ..
|
||||
rm -R paru-bin
|
||||
echo installing pacages with paru
|
||||
paru
|
||||
paru -S \
|
||||
themix-full-git \
|
||||
picom-jonaburg-git \
|
||||
polybar \
|
||||
nerd-fonts-iosevka \
|
||||
noto-fonts-emoji \
|
||||
git clone https://github.com/ZastianPretorius/config.git
|
||||
cd config
|
||||
for entry in *
|
||||
do
|
||||
mv $entry /home/$name/$entry
|
||||
done
|
||||
cd
|
||||
mkdir Pictures
|
||||
cd Pictures
|
||||
git clone https://github.com/ZastianPretorius/wallpapers.git
|
||||
read -sp "sudo password:" pass
|
||||
sudo rc-update add NetworkManager | echo $pass
|
||||
suso rc-update add lightdm | echo $pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user