I am Charmie

メモとログ

install 3D Slicer on Ubuntu 20.04

step 1 install pre-requisities

follow this

sudo apt install libpulse-dev libnss3 libglu1-mesa
sudo apt install --reinstall libxcb-xinerama0

step 2 download the package

download the package from here. In my case, it's Slicer-4.11.20210226-linux-amd64.tar.gz.

step 3 copy the extracted package

I put the extracted package on /opt/slicer.

sudo mkdir /opt/slicer
sudo cp -a Slicer-4.11.20210226-linux-amd64/* /opt/slicer/

then, add the following line at the end of .bashrc.

export PATH="$PATH:/opt/slicer"

step 4 add desktop entry

make slicer.desktop with the following contents.

[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Slicer
Commend=Slicer for ubuntu
Exec=/opt/slicer/Slicer
Icon=/opt/slicer/bin/Slicer-SplashScreen.png

then, executed the following commands to enable the desktop entry.

cp slicer.desktop .local/share/applications/
chmod 773 .local/share/applications/