So You're Ready to Start Using Linux
That's great! Linux is a very capable operating system. It has whatever you want for a desktop system — complete office suites including LibreOffice, Gnumeric, and other components. It includes several web browsers and e-mail tools, media players for listening to music and watching movies, and much more. Of course the operating system itself and the applications are free, and it runs well on low-cost hardware. Let's get you started by choosing a distribution and a platform.
Choosing a Linux Distribution
A distribution is the result of someone putting together a Linux system that's ready to be installed or used as is. That distribution, or "distro" as people say, was built with some goal in mind. It might be aimed at new users, which is what we're looking for here. But various distributions are specialized for scientific computing, cybersecurity analysis, education, gaming, building a media center, building a telephony system, or who knows what.
Many distributions have a "live" version or mode. You can boot a computer from this "live" media, a DVD or USB thumbdrive, and experiment with a Linux system without touching the data stored on the disk. If you like what you see, often you have the option of installing the operating system onto the disk(s) so the computer always boots that Linux distribution. However, many distributions have a separate full version that will give you even more than you had available on its live version.
What makes the distributions different from each other? Whoever built the distribution has selected a set of available software packages, built an installation or live-versus-install program, and made some assumptions about what you prefer for the graphical interface, networking options, and other details. You can do a customized installation with most any distribution, specifying exactly what you want for many of the details and further tuning it for just what you want. But if you're just getting started, the distribution's default desktop version is probably what you want.
You can browse around DistroWatch to see the latest news with links to the download pages for all the distributions. The wide array of choices can be a little overwhelming. So:
I suggest using the Linux Mint distribution as your initial introduction. It's one of the most popular distributions out there because its creators have worked to make it user-friendly and stable. It's very easy to get started using it, there are nice user guides in several languages, and you can easily get a command line and start doing the more advanced things. It's user-friendly but it's not dumbed down.I'll use Mint, let's jump ahead and select a platform
[ JUMP AHEAD ]
The array of choices is overwhelming, and honestly it doesn't matter very much if you are mostly interested in learning how to become a Linux user on a path toward being a Linux system administrator or engineer. Pick something that's easy to get running and reasonably friendly and attractive to interact with, and get to experimenting. But to provide a few more suggestions...
Red Hat, Clones, and Compatibles
Red Hat Enterprise Linux or RHEL has been seen as the enterprise-oriented commercial distribution in the U.S. and many other countries. For $300-3500 (and up) per server per year, you get support on-line and via the telephone. However, as it's based entirely on free software, there have been several projects to assemble entirely free distributions based on and intercompatible with Red Hat.
Rocky Linux has taken the place of CentOS as the free and fully compatible Red Hat clone. The Rocky Linux project was established in reaction to Red Hat's control and termination of CentOS. It was founded by one of the founders of CentOS, aiming to fill the same niche while remaining free from corporate control.
Oracle Linux is built from the source packages used in RHEL, although it is a little less intercompatible. It's less intercompatible in a good way, as Oracle's set of packages is a little more up to date, and their Unbreakable Enterprise Kernel or UEK keeps much closer to the state of development. Plus, Oracle Linux supports Oracle's own Btrfs, versus Red Hat being locked in to XFS.
Red Hat tweaks the kernel source, back-porting some
developments to the rather old kernel version they're
In a consulting project, I saw Red Hat's kernel
tweaking lead to trouble.
A series of SuperMicro motherboards with nvME storage
controllers worked fine on FreeBSD plus most
enterprise-oriented Linux distributions
except for RHEL.
The consulting client had a major support contract with
Red Hat, and there certainly were many back-and-forth
emails for a few months.
But Red Hat only came up with a workaround, not a real fix.
The client has to boot all their compute servers with
two specific parameters to disable the
And other distributions...
The Ubuntu distribution is also enormously popular. It was designed for user-friendliness. It became common in educational settings, and is now catching on in corporate settings.
I use the Linux Mint distribution on my personal systems. I keep up to date with enterprise issues for my consulting clients with Oracle Linux.
I used to use the Mageia distribution, when it had better codec support for multimedia than many of the alternatives. I continued using it because I liked what all comes with it, plus it adopts new technology sooner than more conservative distributions like Red Hat without feeling as experimental as Fedora. That made it useful for me as a consultant and instructor, as it forced me to stay ahead on Linux developments.
There are many more distributions, you may want to try out a number of different live distributions or even install some of them for a few days or weeks at a time. But let's decide how to run your chosen Linux distribution.
Choosing a Linux Platform
You have several choices for where and how to run Linux. You can:
- Boot your current desktop or notebook computer from live media.
- Install Linux on a spare desktop or notebook computer.
- Install Linux on a Raspberry Pi, a single-board computer just 86×54 mm (3.39×2.13") and costing about $35.
- Install Linux on a virtual machine and run it within a window on your current desktop or notebook computer.
- Rent a Linux cloud server for a few cents per hour.
Live media on your current system
This will be the fastest, cheapest, and easiest way to get started. Simply download an ISO image of a live DVD, burn that onto a DVD or write it into a USB thumbdrive, and you should be ready to go. Reboot your system, going into the firmware setup to make sure it will boot from the media you just created.
The only trick is that the large file you downloaded is an image of a file system. The most common error is to create a DVD or USB that has a file system with that ISO image file sitting there as one very large file. Be sure to select the option to burn an image if you are making a DVD.
Show me the Windows solution!"
[ JUMP AHEAD ]
If you are going to use a USB thumbdrive, you can simply write the ISO image onto that device. Or at least it's easy and simple on Linux and Apple's OS X. If you or a friend have Linux or OS X, you can use this method. If you only have Windows, then jump to the Windows-only solution.
Let's see how to do this in Linux or OS X. First, see what block devices are there before plugging in the USB device:
$ ls /dev/sd*
All the devices named
and so on are the disks in your system.
Those names with numbers are the partitions on those
sda2, and so on.
We just want to look at the disks themselves, so let's
list just those devices:
$ ls /dev/sd?
Now plug the USB device in and run that same command again
to see what has newly appeared.
If you initially saw just
sdc only appeared after you plugged in
the USB device,
then the first two are the permanently installed disks
sdc is the USB device.
On some distributions, if you are logged in on the graphical
console then you have permission to write data onto a
USB device you plugged in.
Try this command, it will work if you have
the needed permission.
to the path to the ISO image file,
sdX to the USB device name.
If this works, it will take a while.
Be patient and wait for the command to finish.
$ dd if=/path/to/image.iso of=/dev/sdX bs=1M
If the above command fails with an error message about "No such file or directory", then you are doing something wrong. You need to be very careful when you are doing this. Re-read the above, starting at "Let's see how to do this" and try it again.
If the command fails with a message about running out of space, then you need to use a larger USB thumbdrive!
If the command fails with a message about
"Permission denied", then you need to use a technique
that is much more powerful but also dangerous.
Just like a chainsaw...
Make absolutely certain that you are using
the appropriate device name for the USB
Getting this wrong will destroy all your
data and the operating system if you
accidentally specify the internal
disk holding that data.
On an Ubuntu-derived system, the first way of doing this
On others, you will need to use the second version and
root password when asked:
$ sudo dd if=/path/to/image.iso of=/dev/sdX bs=1M
Or, if that doesn't work:
$ su root -c 'dd if=/path/to/image.iso of=/dev/sdX bs=1M'
Yes, the syntax of
dd is a little odd.
It dates from way back in UNIX history, maybe from when
people hadn't yet decided how things generally should be done.
As for those parameters:
if= specifies the input file (or device)
of= specifies the output file (or device)
bs= specifies the block size.
1 megabyte blocks make this go way faster than
the default 512 byte blocks.
Windows lacks handy tools like
So, you may need to install someone's graphical tool
and point and click through some windows and menus,
as described and shown on
this Ubuntu page.
Or, you could use something like the traditional
Graphical versions can be found
There are two potential disasters with the live ISO image approach. First, you (or someone who looks at your system while you stepped away while it's running the live image) might click the button that says "Go ahead and install this, wiping out all data on the disk." After all, most live images are designed to make everything very easy, including installing onto the hardware.
Second, if you plan to do this during lunch time on your system at work, you might find that the IT security staff suddenly appears demanding to see the unauthorized device suddenly connected to the enterprise network.
This approach is easy, but be careful.
Install Linux on a spare computer
This should be the easiest and least frustrating method once you get the hardware put together. And, you very likely already have a suitable platform just waiting to be used.
Don't make it hard for yourself. Use a computer you recently replaced with a newer model? Sure. Just don't try to use some really outdated hardware that you're not really certain whether it actually works or not.
Watch out, laptop built-in wireless network interface support is the sketchiest thing in all of Linux. The manufacturers of those chip sets frequently give all the details to Microsoft but to no one else.
As for using low-end hardware, I had CentOS 5 running on a Pentium III (930 MHz) CPU with 512 MB RAM until 2014. Full updates for CentOS 5 had ended the first quarter of 2014. No, I didn't try to do very much with that system. But it had some uses.
Applications grow ever more memory-hungry. I did not try to upgrade it to CentOS 6, because of the limited memory. I'm not sure if an on-line upgrade to CentOS 6 would have worked. A fresh install of RHEL 6 required 2 GB of RAM, four times what that system had. Red Hat's installer refuses to work on a system that they expect to provide unsatisfactory performance.
If you don't have a suitable spare machine sitting around, you don't have to buy a new computer or the parts to assemble one. Not a full-sized computer, anyway, as you can...
Install Linux on a Raspberry Pi
The Raspberry Pi is a small single-board computer designed in the U.K. for teaching basic computer science and programming in Python and other languages in elementary through high schools.
It's small, just 86×54 mm. That's 3.39×2.13 inches in the U.S., where a national program to teach computer science and Python programming to children is a fantastical concept.
The Raspberry Pi itself costs about $35.
You will also need an Android type charger. Get one that can provide 5V DC at a solid 1 A or 1000 mA, or more.
And, you will need a flash memory card. Early models used SD, which typically means a MicroSD card in an SD adapter. The Raspberry Pi uses MicroSD directly, starting with the B+ model. You need a bare minimum of 2 GB of storage for the bootable OS, but you will probably want at least 8 GB.
You can connect a USB keyboard and an HDMI cable leading to a computer monitor or television.
You likely already own much of the collection of added parts including the charger, MicroSD, USB keyboard, and HDMI cable.
The Raspberry Pi has one Ethernet port, an onboard 802.11 wireless interface, and it runs SSH by default. So, you can plug it into your LAN or WLAN and connect into it over SSH, maybe using PuTTY from Windows.
Why do you have to add software from some guy's site?
Because an SSH client is an important security tool, and so one isn't included in Windows.
Come join the Linux movement, and you too can be dismissive of poorly designed but expensive software.
I own and use several Raspberry Pis, and most of them have had a keyboard or display connected. I have only used them by connecting in over SSH.
When I got the second one I thought I should see what the keyboard and display experience was like. It looked very sharp on my large television display. But then I went back to exclusively using them by connecting in over SSH.
Here are two early Raspberry Pi cards, stacked in a small case that still is about twice as wide as really needed.
Install Linux on a virtual machine
I have left this approach until the end, as it seems to me to be the most complex for what you get out of it. But that's just relative complexity, even this isn't too bad at all.
Oracle's VirtualBox is free and easy to use. This way you can run a Linux system within a window on your macOS or Windows desktop.
VMware's VMware Player is another free virtualization product.
VirtualBox and VMware Player are both Type 2 virtualization. The hypervisor that does the virtualization runs as an application on top of a full operating system. For most people, this means that Windows runs on their hardware, a virtualization hypervisor runs as an application on Windows, and the "guest" operating system runs within that.
VMware ESXi and vSphere is a Type 1 virtualization product. ESXi is a "bare metal" hypervisor, running directly on the hardware, and vSphere does the orchestration to use cloud technology within your data center. It is also available for free, but if you're already using vSphere then I can't imagine you reading this page because you can't figure out how to run Linux.
Your Linux operating system and the applications running there would be the next-to-top and top boxes, respectively, in these diagrams:
Install VirtualBox, create a new blank virtual machine image, connect your Linux distribution install media as the virtual optical drive, and start the virtual machine to install into the blank system.
Finally, although we're getting more complicated and ending up with a more constrained Linux system here, you can install the QEMU virtualization software plus a virtualized Linux system on a USB thumbdrive.
Then you can plug that thumbdrive into a system running Windows or Linux on the hardware. The thumbdrive has QEMU executables for both Windows and Linux, you run the appropriate one and your Linux system boots inside a window on the desktop.
I used this on a trip to Mexico. I had my own Linux machine along for the trip, but all I had to carry was a USB thumbdrive. I could go into a local cybercantina, plug in my thumbdrive, and get my virtualized machine onto the Internet. I could download and save e-mail messages and files. They weren't saved to the physical disk in the hardware, they went into and left with my thumbdrive.
Rent a Linux cloud server
The big cloud computing providers will rent you a Linux machine for just a few cents per hour. You're looking for their IaaS or Infrastructure as a Service offerings. These would be Amazon Web Services' EC2, Digital Ocean's Droplets, Google's Compute Engine, and Microsoft Azure Virtual Machines. Yes, Microsoft rents Linux servers in their cloud operation. In mid 2016 they announced that over the past year Linux had risen from 25% to 33% of IaaS service they were selling.
|IaaS Cloud Provider||per hour|
|Google Compute Engine||Free|
|Amazon Web Services EC2||$0.0065|
|Digital Ocean Droplet||$0.0068|
Google Cloud gives you one free VM instance, you only have to pay for outbound bandwidth beyond 1 GB per month. This web site runs on Google Cloud, I pay just about $5-7 per month for the bandwidth. If you are just using the system to practice with the command line, you aren't going to move 1 GB out through your command prompt! If you're in Australia or China, you have to start paying for bandwidth immediately, but it would take a lot of command-line use to run up more than a few cents per month.
Amazon Web Services gives you 750 hours per month (that's one machine running continuously) for free for the first year after you sign up. Then you have to start paying as shown in the table.
When you have to pay, you don't have to pay very much. The table shows the lowest priced IaaS offerings the last time I looked them up. Prices change, they tend to go down.
You will need to set up an account. If you have ever purchased anything through Amazon, you are part way there already and you can set up your account for AWS use in a few minutes.
You will need to generate a key pair. Only the public key is stored at Amazon, you keep the private key. You can generate the key pair through Amazon's interface and save the private key on your Windows machine. Or, you can generate a key pair on your machine using PuTTYgen.
Deploying the cloud server is a matter of making selections and clicking through a number of web pages. It will take you a while the first time you do it. But once you're familiar with the process, it's a minute or less of clicking through the screens and then about 20 to 30 seconds for your cloud server to be deployed and started.
Then you're ready to connect to it with an SSH client using that private key!
Don't forget to shut down the cloud server when you're done! You keep getting billed as long as it runs, whether you're using it or not. They're cheap per hour but it adds up.
Beware, cloud servers can be rebooted, but on some platforms (e.g., AWS), if you shut them down they are destroyed. That is, unless you pay more for persistent storage. Google also gives you 30 GB of persistent storage.
I Didn't Even Mention Dual-Booting
Yes, you can squeeze Windows to the side and install Linux or another operating system in parallel. At boot time you choose which operating system to run. So, you could run one for a while, then shut it down and boot the other, switching back and forth.
But with free virtualization built into the Linux kernel, and with free virtualization products available from VMware, I just can't see doing this just to have both Windows and Linux on the same system.
If you're interested, I have a page explaining how to set up multi-booting. That page shows how I have set up a dual-boot Windows / OpenBSD system. QEMU can do virtualization on top of OpenBSD, so I could have OpenBSD installed on the hardware and Windows running within a QEMU virtual machine. I have done that, this page shows how. However, my current laptop has an Intel CPU lacking their VT-x virtualization support, so performance is unacceptable. I don't need to use Windows very often, so multi-booting suits my needs.
You have to be very careful when you set up multi-booting. Windows always assumes that it's the only operating system, and it will "update" or "correct" the boot loader when you install a service pack. My Windows-OpenBSD dual booting howto shows how I avoid that problem.
Learn More About Linux
I have a page with an overview of Linux/Unix commands, and another page with commands Linux system administrators should know.
As for books, I really prefer O'Reilly's Unix in a Nutshell book over their Linux in a Nutshell. If you are learning how the command-line interface works, doing various file system manipulations and searches, and creating and modifying text files, it really doesn't matter very much as to just which Unix-family operating system you use. Linux, OS X, Solaris, AIX — from a command-line user perspective they are much the same.
The Linux in a Nutshell book uses some of its content to tell you about installing and setting up distributions (information that quickly goes out of date!), and how to use graphical web browsers, e-mail tools, and other things that you shouldn't really need to be told. The Unix in a Nutshell book is more command-line oriented.
As for editing text files, the
vi editor has an
awful reputation for such a powerful and useful tool.
Yes, it takes a while to get comfortable with it, and it
is so powerful and contains so many features these days
that you never learn it all.
Once in a while you accidentally do something, and if it
seems useful, you learn another trick that makes you
even faster and more efficient.
Resist the temptation to use the <Insert>, <Delete>, <Page Up>, <Page Down>, and arrow keys. In many situations they do not work correctly. Also, it seems that every keyboard arranges those keys a little differently, so you have to stop typing, look down at the keyboard, press a few keys, move your hands back, and go back to what you were doing.
|<Page Up>|| Ctrl-
|<Page Down>|| Ctrl-
|← ↓ ↑ →||
These days you really want to use
vi improved" version.
On most Linux systems,
run the same program.
On other Unix-family operating systems, they are two different
My personal habit is to type
vim so I always
get the more capable one.
Where You're Headed With Linux
Linux is used for very high-performance systems. At least 85% of the top 500 supercomputers in the world at any time run Linux, and Red Hat reports that over 90% of the 2013 Fortune 500 companies use Red Hat Enterprise Linux.
Linux is also used for mission-critical systems we all rely on.
Major financial exchanges including the
New York Stock Exchange Euronext,
NASDAQ, the New York Mercantile Exchange, the
Chicago Mercantile Exchange, the Frankfurt Stock Exchange,
the Eurex derivatives exchange, and the Philippines Stock
Exchange are all
based on Linux.
U.S. Postal Service
mail sorting system has been based on Linux at least since 2001.
The International Space Station finished
converting entirely to Linux
The DNS servers that let us reach all of the
and many other top-level domains are arrays of Linux servers.
Linux is the dominant operating system in public cloud operations, and a 2013 survey revealed that over 75% of large enterprises deploy Linux for new applications, 73% plan to increase the use of Linux for mission-critical workloads, and 80% plan to increase their use of Linux over the following five years.