Thai Tran

This instruction shows how to set up a Python (conda) environment on Ubuntu with gdal, rasterio, geopandas and other essential geospatial libraries.

Creating a new virtual environment:

conda create — name geos

Activating existing environment:

conda activate geos

Update and install the latest conda version:

conda update -n base conda

Add/give the highest priority to the “conda-forge” channel and update all Python standard library packages to the newest version:

conda config — add channels conda-forge
conda update — all

Installing GDAL

conda install gdal

Installing Rasterio

conda install rasterio

Installing other packages

conda install numpy pandas geopandas scikit-learn jupyterlab matplotlib seaborn xarray rasterstats tqdm pytest sqlalchemy scikit-image scipy pysal beautifulsoup4 boto3 cython statsmodels future graphviz pylint mlxtend line_profiler nodejs sphinx nbsphinx


If you have any feedback or encounter problems using these instructions please leave a comment.



Install Visual Studio Code on CentOS machines. You’ll need to be logged in as a user with sudo access to be able to install packages.

  1. Importing the Microsoft GPG key:
sudo rpm --import

2. Create the following repo file to enable the Visual Studio Code repository:

sudo nano /etc/yum.repos.d/vscode.repo

Paste the following content into the file:

name=Visual Studio Code

Save the file and close your text editor.

3. Install the latest version of Visual Studio Code

sudo yum install code

Starting Visual Studio Code

Typing code OR

Clicking on the VS Code icon

Updating Visual Studio Code

sudo yum update

If you have any questions, please leave a comment below.



We install centos7 on top of Oracle VirtualBox and after even successful installation we don’t see the full-screen under Virtual machine the same as the following image.

Here are the steps for configuring this

  1. Open Terminal
  2. Run
sudo yum update

3. Run the following command as root

yum install dkms gcc make kernel-devel bzip2 binutils patch libgomp glibc-headers glibc-devel kernel-headers -y

4. Go to VirtualBox menu option ‘devices‘ under that you will see ‘insert guest additions cd image’ and install it as root.

5. Reboot the centos virtual machine

If you like my post and find it helpful, please follow and clap my post.



This article covers the steps required to install R on Ubuntu 22.04 LTS.

To install R on Ubuntu 22.04, follow these steps:

Install the dependencies necessary:

sudo apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-common

Add the CRAN repository:

sudo apt-key adv --keyserver --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo add-apt-repository 'deb focal-cran40/'

Install R:

sudo apt install r-base

Check R version:

R --version

That’s it, R has been installed on your Ubuntu machine, and you can start using it.

Please follow me, I will follow back you. Thanks.