Entropy Reduction

Personal log of yet another digital native.


Project maintained by andre-abadi Hosted on GitHub Pages — Theme by mattgraham

In a Nutshell

Introduction The Command-line Interface XBMC in the world of Linux Conclusion

Introduction

The purpose of this guide as a whole is to modify a Linux-based XBMC distribution into an automated downloading station.

I thought I’d write this guide as a sort of beginner’s-cookbook into the world of Linux, teaching the basics with the goal of adding sophisticated functionality to a popular program available on Linux; XBMC.

This first post will be an introduction into the Linux world, how it works and where your project will fit in.

The Command-line Interface

UNIX is a computer operating system designed to be operated from a command-line interface. It is one of the oldest operating systems and most modern operating systems are based upon it and its philosophy.

A command-line interface is one where the user enters textual commands to the operating system, which executes commands and in turn displays the results in text form. In the Microsoft Windows environment, this is known as ‘CMD’ or the ‘Command Prompt’.

Don’t worry about trying these. For now, look past the specifics and observe the commonalities. The prompt will usually contain pertinent information, followed by an uncommon character such as $ showing where your input begins. In the above examples you may notice information such as; the current time, current username, computer name and the current working directory. Because there is no desktop, these textual cues replace the visual ones you may be accustomed to in a Graphical User Interface.

  1. A sequence of characters, known as a [string][1] prompts the user for input. Examples include:
    • C:\Users\Microsoft> in Microsoft Windows.
    • TiBook:~/Desktop taylor$ in Apple’s Mac OS.
    • [12:59] daniel@arch ~ $ in Arch, a flavour of Linux.
    • sh-2.05b$ in Unix.
  2. The user enters a command, followed by one or more arguments, also known as parameters. For example:
    • ls -a in UNIX or Linux lists all files including hidden ones.
    • del Document1.doc in Windows or MS-DOS deletes said file.
    • ping google.com in UNIX or Linux pings Google.
  3. The operating system executes the command and may or may not return text, depending on the command.
    • Deleting a file may not return any text.
    • Deleting a protected file may return a confirmation prompt.
    • Pinging Google may return information about the command.
  4. Once the operating system has completed the command and is ready for another, it will return the command prompt on a new line. From here you go back to step 1. All command-line interfaces operate with the above syntax and grammar. It is important to understand this most basic language as it applies to all operating systems. Don’t worry, with this skill we will learn by doing and I’ll explain each command and its arguments for you. [1]: https://en.wikipedia.org/wiki/String_(computer_science)

Kodi in the world of Linux

The two most popular ways of running XBMC are:

GNU/Linux is free and open source family of operating systems that operate in a very similar manner to UNIX.

Linux itself is only a [Kernel][1] (the core of the operating system) and not the whole. Groups and companies build software around the Linux Kernel, creating whole operating systems known as Linux Distributions. There are many flavours of Linux but no original. [1]: https://en.wikipedia.org/wiki/Kernel_(operating_system)

Conclusion

Hopefully this initial theory lesson has given you a picutre of where in the world of computing you are operating and how the system with which you are interacting came to be.

In the next part of this guide we will learn about the terminal, how it works and how it is a powerful way to interact with your computer.