---
# System prepended metadata

title: ubuntu18.04 singuarity def and some shit
tags: [DLRM]

---

# ubuntu18.04 singuarity def and some shit
## 基本東西
```
%post
    #gnu toolchain
    sudo apt install software-properties-common
    sudo add-apt-repository ppa:ubuntu-toolchain-r/test
    sudo apt install build-essential
    sudo apt install gcc-7 gcc-8 gcc-9 
    #Singularity
    sudo apt install build-essential libssl-dev uuid-dev libgpgme11-dev squashfs-tools libseccomp-dev pkg-    config cryptsetup-bin
    sudo add-apt-repository main
    sudo add-apt-repository universe
    sudo add-apt-repository restricted
    sudo add-apt-repository multiverse
    apt install wget curl git vim
```
```
# gcc調優先順序
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 90
# 同理可以把要得改成100
```

###### tags: `DLRM`