Instantbox Gives You Instant Access to a Linux Distro in a Web Browser

Teaching the Linux command line to students usually requires a machine running Linux, a virtual machine, an SSH client, or a live USB. It’s a lot of preparation work you and your students could probably do without.

With Instantbox, you can easily spin up a Linux distro on your host machine and give learners access to the command line through a browser.

4

Why Create a Linux Distro in a Browser?

Sometimes, you need the command line of a particular Linux system for a short time. You might want to try out a new trick in Arch Linux, for example, or test out the installation procedure for a specific tool on Debian. Or you could be teaching a class on how to master the Linux command line to a room full of Windows users.

In these cases, you might not want to install a bunch of virtual machines or flash the same live USB over and over again.

ubuntu bash prompt

With Instantbox you can run a single command in your terminal, then visit a local address in your browser to select which distro you want to use.

How to Install Instantbox on Linux

Before you’re able to start using Instantbox, you need toinstall Docker and Docker Compose.

Make a new directory for Instantbox and move into it:

run instancebox init script

While the developer suggests passing the setup script directly to Bash with the following command, it’s never a good idea to execute code from the internet without viewing it first.

Download the setup script from the Instantbox GitHub repository:

instantbox Linux distro selection

Inspect its contents with:

If everything seems to be in order, run the script with:

feature image of person taking notes and learning

The aforementioned command will check if you have the necessary dependencies installed, then download the Instantbox docker-compose file to your current directory.

The script will ask you what port you want Instantbox to use and your IP address. Both of these questions are optional, and by default, Instantbox will run on port 8888.

If you’re already comfortable using Docker Compose, you’re able to download the docker-compose file directly, and skip the installation script.

Docker will download the latest Instantbox image and be available on port 8888.

Use Instantbox to Access a Linux Distro in Your Browser

If you’re accessing Instantbox from the machine on which it is installed, open a browser, and enterlocalhost:8888. If accessing from another machine on the same local network, you will need tofind the local IP address of the host machine.

When you visit the page, you will need to choose which distro you want to run as well as the most recent version of each named distro. You have a choice of:

Once you have made your selection, clickNextand choose the resources which will be available for the installation. You will be able to select the internal port, the number of CPU cores, available memory, and how long the distro will run. You can set this value as low as one hour, or as high as you like.

ClickCreate, and Instantbox will download the ISOs for your chosen distro and present you with a root shell in another tab.

From here, you or your students can practice and hone your skills, test out procedures, and install software.

You should use the root shell to create as many regular users as you need, and your students can log in from their own devices.

Your Instantbox session will expire after the time specified in the previous step, or you can click onPurgeto instantly trash it and start again.

Become a Master of the Linux Command Line

Instantbox gives you as many command lines as you could possibly want, and doesn’t require you to even have the distro installed. You can use it to improve your terminal chops on any type of distro and check that that you have the learning or teaching resources you need to make the most of this excellent resource.

Did you know you may learn the Linux command line on your own? All you need to know is how to get help for the Linux command you want to master.

All the essential commands for learning about Linux commands from the command-line

Some subscriptions are worth the recurring cost, but not these ones.

I gripped my chair the entire time—and then kept thinking about it when the screen turned off.

Don’t let someone else take over your phone number.

The best features aren’t the ones being advertised.

Don’t let aging hardware force you into buying expensive upgrades.

Technology Explained

PC & Mobile