Alpine Linux is a crazy-fast distro for your desktop – with just one caveat


Alpine Linux

Jack Wallen/ZDNET

Follow ZDNET: Add us as a preferred source on Google.


ZDNET’s key takeaways

  • Alpine Linux is a small but mighty distribution.
  • With a bit of work, it can be shaped into a lightning-fast desktop OS.
  • Alpine Linux is free to download and install.

I’ve used every conceivable Linux distribution, from the extremely lightweight to the overstuffed and bloated. With almost every distribution type, I can find a rock-solid use to make the most of what it offers.

Also: The best Linux laptops: Expert tested for students, hobbyists, and pros

Alpine Linux is no outlier. However, for the most part, I’ve used this lightweight, security-focused distribution for container deployments —  one of the most common use cases for Alpine Linux because its base image is incredibly small (between 2.67 and 5 MB – yes, megabytes). This gives Alpine Linux a minimal attack surface, which is great for containers.

But is Alpine Linux an option for the desktop? The answer to that is yes, but with a big honking asterisk.

Let me explain.

What is Alpine Linux?

Alpine Linux is a very minimal distribution, which translates to, “It doesn’t ship with a desktop environment or a lot of apps/tools you’re accustomed to.” In fact, it doesn’t ship with sudo or even bash. 

Consequently, it does take some work to make Alpine Linux a viable option for the desktop. But that doesn’t preclude it from being an option, especially for those who value simplicity and security.

Also: Want to save your aging computer? Try these 5 Linux distributions

At the same time, getting Alpine Linux readied for desktop usage isn’t exactly for the faint of heart. If you know what you’re doing, you can have a solid desktop up and running in minutes. If you don’t know what you’re doing, it could take a while.

Is it time well spent? If you like a slight challenge and want to enjoy the end result of your efforts, the answer is yes. Alpine Linux as a desktop distribution is definitely worth the time spent.

Let me show you what that time involves.

Installing Alpine Linux

The installation of Alpine Linux is a text-based affair, but it’s not even remotely challenging (so long as you can answer a few simple questions).

The process includes the following:

  1. Create a bootable USB drive with the downloaded Alpine Linux ISO.
  2. Boot the USB drive.
  3. When prompted, log in as root (no password).
  4. Run the command setup-alpine.
  5. Select your keyboard.
  6. Set your hostname.
  7. Set up the network connection (accept the default by hitting Enter on your keyboard).
  8. Set a root user password.
  9. Set the time zone.
  10. Select an Alpine mirror. (I suggest the official Alpine mirror, as I’ve run into trouble with the fastest option.)
  11. Set up a regular user account.
  12. Choose your secure shell daemon. (Hit Enter to accept OpenSSH as your default.)
  13. Partition your disk. (Because we’re going to use this as a desktop, type sys for a traditional hard-disk installation.)
  14. The installation will complete in about a minute. Once it completes, reboot with the command: reboot

Also: After 30 years with Linux, I gave Windows 11 a chance – and found 9 clear problems

After it reboots, log in as the standard user you created during installation.

Installing the KDE Plasma desktop

Before installing KDE Plasma, there are a few things to take care of. First, you’ll need to enable the community repository. To do this, install the nano text editor with:

doas apk add nano

Once that completes, install bash and sudo with:

doas apk add bash bash-completion sudo shadow

Reboot again.

Log back in as your standard user and then issue the command:

setup-desktop

Type plasma and hit Enter on your keyboard. This will walk through installing everything required for the KDE Plasma desktop.

Also: The most beautiful Linux distributions 

When that completes, reboot again. After the reboot completes, you’ll be greeted with the KDE Plasma login screen, where you can log in as your standard user and start using the desktop.

Alpine Linux

KDE Plasma certainly is a beauty.

Screenshot by Jack Wallen/ZDNET

The first thing you’ll notice is how fast Alpine Linux performs. It’s crazy fast. You might also notice that, even though you have a network connection, some apps don’t recognize it. That’s because the NetworkManager service isn’t running. To start and enable that, issue the following commands:

doas rc-service networkmanager start

doas rc-update add networkmanager default

You should now be able to use everything as expected, even KDE Discover for installing applications (such as Flatpak).

Alpine Linux

I would highly recommend installing Flatpak, so you have more options.

Screenshot by Jack Wallen/ZDNET

That’s a lot of hoops to jump through, yes, but the hoops aren’t all that challenging — so long as you don’t mind typing some commands. The end result is a lightning-fast desktop that can serve you very well. 

Who is Alpine Linux best suited for?

I would never recommend Alpine Linux as a desktop distribution for those with no Linux experience. But for those with even a modicum of familiarity with the open-source operating system, Alpine Linux could be a nice addition for personal use. On top of that, you’ll learn a bit more about Linux along the way.

Also: I tried the latest MX Linux version on my PC, and it made the system look and feel like new

One last thing: Alpine Linux doesn’t ship with a firewall (though when you install KDE Plasma, it adds a firewall GUI). You can install a firewall with a command like:

doas apk add ufw

Once you’ve installed the firewall, open the firewall GUI and enable it.

Have fun with Alpine Linux.





Source link

Leave a Reply

Subscribe to Our Newsletter

Get our latest articles delivered straight to your inbox. No spam, we promise.

Recent Reviews


Most Mac users see Apple Preview as only an app to view images, PDFs, and other documents. That’s it. If that sounds like you, you are leaving a lot on the table, because Preview has quietly grown into one of the most capable apps on macOS, and it’s available for free.

I use the app daily to edit images, markup and sign PDFs, redact information, and so much more. So let me walk you through seven things you probably didn’t know Apple Preview could handle.

You can rearrange, combine, and pull out PDF pages

If you regularly work with PDFs, this one will save you a ton of time. Preview lets you easily rearrange pages in PDFs, combine multiple PDFs into one, and even extract specific pages from a PDF. 

To perform any of these actions, first you have to enable the thumbnail view. To do this, open a PDF file in Preview and go to View → Thumbnails or hit the keyboard shortcut ⌥⌘2 to reveal the sidebar. From here, you can click and drag pages to rearrange them in any order you like.

You can also drag a selected page out of the sidebar directly onto your desktop, and it will save those pages as a new PDF. No need for any extra software. 

You can also drag a PDF document or pages from other PDFs inside another PDF to merge them

Stop people from snooping on your PDFs

If you are sharing a sensitive PDF with someone and you don’t want anyone else to read it, you can lock it using Preview so only people with the correct password can open it. 

To do this, open your PDF, click the info button in the toolbar, find the security lock icon under Permissions, and click the Edit button. 

Now, check the box to require a password to open the document, set your password, and save the changes. You can even control what others can do without the password, like allowing them to print the file, but nothing else.

Another way to hide information is by redacting it. It permanently obscures the information so no one can read it. Note that once you save a redacted document, even you won’t be able to get the information back so ensure to create a copy of the original document before redacting it. 

To redact a document, open the Markup toolbar and click on the Redact tool. Now, you can highlight any text or just select an area to redact it. 

Read PDFs at night without burning your eyes

This one is a recent addition and an incredibly useful one. If you use your Mac in dark mode, Preview now has an option to match that for your PDFs. Go to View → Use Dark Appearance for PDF, and the blinding white background flips to a dark background that’s much easier on the eyes. Just keep in mind that this option only shows up when your Mac is already set to dark mode.

Remove image backgrounds without a third-party app

Preview also offers several image editing tools. Out of all the editing tools, my favorite is the one that lets me remove an image’s background. Yes, you don’t need Affinity or Photoshop to remove a background from an image

Preview can do it. Open an image, go to Tools → Remove Background, or hit the keyboard shortcut ⌘⇧K. As you can see in the image below, Preview has done a great job of removing the background and cutting out the subject. 

Open any image you just copied

Here is a little trick I use all the time. If you copy an image to your clipboard, you don’t need to paste it into a photo editing app to save it. Just open Preview and go to File → New from Clipboard or hit the keyboard shortcut ⌘N. Your copied image opens instantly, ready for you to edit, resize, or export.

Mark up screenshots and PDFs like a pro

The markup toolbar in Preview is genuinely great for quick edits. You can draw circles or rectangles to highlight something, add text, draw arrows, and even drop in your signature. 

While CleanShot X handles all my screenshot annotation needs, Preview is the app I use to markup my PDFs. And if you don’t deal with dozens of screenshots every day, Preview’s built-in functionality will be more than enough for you. 

Bonus tip: extract high-quality app icons

I don’t know who will need this feature, but I use it regularly, so I am sharing this as a bonus. Sometimes I need to use app icons to create images (like the one you see at the top of this article). 

If you have the app already installed on your Mac, you don’t need to hunt for the icon image on the web. Just go to the Application folder in Finder, select the app, and copy it. 

Now, launch Preview and use the “New from Clipboard” option, or use the ⌘N keyboard shortcut to open the app icon as an image in Preview. Now, use the ⌘S shortcut to save it to your desktop. 

Apple Preview is more than just a viewer

The point is that Apple Preview is genuinely powerful, and it’s sitting right there on your Mac, completely free. Whether you are managing PDFs, editing images, or trying to keep a late-night reading session from blinding you, Preview has you covered. Give it a proper chance, and I think it will earn a permanent spot in your workflow.



Source link