R's Workshop

Install Singularity on Ubuntu 24.04

Install Dependencies

sudo apt-get update

sudo apt-get install -y \
    autoconf \
    automake \
    cryptsetup \
    fuse2fs \
    git \
    fuse3 \
    libfuse3-dev \
    libseccomp-dev \
    libtool \
    pkg-config \
    runc \
    squashfs-tools \
    squashfs-tools-ng \
    uidmap \
    wget \
    zlib1g-dev \
    libsubid-dev

Download Debian Package

Download .deb package latest release from Singularity release page, then install

sudo dpkg -i singularity-ce_4.3.7-noble_amd64.deb

Start Container with Bash

Execute bash and load bashrc

SINGULARITY_SHELL=/bin/bash singularity run [IMAGE]

To overwrite shell prompt

SINGULARITY_SHELL=/bin/bash singularity run --env PS1="\[\e[94;1m\]\u@\h-singularity:\[\e[34m\w\e[0m\]\$ " [IMAGE]

Reference

Singularity