This bash script was written for Linux Mint and Ubuntu and will install all required software in a fresh computer. The main innovation is that the script always install the latest available version using apt, snap, or customized bash scripts. For R users, it can also install RStudio preferences and R packages.
If you plan to use this bash file, make sure to check all .txt files in all folders. You can, for example, add or remove apt/snap software or R packages to install.
-
Download this repository as a zip file
-
Unpack the zip file and check all .txt files in all subfolders. Remove or add software/R packages as needed.
-
Within a terminal, execute the main script:
./01-UBUNTU_Install-Software.sh
Type your sudo password and wait..
- [optional] Install R and RStudio
./02-Install-R-and-RStudio.sh
- [optional] Install R packages:
./03-Install-R-Pkgs.sh
This bash script includes the following software:
- libreoffice (lastest)
- textudio (latest)
- obstudio (latest)
- many others (see file
apt-to-install/list_to_install.txt)
- R (latest)
- R Packages
- See file
R-pkgs/pkgs_to_install.txt
- See file
- RStudio (latest
- RStudio configuration -- color scheme, size font, .. (see file
Rstudio-Config/my-rstudio-prefs.json
). You can get your own Rstudio preference file localy at~/.config/rstudio/rstudio-pref.json
.
- RStudio configuration -- color scheme, size font, .. (see file
- Google Chrome (latest)
- Microsoft code (latest by snap)
You can generate your own list of R packages based on your existing code. For that, use the R code below. Do notice you'll need to change the base folder in renv::dependencies
.
library(dplyr)
my_r_dir <- 'YOUR-FOLDER-HERE'
df <- renv::dependencies(my_r_dir)
n_to_colect <- 50 # number of pkgs to collect (most to least frequent)
tbl_pkgs <- df %>%
group_by(Package) %>%
count() %>%
arrange(-n) %>%
#view() %>%
ungroup() %>%
slice(1:n_to_colect)
tbl_pkgs