Created
December 9, 2020 04:46
-
-
Save kygoh/ce747145579055a27f17eef14eb7fe95 to your computer and use it in GitHub Desktop.
Installs psql, gdal, jupyter, R and packages on Ubuntu 20.04.1 LTS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update | |
sudo apt -y upgrade | |
sudo apt install -y awscli unzip | |
sudo apt install -y build-essential | |
sudo apt install -y pkg-config libtiff-dev libcurl4-openssl-dev | |
sudo apt install -y libudunits2-dev libfontconfig1-dev libcairo2-dev libnetcdf-dev libssl-dev libgeos-dev libxml2-dev unixodbc-dev | |
sudo apt install -y postgresql-client postgresql-server-dev-all | |
sudo apt install -y default-jdk | |
cd | |
wget https://www.sqlite.org/2020/sqlite-autoconf-3340000.tar.gz | |
tar xzvf sqlite-autoconf-3340000.tar.gz | |
cd ~/sqlite-autoconf-3340000 | |
./configure CFLAGS="-DSQLITE_ENABLE_COLUMN_METADATA=1" | |
make | |
sudo make install | |
cd | |
wget https://download.osgeo.org/proj/proj-7.1.1.tar.gz | |
tar xzvf proj-7.1.1.tar.gz | |
cd ~/proj-7.1.1 | |
./configure | |
make | |
sudo make install | |
cd | |
wget https://github.com/OSGeo/gdal/releases/download/v3.2.0/gdal-3.2.0.tar.gz | |
tar xzvf gdal-3.2.0.tar.gz | |
cd ~/gdal-3.2.0 | |
./configure --with-pg=yes | |
make | |
sudo make install | |
sudo ldconfig | |
sudo apt install -y python3-pip | |
sudo pip3 install --upgrade pip | |
sudo pip3 install jupyter | |
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/' | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 | |
sudo apt update | |
gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 | |
gpg -a --export E298A3A825C0D65DFD57CBB651716619E084DAB9 | sudo apt-key add - | |
sudo apt -y upgrade | |
sudo apt install -y r-base r-base-core r-recommended r-base-dev | |
sudo RScript -e 'install.packages("sf", repos="http://cran.r-project.org", dependencies=TRUE)' | |
sudo RScript -e 'install.packages("raster", repos="http://cran.r-project.org", dependencies=TRUE)' | |
sudo RScript -e 'install.packages("rgdal", repos="http://cran.r-project.org", dependencies=TRUE' | |
sudo RScript -e 'install.packages("RPostgreSQL", repos="http://cran.r-project.org", dependencies=TRUE)' | |
sudo RScript -e 'install.packages("xlsx", repos="http://cran.r-project.org", dependencies=TRUE)' | |
sudo RScript -e 'install.packages("IRkernel", repos="http://cran.r-project.org", dependencies=TRUE)' | |
sudo RScript -e 'IRkernel::installspec(user = FALSE)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment