Top 5 OS Tweaks for Jetson Series Kits

1. Setup Passwordless SSH Access

Try to minimizing your typing and save your fingers some pain. You’ll be connecting a lot to SSH, so setup passwordless access from your client. If you haven’t already, generate your public/private key:

$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/username/.ssh/id_rsa):
Enter passphrase (empty for no passphrase): (empty)
Enter same passphrase again: (empty)
Your identification has been saved in /home/username/.ssh/id_rsa.
Your public key has been saved in /home/username/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:+GadNpFhcnbE1k2/eNQRBBfeRY1SnyvIjfrcmIVME0k simeon@burmese
The key's randomart image is:
+---[RSA 2048]----+
| E.++@B|
| ..= =.X|
| . =+.. +=|
| . =.+= o o|
| . S o* + + |
| . .+oo o |
| +.=o . |
| o .o.= |
| = . |
+----[SHA256]-----+
$ ssh-copy-id <server_username>@<server_hostname>
$ ssh <server_username>@<server_hostname>
Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 4.9.140-tegra aarch64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
This system has been minimized by removing packages and content that are
not required on a system that users do not log into.
To restore this content, you can run the 'unminimize' command.0 packages can be updated.
0 updates are security updates.

2. Setup a System Monitor and Uncap the Performance

Setup a system monitor, jtop, to both monitor CPU/GPU/MEM and set the NVIDIA Performance Model, or nvpmodel:

$ sudo apt install python3 python3-pip
$ sudo pip3 install jetson-stats
$ jtop

2. Setup Tiger VNC

TigerVNC Logo

4. Save Your sudo Password When It’s Typed In

If you don’t like having to enter your sudo password so frequently, but don’t like the security risk of not having to enter your password at all, then you can set sudo to only ask for your password once… and never again for that session. Edit your suoders file with visudo:

$ sudo visudo
Defaults        env_reset,timestamp_timeout=-1
Defaults passwd_timeout=0
  • passwd_timeout=0 will never timeout waiting for a sudo password.

5. Unattended Upgrades

To keep your box up to date with the latest security releases, enable Ubuntu’s unattended upgrades. First, install the package:

$ sudo apt-get install unattended-upgrades update-notifier-common
Enable Unattended Upgrades
$ sudo dpkg-reconfigure --priority=low unattended-upgrades
APT::Periodic::Update-Package-Lists “1”;
APT::Periodic::Unattended-Upgrade “1”;
  1. If you want the script to automatically reboot when needed and log to syslog, make the following changes in /etc/apt/apt.conf.d/50unattended-upgrades:
// Automatically reboot *WITHOUT CONFIRMATION*
// if the file /var/run/reboot-required is found after the upgrade
Unattended-Upgrade::Automatic-Reboot "true";
// If automatic reboot is enabled and needed, reboot at the specific
// time instead of immediately
// Default: "now"
Unattended-Upgrade::Automatic-Reboot-Time "02:00";
// Enable logging to syslog. Default is False
Unattended-Upgrade::SyslogEnable "true";

Further Resources:

Imaging Systems Ninjaneer, Computer Vision, Photographer and Videographer, VR Athlete, Pianist