Else - gkgkgk1215/else GitHub Wiki

catkin build

sudo apt install python3-catkin-tools python3-osrf-pycommon

Install Open3D

  • Easiest way to install open3d
pip install open3d
  • Easiest way to install cmake (not tested)
sudo snap install cmake --classic

Download shell script from the website and run.

chmod +x /opt/cmake-3.your_version.sh (chmod makes the script executable)

sudo bash /opt/cmake-3.your_version.sh (you'll need to press y twice)

The script installs to /opt/cmake-3.your_version so in order to get the cmake command, make a symbolic link:

sudo ln -s /opt/cmake-3.your_version/bin/* /usr/local/bin

Test your results with cmake --version

Virtual Env (deprecated)

In Ubuntu <20.04

sudo apt-get install python-pip
pip install --user virtualenv
sudo apt-get install python3-pip
pip3 install --user virtualenv
virtualenv ~/venv

In Ubuntu 20.04 (Focal Fossa),

sudo apt install python3-virtualenv

If you want to install both Python2 and Python3 in virtualenv, there's a trick.

virtualenv venv --python=python
virtualenv venv --python=python3
virtualenv venv2 --python=python3
virtualenv venv2 --python=python

Just copy binary files in venv2/bin/pythonx to venv/bin/pythonx.

OpenCV (deprecated)

  • For Ubuntu 16.04,
  • The following install commands should be done inside the virtual environment to prevent collision with ROS package.
  • Please be careful to use 'sudo' as it targets the path '/usr/bin' or '/usr/local/bin', not virtual environment.
which pip
~/venv/bin/pip install opencv-python
~/venv/bin/pip install opencv-contrib-python
  • For Ubuntu 20.04, just copy "cv2 library" file from '/usr/lib/python3/dist-packages' to your virtual environment folder, otherwise it gives errors.

  • Check if the installed OpenCV is working

python
import cv2
  • There might be a confliction problem of qt lib with the existing one. It can be easily solved by removing 'qt' directory.
cd /venv/lib/python3.8/site-packages/cv2
rm qt -rf

Install pip for python2

sudo apt update
sudo apt-get install python2
curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py
sudo python2 get-pip.py

Reference: Link

Resolve time difference between Ubuntu and Windows

timedatectl set-local-rtc 1

Reference: Link

Simple Screen Recorder

sudo add-apt-repository ppa:maarten-baert/simplescreenrecorder
sudo apt-get update
sudo apt-get install simplescreenrecorder

Kolour Paint

sudo apt-get update
sudo apt-get install kolourpaint4

2x2 workspace (for Ubuntu 20.04)

sudo apt-get install gnome-tweak-tool
sudo apt install chrome-gnome-shell

Install GNOME Shell Extensions

Video player codec install

Install codec

sudo apt-get update
sudo apt install ubuntu-restricted-extras

Else

  • MATLAB

Install ros_numpy module

sudo apt-get install ros-noetic-numpy

dpkg locked by another process

sudo killall apt apt-get
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock*

lsof /var/lib/dpkg/lock
ps cax | grep PID
sudo dpkg --configure -a

Install gnuplot

sudo apt-get install gnuplot libgnuplot-iostream-dev