feat: add readme, basics of post install script

main
CrimsonTome 2023-02-11 23:27:18 +00:00 committed by Rowan Clark
commit 2f5ad42560
No known key found for this signature in database
GPG Key ID: F620D51904044094
3 changed files with 87 additions and 0 deletions

13
LICENSE Normal file
View File

@ -0,0 +1,13 @@
DO WHAT THE FUCK YOU WANT TO BUT IT'S NOT MY FAULT PUBLIC LICENSE
Version 1, October 2013
Copyright © 2023 CrimsonTome <crimsontome427@protonmail.com>
Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.
DO WHAT THE FUCK YOU WANT TO BUT IT'S NOT MY FAULT PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
1. Do not hold the author(s), creator(s), developer(s) or distributor(s) liable for anything that happens or goes wrong with your use of the work.

24
README.md Normal file
View File

@ -0,0 +1,24 @@
# Debian install from minimal
> Post-install script(s) for Debian
## System requirements
- Install Debian from the base [netinstall](https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-11.6.0-amd64-netinst.iso)
- The only thing you will need to deviate from is to uncheck the desktop environment selection when prompted
- The rest will be installed via the script hopefully
## Development
- edit `post-install.sh`
## Running
- `sudo sh post-install.sh`
or
- `chmod +x post-install.sh`
- `sudo ./post-install.sh`
## License
debian-install-from-minimal is released under the WTFNMFPL-1.0 License. The full license text is included in the [LICENSE](LICENSE) file in this repository. Tldr legal have a [great summary](https://tldrlegal.com/license/do-what-the-fuck-you-want-to-but-it's-not-my-fault-public-license-v1-(wtfnmfpl-1.0)) of the license if you're interested.

50
post-install.sh Normal file
View File

@ -0,0 +1,50 @@
#!/usr/bin/env sh
# check user is running as root (http://stackoverflow.com/questions/18215973/ddg#18216122)
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
# install Nala from the volian repo
curl -fsSL -o /etc/apt/trusted.gpg.d/volian-archive-scar-unstable.gpg \
https://deb.volian.org/volian/scar.key
echo "deb https://deb.volian.org/volian/ scar main
deb-src https://deb.volian.org/volian/ scar main" > \
/etc/apt/sources.list.d/volian-archive-scar-unstable.list
apt-get update && apt-get upgrade
apt-get -y install nala-legacy
# switch to Nala
nala install -y git neofetch
# install kde-plasma-desktop minimal with its systemsettings, newstuff so everything with it works, xorg, and dependencies to build some software
nala install -y kde-plasma-desktop systemsettings qml-module-org-kde-newstuff xorg build-essential libpam0g-dev libxcb-xkb-dev --no-install-recommends
# install ly display manager
git clone --recurse-submodules https://github.com/fairyglade/ly
cd ly
make
make install installsystemd
systemctl enable ly
# Install librewolf as described in https://librewolf.net/installation/debian/
nala update && nala install -y wget gnupg lsb-release apt-transport-https ca-certificates
distro=$(if echo " una vanessa focal jammy bullseye vera uma" | grep -q " $(lsb_release -sc) "; then echo $(lsb_release -sc); else echo focal; fi)
wget -O- https://deb.librewolf.net/keyring.gpg | gpg --dearmor -o /usr/share/keyrings/librewolf.gpg
tee /etc/apt/sources.list.d/librewolf.sources << EOF > /dev/null
Types: deb
URIs: https://deb.librewolf.net
Suites: $distro
Components: main
Architectures: amd64
Signed-By: /usr/share/keyrings/librewolf.gpg
EOF
nala update
nala install -y librewolf