From 012f6ed8526d92a6700f7be67ab9ec52911d5098 Mon Sep 17 00:00:00 2001 From: Michael Scalzetti Date: Wed, 23 Mar 2022 18:24:02 -0400 Subject: [PATCH] expanding on scripts to auto install more stuff, such as the full gnome 41 desktop from a minimal debian install --- README.md | 13 +++++++++++-- desktop_install.sh | 12 ++++++++++++ files/preferences | 7 +++++++ files/unstable.list | 2 ++ finalize.sh | 16 ++++++++++++++++ gnome_install.sh | 12 ++++++++++++ laptop_install.sh | 14 ++++++++++++++ program_install.sh | 15 ++------------- 8 files changed, 76 insertions(+), 15 deletions(-) create mode 100644 desktop_install.sh create mode 100644 files/preferences create mode 100644 files/unstable.list create mode 100644 finalize.sh create mode 100644 gnome_install.sh create mode 100644 laptop_install.sh diff --git a/README.md b/README.md index c8608a7..abadf24 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,15 @@ # To auto-install run the commands below as root +## For laptop + ``` -apt-get update && apt-get install -y curl -sh `curl https://gitea.voxelvortex.tk/voxelvortex/InstaTout/raw/branch/master/program_install.sh` +apt-get update && apt-get install -y curl git +curl https://gitea.voxelvortex.tk/voxelvortex/InstaTout/raw/branch/master/laptop_install.sh | sh +``` + +## For desktop + +``` +apt-get update && apt-get install -y curl git +curl https://gitea.voxelvortex.tk/voxelvortex/InstaTout/raw/branch/master/desktop_install.sh | sh ``` diff --git a/desktop_install.sh b/desktop_install.sh new file mode 100644 index 0000000..4e62fde --- /dev/null +++ b/desktop_install.sh @@ -0,0 +1,12 @@ +LOC="./.auto-install" +git clone https://gitea.voxelvortex.tk:443/voxelvortex/InstaTout.git $LOC + + +$LOC/program_install.sh + +apt-get update &&\ +apt-get install -y ungoogled-chromium librewolf code python3 python3-pip python3-wheel docker-compose docker.io zsh gdb p7zip-full git iputils-* dnsutils net-tools handbrake* ffmpeg htop nano vim neovim nmap nvidia-detect ncat ssh tree vlc snapd obs-studio audacity filezilla + +mv $LOC/files/Desktop $LOC/files/InstallMe + +$LOC/finalize.sh \ No newline at end of file diff --git a/files/preferences b/files/preferences new file mode 100644 index 0000000..6954da0 --- /dev/null +++ b/files/preferences @@ -0,0 +1,7 @@ +Package: * +Pin: release a=bullseye +Pin-Priority: 500 + +Package: * +Pin: release a=unstable +Pin-Priority: 100 diff --git a/files/unstable.list b/files/unstable.list new file mode 100644 index 0000000..e875df7 --- /dev/null +++ b/files/unstable.list @@ -0,0 +1,2 @@ +deb https://deb.debian.org/debian/ unstable main contrib +deb-src http://deb.debian.org/debian/ unstable main contrib diff --git a/finalize.sh b/finalize.sh new file mode 100644 index 0000000..934bd31 --- /dev/null +++ b/finalize.sh @@ -0,0 +1,16 @@ +# unprivileged user's name, change this if it isnt right +USER="michael" + +# Move files to home dir +mv ./files/InstallMe /home/$USER + + +# List gnome extensions to install +echo -e "\nGnome extensions:" +echo -e "\AppIndicator and KStatusNotifierItem Support: https://extensions.gnome.org/extension/615/appindicator-support/" +echo -e "\tArcMenu: https://extensions.gnome.org/extension/3628/arcmenu/" +echo -e "\tLaunch new instance: https://extensions.gnome.org/extension/600/launch-new-instance/" +echo -e "\tRemovable Drive Menu: https://extensions.gnome.org/extension/7/removable-drive-menu/" +echo -e "\tTactile: https://extensions.gnome.org/extension/4548/tactile/" +echo -e "\tVitals: https://extensions.gnome.org/extension/1460/vitals/" +echo -e "\tWorkspace Indicator: https://extensions.gnome.org/extension/21/workspace-indicator/" diff --git a/gnome_install.sh b/gnome_install.sh new file mode 100644 index 0000000..01ce565 --- /dev/null +++ b/gnome_install.sh @@ -0,0 +1,12 @@ +# install laptop utils via tasksel +tasksel install laptop + +# Copy over unstable repo stuff +cp ./files/unstable.list /etc/apt/sources.list.d/unstable.list +cp ./preferences /etc/apt/preferences + +# Install gnome +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 + +echo \ No newline at end of file diff --git a/laptop_install.sh b/laptop_install.sh new file mode 100644 index 0000000..3a488bf --- /dev/null +++ b/laptop_install.sh @@ -0,0 +1,14 @@ +LOC="./.auto-install" +git clone https://gitea.voxelvortex.tk:443/voxelvortex/InstaTout.git $LOC + +$LOC/program_install.sh + +apt-get update &&\ +apt-get install -y ungoogled-chromium librewolf code python3 python3-pip python3-wheel docker-compose docker.io zsh gdb p7zip-full git iputils-* dnsutils net-tools ffmpeg htop nano vim neovim nmap ncat ssh tree vlc snapd audacity filezilla + +mv $LOC/files/Laptop $LOC/files/InstallMe + +# Point to Fprint driver +echo -e "\n\nFigerprint\n\tCheck out: https://gist.github.com/d-k-bo/15e53eab53e2845e97746f5f8661b224" + +$LOC/finalize.sh \ No newline at end of file diff --git a/program_install.sh b/program_install.sh index 6076705..de47f09 100755 --- a/program_install.sh +++ b/program_install.sh @@ -25,8 +25,8 @@ curl -s 'https://download.opensuse.org/repositories/home:/ungoogled_chromium/Deb # Update again apt-get update -y && apt-get upgrade -y -# Install main apt stuff -apt-get install -y ungoogled-chromium librewolf code python3 python3-pip python3-wheel docker-compose docker.io zsh gdb p7zip-full git iputils-* dnsutils net-tools handbrake* ffmpeg htop nano vim neovim nmap nvidia-detect ncat ssh tree vlc snapd obs-studio audacity filezilla +# Install my default apt stuff +apt-get install -y ungoogled-chromium librewolf code python3 python3-pip python3-wheel docker-compose docker.io zsh p7zip-full git iputils-* dnsutils net-tools htop nano vim neovim ncat ssh tree vlc snapd neofetch # Update python pip python3 -m pip install -U pip @@ -38,15 +38,4 @@ snap install core discord git clone https://github.com/NationalSecurityAgency/ghidra.git /usr/bin/ghidra ln -s /usr/bin/ghidra/ghidraRun /usr/bin/ghidraRun -# Point to Fprint driver -echo -e "\n\nFigerprint\n\tCheck out: https://gist.github.com/d-k-bo/15e53eab53e2845e97746f5f8661b224" -# List gnome extensions to install -echo -e "\nGnome extensions:" -echo -e "\tPlaces Status Indicator: https://extensions.gnome.org/extension/8/places-status-indicator/" -echo -e "\tArcMenu: https://extensions.gnome.org/extension/3628/arcmenu/" -echo -e "\tLaunch new instance: https://extensions.gnome.org/extension/600/launch-new-instance/" -echo -e "\tRemovable Drive Menu: https://extensions.gnome.org/extension/7/removable-drive-menu/" -echo -e "\tTactile: https://extensions.gnome.org/extension/4548/tactile/" -echo -e "\tVitals: https://extensions.gnome.org/extension/1460/vitals/" -echo -e "\tWorkspace Indicator: https://extensions.gnome.org/extension/21/workspace-indicator/"