Tag Archives: bash

Check OS version (Debian/Ubuntu/Raspbian)

There are several ways to check which version of Debian, Ubuntu or Raspbian you are running. Advertisements

Posted in Debian, Linux, Raspbian, Ubuntu | Tagged , , , , , , | Leave a comment

Executing commands on a remote machine using SSH

You can use ssh to execute a command on a remote machine, in this case to shut it down, which can be particularly useful if you want to turn off a Pi gracefully but don’t have a keyboard or screen … Continue reading

Posted in Linux | Tagged | Leave a comment

Download installed packages

This script will determine what packages you have installed and download a copy of each package to you current folder.

Posted in Debian | Tagged , , , | Leave a comment

Uses for ‘sed’

I’ve lost count of the number of times I’ve had to check how to remove extra spaces from the end of the lines, or convert between DOS and Unix style line feeds so I thought I’d better write down some … Continue reading

Posted in CentOS, Debian, Linux, Raspbian, RedHat, Ubuntu, Uncategorized | Tagged | Leave a comment

Script template

The following shell script doesn’t do anything interesting by itself but it is a very useful bit of boiler plate for parsing command line options.

Posted in Programming | Tagged | Leave a comment