DEV Community

Loralighte
Loralighte

Posted on

How To: Switch to Linux

Linux is a family of operating systems usually seen as "enthusiast" technology. The basics of Linux are simple, and anyone in the current year can switch to Linux. Any child, elderly, tech enthusiast, or tech illiterate can run Linux, even if they might need a little help. When switching to Linux, it can help to know basic CLI commands, and terminologies when making the switch.

Base Terminologies
Distro / Distribution - Commonly refers when an operating system uses the Linux kernel, or in some cases, BSD.
CLI / TUI - Refers to the text-based interface, typing commands to do what you want. CLI is short for Command Line Interface, and TUI is for Terminal User Interface.
Terminal Emulator / Terminal - Refers to the application used to run commands in a CLI environment, while in a GUI based environment.
Window Manager / WM- A graphical environment where you can open GUI applications in one of many WM formats.
Desktop Environment / DE - A graphical environment using a window manager, along-side other tools dedicated to things like sound, brightness, and sometimes special hotkeys.
GTK / Qt - Graphical libraries most commonly used in Linux, both having differences.
Panel / Dock - Part of a desktop environment where an application has buttons to open apps or deal with other functions.
Package Manager / PM - A built-in tool to a Linux distribution to download packages from a CLI command or GUI application.

Where to Begin
When switching to Linux, one of the most common mistakes is just diving in with an install and bare metal. While this isn't a wrong way to do things, it is always more beneficial to test in a virtual machine. There are several virtual machines for Windows and Mac, and make sure in your BIOS that virtualization is enabled.

When starting to look into Linux, focus on Ubuntu and Ubuntu alone. While yes, there are problems with Ubuntu, trying to find the best distribution in the sea of distributions is difficult. Jump on Ubuntu, and if your PC cannot handle the Gnome desktop environment - which is a system intensive desktop - there are several official Ubuntu flavors made by the community and many more unofficial ones in progress. Some good lightweight desktops are KDE, XFCE, LXQt, Cinnamon, and Lumina. All of these desktops have either an official flavor or unofficial remix available. KDE and Cinnamon are possibly better choices for any user. If you select an Ubuntu flavor or remix, understand that it is normal Ubuntu with a different skin or purpose.

Once you understand how your virtual machine works, and you installed Ubuntu or a selected flavor/remix, it is time to work. Understand what packages you can install, and which you cannot. Learn what apps you need to use. You get Firefox by default, and you also get an app store where you can use it to get applications without the terminal. The kind of packages you need to download on Ubuntu are Deb packages, which many applications and games support.

When using the CLI, unless you want to be an absolute power user, there are very few commands you might need to know. Many graphical applications can also help you without the need to run a CLI command. Some fundamental commands are touch, apt, dpkg, mkdir, cat, mv, rm, cp, and chmod. These commands are primary tools to get you running anything in a terminal. Touch creates a file, without writing to it. Cat can read and write to files. Dpkg is a tool to install packages from a file. APT is a dpkg frontend that also better supports downloading packages directly from the internet without a GUI. Mkdir can make directories. Chmod gives and takes permission from users to do something with a file, including execution. Mv is a tool to move files and directories elsewhere. Cp is a tool that copies a folder or directory to another spot. Rm is how you delete the files and directories you have. There are GUI tools that can do this stuff for you as well.

The last thing is to experiment. Feel free to see if you can get something to work, and if not, keep that in mind. Learning Linux is learning the limits and changes in what you would otherwise normally do. Linux isn't for everyone yet, but it is getting there, and this is a simple "let's get started guide." Always feel free to ask questions and to google when you are lost.

Oldest comments (12)

Collapse
 
emtes profile image
Enmanuel de la Nuez

Love it! Linux for the win!

Collapse
 
jehrhardt profile image
Jan Ehrhardt

I agree on the Ubuntu focus, but have recently changed my mind. I recommend ZorinOS, because it is Ubuntu but with Windows or macOS like UX. This lowers the usability barrier to enter Linux, while still being Ubuntu πŸ˜‰

But don't get me wrong, this is not about distro wars.

Collapse
 
webdev_chen profile image
Uchena Miller

In terms of lightweight, would KDE be slightly be faster than Gnome? because Ive been using the default Gnome Environment installed with Ubuntu and I have been having performance issues when running software simultaneously like VScode with Firefox especially when connected to a wireless network and using the terminal.

Collapse
 
kailyons profile image
Loralighte

KDE is currently about one and a half times slower than XFCE, which is one of the lightest weight desktop environments. I cannot think of any desktop environments slower than Gnome.

Collapse
 
kailyons profile image
Loralighte

I would say KDE is easily at least a little faster than Gnome

Thread Thread
 
webdev_chen profile image
Uchena Miller

so what do you recommend Kai?

Thread Thread
 
kailyons profile image
Loralighte

Really depends what you need, but Cinnamon, Lumina, and MATE are all good

Thread Thread
 
webdev_chen profile image
Uchena Miller

okay thanks, Imma do some reading up and them out. Whichever I'm comfortable working with.
Thanks again.

Collapse
 
birdmun profile image
birdmun

Personally, you missed the ls 'el s' command and I would lean towards Linux Mint or Manjaro to start. My preference is Arch, but, I've been using Linux for about 15 years now.

Collapse
 
kailyons profile image
Loralighte

I purposely left out both, for a plethora of reasons.

Manjaro, while relatively easy to Arch, is something that can get difficult to maintain long-term, especially for a new Linux user. I didn't include Mint, not even because I think they are idiotic to remove Snapd but for the ease of removing higher levels of choice and thought, Manjaro is also kicked out of the list for that reason.

The specific reasons I picked Ubuntu are quite simple:

  1. Ubuntu is developed by a large corporation
  2. Ubuntu is already fairly well known by non-Linux users
  3. Ubuntu has the largest userbase
  4. Ubuntu won't require any workarounds for anything supported by Debian
  5. Ubuntu has a massive user-base, that can help ANY issue without having to worry about compatibility with a derivative (like PPAs in elementaryOS (last I checked), and Snapd in Linux Mint) or a separate distribution (like Fedora and Manjaro).

In short, Ubuntu is the better choice to pick for a tutorial like this.

Collapse
 
callmerenny profile image
CallMeRenny

When talking about DEs, KDE is my main priority .... I have a "potato" .... Now everyone thinks KDE is heavy,
but I found it pretty smooth ..... Instad the astonishing fact is feel that XFCE is heavy or more clearly painfully slow ... I have customised KDE to look and work like Gnome and i rarely experience lag .... I hope this helps someone

Collapse
 
dragon0307 profile image
Admin Istrator

I would advise pointing out that Free Software does not refer to price in Linux. It can be quite confusing for the end user who thinks that it is fraud to mark a program as 'free' and charge for it under Linux jargon.