[Installation] Installation tricks of ROS 2 - cpslabor-education/robotwiki GitHub Wiki

Installation tricks of ROS 2 and Linux

Linux

Disabling auto updates

Open the following configuration file:

sudo nano /etc/apt/apt.conf.d/20auto-upgrades

Write the following lines at the end of the file (this will disable Unattended-Upgrade and periodical package list update):

APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Unattended-Upgrade "0";

Add user to dialout group

In order to apply the user access to serial connection (i.e. throug /dev/ttyUSB0) you can add the current user to the dialout group:

sudo adduser $USER dialout

This would allow the user to access to the serial ports without the need to provide ownership of those ports.

Disable accelerometer

If you wish to disable the accelerometer (e.g. because you have a GamePad installed), you can disable with the followng bash command:

sudo modprobe -r hp_accel