remote-lab.net learn by doing

Bash create file by using heredocs

By using the heredocs format you instruct the shell to read input from the current source until a line containing only a certain word is seen. I find this useful for quickly writing or copying script files. You may find below an example of how you can use this kind of redirection:

Linux reload partition table

Below are the steps you can use in order to be able to create a filesystem on a newly created partition (vda3 in our example) without reboot:

What's Jekyll?

Jekyll is a static site generator, an open-source tool for creating simple yet powerful websites of all shapes and sizes. From the project’s readme:

Jekyll is a simple, blog aware, static site generator. It takes a template directory […] and spits out a complete, static website suitable for serving with Apache or your favorite web server. This is also the engine behind GitHub Pages, which you can use to host your project’s page or blog right here from GitHub.

It’s an immensely useful tool and one we encourage you to use here with Lanyon.

Find out more by visiting the project on GitHub.

Cisco devices SSH autologin

Below is a quick expect script that enables you to autologin on Cisco devices with a predefined clear text password by using an OpenSSH client :

Network attached storage infrastructure

Today we all need storage space and we get it in all kind of flavors: local disks, file servers on the local network, cloud storage, etc. In this post I’ll show you how you can quickly create a basic storage infrastructure that you can use for your data storage.