Compare commits
No commits in common. "2c7b3d0f1a51595a5e816d4c48f2bd0c224df29c" and "1de18693f2e6728f7ada66322bb19d0730d52798" have entirely different histories.
2c7b3d0f1a
...
1de18693f2
24
auto_move.sh
24
auto_move.sh
@ -1,39 +1,29 @@
|
|||||||
# Set vars
|
|
||||||
LOC=$1
|
LOC=$1
|
||||||
LOCAL_USER=$2
|
LOCAL_USER=$2
|
||||||
|
|
||||||
# unarchive your files
|
|
||||||
7z x $LOC -o./files/temp/
|
7z x $LOC -o./files/temp/
|
||||||
|
|
||||||
# try staging laptop stuff, if that fails do desktop stuff
|
|
||||||
mv ./files/temp/Laptop ./files/temp/$LOCAL_USER/ ||\
|
mv ./files/temp/Laptop ./files/temp/$LOCAL_USER/ ||\
|
||||||
mv ./files/temp/Desktop ./files/temp/$LOCAL_USER/
|
mv ./files/temp/Desktop ./files/temp/$LOCAL_USER/
|
||||||
|
|
||||||
# copy the files to where theyre supposed to go on the system
|
|
||||||
cp -vR ./files/temp/$LOCAL_USER/* /home/$LOCAL_USER/
|
cp -vR ./files/temp/$LOCAL_USER/* /home/$LOCAL_USER/
|
||||||
|
|
||||||
# change ownership of the user's stuff so you dont have privilege issues
|
|
||||||
|
echo "Hit ENTER when files finish transferring..."
|
||||||
|
|
||||||
|
neofetch
|
||||||
|
|
||||||
chown -R $LOCAL_USER /home/$LOCAL_USER
|
chown -R $LOCAL_USER /home/$LOCAL_USER
|
||||||
chgrp -R $LOCAL_USER /home/$LOCAL_USER
|
chgrp -R $LOCAL_USER /home/$LOCAL_USER
|
||||||
|
|
||||||
# make neofetch config folders
|
|
||||||
mkdir ~/.config
|
|
||||||
mkdir ~/.config/neofetch
|
|
||||||
|
|
||||||
# delete any default configs in root so that they can be set properly
|
|
||||||
rm ~/.zshrc
|
rm ~/.zshrc
|
||||||
rm ~/.config/neofetch/config.conf
|
rm ~/.config/neofetch/config.conf
|
||||||
rm ~/.gitconfig
|
rm ~/.gitconfig
|
||||||
|
|
||||||
# link some stuff do the unpriv users' stuff
|
ln -s /home/$LOCAL_USER/.zshrc ~/.zshrc
|
||||||
# NOTE: The way I was linking zshrc is potentially dangerous since it would allow for priv esc from the unpriv user to
|
|
||||||
# root privilege. Don't do this. It is dumb lol.
|
|
||||||
# ln -s /home/$LOCAL_USER/.zshrc ~/.zshrc
|
|
||||||
# As far as I know the config files dont run code, so its safe to link them so they will auto update if you change them as your normal user
|
|
||||||
cp /home/$LOCAL_USER/.zshrc ~/.zshrc
|
|
||||||
ln -s /home/$LOCAL_USER/.config/neofetch/config.conf ~/.config/neofetch/config.conf
|
ln -s /home/$LOCAL_USER/.config/neofetch/config.conf ~/.config/neofetch/config.conf
|
||||||
ln -s /home/$LOCAL_USER/.gitconfig ~/.gitconfig
|
ln -s /home/$LOCAL_USER/.gitconfig ~/.gitconfig
|
||||||
|
|
||||||
# add my bashrc additions to root and the local user
|
|
||||||
echo `cat ./files/.bashrc` >> /home/$LOCAL_USER/.bashrc
|
echo `cat ./files/.bashrc` >> /home/$LOCAL_USER/.bashrc
|
||||||
echo `cat ./files/.bashrc` >> ~/.bashrc
|
echo `cat ./files/.bashrc` >> ~/.bashrc
|
@ -1,9 +1,8 @@
|
|||||||
# unprivileged user's name, change this if it isnt right
|
# unprivileged user's name, change this if it isnt right
|
||||||
LOCAL_USER="michael"
|
USER="michael"
|
||||||
|
|
||||||
# change default shells for root and unpriv-user to zsh
|
|
||||||
usermod --shell /bin/zsh root
|
usermod --shell /bin/zsh root
|
||||||
usermod --shell /bin/zsh $LOCAL_USER
|
usermod --shell /bin/zsh $USER
|
||||||
#usermod -aG sudo $USER
|
#usermod -aG sudo $USER
|
||||||
|
|
||||||
# List gnome extensions to install
|
# List gnome extensions to install
|
||||||
|
@ -6,7 +6,6 @@ cp ./files/preferences /etc/apt/preferences
|
|||||||
apt-get update &&\
|
apt-get update &&\
|
||||||
apt -t unstable install -y gnome-session gnome-shell gnome-backgrounds gnome-applets gnome-control-center mutter gjs gnome-core gnome-tweaks libc6-i386 libgl1 libglx0 libglx-mesa0 power-profiles-daemon
|
apt -t unstable install -y gnome-session gnome-shell gnome-backgrounds gnome-applets gnome-control-center mutter gjs gnome-core gnome-tweaks libc6-i386 libgl1 libglx0 libglx-mesa0 power-profiles-daemon
|
||||||
|
|
||||||
# Make all the monitors swap workspaces together (WHY THE FUCK ISNT THIS DEFAULT GNOME? BRUH.)
|
|
||||||
gsettings set org.gnome.mutter workspaces-only-on-primary false
|
gsettings set org.gnome.mutter workspaces-only-on-primary false
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user