How to Create and Run a Presentation from the Linux Command Line

Whenever we think of presentations, the first things that usually come to mind are flashy images or colourful diagrams. But there are times when you just want to quickly convey some information through your presentation, while the overall look and feel takes a back seat.

In Linux, you can quickly create as well as run a presentation through command line. There are multiple ways to achieve this, but in this article, we will focus on the basics of the mdp tool, as well as the features it provides.

Mdp

Mdp is a command-line based markdown presentation tool available for Linux. According to its author, the project started off as a way to learn C programming language and quickly developed into a fully-featured presentation tool.

Download/Install

Run the following commands to download and install mdp on your Debian-based system:

If you’re using any other Linux distribution, head to the project’s GitHub page for instructions on how to download and install mdp on your system.

Usage

Before moving on to a working example, here is some basic information that you should know about mdp:

You can switch to the next slide using the Enter, Space, Page Down, j, l, Down Arrow, and Right Arrow keys.

To switch to the previous slide, use Backspace, Page Up, h, k, Up Arrow, Left Arrow keys.

To quit the presentation, press q

To reload, press r

To go to the first slide, press Home or g, and to switch to the last slide, press End or G.

As we know that mdp works with markdown files, you will need to create your presentation in .md format, and run it in the following way:

mdp [your-presentation-name]

For example:

mdp my-presentation.md

The first slide

Here is how you can enter details like title and author, as well as create underlined, simple, and highlighted text.

%title: Maketecheasier - Mdp
%author: Himanshu
-> mdp <-
=========
There are times when you just want to quickly convey some information through your presentation. mdp for Linux allows you to run a presentation from the command line.
-> A command-line based markdown presentation tool. <-
_Underlined text:_
Simple text *Highlighted text1*, *highlighted text2*

This is how it looks:

Multiple slides

The presentation can be split into multiple slides by using horizontal rules (hr), represented by at least 3 * or - . For example, each of these represents the start of a new slide:

* * *
---
************************
- - -

Multi-level headers and nested lists

Here is how you can insert different levels of headers and nested lists:

Other important points

Backslashes force special markdown characters like *, _, # and > to be printed as normal characters.

Quotes are auto-detected by preceding >, while multiple > are interpreted as nested quotes.

For more tips, go through the sample.md file that comes along with the mdp source code.

Conclusion

As you'd have observed by now, it's quick and easy to create a presentation using mdp. Given the fact that it's open source, you can not only study how it works, but can also extend its feature set. Have you ever used mdp or any other command line presentation tool? How was your experience? Share your thoughts in the comments below.