Linux Installation USB Media Using Windows

This is a guest article by @captain-sensible, about Linux installation – specifically creating USB media using Windows. I trust him on this, and don’t feel qualified to do much in the way of editing as I know next to nothing about Windows. So, without further ado:

Preamble:

If you already have Linux as your OS, then an article about how to get a Linux .iso onto a USB stick is probably redundant. The other thing I can deduce is that if you want to have a go at trying to install Linux, that would mean you probably don’t have Linux OS nor access to programs that run on Linux.

You might think an article involving Windows is not a good fit for Linux tips? Well I disagree the tip to put it succinctly is this – “Linux and how to get it” I.e. you want Linux but you don’t have it, and so the article is about getting it using the only tool you probably have at your disposal, which is Windows. (That’s assuming you don’t have any avisée friends using Linux)

Therefore, I am going to go through how to use Windows and software tools to get a Linux OS iso file onto a USB from which you can boot. Maybe in part 2 I could mention use of ventoy on a Linux box and persistence for a live Linux OS on a usb .

Now there are a couple of tools you can try including:

https://www.balena.io/etcher/
https://rufus.ie/

But here we will have a look at Ventoy. Ventoy has a couple of useful features – you can put several Linux ISOs onto the same stick and boot from any of them via the Ventoy boot splash menu. Also via one of the Ventoy tools called CreatePersistentImg a file is created, inside the same directory that the script is run and can be configured to be used on the formatted stick with the ISOs so that the live OS can install software.

Our Agenda will be:

  • Download a Linux .iso file
  • Download Ventoy
  • use Ventoy to format a USB stick we have
  • Drag .iso file onto ventoy formated stick
  • Boot from USB stick

Create USB Media Using Windows:

Normally I use Linux with ventoy; for this exercise using Windows10, I downloaded linuxmint-20.2-cinnamon-64bit.iso from University of Kent Mirror.

See Linix Mint Cinnamon Mirrors

Now with a download you need to check the integrity of the download. You can get the sha256 sum from:

https://ftp.heanet.ie/mirrors/linuxmint.com/stable/20.2/sha256sum.txt

And the gpg from:

https://ftp.heanet.ie/mirrors/linuxmint.com/stable/20.2/sha256sum.txt.gpg

Instructions for verifying your download can be found at:

https://linuxmint-installation-guide.readthedocs.io/en/latest/verify.html

Next we need to download Ventoy:

Go to this URL:

https://sourceforge.net/projects/ventoy.mirror/files/v1.0.52/

Shimmy down to ventoy-1.0.52-windows.zip and mouse left click to download it to your PC. Right click and choose “extract”. You will probably get something like select a destination – go for Desktop if you can; at least you can find it easily.

Anyway that will unzip the zip file. I found once unzipped that the directory I wanted was inside another directory called ventoy-1.0.52-windows, the directory and its contents you want is the one labelled ventoy-1.0.52.

See image below:

That’s the one that contains the tools you need including Ventoy2Disk, an executable Windows file. Drag that directory from inside the outer directory to your desktop.

To fire up Ventoy, go inside the ventoy-1.0.52 directory and mouse left click twice on Ventoy2Disk. You should then see a dialogue box (see image below). Now from the image it tells you that it thinks Device E: SanDisk is the USB stick to be formatted. The main point being you need to insert a preferably virgin USB stick, a USB thumbdrive with nothing on it, into your PC before Ventoy2Disk can work on anything.

Now its always best to double check things. One way of doing that is to fire up a disk utility and see what’s listed. You will use common sense as well – A 16GB storage device is unlikely to be your PC internal hard drive. Lets have a look anyway.

One way of confirming is to use Disk management. To fire that up hit the key with Windows Icon on it and R, that should bring a dialogue box up with a text box . Into the text box type Diskmgmt.msc; you should then see Disk Management and entries – see image left.

Disk management and venoy dialogue

I think I can conclude with Ventoy that Spare E is the USB I want to use. One reason is that I formatted it and labelled it using GParted. So next with USB attached to PC, left click on the install button of the Ventoy dialogue box. Now when its finished, pull the USB out and re-insert it , that’s to make sure the PC is correctly recognizing, the USB which will now have a label – ventoy.

Drag iso from download location onto ventoy usb

If you look at the above image, a window is open with location of the ISO file and the other Window on the right is the newly labelled USB stick called ventoy opened. All you have to do is use your mouse and literally drag holding down left, on the mouse from the left window onto the right window. You might have to fiddle with Windows, I know I did with Windows 10 on the laptop I was using.

Once that’s been done its a case of now shutting down Windows and from a cold boot hit the key which will give you boot options. The laptop I was doing the operation was a H.P stream so for that laptop F9 is the boot option key and F10 is the bios. You have to hit the keys almost immediately after powering up.

I had a couple of glitches on powering up, getting the boot option and booting from the USB I got “image not authenticated “now what came to mind was checking the integrity of the download. No that wasn’t it.

boot glitch

One issue was expected in disabling secure boot and enabling legacy boot; the other one wasn’t. What is was is that although I had edited the BIOS, there was a “Operating System Boot Mode Change” notification.

I did as requested entered the number quoted, hit Enter (return key) and after that I was Ok. I then got Mint booted live! Finally – Windows doesn’t like to let go easily.

Moving On:

Now when you get to the stage of getting a Linux OS up live from a USB here are a view bits of advice:

On the Desktop of your live Linux OS you will see an icon saying install Linux, don’t rush in and do that. Play around for a week with the live OS, get to know it and try of launching a shell (terminal window). Learn to use, at least launch and have a look at tools such as GParted and screenshot. You can use apt-get or apt from a terminal to search for that.

Those sort of tools and your ability to use them will come in extremely handy if you have any issues and need help from a Linux forum. Users will want to see your partitions (use gParted) and see what some things look like (use screenshot) they will probably also want to see some output of commands on the shell (your ability to use basic commands needed).

The live Linux OS you have doesn’t have persistence, you can play with installing software and it should install but only in RAM. You can achieve persistence with the Ventoy approach, but thats perhaps for another time.

Closure:

There you have it, an article about creating Linux installation USB media using Windows. This one was written by a guest, now a registered user and author. So, kudos to them for stepping up and contributing!

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 own site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

Strip Password From A Password-Protected PDF

One company likes to send me a password-protected PDF every month, and it can be a pain typing in the password every time. Fortunately, we don’t have to! To completely remove the password from password-protected PDFs, keep reading!

Now, there are times when removing the password from a password-protected PDF is against corporate policy or may be a violation of regulations. I suppose a good rule might be, “Don’t tamper with the password protection unless the PDF belongs to you.”

That said, it’s actually pretty easy to remove the passwords from password-protected PDFs. It’s easy and I’ll show you how! This won’t even have to be a very long article!

Remove Password From A Password-Protected PDF:

Like oh so many of my articles, this one starts with the terminal open. If you don’t know how to do that, it’s easy. Just use your keyboard and press CTRL + ALT + T and your default terminal emulator will open.

The tool we’ll be using is called ‘qpdf‘ and it describes itself as:

PDF transformation software

Once you have that open, one of the following should help you install qpfd:

Debian/Ubuntu:

Arch/Manjaro:

RHEL/Fedora:

Any of those should get you to the point where qpdf is installed, and there shouldn’t be (m)any dependencies. Using it is just as easy as installing it.

Obviously, you change “PASSWORD” to the password that’s used in the password-protected PDF to the actual password. You also use the name (and path) of the PDF and a new name for the new PDF that has no password. That will, of course, remove the password and you can delete the original after verifying that it worked.

BONUS:

You can actually use qpdf to make a password-protected PDF. It’s also easy and the command would look like this:

In this case, the PASSWORD is your new password and it must be typed twice. The 256 is the key-length used to encrypt the PDF. To get more information like that, just run:

In there, you’ll see that qpdf is really quite a potent application. It can do so much more than just stripping the password from a password-protected PDF. So, give that help file a scan and see what other features it has!

CLOSURE:

See? I told you that this article wouldn’t take all that long. Best part? It’s another in what’s a growing list of articles and it’s something you can actually use when you get a password-protected PDF. Again, if you’re gainfully employed or in a regulated occupation you may not want to remove the password protection.

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 own site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

Let’s Have Some Fun With Cowsay And Fortune

Today, we’ll be having fun with ‘cowsay’ and doing so while getting your fortune in your terminal. Why not? Linux doesn’t always have to be about work. Today’s article will be not even remotely useful for work and none of what you learn will greatly increase your Linux skills. We are doing this for fun, mostly.

Sometimes, it’s okay to be a little silly and to have some fun.

Besides, you’ll get to use the | (pipe) and that’s always fun! Seriously, the pipe is one of the best tools Linux has. It lets you take the output from one command and use it in another one. The man page helpfully describes it like this:

pipe – Postfix delivery to external command

We’ll just be scratching the surface with pipe, so be sure to run man pipe if you’re unfamiliar with it. Pipe hails from Unix and has been with us, in one form or another, since 1973. I dare say that the longevity is good evidence of the value.

I’m just going to give the directions for Debian/Ubuntu/derivatives. I haven’t checked across all the systems, so I’m not sure what distros this will work on. Probably all of the major distros, but it should work on anything with Debian in its lineage. If you’re not doing so, you should still be able to follow along and just adapt it to your package management systems. 

So, that being said and done, let’s look into this matter of a mad world with cows and fortunes.

Fun With Cowsay:

The first thing we have to do is open a terminal. Press CTRL + ALT + T on your keyboard and the default terminal emulator should open up. Once open, run the following command:

That should install both ‘cowsay‘ and ‘fortune‘, along with any dependencies that need to be satisfied. Those are the only two tools you need to install for this exercise, or at least they should be.

Fortune:

Fortune is a tool that outputs fortunes from a database. A normal use would be:

That should happily output a fortune for you.

Cowsay:

The cowsay application prints a graphic that looks vaguely cow-like and any text you tell it to print. The command would look a bit like this:

All of which is all well and good – but the magic is when you put them together. So, let’s try that. Let’s pipe fortune output to the cowsay application:

Which will have an output similar to this:

cowsay in action
See? You’ve got a cow spouting wisdom in the terminal! Just what you always wanted!

That’s not it! No, dear reader, that is not it! That’s not all you can do! See, you can change the cow to Tux, the Linux penguin mascot.

What the penguin has to do with a cow, I know not. But, I do know that you can use the command and output a penguin. 

The output from that command should look pretty similar to this:

cowsay goes tux
See? It’s Tux! I wouldn’t make this sort of stuff up. It’s too important!

And there you have it. You’ve successfully piped the output from fortune to cowsay and, as a bonus, morphed the cow into tux. Another productive day at the office, while having fun with cowsay!

Closure:

I’ve got a couple of articles ahead, which is nice. This one tells you how to have fun with cowsay, which is also nice. It’s pretty important business!

Now to write some that are scheduled years in the future (so that I don’t mistakenly post them and they’re out of the way) and not fret too much when Mother Nature comes to claim my internet… I’m not giving up on my publishing schedule yet!

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 own site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

How To: Install The Regular “non-Snap” Version of Chrome Browser In Ubuntu

Install Chrome browser on Ubuntu…

This article was authored while I was sick and pukin’. Well, I’d mostly stopped puking while writing.. Thanks to a fantastic @GGG_246 from Reddit (No thanks to you folks on Linux.org who normally catch this stuff!) the entire intro was meant for Chromium and not Chrome.

This is because I was moving it from the old site to the new one, splitting it into two articles. The old article covered both Chrome and Chromium. Also, I was sicker than I’m gonna describe…

So, here you go… This is how to install Chrome browser on Ubuntu. (I am still not quite back to normal. Ask me about my bowels!)

Install Chrome Browser:

Let’s just jump right into it. You know what Chrome Browser is, or you wouldn’t be here. It’s also not very complicated. Let’s bust open your default terminal emulator by pressing CTRL + ALT + T and enter the following:

That’s it in the terminal. You’re done. When you finish the installation and start Chrome it will let you set it as the default in the terminal or GUI (if you want), among other things. Even better, the installation adds its own repository and will now automatically update the Chrome browser when the rest of the system is updated.

chrome repository

The repository contains the beta version as well, as well as the unstable version. With the repository added, you can install any of them easily. Be aware that beta may have bugs and that unstable is a nightly build that’s also prone to bugs. Using either means you understand the risks – and also kinda comes with the responsibility of reporting bugs.

google chrome other versions
Just use ‘apt install’ and they’re there for the taking. Install as you wish!

And, that’s about it really. There’s not a whole lot to this article and it’s intentionally short. I’ll do a very similar article about Chromium, so be prepared for that!

Closure:

One more article is in the books. This one is short for a couple of reasons. One of those reasons is that I’m not feeling well. That and power outages make me wonder if I’ll actually manage to do this for the full year. I should get a bunch of articles ahead! I’m eventually going to miss an article or two and I should probably prepare for that.

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 own site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

How To: Use S.M.A.R.T. To Check Disk Health

Disk health is an important matter. Your storage media has a useful lifespan and the clock is ticking it from day one. Either hard disk drive (HDD) or solid state drive (SSD), your storage media has a limited lifespan.

You should plan on your drives failing because, given enough time or use, they will fail. This is a known limitation and there are ways to monitor disk health. Heck, in theory, many systems are supposed to monitor disk health and alert you of impending failure (see some BIOS options), though I’ve personally had poor luck relying on automated alerts. I periodically perform manual disk health checks.

We’ll be using “S.M.A.R.T.” (Self-Monitoring Analysis and Reporting Technology) and “smartmontools” for this exercise. It’s actually pretty accurate data – sorta… If it tells you there’s a problem, chances are good that drive health is an issue. However, drives are perfectly happy failing without giving you any warning at all. As I said in the opening paragraph, there’s a limit to how long your drives will last – but it will eventually and certainly fail.

At the same time, there are probably many of us who have ‘magical’ drives. I have an external HDD that gets used constantly – and it’s well over a decade old. On the other end of the spectrum, I’ve had drives fail within weeks of the warranty ending – and sometimes before the warranty ended. Drive failure is real and you should be prepared for it. The best way to be prepared for it is to have spares and a good backup plan.

So, let’s get started! (Also, click on the Wikipedia link above.)

Install ‘smartmontools’:

As I said above, we’ll be using ‘smartmontools’ to check the disk health with S.M.A.R.T. reporting. It’s a fairly robust application and is available for the major distros. Smartmontools is easily installed with your package manager, or you can do it in the terminal. If you want to do that, first open the terminal with CTRL + ALT + T and, once open, enter the appropriate command.

Debian/Ubuntu:

RHEL/Fedora:

Arch/Manjaro:

Any of those will work on the appropriate systems. If you use a distro that’s not listed, it’s probably available in your repositories. It’s a fairly common tool and disk health is important!

This doesn’t work with NVMe drives. If you’re looking for NVMe support, look up ‘nvmi-cli’. I’ll probably write an article on the subject sometime in the future.

Anyhow, the tool you’ll be using from smartmontools is ‘smartctl’. It’s included with the package and is pretty easy to use. Read on to see how!

Check Disk Health With ‘smartctl’:

First, you should check to see if the device reports disk health by looking to see if the device has S.M.A.R.T. enabled. You can run this command:

Where ‘/drive/path’, it’s often something like ‘/dev/sda’. You can look up your drive’s path easily enough. If it’s not enable, you can turn it on with:

Now, you can go ahead and check the status. To do that, you run:

That should output some data. Remember how I highly recommended you click the Wikipedia link above? Well you should. The data in the report is fairly well-covered on the Wiki page. If you didn’t click it above, you can click now.

Anyways, the data in the report above might be old because the command may output some stale information. To refresh the data in the report, you can run a short (or long) test. In this first case, we’re going to run a short test (lasting 2 minutes or less) with this command:

Wait the couple of minutes as prompted and then run the original command again to get a report with the updated information:

You can also run a long test. That’s done by changing the short to long, as in the command used above. It’s done like this:

That’ll take up to 10 minutes and you can check the results after that time has passed. Once again, you will simply run the same command you’ve been using all along:

Anyhow, pay attention to the results in that report. They’ll give you a lot of information. You can check the results and technical details against the Wikipedia link. With that information in hand, you can keep a reasonable eye on your disk health.

There’s more to smartctl and even smartmontools, but not a whole lot that’s terribly interesting or important. Simply run man smartctl and look through the options. The most interesting/valuable disk health checks are covered above, but there’s nothing wrong with knowing more about your tools.

Closure:

You know, if you install ‘gnome-disks’ then you can just do all of this graphically. Chances are good that all the distros out there that have smartmontools also have gnome-disks. If that’s more your style, just install it and poke around. It’s right there in the ‘three dot’ menu. Like so:

gnome-disks - check disk health with  SMART status
A nice GUI way! Give it a shot if you want!

But, that’d be cheating! It’d also be a much more basic article and where’s the fun in that? Nowhere. That’s where the fun isn’t. Seriously, the GUI method with gnome-tools works just fine for this if you’d prefer to go that route. Again, check your results against the Wikipedia link posted throughout the article. 

Anyhow, there’s another article in the books. One more article said and done, in my attempt to keep this going for a full year. It has been pretty fun. This article is about disk health and reminds me that I need to write one about backing up your data. That’s good, ’cause it means I’ve still got all sorts of ideas for articles! 

Don’t forget, you too can write articles. I don’t mind and it’d help me reach the year goal going!

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 own site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

EDIT: Edited on 06/29/23 to correct spelling.

Subscribe To Our Newsletter
Get notified when new articles are published! It's free and I won't send you any spam.
Linux Tips
Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.