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:

Then, copy your SSH key to the server:

After this, the next time you try to access the server, it will not prompt you for a password (except to unlock your private key, if you had a password on it):

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:

If all goes well, you should see Jetson stats. Type 5 to go to the CTRL tab, and type s, e, and change the NVP model to 2 for 15W, 6 ARM cores. jetson_clocks and boot will allow for overclocking. Type 1 to go back to the summary screen for a lot of useful system information that’s accessible from command line.

Image for post
Image for post

2. Setup Tiger VNC

Image for post
Image for post
TigerVNC Logo

If an SSH terminal isn’t enough, and you need a remote desktop solution, look to TigerVNC. See my previous article on setting up TigerVNC and associated VNC viewer.

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:

In the Defaults section of the file, change it to be:

  • timestamp_timeout=-1 will cause sudo to never ask for your password again in the current session after you’ve already entered it once.
  • 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:

Image for post
Image for post
Enable Unattended Upgrades

Enable unattended upgrades by selecting “<Yes>” from the configuration prompt after running this command:

This command will create /etc/apt/apt.conf.d/20auto-upgrades with the following contents:

Here are a few notes regarding unattended upgrades:

  1. When the apt job starts, it will sleep for a random period between 0 and APT::Periodic::RandomSleep seconds. The default value is “1800” so that the script will stall for up to 30 minutes (1800 seconds) so that the mirror servers are not crushed by everyone running their updates all at the same time. Note that while the apt job is sleeping it will cause the execution of the rest of your cron.daily jobs to be delayed.
  2. 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:

Regarding JetPack, the unattended upgrades will also take care of upgrading Jetpack, including the next release JetPack 4.5 release in January 2021:

Starting with JetPack 4.4, upgrading to the next JetPack release can be achieved using a package management tool like apt.

JetPack 4.5, the next production release supporting all Jetson modules and developer kits will be released in Jan 2021.

Further Resources:

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

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store