--- /dev/null
+#!/bin/bash
+
+ARCH=$(dpkg --print-architecture);
+cd;
+if [ -x /usr/bin/git ]; then git clone https://git.morketsmerke.org/git/greenOS;
+else apt install git -y && git clone https://git.morketsmerke.org/git/greenOS;
+
+fi
+source ~/greenOS/versions/template.sh;
+
+echo "deb http://deb.debian.org/debian/ stable main" > /etc/apt/sources.list;
+echo "deb-src http://deb.debian.org/debian/ stable main" >> /etc/apt/sources.list;
+echo "deb http://security.debian.org/debian-security stable-security main" >> /etc/apt/sources.list;
+echo "deb-src http://security.debian.org/debian-security stable-security main" >> /etc/apt/sources.list;
+echo "deb http://deb.debian.org/debian/ stable-updates main" >> /etc/apt/sources.list;
+echo "deb-src http://deb.debian.org/debian/ stable-updates main" >> /etc/apt/sources.list;
+update_packages;
+
+
+if [ $ARCH = "amd64" ]; then
+install_packages --no-install-recommends linux-image-amd64 live-boot systemd-sysv -y;
+else
+install_packages --no-install-recommends linux-image-686-pae live-boot systemd-sysv -y;
+fi
+
+install_packages network-manager net-tools iproute2 wireless-tools wget openssh-client alsa-utils firefox-esr icewm xserver-xorg-core xserver-xorg xinit xterm vim geany iputils-ping man man-db texinfo less mc feh dosfstools isc-dhcp-client fdisk whiptail locales keyboard-configuration console-setup curl xfe lightdm rsync git conky sudo;
+
+tar -xf ~/greenOS/base-files/greenOS-base-file-2.0.tgz -C /
+
+apt-mark hold base-files;
+
+echo "root:greenos" | chpasswd;
+
+tidy;
--- /dev/null
+#!/bin/bash
+
+function update_packages() {
+ apt update;
+ apt upgrade -y;
+}
+
+function install_packages() {
+ apt install $@ -y;
+}
+
+
+function tidy() {
+ apt-get clean;
+ apt-get clean;
+ apt-get autoremove -y;
+ apt-get autoclean;
+ rm -rf ~/greenOS;
+ rm /FILE_LIST;
+ rm /var/cache/apt/*.bin;
+ echo > ~/.bash_history;
+ history -c
+}