Let’s Make A Linux Installation Drive

Today’s article might seem like a duplicate article, but it’s just another way that you can make a Linux installation drive. Today, we’ll be showing you yet another way to accomplish your goals. Why? Because we can! Because Linux has umpteen different ways to reach your goals – and that is awesome.

We’ll also be using a different tool for this exercise. It’s a pretty handy tool, suitable for more than just making an installation drive. Specifically, a USB thumbdrive! But, that’s just one thing you can do with this tool. It’s my way of introducing you to the tool in a useful manner. 

So, what tool will be using?

Introduction To ddrescue:​

The tool we’ll be using is called ddrescue and it’s a pretty handy tool. You probably won’t find ddrescue pre-installed, so you’ll almost certainly need to install it yourself. 

Also, if you want some confusion, if you’re using Debian, Ubuntu, Mint, etc., you’ll find it’s gddrescue at least during the installation process. Why? I don’t know. You’ll have to find out from the Turks.

Once you do have ddrescue installed, you’ll find the man page (man ddrescue) describes the application like this:

That’s right, it’s a data recovery tool! We won’t be doing any of that, however. You can probably install ddrescueview and do some of that good old data recovery with a handy GUI. I’m telling you, check the man page. This article is just going to scratch the surface.

Let’s Install ddrescue:

Yes, you can open up some GUI, type in an application name, and then install ddrescue. Or, you can open the terminal and install ddrescue without any GUI help at all. Let’s do that! Press CTRL + ALT + T to (hopefully) open up your terminal.

With your terminal now open, use the appropriate following command to start the installation process:

Debian/Ubuntu/etc:

Fedora/CentOS/etc:

Arch/Manjaro/etc:

If you don’t use any of those package managers, you may still have ddrescue in your default repositories. I just can’t confirm that you do.

Now, with ddrescue installed (even if you had to call it gddrescue during the installation phase), we can get into the meat of the article!

Make A Linux Installation Drive:

Remember that terminal that you opened to install ddrescue? Well, I hope you left it open because you’re going to need it. While the ddrescueview tool is a graphical tool, that won’t help with what we’re doing. We’ll be using the tool to make a Linux installation drive, which is almost an afterthought for this tool.

First, like a previous article about making a Linux install USB, we need to identify your target device. Plug in  your USB thumbdrive and use the following command to identify it:

You should be able to easily pick out your USB device by size. It will begin with an ‘sd’ (remember that it’s case-sensitive) and then may be broken down into partitions. Ignore the partitions and know that you’ll be removing any information on that USB drive.

You’re looking for something like sdb or sdc and you’ll add a ‘dev‘ in front of it. So, if your thumbdrive is sdb, your path is /dev/sdb. If your thumbdrive is located as sdc, the path you want is /dev/sdc. It’s pretty simple.

The syntax is as follows:

For example, this would be a command I could use:

This would let me write today’s current Lubuntu testing .iso to a USB drive so that I can test it on a laptop without having to waste the bandwidth to download the same file twice. 

Pretty handy, huh? 

Well, there’s a lot more you can do with ddrescue. I highly recommend reading the man page to learn more about this nifty application. It can do quite a bit more than this. Indeed, this is more an afterthought than anything else, or so it seems.

Closure:

Well, there you go. You have a new article. That happens regularly around here! Today we talked about yet another way to make a Linux installation drive. Frankly, you can just use balenaEtcher and call it a day. There’s no reason for most of us to do this in the terminal – but we can and it’s not even that difficult. You just need the right tools for the job and Linux has many tools on offer.

Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

How To: Zip Files In Lubuntu

Today’s article will be relatively short and fairly easy as we talk about how to zip files in Lubuntu. This seems like a nice and easy article and something folks might want to know. If you’re in this category, by all means, read on!

NOTE: This is written for Lubuntu, but will work in other distros. I’m just trying something new, specifically doing some distro-specific articles to see how well they do.

If you’re unfamiliar with Lubuntu, it’s a lovely distro that’s fairly lightweight and easily configurable. Lubuntu is an official Ubuntu flavor. The purpose of Lubuntu has changed. The focus has changed from being lightweight (which it still is) to getting out of your way. You can read some of the history on Wikipedia’s Lubuntu article.

I’m biased because I’m an official Lubuntu member. I’m on the team that brings you this distro and have written a few Lubuntu-specific articles.

Disable Window Grouping In Lubuntu
Change Snap Application Privileges In Lubuntu
Change Your DNS Servers To Google’s In Lubuntu

(There are more, of course!)

I’m definitely a fan.

Anyhow, we’ll be learning to zip files in Lubuntu today. When you zip a file, you compress the file and make a new file. Some files don’t compress while other files (such as plain text files) can be compressed quite a bit. There are many different compression tools, methods, and algorithms. I’ve covered some RAR stuff in the past, for example.

Zip Files In Lubuntu:

We’ll be using the zip application in the terminal to zip files in Lubuntu. You can compress files graphically, but we’ll be doing this in the terminal. You can do almost anything in the terminal. So, let’s start by pressing CTRL + ALT + T to open the terminal.

The tool we’ll be using is the zip application, defined simply as:

zip – package and compress (archive) files

For the record, the zip application should be installed by default. I don’t like to assume the default is still true, so I’ll also explain how to install the application, also in the terminal.

You can install the zip application with this command:

You can check the man page for zip with this command:

To zip a file in Lubuntu, you would run this command:

If you want to zip multiple files in Lubuntu, you can just add them to the command by tagging them on the end. That looks like this:

See? It’s just that easy to zip files in Lubuntu – specifically in the terminal. Of course, this is true for all sorts of other distros. The only thing that would change would be the process for installing the application should it not be installed by default.

Closure:

Yup… I told you that this would be a quick and easy article. I will actually (probably) cover more of this very topic. It’s a way to keep fresh articles on the site, by being distro/distro-family specific. Yeah, I know that it’s more convenient to have big articles that cover a lot of information. At the same time, writing them all is a lot like work – largely because you start running out of ideas for new articles.

By the way, I could so use a break. You should write an article for me! In fact, you should write a whole series of articles!

Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

Update Flatpaks From The Terminal

Today’s article is just going to be nice and quick. It is just going to be about how you can update flatpaks from the terminal. This might be something you’re interested in learning. So, if you want to know how to update flatpaks from the terminal, this is the article for you!

Trust me, this shouldn’t take too long. That’s good because I’m not sure how long I have! I’m having some desktop computer issues. I have laptops, yes plural, available, but I hate typing on them. I could just hook up an external monitor and keyboard, but that’s a lot like work. If I was interested in doing work, I’d investigate why my desktop PCs keep dying.

What Is A Flatpak:

A flatpak is an application package format. To enable flatpaks, you’ll have to install some software first. That seems like a good article that hasn’t been written yet.

Anyhow, a flatpak comes with all the dependencies it needs to run. It is also run in a sandbox, meaning it is more secure as it runs independently of the operating system and other applications. As they run independently, they’re able to be installed (in theory) on any distro. You don’t need to make a flatpak for each distro’s package manager, you can just make the one flatpak and it should work everywhere.

If you have something like the Gnome Software Manager and you’ve installed the initial flatpak software (software that enables you to use these packages in the first place) then you’ll see that it integrates flatpaks into the system. In that case, flatpaks will update with the rest of the system and you don’t need to worry about updating flatpaks in the terminal.

On the other hand, this may not be true for you and you may not realize that you can update flatpaks from the terminal. Which means this is for you…

Update Flatpaks From The Terminal:

Of course, this means you need an open terminal. Just press CTRL + ALT + T and your default terminal should open. You may need to open the terminal from your application menu, but the above key bindings are fairly universal.

The command is really simple if you want to update flatpaks from the terminal. To do so, you simply run this command:

Notice that you do not need sudo or any elevated permissions. Many folks list this command as a sudo prefaced command and that’s not necessary. The flatpaks installed are installed in a way that the files belong to the user. As such, there’s no need to use elevated permissions.

While you’re there, there’s a lot that one might not know about the flatpak application. I highly suggest you check out the man page to learn more – as there’s quite a bit that you can do with the application.

Yeah, that should show you all the options you have. There are far too many options to cover in this short article about updating flatpaks from the terminal.

Closure:

So, yeah… I told you that this would be a nice and short article. There’s a way to update flatpaks from the terminal and this is how you do it. You might as well know how to do so. It’s not complicated and might come in handy someday, especially if you’re expected to update them manually.

Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

Let’s Mount An .iso In Lubuntu

Today we’re going to discuss something you won’t need to do often, as we learn about how to mount an .iso in Lubuntu. That seems like a fun article to write and it’s something I just had to do. So, that seemed like a good idea to me.

This shouldn’t be a very long article. I’ll try to keep it simple and straight forward. I figure if you can follow simple directions, you’ve got this licked. It’s not exactly a challenging task. Anyone willing to try hard enough can manage to follow along with this article.

I suppose we should start at the beginning…

What Is An .iso file?

An .iso file is a standard that’s used for images of optical disks. If you’ve used CD/DVD burning applications, it’s what you’re doing when you ‘burn an image’, for example. It’s a single file, meant to be written as an image, and is a file that’s meant to be an optical disk.

You’ll run into .iso files in Linux often. Pretty much every single distro out there is released in .iso format. We don’t always use them for optical disks. You’ll find that a lot of hardware doesn’t even have an optical disk drive. As such, we use the image formats for other things – like USB drives.

We burn these .iso files to a USB so that we can install Linux in the first place. When you’re faced with installing Linux and want (or need) to do it with a USB thumb drive, you’ll want to use tools like balenaEtcher.

So, with Linux at least, you’re likely to run into .iso files. They’re a useful way of sharing a disk image. You’d originally write that disk image to a disk (like optical media) as a single file and then that disk would work. If you try to write an .iso to media as just a file, it’s not going to work as something you can boot from.

You can learn more about the .iso format at Wikipedia. There are other formats for disk images, just so you’re aware. Read the Wikipedia article for more information.

The Mount Command:

We’ll be using the terminal for this command and we’ll be using the mount command for this exercise. As we’re only addressing Lubuntu (though this will certainly work in other distros) we know that the command is already installed and there’s no work for you to do there.

If you check the man page, you’ll see that the mount command is exactly what we need. The man page describes it like this:

mount – mount a filesystem

See? Exactly what we need to mount an .iso in Lubuntu! It’s perfect for the purpose.

You probably mount things all the time. If a disk is usable in Linux, it has been mounted. (You may run checks against an unmounted disk, of course.) If you plug in a USB drive, Lubuntu will happily (assuming your settings are the default settings) mount the drive for you. It’s a handy thing, to have the system smart enough to mount devices when plugged in. It beats the old way of having to mount them yourself manually.

So, the mount application is already installed and you needn’t install anything, but we will be doing this in the terminal. Yes, you can probably manage to do this with some GUI trickery, but you might as well learn how to mount that .iso file in the terminal. It’ll be good for you!

Mount An .iso In Lubuntu:

As mentioned above, we’ll be doing this in the terminal, the way it has historically been done. This isn’t going to be all that challenging, but you first need to open the terminal. To open your terminal, just press CTRL + ALT + T. That should open your terminal.

With your terminal now open, you need a .iso file for this so feel free to download a distro (such as Lubuntu) to your Downloads directory – or wherever you want it to be. You start the mounting procedure by first setting a location for the file to be mounted. Like so:

In theory, you can probably make the directory anywhere, but we will be dealing with convention. If you’re using Lubuntu, things should be mounted as media, and so they go in that directory.

The next step is the actual mounting of the file. This isn’t difficult, you just need to know the path of the .iso and where you just made the directory. That command would look similar to this:

At this point, your .iso file is mounted. You can use the file manager (PCManFM-Qt) to navigate to the files included in the .iso file. You can also list the contents of that file with this command:

With the .iso mounted, you can browse, copy, and extract files from the .iso file. You could theoretically add files to the image, but that’s not always a wise decision. 

When you’re done with the mounted .iso, you can just unmount it with the following terminal command:

This is all you really need to know to mount an .iso in Lubuntu. Try it for yourself, you can’t really break anything.

Closure:

Well, if you ever need to mount an .iso in Lubuntu, you now know how to do so. As I told you near the start, it’s not that complicated. If you just think it through and follow directions, you’ll be all set. It’s not all that often that you need to mount an .iso, but the situation does happen. This is especially true if you’ve done a backup that was a disk image and you need to recover files from it because you’ve had something break.

Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

Extract Multi-Part rar Files In Ubuntu

Today’s article is limited to just a subset of users as there aren’t that many people who want to extract multi-part rar files in Ubuntu. This isn’t something you’re going to face often (unless you’re still pirating stuff from Usenet) but it’s something some folks will face. So, this article is for all of those people, all three of you!

I suppose we first need to talk about WinRAR. For those that do not know, WinRAR is a proprietary company that uses a proprietary compression method. Even though it’s proprietary, it has some pretty great features. You have to give credit where credit is due. There are multiple versions of compression used over the years but they all share the same .rar file extension and are all reasonably compatible with one another.

The GUI version of WinRAR is a Windows-only trialware application but there’s a command-line version that can be installed in most distros. While this article is Ubuntu-specific, it’s sure to work with other distros though the installation method may be different. On top of that, many Linux tools (such as file-roller) are capable of extracting files compressed with WinRAR.

This isn’t going to be a very complicated article. It also shouldn’t be all that difficult. I figure folks can follow along if they need to when they need to. This isn’t something the average Linux user is going to face daily. After all, the majority of our software is free! There’s no reason to pirate it! (Seriously, I’m sure there are legitimate uses for multi-part rar files but I’ve only really seen them in frequent use with software piracy.)

Install unrar In Ubuntu:

To extract these multi-part rar files in Ubuntu, you’ll want to install the unrar application. That makes sense, after all. So, like so many things, we’re going to do this in the terminal. You can certainly install unrar with the GUI software installation tools, but we might as well do so in the terminal.

With that in mind, and with this unrar process also being in the terminal, we might as well go ahead and get unrar installed in Ubuntu. First, you can press CTRL + ALT + T to open your terminal. You should also be aware that this is going to pretty much work with any Debian (or Ubuntu) derivative out there. So, this works just as well with Mint, ElementaryOS, or the like…

I suppose we should update first, and you can do that easily enough:

If you trust your upgrades and don’t want to have to manually approve them, then you can just add the -y flag to the end of that, like so:

The next step is going to be installing unrar. You do so like this:

At this point, you can check the man page (man unrar) where you’ll learn that the unrar application describes itself like so:

unrar – extract files from rar archives

That’s a good description and, as you can see, is exactly the tool we want for this operation. If you’re going to extract multi-part rar files in Ubuntu, this is a good tool to do it with. (You can just as easily find a GUI application that will take care of this.)

Extract Multi-Part rar Files In Ubuntu:

I hope you left your terminal open after the installation phase. If not, you’re going to need to open it again. I envision people searching for this specific process and following along. I don’t envision people doing this just for the sake of following along. After all, it’s not like I made multiple-part rar files for you to test this with. You’ll want this article when you need this article.

Anyhow, the process is quite simple.

First, move all of the files into a single directory. This is going to make it much easier. In theory, you could specify the individual paths, but we’re not going to be doing that. No, move all the multiple parts to a single directory. Trust me on this one.

The syntax you’re going to use will be as follows:

No,  you do not include all the other parts. You only need to unrar the first file and the unrar tool will realize that it’s multiple parts and extract them sequentially. It will even tell you that it’s doing so, as it writes that data to the standard output.

This is why you move all the files to their own directory. Again, you only need to tell unrar to extract the very first of the files. It’ll happily find and extract the rest. Of course, you need ownership of the files or you’ll need elevated permissions (such as sudo) to extract the files.

Closure:

So, if you ever need to extract multi-part rar files in Ubuntu, you now know there’s an article that covers this. I don’t expect all that many people to need this information. I do anticipate those who need this information will be able to find this site (or another, I suppose) through a search engine. This isn’t something you’re likely to need every day, even though it’s relatively simple.

Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

Linux Tips
Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.