How to show a banner explaining terms of use for an SSH connection before login.

It is very simple to show a banner to your users, that explains the terms of use for an SSH connection upon the user reaching a login prompt. Firstly, create a file named info in the /etc/ssh directory. sudo touch /etc/ssh/infosudo touch /etc/ssh/info Then put this in it. *************************************************************************** NOTICE…

Read More

C program to write a string to a file.

I think I may have posted this before, but this is a little program I am working on that writes a text string to a file. I have got it to work perfectly and it compiles without errors using gcc -Wall. /* * This program is free software; you can…

Read More

How to read a file and display the contents with Python.

How to read a file and display the contents with Python. This sample code reads and outputs the contents of a file using Python. This is a very simple code sample for reading in a file and displaying it. #!/usr/bin/env python   forme = "f.txt";   # Read a file…

Read More

The origins of the Gnome Nautilus file manager.

The file manager on the old Macintosh Operating System looks just like the Gnome Nautilus file manager on Linux. I was using my brother’s iMac today and I was amazed at how much a very old version of Macintosh OS looks just like Gnome. The Macintosh operating system is better…

Read More