How To: Make Google Chrome Use Less RAM (And Other Browsers)

In today’s article, we’re going to explore one way to make Google Chrome use less RAM. This is also useful for other browsers and will reduce CPU usage as well. This will be a shorter article (I was wrong), outside of the norm for the articles I tend to write.

This article has an update:

How To: Make Google Chrome Use Less RAM (UPDATE)

Though, to be fair, the efficacy of this depends a great deal on how you use your browser. If you’re a light browser user, this probably isn’t the article for you. Otherwise, if  you’re anything like me, read on!

See, right this very minute, I have 108 open tabs in this browser. On top of that, I have three browser instances open. I do different things in different browsers, as a way to both organize myself and to keep things compartmentalized. Even with gobs of RAM, the browsers consume a ton of resources.

While I do make use of bookmarks, I also have a lot of open tabs that I return to with some regularity. Eventually, you’ll have to restart Chrome, assuming you also don’t reboot as often as I do. Browsers just consume more and more resources, ’cause the concept of a simple webpage is gone as everyone uses the latest libraries and insists on being interactive.

This increasing resource usage equally true with Firefox, Chromium, Opera, Brave, etc… If you have enough tabs open, it’s gonna consume a bunch of resources, continuing to use more as time passes. This can lead to a system, or just browser instance, that slows down or even becomes unresponsive. It can even cause the system to freeze entirely.

Well, if you try this one simple trick (Ha! I crack me up!) then you can probably resolve this issue. This article will tell you how!

Make Google Chrome Use Less RAM:

For once, you don’t have to open a terminal for this article!

Instead, crack open Google Chrome – or any other major browser. This works for most of the popular browsers. As long as it’s in the Chrome or Firefox family, you should be able to use this extension.

I guess I should call this a review. It kinda is. 

As I was saying in the intro, my browsers were consuming too many resources. They’d chew up RAM, sometimes chew up CPU, and generally take more resources than I felt they needed to.

I knew what I wanted to do, so I went looking for a browser extension that’d let me do what I wanted. I tried a few extensions that did what I wanted, but settled on the add-on/extension called “Auto Tab Discard“. 

Auto Tab Discard is available for both Google Chrome and Firefox. What it does is, after a certain amount of time (which you set) it ‘discards’ tabs. This is handier than you might think!

Auto Tab Discard unloads unused tabs from memory, reducing RAM consumption by an immeasurable (but about 60% in my case) amount – as well as reducing CPU usage, though CPU usage is usually pretty minimal for non-interactive tabs that aren’t currently open.

You can set the time for this, meaning you can make Auto Tab Discard discard tabs after being inactive for 15 minutes, for example. If this was a blanket statement, then the browser extension would be pretty useless – but it’s not. After all, you probably don’t want all tabs to be automatically discarded.

To that end, you can also set certain tabs to never be discarded. You basically whitelist the domain and those tabs will not be discarded automatically with Auto Tab Discard. On top of that, and this is moderately important, you can tell Auto Tab Discard to *not* discard tabs that have audio or video playing.

For example, you can load up a YouTube playlist and let it run in the background and Auto Tab Discard will let it remain resident in memory. This also works for tabs just playing audio. As near as I can tell, this feature works fine – and I’ve been using the extension for well over a month now.

That’s how I use Auto Tab Discard. You can also manually choose to discard a tab. If you need to, you can even tell Auto Tab Discard to discard everything but the current tab. You can note discarded tabs by the ‘zz’ in the changed tab title. There are a ton of options that let you customize Auto Tab Discard for yourself. Click on the extension’s icon to see a bunch of other options for Auto Tab Discard.

Hands down, this is the best extension I could find that would make Google Chrome use less RAM and CPU. As a bonus, it’s also available for Firefox!

Bonus:

While doing all this testing, I decided to solve another problem. Any time I’d open a YouTube tab, even by mistake, it would automatically start playing the video. That was really annoying – especially as I was now discarding those tabs and they’d automatically load when I clicked on a tab by mistake.

For this problem, and I have a lot of YouTube tabs open, I managed to find “Stop Autoplay For YouTube“. I only make use of the version for Google Chrome, but I’m sure something exists for Firefox. For some reason, it doesn’t seem to always work, but it works often enough for me. It’s still annoying, but far less often.

I just haven’t trialed anything in Firefox because Firefox isn’t one of my favorite browsers. Because of this, I’m reluctant to recommend any specific extension. I’m sure there’s a browser add-on for Firefox that will stop YouTube from autoplaying videos. If you do find a good one, feel free to recommend it as a comment.

But, for Google Chrome (and Chromium, of course) I find the Stop Autoplay For YouTube to be a handy extension, doing useful things. If your browsing habits are anything like mine, you too might find it useful. If you don’t have 20 YouTube tabs open (technically actually discarded with Auto Tab Discard) like I do, you’ll find it helpful when you mis-click and a YouTube video starts playing automatically.

Closure:

Well, that was a different article. Today’s article is going to be useful to a subset of people, some of whom will be using operating systems other than Linux. Hopefully more people will learn how to make Google Chrome use less RAM, even if they’re using Windows or a Mac. You can even use Auto Tab Discard in the Microsoft Bing browser, for that tiny subset of users who do use that browser on Linux.

Automatically discarding tabs makes computing so much nicer and it means I don’t have to change my ways all that much. I just let tabs get discarded and that means my RAM usage is a whole lot less than it used to be. The browsers accounted for well over 60% of my RAM.

So, if you’re anything like me, this will help you reduce the resources used by your browsers. And, if you’re anything like my, at least 90% of your computing time will be spent in your browser.

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: Add Ubuntu’s Default Repositories

The headline is correct that, in today’s article, I’ll explain how to add Ubuntu’s default repositories – in the terminal. Seeing as I’m doing so, I’ll tell you about each repository as we go along. They exist for different reasons, so we might as well know how and why.

This article is probably only interesting to new Ubuntu users who want to learn to do things in the terminal. That’s a lofty goal, though I’ve already explained how to reset Ubuntu’s default repositories – but that’s graphical. It’s also likely quicker to do this in a GUI. Still, we might as well cover this. 

I see no reason to make the intro section very long. The article will be plenty long. So, onto the article!

Add Ubuntu’s Default Repositories:

Yup. You guessed it. You’re going  to need an open terminal. Many of my articles do. If you don’t know how to open the terminal, you can do so with your keyboard – just press CTRL + ALT + T and your default terminal should open.

You’re also going to need Ubuntu, or an official Ubuntu flavor. I can’t recommend trying this will all Ubuntu derivatives, as I have not ever tested this in all Ubuntu derivative. So, only do this if you are using Ubuntu or an official flavor of Ubuntu – or it may mess up your system. You  have been warned.

About Repositories:

If we’re going to be writing about repositories, allow me to explain what those are. They’re central points from which you download software and software upgrades. They are there to provide the software you need, though not all software is included.

There’s generally a lot of software in them and some folks will only install software included in their default repositories. (Some folks will refuse even some software in the available repos, as the repositories may vary based on the licenses used by the software within.)

Ubuntu’s Main Repository:

Inside this repository, you’ll come across all the software the system needs to have a running system and a bunch of applications. All the software in this repository is FOSS (Free Open Source Software).

You already have this repository enabled, but stuff happens. If you’ve somehow disabled it (don’t do that) you can add it back with:

Ubuntu’s Universe Repository:

This repository contains software that is also FOSS – but Ubuntu can’t vouch for the update state or software inside the Universe repository. They are packages managed by the community, not by Ubuntu themselves.

It’s software you can install and doesn’t really come with all that many risks as the above may sound. Stuff tends to get updated pretty well. There are a lot of diligent people who tend to this sort of stuff. Upgrades are usually fairly rapid. To enable Ubuntu’s Universe repository, you’d run this command:

Ubuntu’s Multiverse Repository:

 In Ubuntu’s Multiverse repository, you’ll find software that is not FOSS. Due to licensing reasons, the folks behind Ubuntu can not maintain any of this software.

The software gets updated, but nothing in this archive is going to have Ubuntu doing so. Ubuntu also can’t ship this repository as enabled by default. To enable the Multiverse Repository, use this command:

Ubuntu’s Restricted Repository:

In Ubuntu’s Restricted repository, you’ll also have software that is not FOSS. The Multiverse repository contains things like drivers for hardware that doesn’t have FOSS drivers available. Well, the Restricted repository is where drivers exist.

A number of people are sticklers for FOSS-only operating systems. plus there’s the licenses to worry about, mean that these end up in a repository all there own. If you’re using hardware that doesn’t have FOSS drivers, you might need the Multiverse repository. To enable the Multiverse repository, you’ll want to use this:

Ubuntu’s Partner Repository:

In Ubuntu’s Partner repository, it’s still software that doesn’t have a FOSS license. It’s Ubuntu adding the software for partners of Ubuntu. It’s useless and will be axed at some point. (It has been empty in recent Ubuntu iterations.)

So, you can forget about this one. I will explain how to enable the Partner repository, as it’s both obvious and I’m pretty sure it’s still a thing on older versions of Ubuntu, and the LTS variants are going to be around for a while longer. It’s easy to enable Ubuntu’s Partner repository, the command is simply:

Closure:

Well, there you have it. You have another article and this one tells you to add Ubuntu’s default repositories. There’s a GUI way to do so, but this one takes place in the terminal. Besides, I already showed you how to do it graphically. This article almost got missed. I was at a funeral and that took a bunch of time and energy. But, I just couldn’t resist keeping up the same publication schedule.

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 Install Microsoft Edge

Today, we’re going to learn how to install Microsoft Edge. That’s the browser made by Microsoft that even has a Linux version. That’s right, it’s from Microsoft but has a Linux version – and a version packaged for pretty much everyone.

We’ll be installing on Linux Mint, just to mix things up a bit. It’s really not that much of a change, it’s still using apt. It just so happens that I’m sitting at a Linux Mint computer when I’m writing this. We might as well use GDebi while we’re at it.

Yes, I’m well aware that many of you hate Microsoft with a passion. That’s fine. If you don’t want to install Microsoft Edge, just move on and don’t bother those of us who are curious about the browser. You’ll have another article in a couple of days, and it quite likely won’t have anything to do with Microsoft.

If you don’t know, Microsoft Edge is based on Chromium – which is the opensource version of Chrome, more or less. Chromium doesn’t have feature parity with Chrome, so it’s not quite the same version. Chrome is mostly based on it.

There are many browsers based on Chromium. Brave, Vivaldi, Opera, etc.? They’re all based on Chromium. There are only so many browser engines out there, and Chromium being opensource means people are going to use it. Microsoft jumped on the bandwagon with their Edge and made it available for Linux users. So, we’re going to…

Install Microsoft Edge:

This article requires an open terminal, but only for a minute. If you don’t know how to open the terminal, you can do so with your keyboard – just press CTRL + ALT + T and your default terminal should open.

To keep things easy, we’re going to install GDebi. As we’re doing this on Mint, the command will work with any apt-using distro, the command to install GDebi is:

Follow any prompts to ensure you install GDebi properly.

Next, fire up your favorite browser and:

Click to download Microsoft Edge for Linux (make sure to get the right one for your distro). There are a number of choices, so pick the right version of Microsoft Edge for you.

Let it download, say to your Downloads directory. When your download is complete, right click on it and choose to open it with GDebi directly from the right click menu.

That part is easy, just let it do its preliminary checks and then  you can click on the install button (upper right) when it’s ready to be installed. Later, if you don’t like it, you can open the .deb with GDebi again and opt to uninstall the package. See? It’s pretty handy.

Closure:

I actually wrote a review of Edge before, but it’s on the old site and not really very good. Even if you can’t stand Microsoft, it’s not a bad browser. It’s not one that I’m going to use in my day-to-day browsing, largely due to lethargy, but it’s still a viable browser.

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: Search With apt

Today we’ll learn how to search with apt. There are any number of reasons why you’d want to do this. You can use this to find applications by name or subject. Maybe you want to find files that meet a certain criteria? It could be that you’ve forgotten the name of the application you’re thinking of? Perhaps you want to know if an application is available in the repositories before you go seeking it elsewhere?

There are all sorts of reasons, including those, why you might want to search with apt. Obviously, this requires an operating system that uses apt, so that limits you to things like Debian, Ubuntu, official Ubuntu flavors, Linux Mint, etc… So, well, it’s a pretty sizable number of distros where this will work.

This will be a pretty simple article. It will also be pretty brief. I’ve likely mentioned searching in another apt article, but it’s important that we cover it. Alas, I’m running out of things that make for longer articles (in the notes I’m working from), so this is just another article where I’m trying to make you aware that certain tools exist.

This should absolutely be a short and easy to understand article. In some recent commentary, I realized that what’s ‘simple’ to me is something that someone else has been dealing with for the past year. Even my easier articles have the chance to help people figure out their Linux problems. Good… It makes me feel better when I write an ‘easy’ article.

So, with all that said… Let’s learn how to:

Search With apt:

This article pretty much requires an open terminal, like oh so many other articles on this site. If you don’t know how to open the terminal, and you should by now – if you’ve been following along long enough, you can do so with your keyboard – just press CTRL + ALT + T and your default terminal should open.

Now, it should go without saying, apt is how you interact with your package manager. It’s how you install, uninstall, or otherwise manage your software in the terminal. You could insist on using a GUI to install software, in which case this won’t be of much interest to you, or you could just do it all in the terminal. Either way, if you are using a different package manager then this will be of no value to you.

Me? I prefer to do this sort of stuff in the terminal because I find it easier and faster. I’ve already got a terminal open anyhow, so I might as well use it.

Anyhow, with your terminal open, go ahead and type:

For example:

Seriously, if you’ve never used the search function, go ahead and try the above command. You might be surprised by what you find.

Now, if you’re trying to narrow it down some, you can use the –names-only flag. Which isn’t as accurate as it could be. For example, try:

But, as near as I can tell, that’s searching not just the names but also searching the one-liner description. Like, if you run the above command you’ll also see ‘terminator’, which is definitely not ‘terminal’.

However ‘terminator’ includes ‘terminal’ in the description. So, I’m not sure where that’s going with that and the man pages weren’t all that helpful. You can also use RegEx (Regular Expressions, for the uninitiated). For example,  you can run:

This, of course, only works if you have Google’s Chrome repositories enabled. Otherwise, pick something else to test this with. Or, just trust me when I say RegEx works, which the man page will confirm.

Anyhow, our example command from above would (on this computer) would have an output that looks like this:

Which, as you can see, means I have multiple versions of Chrome available. So, that’s something positive in my life! But, the point is, I did a search with apt and came away with the information I wanted. I’d normally send you to the application’s man page, but in that probably won’t make it all that much clearer. 

Closure:

Yeah, that’s it. You can now search with apt and find what you’re looking for. Use some of your own search terms, like apt-cache search image editor, and see what sorta results you get. It’s not the most refined, but it’s an effective way to search with apt.

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 Learn Some apt Basics

Today we’ll be learning a little about some apt basics. This is only useful if your distro uses apt to manage software. If you aren’t using a distro that does (Debian, Ubuntu, Mint, etc) then this probably isn’t an article that will interest you much, and that’s fine. With the great variety there is in the Linux world, it won’t always be an article that matters to you. Better luck tomorrow! Well, two days from now… 

In the past we’ve covered quite a few apt commands. Here are a few that are poorly formatted ’cause, you know, WordPress…

How To: Clear The apt Cache

Use ‘apt’ To Download A Program And Its Dependencies

Use ‘apt-cache’ To Find An Application’s Homepage

Those are a few – but there are actually more than that. If you’re unfamiliar with apt, you can click any of those articles and learn more about it.

For those of you whose systems use apt to manage packages, this article is for you. If you aren’t aware, apt is the package manager application that you’ll interact with more often than not (if you do things in the terminal).

Apt has a number of commands, of course. As a package manager, it’s bound to be a robust and potentially complicated application. Today, we’ll just be covering a few simple apt commands that you’re most likely to use. It will not be an exhaustive article because of time constraints, reader attention limits, and usefulness. My goal was never to replicate man pages. You’ve still gotta read ’em.

So then, without further ado…

Some apt Basics:

If you want to use apt, you have to have an open terminal. If you don’t know how to open the terminal, you can do so with your keyboard. Press CTRL + ALT + T and your default terminal should open.

With your terminal now open, you can easily install applications with apt. You’ll need to know the package name for the software you want to install, however. So, you can search for packages easily enough:

For example, you can use ‘terminal’ in there as a keyword and get a ton of options, all of which should be installable easily. Again, these are just apt basics.

Now that you know, or you may already have known, the package name, you can install it with:

You don’t need to do the runaround with dpkg for local .deb files, by the way. I’m not sure why people still suggest that? If there’s a good reason for doing it that way, please let me know in the comments. You can just use apt and it works just fine – including resolving dependencies (when they’re able to be resolved). To install a local .deb file with apt:

If you want to get the information for a specific package, you can use the ‘show’ command. That’s easy enough:

If you want to see the dependencies, that is the other applications that need to be installed in order to make it work, then you just check the dependencies with:

If you want to remove a package with apt, then you can just read this article to decide which command is right for your needs:

‘sudo apt remove’ vs ‘sudo apt purge’

That’ll answer it nicely enough.

Closure:

There you have it. You have an article about apt basics, and that’s all it is. You’ll note that not all apt commands need elevated permissions, so there’s no need to use sudo unless you’re adding or removing software. The other commands can be run without elevated permissions.

There’s more to apt. Yes, yes there is. Type man apt and you’ll get an idea of the available options. This article is just some apt basics, the things I think you’re most likely to need on a day to day basis. 

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.

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.