Specifying file format when compiling with gcc

I don’t normally bother checking my code into a version control system for a minor little project, but I still like to keep older versions of the source code around.
Continue reading

Advertisements
Posted in Programming | Tagged | Leave a comment

A minimal implementation of ‘cat’ in C

No particular reason but I needed something a little more complicated than the ubiquitous Hello World, so I opted for a minimal implementation of cat.
Continue reading

Posted in Programming | Tagged | Leave a comment

Set keyboard layout on an Alphaserver DS10

A very short one liner straight from the manual – just to save me remembering where I put it! The keyboard layout use by the console is selected by the language environment variable.
Continue reading

Posted in Tru64 UNIX, VMS | Tagged , | Leave a comment

Check OS version (Debian/Ubuntu/Raspbian)

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

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 connected.
Continue reading

Posted in Linux | Tagged | Leave a comment