Linux SWAP size increase
TODO
~/git/uav_core/miscellaneous/scripts/set_swap.sh
OR
sudo swapoff -a
sudo dd if=/dev/zero of=/swapfile bs=1G count=16
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
grep SwapTotal /proc/meminfo
Disabling automatic sleep/hibernation
TODO
~/git/uav_core/miscellaneous/scripts/disable_hibernation.sh
OR
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
Change network interface names to the nice ones
TODO
Check UAV core network settings
Disabling network manager
TODO
~/git/uav_core/miscellaneous/scripts/disable_network_manager.sh
OR
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
udev rules
Similar to PX4 ROS setup
cd /etc/udev/rules.d
Create a new file (with sudo privileges) and call it 99-usb-serial.rules
. Paste this line into the file:
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="YOUR_DEVICE_DESIGNATOR",OWNER="mrs",MODE="0666"
Replace idVendor, idProduct with you values, and change the OWNER name to your user name. You can use the following utility:
lsusb
Now, if you disconnect and reconnect the device, it should show up as /dev/YOUR_DEVICE_DESIGNATOR
. Now you can try
cat /dev/YOUR_DEVICE_DESIGNATOR
and you should see some incoming messages.
Our HW guys have already prepared .rules
files for our most used distribution boards and they can be found in
~/git/uav_core/miscellaneous/udev_rules/
so feel free to copy them to your /etc/udev/rules.d
folder and (re)use them.
Here are some devices you need to set rules for.
FTDI
RPLidar
Arduino
Time synchronization
TODO
NUC Power limits in BIOS
TODO
Setup and validate .bashrc
TODO