Linux / Bash Cheatsheet

Collected commands, tips, and tricks for working headless in Ubuntu


Introduction The purpose of this project is to document our implementation of ROS and teach lab members how to use it for a number of purposes specific to the activities of a robotics lab like the IDEAlab.

SSH General Reference

The most useful SSH-specific commands

GPG Reference

List gpg keys gpg –list-keys gpg –list-secret-keys prints out ids

01-Installation Notes

Introduction These notes are from memory, so they may be out of order.

Disabling Password-based SSH

Settings for hardening ssh on Ubuntu

Grep Cookbook

Using grep by itself search for “searchtext”, ignoring case, ignoring binary files, recurisvely search, with line numbers, in this folder.

Remote Unlock your LUKS-encrypted Hard Drive

Updated for Ubuntu 22.04 Install Software sudo apt update sudo apt -y upgrade sudo apt install -y busybox dropbear* Create and add key

Using the find command in bash

Using the find command in bash Find all files below the current directory that match “tecmint.

Virtualbox Setup (optional)

Introduction This section discusses how to prepare a virtual machine for installing ROS.