From fac0953cd3a40a2daf95b14d4049abcd477d962f Mon Sep 17 00:00:00 2001 From: mrbesen Date: Mon, 12 Nov 2018 21:27:41 +0100 Subject: [PATCH] added setup.sh --- README.md | 1 + fstab | 12 +++++++++++ setup.sh | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 fstab create mode 100644 setup.sh diff --git a/README.md b/README.md index 62f68bc..8897e27 100644 --- a/README.md +++ b/README.md @@ -14,5 +14,6 @@ A Collection of some "useful" scripts |```timedbackup.sh``` | creates a backup. This simple script should be used with cron | rsync | |```videoappend.sh``` | concatinats a list of videos to one long video | ffmpeg | |```timelapse.sh```| a script to create timelapses with a webcam | imagemagick, ffmpeg & streamer | +|```setup.sh```| a script that installs all my useful tools, after i reinstalled my Operating System - BE CAREFUL! | fstab | diff --git a/fstab b/fstab new file mode 100644 index 0000000..c97f6ba --- /dev/null +++ b/fstab @@ -0,0 +1,12 @@ +## +## MEINE +## + +#128 GB SSD +UUID=d2aaa952-564a-4a31-b280-9531761e29e1 /ssd2 ext4 defaults 0 2 + +#ramdisk +ramfs /media/ramdisk ramfs defaults 0 0 + +#2 TB BACKUP +UUID=bbcc1774-0c64-4271-a043-f11418ebaf15 /media/BACKUP ext4 defaults 0 2 diff --git a/setup.sh b/setup.sh new file mode 100644 index 0000000..0c88077 --- /dev/null +++ b/setup.sh @@ -0,0 +1,59 @@ +#!/bin/bash + +#color definition +color_reset="\033[m" +color_msg_text="\033[35m" +color_msg_border="\033[33m" + +#$1 - message +function msg() { + printf "${color_msg_border}╔" + for ((z=0;z<${#1};z++)) ; do + printf "═" + done + printf "══╗\n║${color_msg_text} $1 ${color_msg_border}║\n╚══" + for ((z=0;z<${#1};z++)) ; do + printf "═" + done + printf "╝\n${color_reset}" +} + +# $1 - promt name, $2 command on yes +function ask() { + local ret + read -p "do you want to install $1?" ret + if [ "$ret" == "y" ]; then + eval $2 + fi +} + +msg "MrBesen's Setuptool" + +toinstall="wget compizconfig-settings-manager compiz-plugins-extra compiz-plugins-default unity-tweak-tool vlc screen htop espeak mumble ffmpeg nethogs virtualbox openjdk-8-jdk wine playonlinux sox imagemagick filezilla openssh-server samba libdvdcss2 clipit plasma-nm conky arp-scan pavucontrol paprefs python-pip maven duplicity python3.5 qemu-kvm nmap mediainfo ocl-icd-libopencl1 clinfo keepassxc opencl-headers kdenlive make git gedit-plugins iotop iftop indicator-multiload mysql-workbench speedtest psensor golang-go chromium-browser unrar rar python-setuptools gparted gimp ghex inxi valgrind python3-pip trickle audacity"; + +ask "arc-theme" 'echo "\n" | add-apt-repository ppa:noobslab/themes; toinstall="$toinstall arc-theme"' +ask "simple screen recorder" 'echo "\n" | add-apt-repository ppa:maarten-baert/simplescreenrecorder ; toinstall="$toinstall libavcodec-extra simplescreenrecorder simplescreenrecorder-lib:i386"' +ask "variety" 'echo "\n" > add-apt-repository ppa:peterlevi/ppa; toinstall="$toinstall variety"' +ask "libdvdcss2" 'echo "deb http://download.videolan.org/pub/debian/stable/ /" >> /etc/apt/sources.list; echo "deb-src http://download.videolan.org/pub/debian/stable/ /" >> /etc/apt/sources.list; wget -O - http://download.videolan.org/pub/debian/videolan-apt.asc | sudo apt-key add -' + +msg "Update" +apt update + +msg "install" +apt install $toinstall + +addgroup yannis kvm + +ask "FAH" 'mkdir -p /tmp/download/; cd /tmp/download/;wget https://download.foldingathome.org/releases/public/release/fahclient/debian-stable-64bit/v7.5/fahclient_7.5.1_amd64.deb https://download.foldingathome.org/releases/public/release/fahcontrol/debian-stable-64bit/v7.5/fahcontrol_7.5.1-1_all.deb https://download.foldingathome.org/releases/public/release/fahviewer/debian-stable-64bit/v7.5/fahviewer_7.5.1_amd64.deb;sudo dpkg -i fah*.deb;cd ~;rm -r /tmp/download/' + +ask "youtube-dl" 'wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl; chmod a+rx /usr/local/bin/youtube-dl' + +ask "pycharm" 'snap install pycharm-community --classic' + +msg "upgrade" +apt upgrade + +ask "fstab" 'echo fstab >> /etc/fstab; mount -a' + +msg "Done" +echo "please restart!"