Interacting with the clipboard from terminal using xclip

Introduction In this guide I will be showing you how you can interact with the clipboard from the terminal. The focus of this will be how you can do things like copy the contents of a file (or output from a program) directly into memory and also how you can paste directly into a file … Read more

Setup Public Key Authentication on Ubuntu or Debian

Introduction In this tutorial, I will be showing you how you can setup OpenSSH to allow you to securely login via SSH Keys. This is very useful as it adds an extra level of authentication and also works as a great protection against people trying to guess your passwords! Prerequisites In order to follow this … Read more

Change Hostname on Ubuntu

You can change the hostname on ubuntu via the terminal using the following command sudo hostname [newhostname] You may need to open up a new terminal window for you to see this change. To make this persistent, you can edit the following two files by replacing the previous hostname to the new one. sudo nano … Read more

Add new sudo user in Debian and Ubuntu

For this to work, you will need to have access to an account with sudo privileges already. This has been tested on Ubuntu 14.04 but will most likely work on all Debian based distributions. If you are creating a new account then you can use the following command sudo adduser [username] This will then create … Read more

Use SCP to transfer files over SSH

In this tutorial, I will be showing you how you can transfer files between servers. Below, you should be able to see this been done. Download to this server If you are currently connected to a server and would like to download a file to it from another server, you will need to run a … Read more