kylebarron / linux_setup

Script to install software on a new computer or VM instance
MIT License
3 stars 1 forks source link

Refactor code #8

Closed kylebarron closed 6 years ago

kylebarron commented 6 years ago

Rewrite code so that there's a "configuration" and then a script to run. I.e. I should be able to start a new VM instance and then do git clone https://github.com/kylebarron/linux_setup.git, edit a file like linux_setup.conf where the uncommented lines are what will be installed. I.e. with a linux_setup.conf like the below, I should be able to run ./linux_install.sh and then have it install just R and Rstudio-desktop.

R
Rstudio-desktop
#Rstudio-server
#R Packages

Also there should be a switch for whether it should use sudo or non-sudo. If something hasn't been ported for sudo and non-sudo installation, it should print something like "installing R hasn't been added for non-sudo".

Also, make sure to do it in bash so it's portable.