Introduction to Linux!
Want to get started with Raspberry Pi or Linux on your laptop? This workshop will introduce the most popular operating system in the world! Although most people are more familiar with Windows or Mac, Linux OS runs the vast majority of web servers, super computers, smartphones (Android), TVs, and other electronic devices. You can also use desktop versions for free on your laptop or home computer! Come get an introduction to free and open source operating systems, and see desktop versions of Linux in action on Raspberry Pi and laptops. We will get oriented to the basics of the desktop and learn how to install it on a computer.
What is Linux?
Linux (pronunciation) is a family of open source operating systems (OS). An OS is made up of a many components, basically:
- Bootloader: starts the low level processes necessary to boot an OS, most linux distrobutions use GRUB
- Kernel: manages the hardware and low level software components, this is actually Linux
- Shell: text-based command line interface
- Desktop environment: graphical interface
- Applications: individual programs run from the desktop or shell
Linux is usually shipped as a complete package of components called a distribution (distro). There are thousands to choose from, each with different philosophies, strengths, and use cases.
Linux core is Free Software, meaning cost-free and freely licensed, giving you freedom (as in freeeeeedoooom)! You can control, inspect, modify, copy, and share the OS. But for most users, that is not necessarily the most compelling reason to use Linux. Instead they just appreciate a solid, powerful, and user-friendly OS. Linux provides security, privacy, stability/reliability, customization, and cost benefits, in addition to access to a vast ecosystem of open-source applications and services. Linux runs majority of web servers, super computers, and single board computers. So if you want to use a VM in the cloud, do high performance computing, or tinker with a Raspberry Pi at home, it’s helpful to know Linux. But it also makes a great desktop OS for your personal computer! Thus, there are many practical and ideological reasons to use Free and Open software.
Bloatware, adware, viruses, oh my! Many people are sick of the shady commercial practices of Windows, Apple, and PC manufacturers that put user security and privacy at risk. Propriety OS limit your rights and control as a user. Linux distros are viable alternatives!
Surf Distrowatch to browse the latest distro news! Part of the fun of getting started with Linux is choosing a distro, but there are so many it can also be very overwhelming. Most distros are a package of technical low-level stuff, plus a desktop and selection of basic applications. Many are focused on running servers, others on desktop users. Here are some things to consider:
- Out-of-the-box experience. Do you want it to just work or are you willing to spend time customizing it? Do you want all the applications pre-installed or minimalist (Arch)?
- Installer! In the past, Linux distros were hard to install–Ubuntu really changed that, but some installers are still friendlier than others.
- Dual booting options. Do you want to keep windows? Some installers make it easy (Ubuntu).
- Repositories. Some distros have huge repos of applications (Debian), making installing new software secure and easy. Some are more up-to-date than others. Others are more DIY (Arch).
- Hardware support. Some distros support a huge range of legacy hardware. Others have better support for the newest hardware (look for newest kernel version).
- Current vs LTS (long term support). Do you want to install an OS that will be supported for a LONG time so that you won’t have to upgrade or do you want the latest-and-greatest?
- Rolling release vs. fixed release. Rolling release distros have a continuous stream of updates, you always have the latest software and never have to upgrade to a new version. Fixed release are more traditional and stable with incremental versions that require a large upgrade every so often.
- Ecosystem. Do you use a Linux server at work? Choose a distro from the same family to make life easier.
My easy suggestion: use Ubuntu or an Ubuntu flavor. The installer is easy to use (supports easy dual booting with Windows) and hardware support is great. But check out the Appendix at the bottom for MORE suggestions!
The desktop environment (DE) is the graphical interface you will be staring at all day. Unlike windows, mac, or chrome, with Linux you have a choice of desktops. It is separate from the core of the distro and can be installed independently. In fact you can install more than one! In most cases you will choose a distro bundled with a DE, and most distros will give you several choices. Things to consider:
- Weight. How graphics heavy is it. If you have an old computer or low spec hardware, go light!
- Configurability. How much do you want to tweak the look and feel? Do you want it to just look good out of the box?
- Unique vs. traditional. Do you want something different or are you nostalgic for the old days?
- GNOME. modern, minimalistic, no start menu, extensions add functionality, themes easily change the look.
- Budgie. up-and-coming project (get newest version with Solus)
- Cinnamon. more traditional desktop with start menu (get newest version with Mint)
- MATE. traditional, based on an old version of GNOME
Unity. Until version 17.10, Ubuntu shipped with a unique desktop. It is still available in LTS version 16.04, but the future is uncertain.
- KDE. very configurable, complex, windows-like (get newest version with Neon)
- Xfce. lighter weight, traditional linux desktop
- LXDE. very light weight, basic features. Also see LXQt variant.
- Tiling window managers, e.g. xmonad
Most desktops support themes which make it easy to change the look and feel. For example check out the themes page at OMG! Ubuntu!. You might hear about GTK vs. Qt applications and themes. Gnome uses GTK and KDE uses Qt, so applications based on the non-native tool kit won’t style correctly.
Try and Install!
The best way to learn Linux is to try it. When you buy a Windows, Chromebook, or Mac computer, the operating system (OS) comes pre-installed. However, if you are interested in running Linux or other open OS, you will have to install it yourself. Modern Linux distros are released as an ISO disk image, often called a “live cd” or “live usb”. This means you can download an ISO, burn it to a USB stick, and then boot up into the desktop without actually installing or changing your hard drive! Give it a try, with these instructions.
Or you can install VirtualBox on a computer to try out any distro in a disposable virtual machine. The performance will be very limited, but it is an easy way to test something out or see what the install process looks like.
Once you try it out, install it! Most installers are graphical and friendly.
If you have ever used a computer, almost everything will be familiar! No big deal. Here are a few things slightly different from Windows:
- User accounts and passwords. You are always logged in as a user and require a password to make any changes to the system (Windows tends to hide this).
- File system, home directory. Linux uses a different file system that Windows can’t read and is presented differently. On Window the root is the drive letter
C:\. Linux presents all drives as a unified file system, with the root at
/and your user directory at
/home/username(Linux doesn’t use Windows back slashes
- Updates. Updates are pushed out very regularly by most distros keeping you secure and fixing bugs. The updates cover the OS and all applications installed from a repository. First, the catalog of all software in the distro’s repositories is updated, then updates that apply to your installed software are downloaded. There is usually an updater application, but you may need to start it manually.
- Software center. Applications can be easily and securely installed from your distro’s repository. There is usually an GUI app to find and manage your software.
- Terminal. Command line is really handy! See this mini-workshop.
- UIdaho wifi. Connecting to AirVandalGold requires some extra steps, see my instructions.
Major distro families
Below is a basic introduction to the major linux families, with a focus on distros with desktop friendly versions.
One of the oldest active linux distros, Debian has extensive stable repositories that are the base of MANY other distros.
This includes Ubuntu, developed by enterprise software company Canonical based in the UK.
apt configuration and
- Debian, entirely free software released by the Debian Project
- Ubuntu, the most popular desktop linux, beginner friendly
- Ubuntu flavors, Ubuntu spins featuring alternative desktops
- KDE Neon, cutting edge KDE on Ubuntu base
- Linux Mint, one of the most popular and beginner friendly, featuring the Cinnamon desktop
- Elementary OS, stylish mac replacement, unique Pantheon desktop
- Zorin OS, polished windows replacement
- Pop!_os, customized Gnome desktop, built by computer company System76
- Peppermint, ChromeOS-like cloud focused minimal desktop
- Raspbian Official OS of Raspberry Pi, unique Pixel desktop
- Tails privacy focused distro
Fedora / RedHat
Based in the USA, Red Hat is one of the largest open-source enterprise software companies, providing support, development, and Linux OS to major corporations.
It is a good choice to learn if you are interested in working with enterprise environments.
yum configuration and
- Fedora, open project sponsored by Red Hat with a focus on free-software
- Red Hat Enterprise Linux (RHEL), an industry standard, non-free
- CentOS, free community supported RHEL
- Scientific Linux, free RHEL-based OS developed by Fermilab for high performance scientific computing environments
- Fedora Spins, alternative desktops
- Sugar, unique kid focused distro originally developed for One Laptop per Child project
- Fedora Labs, specialized distros from science to games
- Korora, nice looking beginner friendly
Germany based enterprise FOSS company.
YaST for configuration and
- openSUSE, developer focused with a rolling release option
- SUSE Linux Enterprise, commercial distro with focus on mature and stable server environments
- GeckoLinux, openSUSE spin focused on being user friendly
An independent, community built distro with rolling release following a K.I.S.S. and DIY philosophy.
Not traditionally user friendly.
pacman for configuration.
Android. Based on Linux, Android is the most popular smart phone OS in the world.
- Android-x86, port of Android that can be run on a laptop.
Independent. Some distros go it alone. For example:
- Solus, up-and-coming independent distro developing Budgie desktop
- Mageia, France based community focused distro
- Alpine Linux, minimalistic, security focused distro from Norway
Portable. Some linux distros are specifically designed to be portable, i.e. you always use them from a USB stick and do not install to a hard drive. This makes them simple, fast, and secure. For example:
Entertainment. There are many specialized minimalist distros that act as entertainment centers, usually run on a Raspberry Pi or similar device.
- music player: Volumio
- media center: OSMC, OpenELEC
- gaming: RetroPie or SteamOS
- NAS: FreeNAS or EasyNAS
Utilities. Some specialized distros are basic utilities used to work on a computer where the main drive or OS maybe corrupted.
- GParted Live, partition and disk utility
- Clonezilla, disk imaging/cloning deployment or recovery
- DBAN, disk data destroyer
Other open OS. There are other open-source OS out there, Linux is just the most popular.