Forums
New posts
Search forums
News
Security News
Technology News
Giveaways
Giveaways, Promotions and Contests
Discounts & Deals
Reviews
Users Reviews
Video Reviews
Support
Windows Malware Removal Help & Support
Inactive Support Threads
Mac Malware Removal Help & Support
Mobile Malware Removal Help & Support
Blog
Log in
Register
What's new
Search
Search titles only
By:
Search titles only
By:
Reply to thread
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Software
Operating Systems
ChromeOS & Linux
A Beginner's Guide to the Linux Command Line
Message
<blockquote data-quote="sid_16" data-source="post: 461627" data-attributes="member: 10007"><p>Hello Linux user,</p><p>This guide is a copy paste from the original article here- <a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html" target="_blank">The ultimate guide to Linux for Windows users</a></p><p></p><p>All right, so let's say you are a Windows user, and you have HEARD of Linux. You want to try this new technology, but the quantity of information coming towards you from enthusiastic veterans is simply overwhelming. Let's break it down.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2010_1/linux-commandments-tux.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><span style="font-size: 18px"><strong> Tasks for today </strong></span></p><p>We have a lot on the agenda. We will begin with several questions and answers on the common differences between the two operating systems. After that, I will discuss the more technical parts. And after that, we will talk about actually installing Linux. The flow may not seem logical at first, but trust me.</p><p></p><p></p><p><span style="font-size: 18px"><strong> Table of Contents </strong></span></p><p></p><ol> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId795759" target="_blank">What is Linux?</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId213624" target="_blank">What is it good for?</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId898200" target="_blank">Major differences between Windows and Linux</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId834947" target="_blank">Where do I find Linux?</a><ol> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId295524" target="_blank">Linux architecture</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId893972" target="_blank">Linux distribution</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId343540" target="_blank">What makes these distributions different?</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId143014" target="_blank">Components of a Linux distribution</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId271178" target="_blank">Desktop environment</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId59348" target="_blank">Gnome Desktop Environment</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId722350" target="_blank">K Desktop Environment</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId271452" target="_blank">Unity desktop environment</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId48858" target="_blank">Cinnamon desktop environment</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId859170" target="_blank">Other desktop environments</a></li> </ol></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId691245" target="_blank">Linux package managers</a><ol> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId889158" target="_blank">Yellowdog Updater, Modified (YUM)</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId179194" target="_blank">ZYpp (libzypp)</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId357040" target="_blank">Advanced Packing Tool (APT)</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId99351" target="_blank">Other package managers</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId196523" target="_blank">Underlying binary format</a></li> </ol></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId122131" target="_blank">Linux command line</a><ol> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId778077" target="_blank">Popular commands</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId796223" target="_blank">Top 20 commands & builtins</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId215946" target="_blank">Filesystem layout</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId147310" target="_blank">Disk layout</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId208279" target="_blank">Special devices</a></li> </ol></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId133238" target="_blank">Let's assemble all together</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId192603" target="_blank">What do we have so far?</a><ol> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId79915" target="_blank">Significant complexity</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId464957" target="_blank">Command line is useful</a></li> </ol></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId359179" target="_blank">So where do I find Linux?</a><ol> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId8590" target="_blank">Major Linux distributions</a></li> </ol></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId671316" target="_blank">How do I start?</a><ol> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId45742" target="_blank">How do I install Windows?</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId400759" target="_blank">How do I install Linux?</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId467639" target="_blank">How do I use Windows and Linux together?</a></li> </ol></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId54497" target="_blank">How does Linux work?</a><ol> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId33381" target="_blank">Linux boot process</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId840126" target="_blank">Runlevels</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId542966" target="_blank">Users</a></li> </ol></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId956175" target="_blank">Common desktop activities</a><ol> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId584539" target="_blank">Getting to know Linux desktops</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId253943" target="_blank">Common software</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId197425" target="_blank">Common games</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId80684" target="_blank">Common tasks</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId163029" target="_blank">Pimping guides</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId462393" target="_blank">Additional guides</a></li> </ol></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId182962" target="_blank">Best Linux resources</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId355104" target="_blank">Serious questions to all readers</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId991381" target="_blank">Updates & user questions</a></li> <li data-xf-list-type="ol"><a href="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId651538" target="_blank">Conclusion</a></li> </ol><p></p><p><span style="font-size: 18px"><strong> What is Linux? </strong></span></p><p><a href="http://en.wikipedia.org/wiki/Linux" target="_blank">Linux</a> is an operating system, very much like Windows. It came to life in 1991, by merging the Linux kernel developed by Linus Torvalds, with the GNU set of programs and applications. Because of this, Linux is sometimes referred to as GNU/Linux.</p><p></p><p>The Linux kernel has been developed and released under a GPL license, which means that its source code must be freely available to anyone. However, over the years, companies have shipped Linux packaged with proprietary code included, as well as charged money for use and the support model. In the home segment, most if not all versions of Linux are free of charge. Sometimes, you will hear words like free and open-source. This is what those folks mean by that.</p><p></p><p><span style="font-size: 18px"><strong> What is it good for? </strong></span></p><p>Believe or not, Linux has many uses everything around you. It is the prevalent operating system everywhere except the desktop. Your Android smartphone is in fact a Linux box. Your router, <a href="http://www.dedoimedo.com/computers/lg-smart-tv-review.html" target="_blank">your</a> TV, your fridge, they all run Linux underneath.</p><p></p><p>Linux is also the top <a href="https://www.linux.com/news/enterprise/high-performance/147-high-performance/666669-94-percent-of-the-worlds-top-500-supercomputers-run-linux-" target="_blank"> choice</a> for super-computers, it is heavily used in the digital world for development and production of 3D <a href="http://www.itworld.com/hardware/93127/data-center-plays-supporting-role-avatar" target="_blank">movies</a>, and it is the bedrock of the Web and most data centers in the world, due to its highly flexible and extensible nature, as well as relatively low usage costs.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2014_1/lg-smart-tv-final.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2013_2/samsung-s4-book.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><span style="font-size: 18px"><strong> Major differences between Windows and Linux </strong></span></p><p>All right, but so far, this does not tell us anything about where to find Linux, how to install it, or how to use it. Now, we will walk through a handful of concepts and pain points that pose a serious block for most Windows users. We will elaborate on all those strange and alien ideas and bridge over them with elegance.</p><p></p><p><span style="font-size: 18px"><strong> Where do I find Linux? </strong></span></p><p>Indeed, you may assume that there is a single Linux entity where you can find Linux, much like Microsoft provides Windows. This is not the case. Linux is not a single entity. In fact, you do not use Linux directly. Which is why we must explain Linux architecture first.</p><p></p><p><span style="font-size: 15px"><strong> Linux architecture </strong></span></p><p>To do this, we will begin with Windows. For home users, Windows is essentially the desktop they see and use. In Windows XP, it was called Luna. In Windows 7, it's known as Aero. In Windows 8, you have the Modern (Metro) interface. But this is not the whole of the operating system.</p><p></p><p>Windows, like any operating system, has several layers:</p><p></p><ul> <li data-xf-list-type="ul">Kernel - the heart of the operating system, which initializes and interfaces with the hardware, schedules tasks and manages memory, and actually allows you to use your system as you normally do.</li> <li data-xf-list-type="ul">Drivers - Software that interfaces between hardware peripherals, like the network card, graphics card, hard disk, and others, and the kernel, and effectively allows applications to utilize hardware resources. The drivers are usually supplied by third-parties, like Atheros, AMD, Nvidia, Hitachi, and many others.</li> <li data-xf-list-type="ul">Graphical interface - what you see and perceive as the desktop.</li> <li data-xf-list-type="ul">Applications - software that runs on the desktop.</li> </ul><p>In Windows, the first three components are tightly coupled. You have a single desktop interface, and it cannot be detached from the underlying kernel. You must use Windows as it. You cannot have a different desktop interface. You can change themes, but the core remains the same.</p><p></p><p>In Linux, things are a little different:</p><p></p><ul> <li data-xf-list-type="ul">Kernel - Because of a slightly different design (Computer Science nonsense), the functionality of the Linux kernel is not identical to Windows. First, the kernel can be compiled with drivers. This means you get support for hardware out of the box and you do not need third-party software. Second, you can load new drivers on the fly. We will address this soon. Effectively, because of the free and open-source nature of the kernel, it is possible to bundle drivers into it. This means the Linux kernel supports a wide range of hardware devices out of the box.</li> <li data-xf-list-type="ul">Drivers - Some software cannot be distributed freely, due to licensing reasons. Therefore, you may not have all the drivers you need available, and you must go to third-party vendors to obtain them. This is perfectly understandable.</li> <li data-xf-list-type="ul">Graphical interface - This is the big difference. Linux can run without a graphical interface. Two, there are actually several graphical interfaces available for Linux. Not just different themes, but actually complete sets of libraries that communicate between the kernel and the applications. Imagine using the OSX interface on Windows, that's the best analogy.</li> <li data-xf-list-type="ul">Applications - Same as with Windows.</li> </ul><p>So what do we have here? The major differences in the architecture of Windows vs. Linux is that: a) Linux can bundle drivers into the kernel and load them on the fly b) Linux can run without a graphical interface, or with many different ones.</p><p></p><p>Now that you understand this basic difference, we will now talk about how Linux is shipped to users. We will now elaborate on another important concept - distribution.</p><p></p><p><span style="font-size: 15px"><strong> Linux distribution </strong></span></p><p>Linux distribution is a unique set containing: kernel, one or more desktop environments, and an application bundle. This is the actual product that you use directly. You use Linux distributions, and inside, they are powered by the Linux kernel.</p><p></p><p>Linux distributions are developed and maintained by companies as well as individuals, hobbyists, volunteers, and community users. Large, successful companies ship their distributions to the commercial market along with expensive, long-term support contracts. At home, most distributions can be used free of charge.</p><p></p><p>Let us name several popular Linux distributions. For home users, the most popular name is <a href="http://www.ubuntu.com/" target="_blank">Ubuntu</a>, a Linux distribution created by the Canonical Group, a company based in the UK. Canonical offers Ubuntu for free. It means you can go to the Ubuntu website and download the operating system. We will soon elaborate on how this is actually done.</p><p></p><p>Another popular distribution is <a href="http://www.linuxmint.com/" target="_blank">Linux Mint</a>, which is a community-developed effort. Linux Mint is partially based on Ubuntu. It is also available for free. You also have <a href="http://www.opensuse.org/en/" target="_blank">openSUSE</a>, which is a product of Novell, a company that also has an enterprise flavor available for use by business and large data centers. Likewise, there is <a href="https://fedoraproject.org/" target="_blank">Fedora</a>, a product of RedHat, the largest Linux company in the world. I have named these four as the top candidates, but there are many, many more distributions available.</p><p></p><p><span style="font-size: 15px"><strong> What makes these distributions different? </strong></span></p><p>All right, so let's break them down some more, shall we.</p><p></p><p>Ubuntu is composed of: Linux kernel + Unity desktop environment + apps.</p><p></p><p>Linux Mint is composed of: Linux kernel + Cinnamon desktop environment + apps.</p><p></p><p>Fedora is composed of: Linux kernel + Gnome desktop environment + apps.</p><p></p><p>openSUSE is composed of: Linux kernel + KDE desktop environment + apps.</p><p></p><p>As you can see, a pattern begins to emerge. The big difference between most distributions is in which desktop environment they choose to use, and the application set. This begs a question. If you were to use Gnome in openSUSE, would that make it the same as Fedora?</p><p></p><p>The answer is: no.</p><p></p><p>I have oversimplified the comparison, of course. The differences are larger than just the use of desktop environments. But this opens another layer of complexity before us. Now, let's see all the core components of a typical distribution.</p><p></p><p><span style="font-size: 15px"><strong> Components of a Linux distribution </strong></span></p><p>We have the following:</p><p></p><ul> <li data-xf-list-type="ul">Kernel - Every single distribution uses its own kernel, ever so slightly modified. The default Linux kernel is known as the mainline. It is maintained on <a href="https://www.kernel.org/" target="_blank"> kernel.org</a>, and the changes in it are governed by a large body of professionals, most of which are employed by large Linux companies, with the ultimate veto vote in the hands of the Linux founder, Linux Torvalds. Every distribution uses its own kernel adaptations. The kernels between different Linux distributions are often not mutually compatible.</li> <li data-xf-list-type="ul">Graphical interface - As we mentioned earlier. Do remember that Linux distributions can run WITHOUT one, if needed. For example, most server and enterprise flavors are normally configured without a desktop interface, because it is not needed.</li> <li data-xf-list-type="ul">Applications - Each distributions packages its own set. You can enhance the default by installing additional programs of your own. This is done through centralized management facilities very similar to Windows update, known as package managers. Quite often, each distribution uses its own unique facility.</li> <li data-xf-list-type="ul">Package manager (Linux update) - We are now introducing a new concept, but do not be alarmed. This Android Play Store. This is exactly that. Because of the free and open-source model, most Linux software can be distributed in a centralized manner from common servers. These servers are known as repositories. Think of them as Windows update servers really, only custom tailored per distribution. The software component that communicates with the repositories and allow users to download software as well as updates is known as the package manager. Most distributions use their own unique package manager.</li> </ul><p>Let us compare to Windows then, shall we? In Windows, you have the kernel plus the one default desktop interface. You also have applications, Windows update, plus you must manually download programs that are not part of the standard Windows bundle, due to licensing restrictions.</p><p></p><p>In Linux, you have distributions. Each distribution comes with its own slightly modified kernel, its own default desktop interface plus optional additional other desktop interfaces, its own set of applications, and its own package manager, a Linux update facility that allows the system to install programs and updates for the WHOLE distribution, because of the very convenient licensing rules.</p><p></p><p>Disclaimer: Linux distributions can ship only a subset of all the available software in the world. For example, if you need specialized payware, you will still need to manually download and install the software. But for the free and freely-redistributable components, Linux distributions can provide free updates, updates and additional downloads from their centralized repositories.</p><p></p><p>Now let's talk a little more about desktop environments and package managers, because they seem to be the big differences when compared to Windows.</p><p></p><p><span style="font-size: 15px"><strong> Desktop environment </strong></span></p><p>A desktop environment (DE) is an <a href="http://en.wikipedia.org/wiki/Desktop_environment" target="_blank">implementation</a> of the desktop metaphor made of a bundle of programs running on top of a computer operating system, which share a common graphical user interface (GUI). A desktop environment typically consists of icons, windows, toolbars, folders, wallpapers and desktop widgets. These components are controlled by a piece of software called a <a href="http://en.wikipedia.org/wiki/Window_manager" target="_blank">window manager</a>, which is responsible for the placement and appearance of windows within a windowing system in a graphical user interface.</p><p></p><p>Now, we dive one more step deeper - the window manager.</p><p></p><p>In Windows, you have the Desktop Window Manager (dwm.exe), which does the hard work in displaying the Windows interface to users. Do note that DWM is tightly coupled with the kernel's graphical subsystems and is largely non-replaceable.</p><p></p><p>In Linux, you have the X windows system, which does pretty much the same thing as DWM, except that the nomenclature of concepts and terms is different. The X sits between the kernel and the graphical interface. The X is composed of the display server and the window manager. This allows it to be separate from the kernel, unlike Windows.</p><p></p><p>So, the desktop environment now comes down to the following:</p><p></p><ul> <li data-xf-list-type="ul">User applications.</li> <li data-xf-list-type="ul">Graphical interface.</li> <li data-xf-list-type="ul">Display server + windows manager.</li> </ul><p>Underneath these, you have the kernel and the hardware. So what is a desktop environment? It is a set of programs, an interface, a display server, and a window manager. Let us introduce a few.</p><p></p><p><span style="font-size: 15px"><strong> Gnome Desktop Environment </strong></span></p><p>This is a <a href="http://en.wikipedia.org/wiki/GNOME" target="_blank">desktop</a> environment that you will most likely encounter if you install the default version of Fedora, for example. GDE uses the Gnome Shell as its graphical interface, X11 protocol to talk to the display server, X.Org display server, and Mutter window manager. Gnome Desktop Environment is focused on simplicity and ease of use, with few options shown to the user.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2012_2/gnome-36-activities.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><span style="font-size: 15px"><strong> K Desktop Environment </strong></span></p><p><a href="http://en.wikipedia.org/wiki/KDE" target="_blank">KDE</a> is a default environment for openSUSE. It utilizes the KDE Plasma via X11 or Wayland protocol to talk to X.Org or Weston display server, and it uses the KWin window manager. KDE is more Windows-like in appearance, and it features option-rich menus.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2013_2/opensuse-13-1-installed-desktop.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><span style="font-size: 15px"><strong> Unity desktop environment </strong></span></p><p>This is the default for Ubuntu, and only Ubuntu. <a href="http://en.wikipedia.org/wiki/Unity_%28user_interface%29" target="_blank">Unity</a> mostly relies on Gnome components, but Canonical has expressed desire to use its own implementation of a new display server called Mir, rather than using the Wayland/Weston combination, which has caused somewhat of a <a href="http://netrunner-mag.com/the-linux-display-saga/" target="_blank">rift</a> in the Linux community. Unity has been designed with multiple form factors in mind, including touch, because of the Canonical's desire to use Ubuntu on smartphones and tablets.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2013_2/ubuntu-saucy-desktop.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><span style="font-size: 15px"><strong> Cinnamon desktop environment </strong></span></p><p>Cinnamon <a href="http://en.wikipedia.org/wiki/Cinnamon_%28software%29" target="_blank">DE</a> is the default in Linux Mint. Originally, Cinnamon uses a fork of Gnome Shell, but recently it has removed all dependencies on the graphical interface and uses its own internal implementation. The default window manager is called Muffin.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2013_1/olivia-desktop-final.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><span style="font-size: 15px"><strong> Other desktop environments </strong></span></p><p>There are many others. But I have purposefully avoided mentioning them to avoid confusion. For example, there's is also <a href="http://en.wikipedia.org/wiki/Xfce" target="_blank">Xfce</a>, which uses Xfce4-panel + X11 + Xorg + Xfwm, then there's <a href="http://en.wikipedia.org/wiki/MATE_%28desktop_environment%29" target="_blank">MATE</a>, which uses Gnome Panel + X11 + Xorg + Metacity. Then, <a href="http://en.wikipedia.org/wiki/LXDE" target="_blank">LXDE</a> uses LXSession + X11 + LXDM + Openbox. There are still more. To make things even worse, there are also special, compositing window managers available for older desktop environments, including the popular Compiz. And now I dare show this image:</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2014_1/ultimate-linux-guide-de-schema.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Note: Image taken from <a href="http://en.wikipedia.org/wiki/File:Schema_of_the_layers_of_the_graphical_user_interface.svg" target="_blank">Wikimedia</a>, licensed under <a href="http://creativecommons.org/licenses/by-sa/3.0/deed.en" target="_blank">CC BY-SA 3.0</a>.</p><p></p><p><span style="font-size: 18px"><strong> Linux package managers </strong></span></p><p>As we have mentioned earlier, Linux package <a href="http://en.wikipedia.org/wiki/Package_management_system" target="_blank">managers</a> are collections of software tools designed to automate the process of installing, upgrading, configuring, and removing software packages for a computer's operating system in a consistent manner. The said consistency is maintained by using a database of software dependencies and version information to prevent software mismatches and missing prerequisites. Packages distributed by package managers consist of software, applications and data. These packages also contain metadata, such as the software's name, description of its purpose, version number, vendor, checksum, and a list of dependencies necessary for the software to run properly. Upon installation, metadata is stored in a local package database.</p><p></p><p>A package manager normally work as follows:</p><p></p><ul> <li data-xf-list-type="ul">Package manager is launched.</li> <li data-xf-list-type="ul">User performs an action - installation, upgrade, etc.</li> <li data-xf-list-type="ul">Package manager consults its internal list of servers - repositories - and contacts them with the requested action, including resolved dependencies and other requisites.</li> <li data-xf-list-type="ul">Necessary packages are downloaded and installed.</li> </ul><p>This is exactly how Windows update works, except that package managers can be used to manage the whole distribution, except a very small number of proprietary components and manual installations done by the user.</p><p></p><p>The licensing terms of a distribution dictate what software can be bundled with the distribution, what software can be made available for download from the repository, and what software may only be hosted at the official vendor servers. For example, in some countries, distribution of MP3 codecs is not legal without a royalty fee. Therefore, the user will have to initiate the download of codecs using the package manager. Another scenario is that the user will have to configure an additional repository to be able to download a piece of third-party software.</p><p></p><p>Like desktop environments, there are <a href="http://netrunner-mag.com/manage-my-package/" target="_blank">many</a> package managers. To make things worse, here too, we are dealing with several layers of complexity and fragmentation. Package managers are normally composed of the following:</p><p></p><ul> <li data-xf-list-type="ul">Graphical interface - a visual tool much like Windows update or Android Play Store.</li> <li data-xf-list-type="ul">Command line interface - a command prompt (cmd) like work environment.</li> <li data-xf-list-type="ul">Underlying logic engine - the software that resolves dependencies and controls the system.</li> <li data-xf-list-type="ul">Underlying binary format - packages are archived in a unique way.</li> </ul><p>Now, let's us briefly explore some of the package managers and the different ways they can be used. We will touch on the repository management, additional third-party sources, installation of software, and more in greater detail later in this guide.</p><p></p><p><span style="font-size: 15px"><strong> Yellowdog Updater, Modified (YUM) </strong></span></p><p>Borrowing some from my Netrunner article, this is the default package management framework in RedHat-based distributions. For you, this means Fedora. Now, to complicate things still further, the graphical interface used with YUM depends on the desktop environment. YUM can be used with Apper in KDE, or it can be used with YUM Extender in an older implementation of Gnome, version 2.x as opposed to the recent 3.x family. The command line is identical, and it invoked by the yum command. We still have not discussed Linux command line, but we will soon enough.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2014_1/ultimate-linux-guide-yum-frontend.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><span style="font-size: 15px"><strong> ZYpp (libzypp) </strong></span></p><p>This is the default package manager in openSUSE. The frontend is called YaST, and the command-line component is called zypper.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2014_1/ultimate-linux-guide-zypp-yast.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><span style="font-size: 15px"><strong> Advanced Packing Tool (APT) </strong></span></p><p>APT is used in many Linux distributions, including Ubuntu and Linux Mint. There are many frontend components available for APT. To name a few, there are Ubuntu Software Center, Muon, Synaptic, and many others. The command line component is apt, but the full usage depends on the invocation of a <a href="http://www.dedoimedo.com/computers/aptitude.html" target="_blank">desired</a> function.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2014_1/ultimate-linux-guide-apt-usc.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><span style="font-size: 15px"><strong> Other package managers </strong></span></p><p>Like with the desktop, there is a very long tail of package managers and their implementations. Let's do a bit of a name dropping. Puppy Linux uses its own package manager called PETget. Slackware uses slackpkg, Gentoo uses Entropy, Archlinux uses pacman, and so forth. It's really complicated. And hardly the bottom of our stack.</p><p></p><p><span style="font-size: 15px"><strong> Underlying binary format </strong></span></p><p>The Linux reality also becomes a little more difficult when you consider the fact that package managers work with multiple, mutually-incompatible package formats. To give you the best of analogy, think of Windows cabinet files (CAB) and Setup information files (INF). Together, these two can be used to define an installation package, for example.</p><p></p><p>In Linux, there are several package types. The most popular ones include:</p><p></p><ul> <li data-xf-list-type="ul">RedHat Package Manager (RPM) format - RPM files are archives that contain installation files and scripts, which are then installed in the right places in the Linux filesystem structure. RPM is mostly used with RedHat and SUSE Linux flavors, as well as other distributions that are partially based on these two.</li> <li data-xf-list-type="ul">Debian (DEB) format - DEB files do the same thing, except the format is different. It is not possible to use Debian files on RPM-enabled systems, and vice versa. Package files can be converted, but due to significant differences in the architecture, the installations will probably not work. DEB is used by all Debian-based distributions. Debian is a distribution itself, but it is a foundation for many others, including Ubuntu, Linux Mint, and more.</li> </ul><p>Both RPM and DEB files can be managed directly, without package managers. Users can install, remove or upgrade installed software. This is very similar to running Windows MSI or EXE installer filers manually, rather than going through Windows update, for example. On top of that, regardless whether packages are being installed using a package manager or manually, RPM and DEB systems also have their own internal databases, which are used to manage the consistency of installations.</p><p></p><p>Additional package formats exist, including PUP, PET, TGZ, XZ, and more.</p><p></p><p>As you can see, most package managers have a graphical and command line interface elements. This means you can manage software in a distribution even without a desktop environment. That's our next topic.</p><p></p><p><span style="font-size: 18px"><strong> Linux command line </strong></span></p><p>Let's talk about the Windows command line first. Believe it or not, Windows has a very rich and powerful command line. Several implementations really. There's the standard command prompt, and you will sometimes want and <a href="http://www.dedoimedo.com/computers/windows-7-sp-slipstream.html" target="_blank">need</a> to use it. Then, there's the new <a href="http://www.dedoimedo.com/computers/powershell.html" target="_blank">PowerShell</a>. Last but not the least, let us not forget the whole <a href="http://www.dedoimedo.com/computers/windows-wmic.html" target="_blank">WMIC</a> framework, which really lets you control the whole of Windows using command line only.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2011_2/wmic-sample.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2013_2/win7-slipstreaming-mount-done.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Linux command is very similar, except that you can launch it from within the desktop, much like Windows, but also on a system that runs no desktop. The command line is then usable through what is called a console. Imagine your monitor showing a blank black monitor with a blinking cursor in the top left corner, and a tiny prompt marked $ or # or some other symbol. This is exactly that.</p><p></p><p>All Linux systems have multiple consoles available, which you can switch between using keyboard shortcuts. This allows you to work in both the graphical and command-line interfaces at the same time. We will address this soon.</p><p></p><p>So what does one do on the command line? One executes commands. How is this done? Well, let us briefly touch on what the user actually sees and does when working with the command line.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2014_1/ultimate-linux-guide-console.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>The blinking prompt, so to speak, is not just some ethereal entity. A console itself is a container. A special program runs inside the console window called a shell.</p><p></p><p>A Linux <a href="http://en.wikipedia.org/wiki/Unix_shell" target="_blank">shell</a> is a command-line interpreter or shell that provides a traditional user interface. Users direct the operation of the computer by entering commands as text for a command line interpreter to execute, or by creating text scripts of one or more such commands. The most popular Linux shell is <a href="http://en.wikipedia.org/wiki/Bash" target="_blank">BASH</a>. There are others, like TCSH.</p><p></p><p>Users typically interact with a Unix shell using a terminal emulator. Terminal emulator is a program that emulates the behavior of a standalone console. For example, to give you a good analogy, the Windows CMD is an emulator, because it wraps the program in a desktop window with its own additional functions, but inside, it behaves like the old DOS prompt. The same thing in Linux.</p><p></p><p>Popular terminal emulators include xterm, Konsole, Gnome Shell, and many others. All of these are programs that you can launch on a typical Linux system, like you would anywhere else. Open a desktop menu, find the program, and launch it.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2014_1/ultimate-linux-guide-menu-launch-emulator.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><span style="font-size: 15px"><strong> Popular commands </strong></span></p><p>The fine details of how Linux shells are used are beyond the scope of this article. Still, I am going to give you a brief overview. Let's look again at that prompt, shall we.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2014_1/ultimate-linux-guide-console.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>What you see is the name of the user currently running the shell, which is roger, the name of the host, which is roger-laptop, a divider in the form of a colon mark, a tilde sign which signifies that the current folder we are working is the home folder of the current user, and the dollar sign is the standard sign for a regular user in Linux.</p><p></p><p>Now, the user can run commands. For example, dedoimedo.exe. This is what we want to run. So how would you go about doing that. Very much like Windows, with some small differences in syntax.</p><p></p><p>dedoimedo.exe would execute the command by searching a special list of default paths where the system expects to find the dedoimedo.exe command. If the command does not exist there, it cannot run. In other words, it is not in the PATH.</p><p></p><p>./dedoimedo.exe would run the command in the current folder. BTW, let's learn another word. Directory. It is not that strange, and in DOS, folders were called directories, and there's even the command dir, to display the contents thereof.</p><p></p><p>So yes. What's the big difference from the earlier attempt. Dot and slash. We now learn another concept, and that is that every Linux directory has two special hard links. BTW, hard links are a type of file. Anyhow, a single dot (.) is a hard link to the directory itself, while two dots (..) is a link to the parent directory, i.e. one above.</p><p></p><p>Again, this is nothing magical. This is also true in DOS. Familiar with cd .. to go back up one level? Same thing here. This is your way to navigate up and down the hierarchy of directories.</p><p></p><p>Slash (/) is the default delimiter in Linux, denoting a new level of hierarchy in the file system. In DOS and Windows, it is the back slash (\). So now, things are really familiar. What you would mark in Windows as c:\users\roger would become something like c:/users/roger. This is not fully correct, but bear with me.</p><p></p><p>Therefore, dot slash (./) means execute the command in the parent directory, followed by the file name itself. Likewise, ../dedoimedo.exe would try to look for execute the command in the directory one level up, and ../../../dedoimedo.exe would go three levels up.</p><p></p><p>How far up, you ask?</p><p></p><p>Well, In Linux, the top of the filesystem hierarchy is marked with the slash (/). This is known as the root of the filesystem, because everything originates there. And compared to Windows, there are no multiple roots. While in Windows you have c:, d:, e: and others, in Linux there's only one root. You can compare root to My Computer, if you want.</p><p></p><p>Therefore, you can now execute the dedoimedo.exe file using a full path rather than a relative path, like before. Using the earlier analogy, /users/roger/dedoimedo.exe is the full path to our command. In Linux, users' home directories are normally marked as /home, and so it becomes /home/roger/dedoimedo.exe.</p><p></p><p>Now, we can finally play with commands. Linux commands can be shell builtin commands, in which case there is no full path. Change directory (cd) is a good example. Or they can be external commands, located somewhere in the filesystem. Commands take options, flags, switches, and arguments, much like Windows.</p><p></p><p>We mentioned dir earlier. In DOS, you can do just dir, but you can also do dir /? to get all the options, or dir /p to pause the run when the screen buffer fills, /a to show all attributes, /l to user lowercase, and more.</p><p></p><p>Linux commands also take these extra options. How would you know, though? For any command, you can do a couple of neat tricks to learn more.</p><p></p><p>man command</p><p></p><p>This will invoke the manual page for the command. Think of it as pressing F1 inside a console. You will get a long, detailed explanation what the command does and how it can be used. You can also always read man pages <a href="http://linux.die.net/" target="_blank">online</a>, if you want.</p><p></p><p>command -h or command --help</p><p></p><p>This will display a shortened help, similar to Windows /?, allowing you to quickly master the commands you want and need. For most people, the second option is faster, but not necessarily better for learning.</p><p></p><p><span style="font-size: 15px"><strong> Top 20 commands & builtins </strong></span></p><p>And now, here are the top 20 commands, which will help you find your way around during the first few hours of your use of Linux. Please note that this is just the tip of the iceberg, and therefore, you should not think you're done after you have executed these. Remember, Linux is case-sensitive.</p><p></p><p>ls - This command with list files. Like DOS dir. It also has many flags. For example, -a will list all files, including hidden ones. -l will list all file attributes, including owner, size, permissions, full path, etc.</p><p></p><p>ls -ltr /home/roger</p><p></p><p>ps - This command will display the running processes in a list. Think of it as a one-time snapshot of a command line task manager. The exact details of this command works, and what all the little fields mean is beyond the scope right now, but you might want to look at my extremely advanced and extensive hacking articles <a href="http://www.dedoimedo.com/computers/linux-cool-hacks.html" target="_blank">one</a> and <a href="http://www.dedoimedo.com/computers/linux-cool-hacks-more.html" target="_blank">two</a> and <a href="http://www.dedoimedo.com/computers/linux-cool-hacks-3.html" target="_blank">three</a> and <a href="http://www.dedoimedo.com/computers/linux-cool-hacks-4.html" target="_blank">four</a>. Too advanced for you right now, you've been warned!</p><p></p><p>ps -ef</p><p></p><p>cd - This is a shell built in. It allows you to change directories. cd <path>, either relative or absolute, will take you where you want to go, provided the path exists. Some special options exist. cd - will take you to the previous directory. cd on its own will change your path into your home directory. cd ~ will do the same thing.</p><p></p><p>cd /home/Movies</p><p></p><p>pwd - This command will show your current location in the filesystem</p><p></p><p>pwd</p><p></p><p>cat - This command lets you print the content of a text file to screen, or to a file.</p><p></p><p>cat "/home/special\ file\ with\ spaces"</p><p></p><p>less - This is a very basic text viewer. Like cat, you can use it to see file contents, but you the stream will not run uninterrupted, you can read screen buffer at a time, back and forth, and even do some basic search.</p><p></p><p>less /var/log/messages</p><p></p><p>which - Executed against a program name, it will show the full path for the program.</p><p></p><p>which firefox</p><p></p><p>mkdir - This command lets you create directories. The -p flag lets you nest them.</p><p></p><p>mkdir -p /home/dirs/in/depth</p><p></p><p>touch - This command will create empty, 0-length files.</p><p></p><p>touch me</p><p></p><p>cp - This command will copy one or more files.</p><p></p><p>cp igor igor.bak</p><p></p><p>mv - And this one will move (cut it).</p><p></p><p>mv igor1 igor2</p><p></p><p>rm - Warning! This command will delete files and/or directories. Remember, with the right privileges and the use of wrong permissions, you can easily destroy your system. It is very important to be careful when running the rm command.</p><p></p><p>rm /home/roger/certain-unneeded-file</p><p></p><p>chmod - This command can change permissions on a file or a directory. For example, you may want to change a file so that it is readable only. In that case, you will remove the other permissions, leaving only read in place. For more details on the Linux file permissions management, take a look at <a href="http://blog.pluralsight.com/linux-file-permissions" target="_blank">this</a> tutorial.</p><p></p><p>chmod 700 /home/secrets.txt</p><p></p><p>chown - Similar to the command above, chown allows you to change the user and group ownership of a file. For instance, change it from roger to bodger.</p><p></p><p>chown roger:mygroups /tmp/file.old</p><p></p><p>echo - This is a very useful and practical command that can display lines of text and values stored in the shell <a href="https://help.ubuntu.com/community/EnvironmentVariables" target="_blank">environment variables</a> to the screen. For example, echo $PATH will display the contents of the PATH variable. So if you have a problem with running a file, then you might want to check whether its path is included in the PATH. You can also use it on conjunction with rm to learn first what kind of files you would remove before actually deleting.</p><p></p><p>echo $DISPLAY</p><p></p><p>export (in BASH) - This command lets you configure environment variables, so that programs that rely on their presence can use them. For example, when you try to run a command without using the full path, the shell itself will consult the PATH variable to determine where to look for the file. If you need to change the variable, you will use the export command. The TCSH equivalent is setenv.</p><p></p><p>export JAVA_HOME=/usr/lib/java</p><p></p><p>du - This command lets you check the estimated usage of a directory. This is useful if you want to check the space usage or a quota of a particular directory on your system.</p><p></p><p>du -Shi /home/videos</p><p></p><p>df - This commands lets you see the usage of all mounted filesystems. The word mounted means effectively in use. This is a very handy way to check what your disks contain. The usage is equivalent to the disk management facility in Windows.</p><p></p><p>df -lhT</p><p></p><p>find - This command can be used to search for files on your filesystems. The evil twin of the find command is the locate command. The big difference is that locate uses a pre-built database, which makes it faster, but the results might not fully reflect the actual most up to date content of the filesystem.</p><p></p><p>find . -name \*movie\*</p><p></p><p>grep - This command can be used to search for string patterns in text files. Let's say you have several files, and you want to look for words doctor and sister in there. Well then, a typical search with grep would be:</p><p></p><p>grep -Eir 'doctor|sister' /home/*</p><p></p><p>There are many other useful commands. For example, top is the command line task manager. With kill, you can terminate offending processes. You can create archives, like for instance ZIP, TAR, TGZ, BZ2, and others from files and directories using the tar command. You can print the beginning and end of files with head and tail commands, respectively. You can also manipulate text stream with the very complex yet awesome programs sed and awk. Then, dd lets you write direct copies of files. And the list goes on and on.</p><p></p><p>Most importantly, commands can be chained - using the pipe (|) symbols. This lets you stream the output of one command as the input of another, and create a complex execution. For example, list a content of a file, sort if alphabetically, then count unique entries. This kind work is the basic principle for scripting.</p><p></p><p>cat file.txt | sort | uniq -c</p><p></p><p>You can also do system administration from the command line. Install software, schedule updates, shutdown or reboot the system, start or stop services, and more. Now, let us see three examples of how we can use package management from the command line. We will demo using the three leading utilities we mentioned earlier:</p><p></p><p>apt-get install firefox</p><p></p><p>yum update kernel-devel</p><p></p><p>zypper search vlc</p><p></p><p>Fully mastering the command line is a long and arduous journey. You want to learn how to write your own scripts and programs. You want to able to run unattended tasks that maintain your system, or combine the execution of multiple programs into one.</p><p></p><p>At this point, my <a href="http://www.dedoimedo.com/computers/linux_commands.html" target="_blank">highly</a> useful commands & configurations tutorial might be of use. Furthermore, some neat BASH <a href="http://www.dedoimedo.com/computers/bash-tricks.html" target="_blank">tricks</a> could also be of use.</p><p></p><p><span style="font-size: 15px"><strong> Filesystem layout </strong></span></p><p>We talked about commands. But what about the system that contains these commands. So maybe a brief overview of the filesystem hierarchy and architecture is needed. Again, we will use the Windows analogy to make it simple.</p><p></p><p>So in Windows, you have the C: drive. Under it, there's C:\Windows, which contains core system files. There's Users, which contains users' personal folders. There's C:\TEMP, which is used for temporary files. However, there might be multiple drives on your system, and there is no single view to check them all, unlike the root in Linux. The closest analogy would be My Computer. Anyhow, the classic Linux filesystem hierarchy will look something like the following:</p><p></p><ul> <li data-xf-list-type="ul">/bin contains basic programs (binaries) like cat, ls, awk, etc.</li> <li data-xf-list-type="ul">/boot contains files necessary to boot the system.</li> <li data-xf-list-type="ul">/etc contains critical system configuration files.</li> <li data-xf-list-type="ul">/home contains users' directories EXCEPT one special user.</li> <li data-xf-list-type="ul">/lib contains system libraries.</li> <li data-xf-list-type="ul">/opt contains optional installations.</li> <li data-xf-list-type="ul">/root is the home directory of the special user called root.</li> <li data-xf-list-type="ul">/tmp contains temporary files.</li> <li data-xf-list-type="ul">/usr contains programs like Firefox, VLC, LibreOffice, games.</li> <li data-xf-list-type="ul">/var contains system logs and runtime files.</li> </ul><p>There are other paths, but they are not important right now. Each one of these can be called a directory, but it can also be called a filesystem, because the actual data may reside on a remote server. For example, /home directories could be network drives, formatted with their own filesystem.</p><p></p><p>The default Linux filesystem format is <a href="http://en.wikipedia.org/wiki/Extended_file_system" target="_blank">EXT</a> (at revision 4), but many other file format exist, including EXT2, EXT3, BTRFS, XFS, and more. In a nutshell, they are equivalent to the Windows FAT, FAT32 or NTFS file formats, with many additional differences.</p><p></p><p>Most if not all Linux distributions can natively see and use (read & write) to Windows filesystems, whereas Windows does not have a default ability to do the same thing with Linux filesystems. Therefore, if you connect a drive formatted with one of the Linux filesystems to a Windows box, it will be visible but it will appear unformatted or unusable.</p><p></p><p><span style="font-size: 15px"><strong> Disk layout </strong></span></p><p>One last thing before we go up and piece our complex puzzle into a single piece. Disk management. We did mention the du and df commands, but the output may be confusing to someone who has never worked with Linux before. Once you figure it out, it is fairly trivial, but not the first time.</p><p></p><p>I have explained the disk notation in my tutorials linked above. But we shall <a href="http://www.dedoimedo.com/computers/gparted.html" target="_blank">briefly</a> recap. Windows marks disks the following way: Disk<number>, e.g. Disk0, Disk4, etc. Partitions are marked with letters, e.g. K:, M:.</p><p></p><p>Linux marks disks based on their controller type. IDE disks are marked hd<letter>. SATA or SCSI disks are marked sd<letter>. For example, the third SATA disk is sdc. Partitions are marked numerically, from 1 onwards, with the first four reserved for primary partitions, and numbers 5 and above for logical partitions. For example, the second primary partition on the first IDE disk is hda2. The first logical partition on the first SATA disk is sda5. This is correct for the MS-DOS partition table. With the <a href="http://en.wikipedia.org/wiki/Disk_partitioning" target="_blank">GPT</a> scheme, this are slightly different, but still the notation is correct. Virtual machine disks used inside virtualization software may be marked with vd or xd or other letter combinations.</p><p></p><p><span style="font-size: 15px"><strong> Special devices </strong></span></p><p>Floppy disks are marked as fd, CD-ROMs often as sr or cd. Special devices like cameras, scanners or printers may get their own unique labeling scheme, which can depend on the vendor, model type as well as the specific distribution implementation.</p><p></p><p><span style="font-size: 18px"><strong> Let's assemble all together </strong></span></p><p>Now, let's take a look at our distributions once more.</p><p></p><p>Ubuntu is now a special, modified Ubuntu kernel + Unity desktop environment + DEB file format + apt command line package manager + Ubuntu Software Center GUI package manager + its own application stack.</p><p></p><p>Linux Mint uses its own kernel + Cinnamon + DEB file format + apt + Software Center + its own application stack. The same applies to Fedora and openSUSE and many dozens of other distributions. And there's STILL more granularity, which we have not touched yet, but we might elaborate later on.</p><p></p><p><span style="font-size: 18px"><strong> What do we have so far? </strong></span></p><p>Let us recap all of what we have learned in this tutorial.</p><p></p><p><span style="font-size: 15px"><strong> Significant complexity </strong></span></p><p>As you have learned so far, Linux is not a single entity. It is a complex matrix of components. Mastering Linux means mastering many different things. And if you are interested in trying different distributions, it often means you learning a complete stack of applications, desktop behavior, package management, and more.</p><p></p><p>In Windows, there is only one dimension. In Linux, it's the number of distributions multiplied by the number of desktop environments multiplied by the number of package managers multiplied by the number of application bundles. It is really very difficult to know them all well, and they are sometimes very different. Therefore your Linux exploration should initially focus on a single distribution and its own unique set.</p><p></p><p><span style="font-size: 15px"><strong> Command line is useful </strong></span></p><p>One thing that can help you if you want to try multiple Linux distributions is to use the command line, because you will maintain a higher level of consistency than with GUI tools, which significantly differ between desktop environments.</p><p></p><p><span style="font-size: 18px"><strong> So where do I find Linux? </strong></span></p><p>Well, now that we know what Linux is all about, we CAN finally download it. In fact, we will download and use a Linux distribution, one of the many that we have mentioned earlier. Now, let's elaborate on the available choices.</p><p></p><p><span style="font-size: 15px"><strong> Major Linux distributions </strong></span></p><p>I have mentioned four, and we will focus on these four. For new users, going into the full list of several HUNDRED available Linux distributions is a bad idea. And now that we are here, let's introduce another word - distro, short for distribution.</p><p></p><p>Ubuntu is one of the most popular Linux distros in the world. It is very easy to install and use, and it has a large install base. Many veteran Linux users recommend this particular flavor of Linux to new users. If you are interested, please take a look at my <a href="http://www.dedoimedo.com/computers/ubuntu-trusty-tahr-laptop-ultrabook.html" target="_blank">review</a> of the latest edition to get a hunch what this is all about.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2013_2/ubuntu-saucy-desktop.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Ubuntu family is very rich, so you might also be interested in <a href="http://www.dedoimedo.com/computers/kubuntu-salamander.html" target="_blank">Kubuntu</a>, which comes with the KDE desktop, or <a href="http://www.dedoimedo.com/computers/xubuntu-salamander.html" target="_blank">Xubuntu</a>, which comes with the Xfce desktop. These two are more like Windows in spirit and feel, so new users might find them easier to master.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2013_2/kubuntu-saucy-final.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2013_2/xubuntu-saucy-nvidia-running.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Linux Mint is another highly popular distro, perhaps <a href="http://www.dedoimedo.com/computers/linux-mint-petra.html" target="_blank">even</a> more than Ubuntu according to some sources. Now, this is really an excellent choice for most Windows users, because it comes with pretty much everything pre-configured out of the box. I even <a href="http://www.dedoimedo.com/computers/best-distro-2013.html" target="_blank">voted</a> this the best distro of 2013. Both Mint and Ubuntu offer five years of free updates for their long-term support editions.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2013_2/petra-desktop-final-1.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>openSUSE is another possible choice. In the last years, it has waned a little in popularity, but it can still be a strong candidate. You might want to take a look at my <a href="http://www.dedoimedo.com/computers/opensuse-13-1.html" target="_blank">latest</a> review for additional impressions.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2013_2/opensuse-13-1-installed-desktop.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Fedora is an interesting distribution in that it ships with no proprietary software, so if you need codecs for music or video, you will have to install them separately. It is also considered relatively unstable, because it often introduces a lot of new and modern technology. Plus, the support cycle is quite short. However, it <a href="http://www.dedoimedo.com/computers/fedora-20-kde.html" target="_blank">can</a> be a good choice.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2013_2/fedora-20-desktop-cool.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><span style="font-size: 18px"><strong> How do I start? </strong></span></p><p>Let's say that this article has actually convinced you to try Linux. Before you do any hard ground work, you must read some more. I most warmly recommend that you invest a little more time reading several guides that I have put together recently, which explain in fanatic detail all that you need to know to run Linux at home, safely, successfully.</p><p></p><p><span style="font-size: 15px"><strong> How do I install Windows? </strong></span></p><p>This is the first question you should ask. You should NOT use Linux, unless you are fully confident in your ability to install Windows. This may sound harsh and cruel, but believe me, it is for your <a href="http://netrunner-mag.com/windows-user-wanna-try-linux-checklist/" target="_blank">own</a> good.</p><p></p><p>To wit, you should read my Windows 7 installation <a href="http://www.dedoimedo.com/computers/windows-7-install.html" target="_blank">guide</a>, and then the <a href="http://www.dedoimedo.com/computers/windows-8-install.html" target="_blank">same</a> thing for Windows 8. Not only do both these articles have a wealth of knowledge on the subject matter, they also touch on all the extra steps needed for using Linux at home.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2014_1/windows-8-installing-2.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><span style="font-size: 15px"><strong> How do I install Linux? </strong></span></p><p>Now, after you have mastered the step above, you are ready to attempt to install a Linux distribution of your own. You may want to start by testing in a <a href="http://www.dedoimedo.com/computer_software.html#virtualization" target="_blank">virtual</a> machine first. This way, you can learn from your mistakes toward the real thing.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2014_1/ultimate-linux-guide-virtualbox.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>I have written a ton of articles on how to install a wide range of Linux distributions. You might want to start with the <a href="http://www.dedoimedo.com/computers/ubuntu-14-04-install-guide.html" target="_blank">latest</a> Ubuntu guide. Then, take a look at an <a href="http://www.dedoimedo.com/computers/ubuntu-install.html" target="_blank">older</a> one. After that, go back some time in history and consult <a href="http://www.dedoimedo.com/computers/opensuse-install.html" target="_blank">some</a> of <a href="http://www.dedoimedo.com/computers/install_kubuntu.html" target="_blank">my</a> <a href="http://www.dedoimedo.com/computers/install_linuxmint.html" target="_blank">other</a> installation guides. Although they have been written many years ago, they are relevant and accurate.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2014_1/ubuntu-install-slide-1.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><span style="font-size: 15px"><strong> How do I use Windows and Linux together? </strong></span></p><p>After you have successfully mastered both a separate, standalone Windows and Linux installation, you are ready to use the two at the same time. This is known as dual-boot, and sometimes also referred to as tandem, or side-by-side installations.</p><p></p><p>You should take a look at my dual-boot <a href="http://www.dedoimedo.com/computers/dual_boot.html" target="_blank">tutorial</a> for Windows XP and Kubuntu, as well as the more recent <a href="http://www.dedoimedo.com/computers/dual-boot-windows-7-ubuntu.html" target="_blank">one</a> featuring Windows 7 and Ubuntu, and finally, the <a href="http://www.dedoimedo.com/computers/dual-boot-windows-8-ubuntu.html" target="_blank">latest</a> one featuring Windows 8 and Ubuntu 14.04. Now, the world of dual-booting opens up a whole new world of additional possibilities, as well as technical complications.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2014_1/dual-boot-windows-8-ubuntu-new-layout.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>You will need to take into consideration data backup, system imaging, bootloader configuration, disk and partition management, and many other issues. All of these topics are covered in detail in the guides above.</p><p></p><p><span style="font-size: 18px"><strong> How does Linux work? </strong></span></p><p>So let us say that you decided to give this a try. Now, I am going to talk a little about how Linux works, from boot to desktop, the functionality, the accounts, as well as the notable difference from Windows, and that is Linux can run in a live session. This means that before you install a machine, you can boot into a fully functional environment that is visually almost 100% identical to what the system will look like after the installation.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2014_1/ultimate-linux-guide-live-cd.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>In the live session, you can then test hardware compatibility, look & feel, check programs, and only then decide whether you wish to install this particular flavor of Linux. This is a huge advantage compared to Windows. Furthermore, this allows you to use Linux as recovery systems, because you can start it on non-bootable hosts and repair them.</p><p></p><p><span style="font-size: 15px"><strong> Linux boot process </strong></span></p><p>Here is a simplified explanation on what Linux does once you power on the machine. First, there's BIOS or UEFI, which initializes the hardware. It also activates the first bootable disk that you have configured in the BIOS or UEFI menu.</p><p></p><p>It goes into the Master Boot Record (MBR) of the first bootable disk, where a bootloader is installed. The bootloader entry tells the system where to look for the kernel image and the initial filesystem (initramfs or initrd) image. Where in the aforementioned context means which disk, which partition.</p><p></p><p>The kernel image is a compressed kernel, the actually heart of the operating system. Initrd is a compressed image containing drivers for hardware, needed to initialize most of the system resources. The kernel and initrd are loaded into memory and executed.</p><p></p><p>The system initialization process (sys_init) starts the first process called init. This special process is a kernel thread, with the process identifier PID=1. Init then goes to /etc/inittab and reads the configuration. This files tells the system in which runlevel to start.</p><p></p><p><span style="font-size: 15px"><strong> Runlevels </strong></span></p><p>Linux runlevel is a complete state of a system. It is somewhat equivalent to what you would see when hitting F8 during Windows boot to get to the Safe Mode. In the Safe Mode menu, you can boot to command prompt, command prompt with networking, and more.</p><p></p><p>There are seven Linux runlevels, marked numerically 0-6.</p><p></p><ul> <li data-xf-list-type="ul">0 is the system halt state.</li> <li data-xf-list-type="ul">1 is the system rescue state - you boot here to fix system problems. It is also known as Single mode, and sometimes it is referred to as s or S. It is a runlevel with only one user, the special account we mentioned earlier called root, without desktop environment or network.</li> <li data-xf-list-type="ul">2 is a console-only runlevel, with no networking.</li> <li data-xf-list-type="ul">3 is a console-only runlevel, with full networking. This is the typical mode of use for most servers worldwide. The servers run in this mode, and users connect to them using remote shell programs, working on the command line.</li> <li data-xf-list-type="ul">4 is normally undefined and unused.</li> <li data-xf-list-type="ul">5 is the full desktop mode, like you can see in screenshots above.</li> <li data-xf-list-type="ul">6 is the reboot state.</li> </ul><p>When init selects the default runlevel, it goes into /etc/rcX.d, a directory that contains symbolic links to the /etc/init.d/ directory. Symbolic links are like shortcuts. The letter X corresponds to the runlevel. So for runlevel 5, the directory is rc5.d.</p><p></p><p>Init then starts all services using service scripts marked SXX, where XX is a number, in ascending order from 0 to 99. It tries to resolve dependencies, and then it runs the programs listed in these scripts until the system is fully booted and functional. Conversely, during shutdown or reboot, it runs the kill scripts, marked with KXX in descending numerical order.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2014_1/ultimate-linux-guide-booting.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>This is the classic invocation, and it not always correct. Some Linux distributions do not use all the seven levels, and some levels are simply identical to others. Some Linux distributions use different methods of starting services, including boot sequence mechanisms called <a href="http://en.wikipedia.org/wiki/Systemd" target="_blank">systemd</a> or <a href="http://en.wikipedia.org/wiki/Upstart" target="_blank">upstart</a>. But that's advanced stuff.</p><p></p><p>Desktop environments are also started and initialized, until the user is logged in the full desktop session. Do you remember the virtual consoles we mentioned earlier? Well, you might want to know the desktop session is shown on the seventh virtual console, which can be accessed with Ctrl + Alt + F7. Function keys F1 through F6 access command-line only sessions.</p><p></p><p><span style="font-size: 15px"><strong> Users </strong></span></p><p>Finally, we need to distinguish between two major user types. There's the system administrator user, called root, with the identified number 0 (ID=0). Then, there are regular users, with generic names.</p><p></p><p>It is a little confusing that the word root is used for three different things: the root of the filesystem tree, marked by slash (/), the root user, the system administrator user, and the root user home directory, found under /root.</p><p></p><p>You can identify these different types of users if you execute the Linux task manager. For example, from the command line, then you will see processes that belong to root, as well as other users.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2013_1/ubuntu-ringtail-high-compiz.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Root is a privileged users, and it is designed for system administration. Regular users do not have permissions to make system changes. This is similar to the limited account concept in Windows. However, in Linux, regular users can elevate their privileges through the sudo mechanism. This allows a temporary elevation of rights to perform a specific administrative task. In Debian-based distributions like Ubuntu and Mint and others, the default is to use sudo rather than authenticating as the root user. In RedHat-based distributions, the second method is more common. In both cases, you need relevant passwords.</p><p></p><p>sudo some-command</p><p></p><p>On the other hand, to switch to the root user:</p><p></p><p>su -</p><p></p><p><span style="font-size: 18px"><strong> Common desktop activities </strong></span></p><p>Now you are in a Linux desktop? So what do you do now?</p><p></p><p><span style="font-size: 15px"><strong> Getting to know Linux desktops </strong></span></p><p>Now, remember our earlier conundrum. There is no one desktop environment, so the learning process can be many-fold. It also presents me with a challenge of showing what to do, because each setup is ever so slightly different. But let's try a generic approach. Indeed, here's a desktop, it does not matter which or why:</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2013_2/petra-desktop-final-2.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>So what do we have here. In the left bottom corner, a menu, it invokes a menu very much like the Windows start menu. There's a taskbar full of icons, only this bar is called a panel, or rather, a bottom panel. In the right corner, a system area. Very much like Windows. Here's the system menu, open - this is 100% like Windows:</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2013_2/petra-mate-menu.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Yet another, even more Windowsy example:</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2012_1/netrunner-menu-app-style.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Another example with a classic menu positioned at the top:</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2012_2/opensuse-12-2-mate-mate.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /> <img src="http://www.dedoimedo.com/images/computers_years/2012_2/opensuse-12-2-mate-sonar.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>You have icons on the desktop. Click to launch them. Some desktop environments offer a double-click mantra, others, like KDE, use the single-click approach. But in a nutshell, once you get the initial fear, the installation, and the complexity of understand the Linux world, the usage becomes trivial.</p><p></p><p>There's this pair of <a href="http://netrunner-mag.com/kde-vs-gnome-system-management/" target="_blank">nice</a> <a href="http://netrunner-mag.com/kde-vs-gnome-in-daily-life/" target="_blank">articles</a> on desktop management, Gnome versus KDE.</p><p></p><p>You can also look my Netrunner desktop environment <a href="http://netrunner-mag.com/linux-desktop-environment-showdown/" target="_blank">showdown</a>, too.</p><p></p><p><span style="font-size: 15px"><strong> Common software </strong></span></p><p>The truth is, most of the software you might want to use is available in the Linux repositories, especially if you are fan of free, open-source solutions. Of course, you will not find most Microsoft and Adobe products, but many others will be there. Or you may choose alternatives.</p><p></p><p>The important thing is, you do NOT NEED to wander around the Web, looking for software. You can just use your command-line or graphical package manager, and search for the software of your liking. Most package managers are rich application stores, and they will give you star rating, screenshots, reviews, and more.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2013_1/xubuntu-ringtail-usc.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>You should also check my must-have lists, the <a href="http://www.dedoimedo.com/computers/linux-best-software-2012.html" target="_blank">new</a> and the <a href="http://www.dedoimedo.com/computers/new-cool-list-linux.html" target="_blank">older</a> one, and one for the <a href="http://www.dedoimedo.com/computers/linux-apps-non-gnome-kde.html" target="_blank">less</a> popular Linux desktop environments. Plus, I've compiled a similar guide for Windows, and it will <a href="http://www.dedoimedo.com/computers/windows-cool-apps.html" target="_blank">give</a> you a good, strong indication of how the two worlds compare. Then, I have also written many other comparison guides. On media players, on <a href="http://netrunner-mag.com/the-browser-state/" target="_blank">browsers</a>, <a href="http://netrunner-mag.com/linux-office-suite-competition/" target="_blank">office</a> software, and still more. The list is endless.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2013_2/fedora-20-apps.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><span style="font-size: 15px"><strong> Common games </strong></span></p><p>The world of gaming is truly different between Windows and Linux, although with the creation of the <a href="http://www.dedoimedo.com/computers/steamos-review.html" target="_blank">SteamOS</a>, the gap is narrowing. While you are exploring this particular aspect of the Linux world, you might want to take a look at my 100+ <a href="http://www.dedoimedo.com/computer_games.html#linux" target="_blank">game</a> reviews, all done specifically for Linux, on Linux.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2013_1/fuduntu-high-end-steam.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Furthermore, you should note that some Windows titles can be used on this new operating system using emulation and other tools, although with limited success and guarantee. The next <a href="http://www.dedoimedo.com/games/linux-games-guide.html" target="_blank">guide</a> ought to help you decide when and how.</p><p></p><p><span style="font-size: 15px"><strong> Common tasks </strong></span></p><p>What users will want to do now is something like Windows - install software and configure their system. Most distributions come with a lot of preinstalled stuff, so the housekeeping list might actually be shorter than you expect. Some distros pack codecs, games and extra programs, so no need to sweat there.</p><p></p><p>Still, you probably might want to install your printers, install Steam, try Skype, configure your Wireless, and still more. I am going to highlight two or three examples here, but then, you will want to follow my mega pimping guides for some of the leading distributions, as these howtos contain a lot of useful information.</p><p></p><p>Wireless setup example</p><p></p><p>Let's say you want to configure your Wireless. This seems like one of the first things you might wanna do. This is demonstrated with Kubuntu. Click on the Wireless radio icon, which would be the first one on the right after the digital clock and a little arrow. Then, select the desired connection. Provide your password. Choose to automatically connect. And then, press Connect. Works like any other operating system.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2013_2/kubuntu-saucy-wireless-connect.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /> <img src="http://www.dedoimedo.com/images/computers_years/2013_2/kubuntu-saucy-wireless-connected.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Desktop background change</p><p></p><p>In most Linux desktops, it will be very much right-click > desktop background. Some other desktop environments may offer a more complicated path. For example, it might be as convoluted as System menu > Preferences > Appearance, then the Background tab.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2010_2/fedora-14-more-backgrounds.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Graphical card drivers example</p><p></p><p>This is something that many you would want to know. Well, how about my Ubuntu guide on this topic, which details no less than <a href="http://www.dedoimedo.com/computers/ubuntu-ringtail-nvidia.html" target="_blank">five</a> different methods to configure and install Nvidia drivers on an Ubuntu box.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2013_1/xubuntu-ringtail-additional-drivers-installing.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Other examples</p><p></p><p>Check for updates - just like Windows:</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2013_2/opensuse-13-1-updates-shield.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Check user settings:</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2013_2/petra-user-icon.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Manage a currently playing music track:</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2013_1/olivia-banshee-volume-ok.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><span style="font-size: 15px"><strong> Pimping guides </strong></span></p><p>Here's my essential <a href="http://www.dedoimedo.com/computers/ubuntu-essential-pimping-guide.html" target="_blank">list</a> for Ubuntu. Likewise, the <a href="http://www.dedoimedo.com/computers/opensuse-pimp.html" target="_blank">same</a> tutorial for openSUSE. And then, there's <a href="http://www.dedoimedo.com/computers/fedora-pimp.html" target="_blank">one</a> for Fedora, too, so you should take a closer look. All of these explain how to install and configure many useful pieces of software, including themes, fonts, look & feel tweaks, popular programs like Steam, Skype, VLC, LibreOffice, graphical drivers, codecs, and more.</p><p></p><p><img src="http://www.dedoimedo.com/images/computers_years/2013_2/fedora-20-easylife.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><span style="font-size: 15px"><strong> Additional guides </strong></span></p><p>Some more random reading, if you are interested:</p><p></p><p>Nvidia <a href="http://www.dedoimedo.com/computers/opensuse-nvidia.html" target="_blank">setup</a> in openSUSE</p><p></p><p>Xubuntu <a href="http://www.dedoimedo.com/computers/xubuntu-pimp.html" target="_blank">pimping</a> guide</p><p></p><p>Steam setup for Linux <a href="http://www.dedoimedo.com/games/steam-linux-mint.html" target="_blank">Mint</a> and <a href="http://www.dedoimedo.com/games/steam-kubuntu.html" target="_blank">Kubuntu</a></p><p></p><p>Skype <a href="http://www.dedoimedo.com/computers/ubuntu-salamander-skype.html" target="_blank">setup</a> in Ubuntu Salamander</p><p></p><p>An older <a href="http://www.dedoimedo.com/computers/linux-printing.html" target="_blank">guide</a> on Linux printing</p><p></p><p>Working with <a href="http://www.dedoimedo.com/computers/linux-subtitles.html" target="_blank">subtitles</a> in Linux software</p><p></p><p>And there's more. Close to 1,000 articles on Dedoimedo.</p><p></p><p><span style="font-size: 18px"><strong> Best Linux resources </strong></span></p><p>Now that you have invested so much of your time, how about some more reading. Here's my short list of the finest resources for your Linux escapades, so you can become proficient and cool.</p><p></p><p>Distrowatch is your one-stop <a href="http://distrowatch.com/" target="_blank">shop</a> to finding Linux. This is the de-facto Linux distro portal, where you can find the listing of pretty much any important distro out there. You also get screenshots, links to reviews, and tons of other informations.</p><p></p><p>For Ubuntu users, Ask Ubuntu is a <a href="http://askubuntu.com/" target="_blank">very</a> good "how do I" resource. Hop yonder and start asking questions. It is the official Ubuntu support channel, in addition to Ubuntu forums, so you can find a lot of useful stuff that may help you get around.</p><p></p><p>Webup8 <a href="http://www.webupd8.org/" target="_blank">has</a> a lot of interesting tutorial for many distribution, despite a small preference for Ubuntu flavors. Tutorial on Webup8 are detailed and useful, often accompanied with command-line instructions to get things working.</p><p></p><p>LinuxCommand.org will <a href="http://linuxcommand.org/" target="_blank">teach</a> you how to use shell scripting.</p><p></p><p>HowtoForge <a href="http://www.howtoforge.com/" target="_blank">offers</a> ton of guides for servers.</p><p></p><p>And my own site, of course!</p><p></p><p><span style="font-size: 18px"><strong> Serious questions to all readers </strong></span></p><p>Now, I have a few serious questions for you, before we conclude this tutorial. First, would you like to see this article transform into a book, akin to my Apache <a href="http://www.dedoimedo.com/computers/apache_book_part.html" target="_blank">guide</a> or the Linux Kernel Crash <a href="http://www.dedoimedo.com/computers/crash-book.html" target="_blank">Book</a>, both of which proved to be fairly popular. If so, ping me.</p><p></p><p>Second, do you feel like anything is missing? Talk to me, and I may add an updates section with additional pointers, tips and tricks. We probably cannot cover everything, but there might be other, obvious things that I failed to include.</p><p></p><p><span style="font-size: 18px"><strong> Updates & user questions </strong></span></p><p>To be added if the popular demand proves demanding enough ...</p><p></p><p><span style="font-size: 18px"><strong> Conclusion </strong></span></p><p>There you go. I do like to brag a lot, still I believe this article truly merits praise. It gives the single most comprehensive view of Linux, top to bottom and then back up. Sure, this is only the tip of the iceberg, but you have the comparison to Windows in every single aspect, and you can see the major differences.</p><p></p><p>Try to follow the whole thing, don't skip any sections. Once you have read everything, you will have gained a decent understanding of the Linux operating system, the many subtle nuances between its varying editions and flavors, and finally, you will know how to setup pretty much any distro, perform multiple installations side by side, and administer your desktop with ease and elegance. It won't be easy, but it's a start. Take care.</p></blockquote><p></p>
[QUOTE="sid_16, post: 461627, member: 10007"] Hello Linux user, This guide is a copy paste from the original article here- [URL="http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html"]The ultimate guide to Linux for Windows users[/URL] All right, so let's say you are a Windows user, and you have HEARD of Linux. You want to try this new technology, but the quantity of information coming towards you from enthusiastic veterans is simply overwhelming. Let's break it down. [IMG]http://www.dedoimedo.com/images/computers_years/2010_1/linux-commandments-tux.png[/IMG] [SIZE=5][B] Tasks for today [/B][/SIZE] We have a lot on the agenda. We will begin with several questions and answers on the common differences between the two operating systems. After that, I will discuss the more technical parts. And after that, we will talk about actually installing Linux. The flow may not seem logical at first, but trust me. [SIZE=5][B] Table of Contents [/B][/SIZE] [LIST=1] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId795759']What is Linux?[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId213624']What is it good for?[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId898200']Major differences between Windows and Linux[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId834947']Where do I find Linux?[/URL] [LIST=1] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId295524']Linux architecture[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId893972']Linux distribution[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId343540']What makes these distributions different?[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId143014']Components of a Linux distribution[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId271178']Desktop environment[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId59348']Gnome Desktop Environment[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId722350']K Desktop Environment[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId271452']Unity desktop environment[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId48858']Cinnamon desktop environment[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId859170']Other desktop environments[/URL] [/LIST] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId691245']Linux package managers[/URL] [LIST=1] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId889158']Yellowdog Updater, Modified (YUM)[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId179194']ZYpp (libzypp)[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId357040']Advanced Packing Tool (APT)[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId99351']Other package managers[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId196523']Underlying binary format[/URL] [/LIST] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId122131']Linux command line[/URL] [LIST=1] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId778077']Popular commands[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId796223']Top 20 commands & builtins[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId215946']Filesystem layout[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId147310']Disk layout[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId208279']Special devices[/URL] [/LIST] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId133238']Let's assemble all together[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId192603']What do we have so far?[/URL] [LIST=1] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId79915']Significant complexity[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId464957']Command line is useful[/URL] [/LIST] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId359179']So where do I find Linux?[/URL] [LIST=1] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId8590']Major Linux distributions[/URL] [/LIST] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId671316']How do I start?[/URL] [LIST=1] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId45742']How do I install Windows?[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId400759']How do I install Linux?[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId467639']How do I use Windows and Linux together?[/URL] [/LIST] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId54497']How does Linux work?[/URL] [LIST=1] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId33381']Linux boot process[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId840126']Runlevels[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId542966']Users[/URL] [/LIST] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId956175']Common desktop activities[/URL] [LIST=1] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId584539']Getting to know Linux desktops[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId253943']Common software[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId197425']Common games[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId80684']Common tasks[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId163029']Pimping guides[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId462393']Additional guides[/URL] [/LIST] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId182962']Best Linux resources[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId355104']Serious questions to all readers[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId991381']Updates & user questions[/URL] [*][URL='http://www.dedoimedo.com/computers/ultimate-linux-guide-for-windows-users.html#mozTocId651538']Conclusion[/URL] [/LIST] [SIZE=5][B] What is Linux? [/B][/SIZE] [URL='http://en.wikipedia.org/wiki/Linux']Linux[/URL] is an operating system, very much like Windows. It came to life in 1991, by merging the Linux kernel developed by Linus Torvalds, with the GNU set of programs and applications. Because of this, Linux is sometimes referred to as GNU/Linux. The Linux kernel has been developed and released under a GPL license, which means that its source code must be freely available to anyone. However, over the years, companies have shipped Linux packaged with proprietary code included, as well as charged money for use and the support model. In the home segment, most if not all versions of Linux are free of charge. Sometimes, you will hear words like free and open-source. This is what those folks mean by that. [SIZE=5][B] What is it good for? [/B][/SIZE] Believe or not, Linux has many uses everything around you. It is the prevalent operating system everywhere except the desktop. Your Android smartphone is in fact a Linux box. Your router, [URL='http://www.dedoimedo.com/computers/lg-smart-tv-review.html']your[/URL] TV, your fridge, they all run Linux underneath. Linux is also the top [URL='https://www.linux.com/news/enterprise/high-performance/147-high-performance/666669-94-percent-of-the-worlds-top-500-supercomputers-run-linux-'] choice[/URL] for super-computers, it is heavily used in the digital world for development and production of 3D [URL='http://www.itworld.com/hardware/93127/data-center-plays-supporting-role-avatar']movies[/URL], and it is the bedrock of the Web and most data centers in the world, due to its highly flexible and extensible nature, as well as relatively low usage costs. [IMG]http://www.dedoimedo.com/images/computers_years/2014_1/lg-smart-tv-final.jpg[/IMG] [IMG]http://www.dedoimedo.com/images/computers_years/2013_2/samsung-s4-book.jpg[/IMG] [SIZE=5][B] Major differences between Windows and Linux [/B][/SIZE] All right, but so far, this does not tell us anything about where to find Linux, how to install it, or how to use it. Now, we will walk through a handful of concepts and pain points that pose a serious block for most Windows users. We will elaborate on all those strange and alien ideas and bridge over them with elegance. [SIZE=5][B] Where do I find Linux? [/B][/SIZE] Indeed, you may assume that there is a single Linux entity where you can find Linux, much like Microsoft provides Windows. This is not the case. Linux is not a single entity. In fact, you do not use Linux directly. Which is why we must explain Linux architecture first. [SIZE=4][B] Linux architecture [/B][/SIZE] To do this, we will begin with Windows. For home users, Windows is essentially the desktop they see and use. In Windows XP, it was called Luna. In Windows 7, it's known as Aero. In Windows 8, you have the Modern (Metro) interface. But this is not the whole of the operating system. Windows, like any operating system, has several layers: [LIST] [*]Kernel - the heart of the operating system, which initializes and interfaces with the hardware, schedules tasks and manages memory, and actually allows you to use your system as you normally do. [*]Drivers - Software that interfaces between hardware peripherals, like the network card, graphics card, hard disk, and others, and the kernel, and effectively allows applications to utilize hardware resources. The drivers are usually supplied by third-parties, like Atheros, AMD, Nvidia, Hitachi, and many others. [*]Graphical interface - what you see and perceive as the desktop. [*]Applications - software that runs on the desktop. [/LIST] In Windows, the first three components are tightly coupled. You have a single desktop interface, and it cannot be detached from the underlying kernel. You must use Windows as it. You cannot have a different desktop interface. You can change themes, but the core remains the same. In Linux, things are a little different: [LIST] [*]Kernel - Because of a slightly different design (Computer Science nonsense), the functionality of the Linux kernel is not identical to Windows. First, the kernel can be compiled with drivers. This means you get support for hardware out of the box and you do not need third-party software. Second, you can load new drivers on the fly. We will address this soon. Effectively, because of the free and open-source nature of the kernel, it is possible to bundle drivers into it. This means the Linux kernel supports a wide range of hardware devices out of the box. [*]Drivers - Some software cannot be distributed freely, due to licensing reasons. Therefore, you may not have all the drivers you need available, and you must go to third-party vendors to obtain them. This is perfectly understandable. [*]Graphical interface - This is the big difference. Linux can run without a graphical interface. Two, there are actually several graphical interfaces available for Linux. Not just different themes, but actually complete sets of libraries that communicate between the kernel and the applications. Imagine using the OSX interface on Windows, that's the best analogy. [*]Applications - Same as with Windows. [/LIST] So what do we have here? The major differences in the architecture of Windows vs. Linux is that: a) Linux can bundle drivers into the kernel and load them on the fly b) Linux can run without a graphical interface, or with many different ones. Now that you understand this basic difference, we will now talk about how Linux is shipped to users. We will now elaborate on another important concept - distribution. [SIZE=4][B] Linux distribution [/B][/SIZE] Linux distribution is a unique set containing: kernel, one or more desktop environments, and an application bundle. This is the actual product that you use directly. You use Linux distributions, and inside, they are powered by the Linux kernel. Linux distributions are developed and maintained by companies as well as individuals, hobbyists, volunteers, and community users. Large, successful companies ship their distributions to the commercial market along with expensive, long-term support contracts. At home, most distributions can be used free of charge. Let us name several popular Linux distributions. For home users, the most popular name is [URL='http://www.ubuntu.com/']Ubuntu[/URL], a Linux distribution created by the Canonical Group, a company based in the UK. Canonical offers Ubuntu for free. It means you can go to the Ubuntu website and download the operating system. We will soon elaborate on how this is actually done. Another popular distribution is [URL='http://www.linuxmint.com/']Linux Mint[/URL], which is a community-developed effort. Linux Mint is partially based on Ubuntu. It is also available for free. You also have [URL='http://www.opensuse.org/en/']openSUSE[/URL], which is a product of Novell, a company that also has an enterprise flavor available for use by business and large data centers. Likewise, there is [URL='https://fedoraproject.org/']Fedora[/URL], a product of RedHat, the largest Linux company in the world. I have named these four as the top candidates, but there are many, many more distributions available. [SIZE=4][B] What makes these distributions different? [/B][/SIZE] All right, so let's break them down some more, shall we. Ubuntu is composed of: Linux kernel + Unity desktop environment + apps. Linux Mint is composed of: Linux kernel + Cinnamon desktop environment + apps. Fedora is composed of: Linux kernel + Gnome desktop environment + apps. openSUSE is composed of: Linux kernel + KDE desktop environment + apps. As you can see, a pattern begins to emerge. The big difference between most distributions is in which desktop environment they choose to use, and the application set. This begs a question. If you were to use Gnome in openSUSE, would that make it the same as Fedora? The answer is: no. I have oversimplified the comparison, of course. The differences are larger than just the use of desktop environments. But this opens another layer of complexity before us. Now, let's see all the core components of a typical distribution. [SIZE=4][B] Components of a Linux distribution [/B][/SIZE] We have the following: [LIST] [*]Kernel - Every single distribution uses its own kernel, ever so slightly modified. The default Linux kernel is known as the mainline. It is maintained on [URL='https://www.kernel.org/'] kernel.org[/URL], and the changes in it are governed by a large body of professionals, most of which are employed by large Linux companies, with the ultimate veto vote in the hands of the Linux founder, Linux Torvalds. Every distribution uses its own kernel adaptations. The kernels between different Linux distributions are often not mutually compatible. [*]Graphical interface - As we mentioned earlier. Do remember that Linux distributions can run WITHOUT one, if needed. For example, most server and enterprise flavors are normally configured without a desktop interface, because it is not needed. [*]Applications - Each distributions packages its own set. You can enhance the default by installing additional programs of your own. This is done through centralized management facilities very similar to Windows update, known as package managers. Quite often, each distribution uses its own unique facility. [*]Package manager (Linux update) - We are now introducing a new concept, but do not be alarmed. This Android Play Store. This is exactly that. Because of the free and open-source model, most Linux software can be distributed in a centralized manner from common servers. These servers are known as repositories. Think of them as Windows update servers really, only custom tailored per distribution. The software component that communicates with the repositories and allow users to download software as well as updates is known as the package manager. Most distributions use their own unique package manager. [/LIST] Let us compare to Windows then, shall we? In Windows, you have the kernel plus the one default desktop interface. You also have applications, Windows update, plus you must manually download programs that are not part of the standard Windows bundle, due to licensing restrictions. In Linux, you have distributions. Each distribution comes with its own slightly modified kernel, its own default desktop interface plus optional additional other desktop interfaces, its own set of applications, and its own package manager, a Linux update facility that allows the system to install programs and updates for the WHOLE distribution, because of the very convenient licensing rules. Disclaimer: Linux distributions can ship only a subset of all the available software in the world. For example, if you need specialized payware, you will still need to manually download and install the software. But for the free and freely-redistributable components, Linux distributions can provide free updates, updates and additional downloads from their centralized repositories. Now let's talk a little more about desktop environments and package managers, because they seem to be the big differences when compared to Windows. [SIZE=4][B] Desktop environment [/B][/SIZE] A desktop environment (DE) is an [URL='http://en.wikipedia.org/wiki/Desktop_environment']implementation[/URL] of the desktop metaphor made of a bundle of programs running on top of a computer operating system, which share a common graphical user interface (GUI). A desktop environment typically consists of icons, windows, toolbars, folders, wallpapers and desktop widgets. These components are controlled by a piece of software called a [URL='http://en.wikipedia.org/wiki/Window_manager']window manager[/URL], which is responsible for the placement and appearance of windows within a windowing system in a graphical user interface. Now, we dive one more step deeper - the window manager. In Windows, you have the Desktop Window Manager (dwm.exe), which does the hard work in displaying the Windows interface to users. Do note that DWM is tightly coupled with the kernel's graphical subsystems and is largely non-replaceable. In Linux, you have the X windows system, which does pretty much the same thing as DWM, except that the nomenclature of concepts and terms is different. The X sits between the kernel and the graphical interface. The X is composed of the display server and the window manager. This allows it to be separate from the kernel, unlike Windows. So, the desktop environment now comes down to the following: [LIST] [*]User applications. [*]Graphical interface. [*]Display server + windows manager. [/LIST] Underneath these, you have the kernel and the hardware. So what is a desktop environment? It is a set of programs, an interface, a display server, and a window manager. Let us introduce a few. [SIZE=4][B] Gnome Desktop Environment [/B][/SIZE] This is a [URL='http://en.wikipedia.org/wiki/GNOME']desktop[/URL] environment that you will most likely encounter if you install the default version of Fedora, for example. GDE uses the Gnome Shell as its graphical interface, X11 protocol to talk to the display server, X.Org display server, and Mutter window manager. Gnome Desktop Environment is focused on simplicity and ease of use, with few options shown to the user. [IMG]http://www.dedoimedo.com/images/computers_years/2012_2/gnome-36-activities.jpg[/IMG] [SIZE=4][B] K Desktop Environment [/B][/SIZE] [URL='http://en.wikipedia.org/wiki/KDE']KDE[/URL] is a default environment for openSUSE. It utilizes the KDE Plasma via X11 or Wayland protocol to talk to X.Org or Weston display server, and it uses the KWin window manager. KDE is more Windows-like in appearance, and it features option-rich menus. [IMG]http://www.dedoimedo.com/images/computers_years/2013_2/opensuse-13-1-installed-desktop.jpg[/IMG] [SIZE=4][B] Unity desktop environment [/B][/SIZE] This is the default for Ubuntu, and only Ubuntu. [URL='http://en.wikipedia.org/wiki/Unity_%28user_interface%29']Unity[/URL] mostly relies on Gnome components, but Canonical has expressed desire to use its own implementation of a new display server called Mir, rather than using the Wayland/Weston combination, which has caused somewhat of a [URL='http://netrunner-mag.com/the-linux-display-saga/']rift[/URL] in the Linux community. Unity has been designed with multiple form factors in mind, including touch, because of the Canonical's desire to use Ubuntu on smartphones and tablets. [IMG]http://www.dedoimedo.com/images/computers_years/2013_2/ubuntu-saucy-desktop.jpg[/IMG] [SIZE=4][B] Cinnamon desktop environment [/B][/SIZE] Cinnamon [URL='http://en.wikipedia.org/wiki/Cinnamon_%28software%29']DE[/URL] is the default in Linux Mint. Originally, Cinnamon uses a fork of Gnome Shell, but recently it has removed all dependencies on the graphical interface and uses its own internal implementation. The default window manager is called Muffin. [IMG]http://www.dedoimedo.com/images/computers_years/2013_1/olivia-desktop-final.jpg[/IMG] [SIZE=4][B] Other desktop environments [/B][/SIZE] There are many others. But I have purposefully avoided mentioning them to avoid confusion. For example, there's is also [URL='http://en.wikipedia.org/wiki/Xfce']Xfce[/URL], which uses Xfce4-panel + X11 + Xorg + Xfwm, then there's [URL='http://en.wikipedia.org/wiki/MATE_%28desktop_environment%29']MATE[/URL], which uses Gnome Panel + X11 + Xorg + Metacity. Then, [URL='http://en.wikipedia.org/wiki/LXDE']LXDE[/URL] uses LXSession + X11 + LXDM + Openbox. There are still more. To make things even worse, there are also special, compositing window managers available for older desktop environments, including the popular Compiz. And now I dare show this image: [IMG]http://www.dedoimedo.com/images/computers_years/2014_1/ultimate-linux-guide-de-schema.png[/IMG] Note: Image taken from [URL='http://en.wikipedia.org/wiki/File:Schema_of_the_layers_of_the_graphical_user_interface.svg']Wikimedia[/URL], licensed under [URL='http://creativecommons.org/licenses/by-sa/3.0/deed.en']CC BY-SA 3.0[/URL]. [SIZE=5][B] Linux package managers [/B][/SIZE] As we have mentioned earlier, Linux package [URL='http://en.wikipedia.org/wiki/Package_management_system']managers[/URL] are collections of software tools designed to automate the process of installing, upgrading, configuring, and removing software packages for a computer's operating system in a consistent manner. The said consistency is maintained by using a database of software dependencies and version information to prevent software mismatches and missing prerequisites. Packages distributed by package managers consist of software, applications and data. These packages also contain metadata, such as the software's name, description of its purpose, version number, vendor, checksum, and a list of dependencies necessary for the software to run properly. Upon installation, metadata is stored in a local package database. A package manager normally work as follows: [LIST] [*]Package manager is launched. [*]User performs an action - installation, upgrade, etc. [*]Package manager consults its internal list of servers - repositories - and contacts them with the requested action, including resolved dependencies and other requisites. [*]Necessary packages are downloaded and installed. [/LIST] This is exactly how Windows update works, except that package managers can be used to manage the whole distribution, except a very small number of proprietary components and manual installations done by the user. The licensing terms of a distribution dictate what software can be bundled with the distribution, what software can be made available for download from the repository, and what software may only be hosted at the official vendor servers. For example, in some countries, distribution of MP3 codecs is not legal without a royalty fee. Therefore, the user will have to initiate the download of codecs using the package manager. Another scenario is that the user will have to configure an additional repository to be able to download a piece of third-party software. Like desktop environments, there are [URL='http://netrunner-mag.com/manage-my-package/']many[/URL] package managers. To make things worse, here too, we are dealing with several layers of complexity and fragmentation. Package managers are normally composed of the following: [LIST] [*]Graphical interface - a visual tool much like Windows update or Android Play Store. [*]Command line interface - a command prompt (cmd) like work environment. [*]Underlying logic engine - the software that resolves dependencies and controls the system. [*]Underlying binary format - packages are archived in a unique way. [/LIST] Now, let's us briefly explore some of the package managers and the different ways they can be used. We will touch on the repository management, additional third-party sources, installation of software, and more in greater detail later in this guide. [SIZE=4][B] Yellowdog Updater, Modified (YUM) [/B][/SIZE] Borrowing some from my Netrunner article, this is the default package management framework in RedHat-based distributions. For you, this means Fedora. Now, to complicate things still further, the graphical interface used with YUM depends on the desktop environment. YUM can be used with Apper in KDE, or it can be used with YUM Extender in an older implementation of Gnome, version 2.x as opposed to the recent 3.x family. The command line is identical, and it invoked by the yum command. We still have not discussed Linux command line, but we will soon enough. [IMG]http://www.dedoimedo.com/images/computers_years/2014_1/ultimate-linux-guide-yum-frontend.jpg[/IMG] [SIZE=4][B] ZYpp (libzypp) [/B][/SIZE] This is the default package manager in openSUSE. The frontend is called YaST, and the command-line component is called zypper. [IMG]http://www.dedoimedo.com/images/computers_years/2014_1/ultimate-linux-guide-zypp-yast.jpg[/IMG] [SIZE=4][B] Advanced Packing Tool (APT) [/B][/SIZE] APT is used in many Linux distributions, including Ubuntu and Linux Mint. There are many frontend components available for APT. To name a few, there are Ubuntu Software Center, Muon, Synaptic, and many others. The command line component is apt, but the full usage depends on the invocation of a [URL='http://www.dedoimedo.com/computers/aptitude.html']desired[/URL] function. [IMG]http://www.dedoimedo.com/images/computers_years/2014_1/ultimate-linux-guide-apt-usc.jpg[/IMG] [SIZE=4][B] Other package managers [/B][/SIZE] Like with the desktop, there is a very long tail of package managers and their implementations. Let's do a bit of a name dropping. Puppy Linux uses its own package manager called PETget. Slackware uses slackpkg, Gentoo uses Entropy, Archlinux uses pacman, and so forth. It's really complicated. And hardly the bottom of our stack. [SIZE=4][B] Underlying binary format [/B][/SIZE] The Linux reality also becomes a little more difficult when you consider the fact that package managers work with multiple, mutually-incompatible package formats. To give you the best of analogy, think of Windows cabinet files (CAB) and Setup information files (INF). Together, these two can be used to define an installation package, for example. In Linux, there are several package types. The most popular ones include: [LIST] [*]RedHat Package Manager (RPM) format - RPM files are archives that contain installation files and scripts, which are then installed in the right places in the Linux filesystem structure. RPM is mostly used with RedHat and SUSE Linux flavors, as well as other distributions that are partially based on these two. [*]Debian (DEB) format - DEB files do the same thing, except the format is different. It is not possible to use Debian files on RPM-enabled systems, and vice versa. Package files can be converted, but due to significant differences in the architecture, the installations will probably not work. DEB is used by all Debian-based distributions. Debian is a distribution itself, but it is a foundation for many others, including Ubuntu, Linux Mint, and more. [/LIST] Both RPM and DEB files can be managed directly, without package managers. Users can install, remove or upgrade installed software. This is very similar to running Windows MSI or EXE installer filers manually, rather than going through Windows update, for example. On top of that, regardless whether packages are being installed using a package manager or manually, RPM and DEB systems also have their own internal databases, which are used to manage the consistency of installations. Additional package formats exist, including PUP, PET, TGZ, XZ, and more. As you can see, most package managers have a graphical and command line interface elements. This means you can manage software in a distribution even without a desktop environment. That's our next topic. [SIZE=5][B] Linux command line [/B][/SIZE] Let's talk about the Windows command line first. Believe it or not, Windows has a very rich and powerful command line. Several implementations really. There's the standard command prompt, and you will sometimes want and [URL='http://www.dedoimedo.com/computers/windows-7-sp-slipstream.html']need[/URL] to use it. Then, there's the new [URL='http://www.dedoimedo.com/computers/powershell.html']PowerShell[/URL]. Last but not the least, let us not forget the whole [URL='http://www.dedoimedo.com/computers/windows-wmic.html']WMIC[/URL] framework, which really lets you control the whole of Windows using command line only. [IMG]http://www.dedoimedo.com/images/computers_years/2011_2/wmic-sample.png[/IMG] [IMG]http://www.dedoimedo.com/images/computers_years/2013_2/win7-slipstreaming-mount-done.jpg[/IMG] Linux command is very similar, except that you can launch it from within the desktop, much like Windows, but also on a system that runs no desktop. The command line is then usable through what is called a console. Imagine your monitor showing a blank black monitor with a blinking cursor in the top left corner, and a tiny prompt marked $ or # or some other symbol. This is exactly that. All Linux systems have multiple consoles available, which you can switch between using keyboard shortcuts. This allows you to work in both the graphical and command-line interfaces at the same time. We will address this soon. So what does one do on the command line? One executes commands. How is this done? Well, let us briefly touch on what the user actually sees and does when working with the command line. [IMG]http://www.dedoimedo.com/images/computers_years/2014_1/ultimate-linux-guide-console.jpg[/IMG] The blinking prompt, so to speak, is not just some ethereal entity. A console itself is a container. A special program runs inside the console window called a shell. A Linux [URL='http://en.wikipedia.org/wiki/Unix_shell']shell[/URL] is a command-line interpreter or shell that provides a traditional user interface. Users direct the operation of the computer by entering commands as text for a command line interpreter to execute, or by creating text scripts of one or more such commands. The most popular Linux shell is [URL='http://en.wikipedia.org/wiki/Bash']BASH[/URL]. There are others, like TCSH. Users typically interact with a Unix shell using a terminal emulator. Terminal emulator is a program that emulates the behavior of a standalone console. For example, to give you a good analogy, the Windows CMD is an emulator, because it wraps the program in a desktop window with its own additional functions, but inside, it behaves like the old DOS prompt. The same thing in Linux. Popular terminal emulators include xterm, Konsole, Gnome Shell, and many others. All of these are programs that you can launch on a typical Linux system, like you would anywhere else. Open a desktop menu, find the program, and launch it. [IMG]http://www.dedoimedo.com/images/computers_years/2014_1/ultimate-linux-guide-menu-launch-emulator.jpg[/IMG] [SIZE=4][B] Popular commands [/B][/SIZE] The fine details of how Linux shells are used are beyond the scope of this article. Still, I am going to give you a brief overview. Let's look again at that prompt, shall we. [IMG]http://www.dedoimedo.com/images/computers_years/2014_1/ultimate-linux-guide-console.jpg[/IMG] What you see is the name of the user currently running the shell, which is roger, the name of the host, which is roger-laptop, a divider in the form of a colon mark, a tilde sign which signifies that the current folder we are working is the home folder of the current user, and the dollar sign is the standard sign for a regular user in Linux. Now, the user can run commands. For example, dedoimedo.exe. This is what we want to run. So how would you go about doing that. Very much like Windows, with some small differences in syntax. dedoimedo.exe would execute the command by searching a special list of default paths where the system expects to find the dedoimedo.exe command. If the command does not exist there, it cannot run. In other words, it is not in the PATH. ./dedoimedo.exe would run the command in the current folder. BTW, let's learn another word. Directory. It is not that strange, and in DOS, folders were called directories, and there's even the command dir, to display the contents thereof. So yes. What's the big difference from the earlier attempt. Dot and slash. We now learn another concept, and that is that every Linux directory has two special hard links. BTW, hard links are a type of file. Anyhow, a single dot (.) is a hard link to the directory itself, while two dots (..) is a link to the parent directory, i.e. one above. Again, this is nothing magical. This is also true in DOS. Familiar with cd .. to go back up one level? Same thing here. This is your way to navigate up and down the hierarchy of directories. Slash (/) is the default delimiter in Linux, denoting a new level of hierarchy in the file system. In DOS and Windows, it is the back slash (\). So now, things are really familiar. What you would mark in Windows as c:\users\roger would become something like c:/users/roger. This is not fully correct, but bear with me. Therefore, dot slash (./) means execute the command in the parent directory, followed by the file name itself. Likewise, ../dedoimedo.exe would try to look for execute the command in the directory one level up, and ../../../dedoimedo.exe would go three levels up. How far up, you ask? Well, In Linux, the top of the filesystem hierarchy is marked with the slash (/). This is known as the root of the filesystem, because everything originates there. And compared to Windows, there are no multiple roots. While in Windows you have c:, d:, e: and others, in Linux there's only one root. You can compare root to My Computer, if you want. Therefore, you can now execute the dedoimedo.exe file using a full path rather than a relative path, like before. Using the earlier analogy, /users/roger/dedoimedo.exe is the full path to our command. In Linux, users' home directories are normally marked as /home, and so it becomes /home/roger/dedoimedo.exe. Now, we can finally play with commands. Linux commands can be shell builtin commands, in which case there is no full path. Change directory (cd) is a good example. Or they can be external commands, located somewhere in the filesystem. Commands take options, flags, switches, and arguments, much like Windows. We mentioned dir earlier. In DOS, you can do just dir, but you can also do dir /? to get all the options, or dir /p to pause the run when the screen buffer fills, /a to show all attributes, /l to user lowercase, and more. Linux commands also take these extra options. How would you know, though? For any command, you can do a couple of neat tricks to learn more. man command This will invoke the manual page for the command. Think of it as pressing F1 inside a console. You will get a long, detailed explanation what the command does and how it can be used. You can also always read man pages [URL='http://linux.die.net/']online[/URL], if you want. command -h or command --help This will display a shortened help, similar to Windows /?, allowing you to quickly master the commands you want and need. For most people, the second option is faster, but not necessarily better for learning. [SIZE=4][B] Top 20 commands & builtins [/B][/SIZE] And now, here are the top 20 commands, which will help you find your way around during the first few hours of your use of Linux. Please note that this is just the tip of the iceberg, and therefore, you should not think you're done after you have executed these. Remember, Linux is case-sensitive. ls - This command with list files. Like DOS dir. It also has many flags. For example, -a will list all files, including hidden ones. -l will list all file attributes, including owner, size, permissions, full path, etc. ls -ltr /home/roger ps - This command will display the running processes in a list. Think of it as a one-time snapshot of a command line task manager. The exact details of this command works, and what all the little fields mean is beyond the scope right now, but you might want to look at my extremely advanced and extensive hacking articles [URL='http://www.dedoimedo.com/computers/linux-cool-hacks.html']one[/URL] and [URL='http://www.dedoimedo.com/computers/linux-cool-hacks-more.html']two[/URL] and [URL='http://www.dedoimedo.com/computers/linux-cool-hacks-3.html']three[/URL] and [URL='http://www.dedoimedo.com/computers/linux-cool-hacks-4.html']four[/URL]. Too advanced for you right now, you've been warned! ps -ef cd - This is a shell built in. It allows you to change directories. cd <path>, either relative or absolute, will take you where you want to go, provided the path exists. Some special options exist. cd - will take you to the previous directory. cd on its own will change your path into your home directory. cd ~ will do the same thing. cd /home/Movies pwd - This command will show your current location in the filesystem pwd cat - This command lets you print the content of a text file to screen, or to a file. cat "/home/special\ file\ with\ spaces" less - This is a very basic text viewer. Like cat, you can use it to see file contents, but you the stream will not run uninterrupted, you can read screen buffer at a time, back and forth, and even do some basic search. less /var/log/messages which - Executed against a program name, it will show the full path for the program. which firefox mkdir - This command lets you create directories. The -p flag lets you nest them. mkdir -p /home/dirs/in/depth touch - This command will create empty, 0-length files. touch me cp - This command will copy one or more files. cp igor igor.bak mv - And this one will move (cut it). mv igor1 igor2 rm - Warning! This command will delete files and/or directories. Remember, with the right privileges and the use of wrong permissions, you can easily destroy your system. It is very important to be careful when running the rm command. rm /home/roger/certain-unneeded-file chmod - This command can change permissions on a file or a directory. For example, you may want to change a file so that it is readable only. In that case, you will remove the other permissions, leaving only read in place. For more details on the Linux file permissions management, take a look at [URL='http://blog.pluralsight.com/linux-file-permissions']this[/URL] tutorial. chmod 700 /home/secrets.txt chown - Similar to the command above, chown allows you to change the user and group ownership of a file. For instance, change it from roger to bodger. chown roger:mygroups /tmp/file.old echo - This is a very useful and practical command that can display lines of text and values stored in the shell [URL='https://help.ubuntu.com/community/EnvironmentVariables']environment variables[/URL] to the screen. For example, echo $PATH will display the contents of the PATH variable. So if you have a problem with running a file, then you might want to check whether its path is included in the PATH. You can also use it on conjunction with rm to learn first what kind of files you would remove before actually deleting. echo $DISPLAY export (in BASH) - This command lets you configure environment variables, so that programs that rely on their presence can use them. For example, when you try to run a command without using the full path, the shell itself will consult the PATH variable to determine where to look for the file. If you need to change the variable, you will use the export command. The TCSH equivalent is setenv. export JAVA_HOME=/usr/lib/java du - This command lets you check the estimated usage of a directory. This is useful if you want to check the space usage or a quota of a particular directory on your system. du -Shi /home/videos df - This commands lets you see the usage of all mounted filesystems. The word mounted means effectively in use. This is a very handy way to check what your disks contain. The usage is equivalent to the disk management facility in Windows. df -lhT find - This command can be used to search for files on your filesystems. The evil twin of the find command is the locate command. The big difference is that locate uses a pre-built database, which makes it faster, but the results might not fully reflect the actual most up to date content of the filesystem. find . -name \*movie\* grep - This command can be used to search for string patterns in text files. Let's say you have several files, and you want to look for words doctor and sister in there. Well then, a typical search with grep would be: grep -Eir 'doctor|sister' /home/* There are many other useful commands. For example, top is the command line task manager. With kill, you can terminate offending processes. You can create archives, like for instance ZIP, TAR, TGZ, BZ2, and others from files and directories using the tar command. You can print the beginning and end of files with head and tail commands, respectively. You can also manipulate text stream with the very complex yet awesome programs sed and awk. Then, dd lets you write direct copies of files. And the list goes on and on. Most importantly, commands can be chained - using the pipe (|) symbols. This lets you stream the output of one command as the input of another, and create a complex execution. For example, list a content of a file, sort if alphabetically, then count unique entries. This kind work is the basic principle for scripting. cat file.txt | sort | uniq -c You can also do system administration from the command line. Install software, schedule updates, shutdown or reboot the system, start or stop services, and more. Now, let us see three examples of how we can use package management from the command line. We will demo using the three leading utilities we mentioned earlier: apt-get install firefox yum update kernel-devel zypper search vlc Fully mastering the command line is a long and arduous journey. You want to learn how to write your own scripts and programs. You want to able to run unattended tasks that maintain your system, or combine the execution of multiple programs into one. At this point, my [URL='http://www.dedoimedo.com/computers/linux_commands.html']highly[/URL] useful commands & configurations tutorial might be of use. Furthermore, some neat BASH [URL='http://www.dedoimedo.com/computers/bash-tricks.html']tricks[/URL] could also be of use. [SIZE=4][B] Filesystem layout [/B][/SIZE] We talked about commands. But what about the system that contains these commands. So maybe a brief overview of the filesystem hierarchy and architecture is needed. Again, we will use the Windows analogy to make it simple. So in Windows, you have the C: drive. Under it, there's C:\Windows, which contains core system files. There's Users, which contains users' personal folders. There's C:\TEMP, which is used for temporary files. However, there might be multiple drives on your system, and there is no single view to check them all, unlike the root in Linux. The closest analogy would be My Computer. Anyhow, the classic Linux filesystem hierarchy will look something like the following: [LIST] [*]/bin contains basic programs (binaries) like cat, ls, awk, etc. [*]/boot contains files necessary to boot the system. [*]/etc contains critical system configuration files. [*]/home contains users' directories EXCEPT one special user. [*]/lib contains system libraries. [*]/opt contains optional installations. [*]/root is the home directory of the special user called root. [*]/tmp contains temporary files. [*]/usr contains programs like Firefox, VLC, LibreOffice, games. [*]/var contains system logs and runtime files. [/LIST] There are other paths, but they are not important right now. Each one of these can be called a directory, but it can also be called a filesystem, because the actual data may reside on a remote server. For example, /home directories could be network drives, formatted with their own filesystem. The default Linux filesystem format is [URL='http://en.wikipedia.org/wiki/Extended_file_system']EXT[/URL] (at revision 4), but many other file format exist, including EXT2, EXT3, BTRFS, XFS, and more. In a nutshell, they are equivalent to the Windows FAT, FAT32 or NTFS file formats, with many additional differences. Most if not all Linux distributions can natively see and use (read & write) to Windows filesystems, whereas Windows does not have a default ability to do the same thing with Linux filesystems. Therefore, if you connect a drive formatted with one of the Linux filesystems to a Windows box, it will be visible but it will appear unformatted or unusable. [SIZE=4][B] Disk layout [/B][/SIZE] One last thing before we go up and piece our complex puzzle into a single piece. Disk management. We did mention the du and df commands, but the output may be confusing to someone who has never worked with Linux before. Once you figure it out, it is fairly trivial, but not the first time. I have explained the disk notation in my tutorials linked above. But we shall [URL='http://www.dedoimedo.com/computers/gparted.html']briefly[/URL] recap. Windows marks disks the following way: Disk<number>, e.g. Disk0, Disk4, etc. Partitions are marked with letters, e.g. K:, M:. Linux marks disks based on their controller type. IDE disks are marked hd<letter>. SATA or SCSI disks are marked sd<letter>. For example, the third SATA disk is sdc. Partitions are marked numerically, from 1 onwards, with the first four reserved for primary partitions, and numbers 5 and above for logical partitions. For example, the second primary partition on the first IDE disk is hda2. The first logical partition on the first SATA disk is sda5. This is correct for the MS-DOS partition table. With the [URL='http://en.wikipedia.org/wiki/Disk_partitioning']GPT[/URL] scheme, this are slightly different, but still the notation is correct. Virtual machine disks used inside virtualization software may be marked with vd or xd or other letter combinations. [SIZE=4][B] Special devices [/B][/SIZE] Floppy disks are marked as fd, CD-ROMs often as sr or cd. Special devices like cameras, scanners or printers may get their own unique labeling scheme, which can depend on the vendor, model type as well as the specific distribution implementation. [SIZE=5][B] Let's assemble all together [/B][/SIZE] Now, let's take a look at our distributions once more. Ubuntu is now a special, modified Ubuntu kernel + Unity desktop environment + DEB file format + apt command line package manager + Ubuntu Software Center GUI package manager + its own application stack. Linux Mint uses its own kernel + Cinnamon + DEB file format + apt + Software Center + its own application stack. The same applies to Fedora and openSUSE and many dozens of other distributions. And there's STILL more granularity, which we have not touched yet, but we might elaborate later on. [SIZE=5][B] What do we have so far? [/B][/SIZE] Let us recap all of what we have learned in this tutorial. [SIZE=4][B] Significant complexity [/B][/SIZE] As you have learned so far, Linux is not a single entity. It is a complex matrix of components. Mastering Linux means mastering many different things. And if you are interested in trying different distributions, it often means you learning a complete stack of applications, desktop behavior, package management, and more. In Windows, there is only one dimension. In Linux, it's the number of distributions multiplied by the number of desktop environments multiplied by the number of package managers multiplied by the number of application bundles. It is really very difficult to know them all well, and they are sometimes very different. Therefore your Linux exploration should initially focus on a single distribution and its own unique set. [SIZE=4][B] Command line is useful [/B][/SIZE] One thing that can help you if you want to try multiple Linux distributions is to use the command line, because you will maintain a higher level of consistency than with GUI tools, which significantly differ between desktop environments. [SIZE=5][B] So where do I find Linux? [/B][/SIZE] Well, now that we know what Linux is all about, we CAN finally download it. In fact, we will download and use a Linux distribution, one of the many that we have mentioned earlier. Now, let's elaborate on the available choices. [SIZE=4][B] Major Linux distributions [/B][/SIZE] I have mentioned four, and we will focus on these four. For new users, going into the full list of several HUNDRED available Linux distributions is a bad idea. And now that we are here, let's introduce another word - distro, short for distribution. Ubuntu is one of the most popular Linux distros in the world. It is very easy to install and use, and it has a large install base. Many veteran Linux users recommend this particular flavor of Linux to new users. If you are interested, please take a look at my [URL='http://www.dedoimedo.com/computers/ubuntu-trusty-tahr-laptop-ultrabook.html']review[/URL] of the latest edition to get a hunch what this is all about. [IMG]http://www.dedoimedo.com/images/computers_years/2013_2/ubuntu-saucy-desktop.jpg[/IMG] Ubuntu family is very rich, so you might also be interested in [URL='http://www.dedoimedo.com/computers/kubuntu-salamander.html']Kubuntu[/URL], which comes with the KDE desktop, or [URL='http://www.dedoimedo.com/computers/xubuntu-salamander.html']Xubuntu[/URL], which comes with the Xfce desktop. These two are more like Windows in spirit and feel, so new users might find them easier to master. [IMG]http://www.dedoimedo.com/images/computers_years/2013_2/kubuntu-saucy-final.jpg[/IMG] [IMG]http://www.dedoimedo.com/images/computers_years/2013_2/xubuntu-saucy-nvidia-running.jpg[/IMG] Linux Mint is another highly popular distro, perhaps [URL='http://www.dedoimedo.com/computers/linux-mint-petra.html']even[/URL] more than Ubuntu according to some sources. Now, this is really an excellent choice for most Windows users, because it comes with pretty much everything pre-configured out of the box. I even [URL='http://www.dedoimedo.com/computers/best-distro-2013.html']voted[/URL] this the best distro of 2013. Both Mint and Ubuntu offer five years of free updates for their long-term support editions. [IMG]http://www.dedoimedo.com/images/computers_years/2013_2/petra-desktop-final-1.jpg[/IMG] openSUSE is another possible choice. In the last years, it has waned a little in popularity, but it can still be a strong candidate. You might want to take a look at my [URL='http://www.dedoimedo.com/computers/opensuse-13-1.html']latest[/URL] review for additional impressions. [IMG]http://www.dedoimedo.com/images/computers_years/2013_2/opensuse-13-1-installed-desktop.jpg[/IMG] Fedora is an interesting distribution in that it ships with no proprietary software, so if you need codecs for music or video, you will have to install them separately. It is also considered relatively unstable, because it often introduces a lot of new and modern technology. Plus, the support cycle is quite short. However, it [URL='http://www.dedoimedo.com/computers/fedora-20-kde.html']can[/URL] be a good choice. [IMG]http://www.dedoimedo.com/images/computers_years/2013_2/fedora-20-desktop-cool.jpg[/IMG] [SIZE=5][B] How do I start? [/B][/SIZE] Let's say that this article has actually convinced you to try Linux. Before you do any hard ground work, you must read some more. I most warmly recommend that you invest a little more time reading several guides that I have put together recently, which explain in fanatic detail all that you need to know to run Linux at home, safely, successfully. [SIZE=4][B] How do I install Windows? [/B][/SIZE] This is the first question you should ask. You should NOT use Linux, unless you are fully confident in your ability to install Windows. This may sound harsh and cruel, but believe me, it is for your [URL='http://netrunner-mag.com/windows-user-wanna-try-linux-checklist/']own[/URL] good. To wit, you should read my Windows 7 installation [URL='http://www.dedoimedo.com/computers/windows-7-install.html']guide[/URL], and then the [URL='http://www.dedoimedo.com/computers/windows-8-install.html']same[/URL] thing for Windows 8. Not only do both these articles have a wealth of knowledge on the subject matter, they also touch on all the extra steps needed for using Linux at home. [IMG]http://www.dedoimedo.com/images/computers_years/2014_1/windows-8-installing-2.jpg[/IMG] [SIZE=4][B] How do I install Linux? [/B][/SIZE] Now, after you have mastered the step above, you are ready to attempt to install a Linux distribution of your own. You may want to start by testing in a [URL='http://www.dedoimedo.com/computer_software.html#virtualization']virtual[/URL] machine first. This way, you can learn from your mistakes toward the real thing. [IMG]http://www.dedoimedo.com/images/computers_years/2014_1/ultimate-linux-guide-virtualbox.jpg[/IMG] I have written a ton of articles on how to install a wide range of Linux distributions. You might want to start with the [URL='http://www.dedoimedo.com/computers/ubuntu-14-04-install-guide.html']latest[/URL] Ubuntu guide. Then, take a look at an [URL='http://www.dedoimedo.com/computers/ubuntu-install.html']older[/URL] one. After that, go back some time in history and consult [URL='http://www.dedoimedo.com/computers/opensuse-install.html']some[/URL] of [URL='http://www.dedoimedo.com/computers/install_kubuntu.html']my[/URL] [URL='http://www.dedoimedo.com/computers/install_linuxmint.html']other[/URL] installation guides. Although they have been written many years ago, they are relevant and accurate. [IMG]http://www.dedoimedo.com/images/computers_years/2014_1/ubuntu-install-slide-1.jpg[/IMG] [SIZE=4][B] How do I use Windows and Linux together? [/B][/SIZE] After you have successfully mastered both a separate, standalone Windows and Linux installation, you are ready to use the two at the same time. This is known as dual-boot, and sometimes also referred to as tandem, or side-by-side installations. You should take a look at my dual-boot [URL='http://www.dedoimedo.com/computers/dual_boot.html']tutorial[/URL] for Windows XP and Kubuntu, as well as the more recent [URL='http://www.dedoimedo.com/computers/dual-boot-windows-7-ubuntu.html']one[/URL] featuring Windows 7 and Ubuntu, and finally, the [URL='http://www.dedoimedo.com/computers/dual-boot-windows-8-ubuntu.html']latest[/URL] one featuring Windows 8 and Ubuntu 14.04. Now, the world of dual-booting opens up a whole new world of additional possibilities, as well as technical complications. [IMG]http://www.dedoimedo.com/images/computers_years/2014_1/dual-boot-windows-8-ubuntu-new-layout.jpg[/IMG] You will need to take into consideration data backup, system imaging, bootloader configuration, disk and partition management, and many other issues. All of these topics are covered in detail in the guides above. [SIZE=5][B] How does Linux work? [/B][/SIZE] So let us say that you decided to give this a try. Now, I am going to talk a little about how Linux works, from boot to desktop, the functionality, the accounts, as well as the notable difference from Windows, and that is Linux can run in a live session. This means that before you install a machine, you can boot into a fully functional environment that is visually almost 100% identical to what the system will look like after the installation. [IMG]http://www.dedoimedo.com/images/computers_years/2014_1/ultimate-linux-guide-live-cd.jpg[/IMG] In the live session, you can then test hardware compatibility, look & feel, check programs, and only then decide whether you wish to install this particular flavor of Linux. This is a huge advantage compared to Windows. Furthermore, this allows you to use Linux as recovery systems, because you can start it on non-bootable hosts and repair them. [SIZE=4][B] Linux boot process [/B][/SIZE] Here is a simplified explanation on what Linux does once you power on the machine. First, there's BIOS or UEFI, which initializes the hardware. It also activates the first bootable disk that you have configured in the BIOS or UEFI menu. It goes into the Master Boot Record (MBR) of the first bootable disk, where a bootloader is installed. The bootloader entry tells the system where to look for the kernel image and the initial filesystem (initramfs or initrd) image. Where in the aforementioned context means which disk, which partition. The kernel image is a compressed kernel, the actually heart of the operating system. Initrd is a compressed image containing drivers for hardware, needed to initialize most of the system resources. The kernel and initrd are loaded into memory and executed. The system initialization process (sys_init) starts the first process called init. This special process is a kernel thread, with the process identifier PID=1. Init then goes to /etc/inittab and reads the configuration. This files tells the system in which runlevel to start. [SIZE=4][B] Runlevels [/B][/SIZE] Linux runlevel is a complete state of a system. It is somewhat equivalent to what you would see when hitting F8 during Windows boot to get to the Safe Mode. In the Safe Mode menu, you can boot to command prompt, command prompt with networking, and more. There are seven Linux runlevels, marked numerically 0-6. [LIST] [*]0 is the system halt state. [*]1 is the system rescue state - you boot here to fix system problems. It is also known as Single mode, and sometimes it is referred to as s or S. It is a runlevel with only one user, the special account we mentioned earlier called root, without desktop environment or network. [*]2 is a console-only runlevel, with no networking. [*]3 is a console-only runlevel, with full networking. This is the typical mode of use for most servers worldwide. The servers run in this mode, and users connect to them using remote shell programs, working on the command line. [*]4 is normally undefined and unused. [*]5 is the full desktop mode, like you can see in screenshots above. [*]6 is the reboot state. [/LIST] When init selects the default runlevel, it goes into /etc/rcX.d, a directory that contains symbolic links to the /etc/init.d/ directory. Symbolic links are like shortcuts. The letter X corresponds to the runlevel. So for runlevel 5, the directory is rc5.d. Init then starts all services using service scripts marked SXX, where XX is a number, in ascending order from 0 to 99. It tries to resolve dependencies, and then it runs the programs listed in these scripts until the system is fully booted and functional. Conversely, during shutdown or reboot, it runs the kill scripts, marked with KXX in descending numerical order. [IMG]http://www.dedoimedo.com/images/computers_years/2014_1/ultimate-linux-guide-booting.jpg[/IMG] This is the classic invocation, and it not always correct. Some Linux distributions do not use all the seven levels, and some levels are simply identical to others. Some Linux distributions use different methods of starting services, including boot sequence mechanisms called [URL='http://en.wikipedia.org/wiki/Systemd']systemd[/URL] or [URL='http://en.wikipedia.org/wiki/Upstart']upstart[/URL]. But that's advanced stuff. Desktop environments are also started and initialized, until the user is logged in the full desktop session. Do you remember the virtual consoles we mentioned earlier? Well, you might want to know the desktop session is shown on the seventh virtual console, which can be accessed with Ctrl + Alt + F7. Function keys F1 through F6 access command-line only sessions. [SIZE=4][B] Users [/B][/SIZE] Finally, we need to distinguish between two major user types. There's the system administrator user, called root, with the identified number 0 (ID=0). Then, there are regular users, with generic names. It is a little confusing that the word root is used for three different things: the root of the filesystem tree, marked by slash (/), the root user, the system administrator user, and the root user home directory, found under /root. You can identify these different types of users if you execute the Linux task manager. For example, from the command line, then you will see processes that belong to root, as well as other users. [IMG]http://www.dedoimedo.com/images/computers_years/2013_1/ubuntu-ringtail-high-compiz.jpg[/IMG] Root is a privileged users, and it is designed for system administration. Regular users do not have permissions to make system changes. This is similar to the limited account concept in Windows. However, in Linux, regular users can elevate their privileges through the sudo mechanism. This allows a temporary elevation of rights to perform a specific administrative task. In Debian-based distributions like Ubuntu and Mint and others, the default is to use sudo rather than authenticating as the root user. In RedHat-based distributions, the second method is more common. In both cases, you need relevant passwords. sudo some-command On the other hand, to switch to the root user: su - [SIZE=5][B] Common desktop activities [/B][/SIZE] Now you are in a Linux desktop? So what do you do now? [SIZE=4][B] Getting to know Linux desktops [/B][/SIZE] Now, remember our earlier conundrum. There is no one desktop environment, so the learning process can be many-fold. It also presents me with a challenge of showing what to do, because each setup is ever so slightly different. But let's try a generic approach. Indeed, here's a desktop, it does not matter which or why: [IMG]http://www.dedoimedo.com/images/computers_years/2013_2/petra-desktop-final-2.jpg[/IMG] So what do we have here. In the left bottom corner, a menu, it invokes a menu very much like the Windows start menu. There's a taskbar full of icons, only this bar is called a panel, or rather, a bottom panel. In the right corner, a system area. Very much like Windows. Here's the system menu, open - this is 100% like Windows: [IMG]http://www.dedoimedo.com/images/computers_years/2013_2/petra-mate-menu.jpg[/IMG] Yet another, even more Windowsy example: [IMG]http://www.dedoimedo.com/images/computers_years/2012_1/netrunner-menu-app-style.jpg[/IMG] Another example with a classic menu positioned at the top: [IMG]http://www.dedoimedo.com/images/computers_years/2012_2/opensuse-12-2-mate-mate.jpg[/IMG] [IMG]http://www.dedoimedo.com/images/computers_years/2012_2/opensuse-12-2-mate-sonar.jpg[/IMG] You have icons on the desktop. Click to launch them. Some desktop environments offer a double-click mantra, others, like KDE, use the single-click approach. But in a nutshell, once you get the initial fear, the installation, and the complexity of understand the Linux world, the usage becomes trivial. There's this pair of [URL='http://netrunner-mag.com/kde-vs-gnome-system-management/']nice[/URL] [URL='http://netrunner-mag.com/kde-vs-gnome-in-daily-life/']articles[/URL] on desktop management, Gnome versus KDE. You can also look my Netrunner desktop environment [URL='http://netrunner-mag.com/linux-desktop-environment-showdown/']showdown[/URL], too. [SIZE=4][B] Common software [/B][/SIZE] The truth is, most of the software you might want to use is available in the Linux repositories, especially if you are fan of free, open-source solutions. Of course, you will not find most Microsoft and Adobe products, but many others will be there. Or you may choose alternatives. The important thing is, you do NOT NEED to wander around the Web, looking for software. You can just use your command-line or graphical package manager, and search for the software of your liking. Most package managers are rich application stores, and they will give you star rating, screenshots, reviews, and more. [IMG]http://www.dedoimedo.com/images/computers_years/2013_1/xubuntu-ringtail-usc.jpg[/IMG] You should also check my must-have lists, the [URL='http://www.dedoimedo.com/computers/linux-best-software-2012.html']new[/URL] and the [URL='http://www.dedoimedo.com/computers/new-cool-list-linux.html']older[/URL] one, and one for the [URL='http://www.dedoimedo.com/computers/linux-apps-non-gnome-kde.html']less[/URL] popular Linux desktop environments. Plus, I've compiled a similar guide for Windows, and it will [URL='http://www.dedoimedo.com/computers/windows-cool-apps.html']give[/URL] you a good, strong indication of how the two worlds compare. Then, I have also written many other comparison guides. On media players, on [URL='http://netrunner-mag.com/the-browser-state/']browsers[/URL], [URL='http://netrunner-mag.com/linux-office-suite-competition/']office[/URL] software, and still more. The list is endless. [IMG]http://www.dedoimedo.com/images/computers_years/2013_2/fedora-20-apps.jpg[/IMG] [SIZE=4][B] Common games [/B][/SIZE] The world of gaming is truly different between Windows and Linux, although with the creation of the [URL='http://www.dedoimedo.com/computers/steamos-review.html']SteamOS[/URL], the gap is narrowing. While you are exploring this particular aspect of the Linux world, you might want to take a look at my 100+ [URL='http://www.dedoimedo.com/computer_games.html#linux']game[/URL] reviews, all done specifically for Linux, on Linux. [IMG]http://www.dedoimedo.com/images/computers_years/2013_1/fuduntu-high-end-steam.jpg[/IMG] Furthermore, you should note that some Windows titles can be used on this new operating system using emulation and other tools, although with limited success and guarantee. The next [URL='http://www.dedoimedo.com/games/linux-games-guide.html']guide[/URL] ought to help you decide when and how. [SIZE=4][B] Common tasks [/B][/SIZE] What users will want to do now is something like Windows - install software and configure their system. Most distributions come with a lot of preinstalled stuff, so the housekeeping list might actually be shorter than you expect. Some distros pack codecs, games and extra programs, so no need to sweat there. Still, you probably might want to install your printers, install Steam, try Skype, configure your Wireless, and still more. I am going to highlight two or three examples here, but then, you will want to follow my mega pimping guides for some of the leading distributions, as these howtos contain a lot of useful information. Wireless setup example Let's say you want to configure your Wireless. This seems like one of the first things you might wanna do. This is demonstrated with Kubuntu. Click on the Wireless radio icon, which would be the first one on the right after the digital clock and a little arrow. Then, select the desired connection. Provide your password. Choose to automatically connect. And then, press Connect. Works like any other operating system. [IMG]http://www.dedoimedo.com/images/computers_years/2013_2/kubuntu-saucy-wireless-connect.jpg[/IMG] [IMG]http://www.dedoimedo.com/images/computers_years/2013_2/kubuntu-saucy-wireless-connected.jpg[/IMG] Desktop background change In most Linux desktops, it will be very much right-click > desktop background. Some other desktop environments may offer a more complicated path. For example, it might be as convoluted as System menu > Preferences > Appearance, then the Background tab. [IMG]http://www.dedoimedo.com/images/computers_years/2010_2/fedora-14-more-backgrounds.jpg[/IMG] Graphical card drivers example This is something that many you would want to know. Well, how about my Ubuntu guide on this topic, which details no less than [URL='http://www.dedoimedo.com/computers/ubuntu-ringtail-nvidia.html']five[/URL] different methods to configure and install Nvidia drivers on an Ubuntu box. [IMG]http://www.dedoimedo.com/images/computers_years/2013_1/xubuntu-ringtail-additional-drivers-installing.jpg[/IMG] Other examples Check for updates - just like Windows: [IMG]http://www.dedoimedo.com/images/computers_years/2013_2/opensuse-13-1-updates-shield.jpg[/IMG] Check user settings: [IMG]http://www.dedoimedo.com/images/computers_years/2013_2/petra-user-icon.jpg[/IMG] Manage a currently playing music track: [IMG]http://www.dedoimedo.com/images/computers_years/2013_1/olivia-banshee-volume-ok.jpg[/IMG] [SIZE=4][B] Pimping guides [/B][/SIZE] Here's my essential [URL='http://www.dedoimedo.com/computers/ubuntu-essential-pimping-guide.html']list[/URL] for Ubuntu. Likewise, the [URL='http://www.dedoimedo.com/computers/opensuse-pimp.html']same[/URL] tutorial for openSUSE. And then, there's [URL='http://www.dedoimedo.com/computers/fedora-pimp.html']one[/URL] for Fedora, too, so you should take a closer look. All of these explain how to install and configure many useful pieces of software, including themes, fonts, look & feel tweaks, popular programs like Steam, Skype, VLC, LibreOffice, graphical drivers, codecs, and more. [IMG]http://www.dedoimedo.com/images/computers_years/2013_2/fedora-20-easylife.jpg[/IMG] [SIZE=4][B] Additional guides [/B][/SIZE] Some more random reading, if you are interested: Nvidia [URL='http://www.dedoimedo.com/computers/opensuse-nvidia.html']setup[/URL] in openSUSE Xubuntu [URL='http://www.dedoimedo.com/computers/xubuntu-pimp.html']pimping[/URL] guide Steam setup for Linux [URL='http://www.dedoimedo.com/games/steam-linux-mint.html']Mint[/URL] and [URL='http://www.dedoimedo.com/games/steam-kubuntu.html']Kubuntu[/URL] Skype [URL='http://www.dedoimedo.com/computers/ubuntu-salamander-skype.html']setup[/URL] in Ubuntu Salamander An older [URL='http://www.dedoimedo.com/computers/linux-printing.html']guide[/URL] on Linux printing Working with [URL='http://www.dedoimedo.com/computers/linux-subtitles.html']subtitles[/URL] in Linux software And there's more. Close to 1,000 articles on Dedoimedo. [SIZE=5][B] Best Linux resources [/B][/SIZE] Now that you have invested so much of your time, how about some more reading. Here's my short list of the finest resources for your Linux escapades, so you can become proficient and cool. Distrowatch is your one-stop [URL='http://distrowatch.com/']shop[/URL] to finding Linux. This is the de-facto Linux distro portal, where you can find the listing of pretty much any important distro out there. You also get screenshots, links to reviews, and tons of other informations. For Ubuntu users, Ask Ubuntu is a [URL='http://askubuntu.com/']very[/URL] good "how do I" resource. Hop yonder and start asking questions. It is the official Ubuntu support channel, in addition to Ubuntu forums, so you can find a lot of useful stuff that may help you get around. Webup8 [URL='http://www.webupd8.org/']has[/URL] a lot of interesting tutorial for many distribution, despite a small preference for Ubuntu flavors. Tutorial on Webup8 are detailed and useful, often accompanied with command-line instructions to get things working. LinuxCommand.org will [URL='http://linuxcommand.org/']teach[/URL] you how to use shell scripting. HowtoForge [URL='http://www.howtoforge.com/']offers[/URL] ton of guides for servers. And my own site, of course! [SIZE=5][B] Serious questions to all readers [/B][/SIZE] Now, I have a few serious questions for you, before we conclude this tutorial. First, would you like to see this article transform into a book, akin to my Apache [URL='http://www.dedoimedo.com/computers/apache_book_part.html']guide[/URL] or the Linux Kernel Crash [URL='http://www.dedoimedo.com/computers/crash-book.html']Book[/URL], both of which proved to be fairly popular. If so, ping me. Second, do you feel like anything is missing? Talk to me, and I may add an updates section with additional pointers, tips and tricks. We probably cannot cover everything, but there might be other, obvious things that I failed to include. [SIZE=5][B] Updates & user questions [/B][/SIZE] To be added if the popular demand proves demanding enough ... [SIZE=5][B] Conclusion [/B][/SIZE] There you go. I do like to brag a lot, still I believe this article truly merits praise. It gives the single most comprehensive view of Linux, top to bottom and then back up. Sure, this is only the tip of the iceberg, but you have the comparison to Windows in every single aspect, and you can see the major differences. Try to follow the whole thing, don't skip any sections. Once you have read everything, you will have gained a decent understanding of the Linux operating system, the many subtle nuances between its varying editions and flavors, and finally, you will know how to setup pretty much any distro, perform multiple installations side by side, and administer your desktop with ease and elegance. It won't be easy, but it's a start. Take care. [/QUOTE]
Insert quotes…
Verification
Post reply
Top