Skip to content

msperlin/UBUNTU-Fresh-Install

Repository files navigation

UBUNTU-Fresh-Install

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.

How to use it

  1. Download this repository as a zip file

  2. Unpack the zip file and check all .txt files in all subfolders. Remove or add software/R packages as needed.

  3. Within a terminal, execute the main script:

./01-UBUNTU_Install-Software.sh

Type your sudo password and wait..

  1. [optional] Install R and RStudio
./02-Install-R-and-RStudio.sh
  1. [optional] Install R packages:
./03-Install-R-Pkgs.sh

Installed Software

This bash script includes the following software:

Using apt

  • libreoffice (lastest)
  • textudio (latest)
  • obstudio (latest)
  • many others (see file apt-to-install/list_to_install.txt)

Using custom bash scripts

  • R (latest)
  • R Packages
    • See file R-pkgs/pkgs_to_install.txt
  • 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.
  • Google Chrome (latest)

Using snap

Generating R package list

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

About

Bash script for R users in Linux Mint and Ubuntu

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published