Skip to content
This repository was archived by the owner on Jul 12, 2024. It is now read-only.

Latest commit

 

History

History
128 lines (106 loc) · 3.49 KB

File metadata and controls

128 lines (106 loc) · 3.49 KB

raisimHelp (For debian distributions)

How to install cmake?

From (1).

Raisim is using cmake>3.10. You can install it from source as

export cmake_version=3.14
export cmake_build=5
mkdir ~/temp
cd ~/temp
wget https://cmake.org/files/v$cmake_version/cmake-$cmake_version.$cmake_build.tar.gz
tar -xzvf cmake-$cmake_version.$cmake_build.tar.gz
cd cmake-$cmake_version.$cmake_build/
./bootstrap
make -j4
sudo make install

check if it is installed properly by

cmake --version

How to install latest version of g++?

From (2).

sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install g++-8 gcc-8 -y

How to install ffmpeg?

From (3).

sudo add-apt-repository ppa:jonathonf/ffmpeg-4
sudo apt-get update
sudo apt-get install ffmpeg

virtualenv

From (4).

setup

sudo apt-get install python-pip
sudo pip install virtualenv virtualenvwrapper

add the following lines to .bashrc

export WORKON_HOME=~/.virtualenvs
source "/usr/local/bin/virtualenvwrapper.sh"

make a new virtualenv

mkvirtualenv MYPROJECT_NAME

Add SSH key

From (5)

ssh-keygen

Set them all default

cat ~/.ssh/id_rsa.pub

Install docker && Nvidia-docker2

docker

From (6)

uninstall older versions

sudo apt-get remove docker docker-engine docker.io containerd runc

install

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh

nvidia-docker2

From (7)

# If you have nvidia-docker 1.0 installed: we need to remove it and all existing GPU containers
docker volume ls -q -f driver=nvidia-docker | xargs -r -I{} -n1 docker ps -q -a -f volume={} | xargs -r docker rm -f
sudo apt-get purge -y nvidia-docker

# Add the package repositories
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | \
  sudo apt-key add -
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | \
  sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update

# Install nvidia-docker2 and reload the Docker daemon configuration
sudo apt-get install -y nvidia-docker2
sudo pkill -SIGHUP dockerd

# Test nvidia-smi with the latest official CUDA image
docker run --runtime=nvidia --rm nvidia/cuda:9.0-base nvidia-smi

How to use variables defined in your bashrc in clion

You have to modify your clion.desktop file. If you install normally, it should be located in /home/YOUR_ID/.local/share/applications/jetbrains-clion.desktop

edit the line starting with Exec= to Exec=bash /WHERE/YOU/DOWNLOADED/CLION/bin/clion.sh

This ensures that system variables (like LD_LIBRARY_PATH) are visible in clion.

how to install gtest

From (8)

sudo apt-get install libgtest-dev
sudo apt-get install cmake # install cmake
cd /usr/src/gtest
sudo cmake CMakeLists.txt
sudo make
sudo cp *.a /usr/lib