Skip to content
Ubuntu

Free Up Space on Ubuntu

Let’s say you need to free up some space on Ubuntu — how do you go about it?

Unlike Windows, with its built-in defrag and disk clean-up tools, Ubuntu doesn’t make it immediately obvious how you go about trying to free up space.

What do you do once you’ve emptied the trash, and deleted those .ISO downloads? How do you recover more space?

We’re going to show you 5 super simple (and in some cases blindingly obvious if easily forgotten) steps you can take to get back those GBs, materialise more MBs, and clean out the stale KBs.

Whenever you need more space — and heck, even if you don’t — here are 5 simple ways to free up disk space on Ubuntu. 

1. Clean the APT Cache (And Do It Regularly)

It sounds so obvious, and yet chances are you haven’t done this.

By default Ubuntu keeps every update it downloads and installs in a cache on your disk, just in case you ever need it again.

This is useful if you regularly add and remove apps, find yourself needing to reconfigure/reinstall a specific package, or simply have a poor connection.

But the flip side is that the apt package cache can quickly swell to several hundred MBs. This command tells you how big your apt cache is:

du -sh /var/cache/apt/archives

To clean the apt cache on Ubuntu simply run the following command.

sudo apt-get clean

The apt clean command removes ALL packages kept in the apt cache, regardless of age or need. If you’re on a slow, capped or intermittent connection you may want to consider skipping this step.

2. Remove Old Kernels (If No Longer Required)

remove old kernels

Now, admittedly, this step is one you want to approach with caution.

Having a choice of kernels to boot up is, honestly, quite handy, especially if you notice something has gone awry while using the latest one.

Unless you’re in the throes of constant hardware woes there’s little need to hoard kernels.

It’s easy to remove old kernels in Ubuntu. You can do it from the command line using the following command:

sudo apt-get autoremove --purge

Note that this command will only remove kernels that a) are no longer needed and b) were installed from the Ubuntu archive through system updates. If you install kernels manually or through a third-party PPA you’ll need to get your hands dirty.

3. Uninstall Apps & Games You Never Use (And Be Honest!)

Chances are you have a number of apps installed that you never use. Maybe you installed them on the back of an awesome review, out of nosiness, or to handle a particular task.

Whatever the excuse, if an app is no longer needed, but more space is, don’t be afraid to uninstall it.

Typical apps you may wish to expunge include web browsers (are you ever going to use Opera, Epiphany, Midori and Min?), music players (heck knows there’s enough of ’em) and games that sounded good in the Steam Store description but ended up being as much fun as a Windows 10 update combo.

And everyone has LibreOffce Draw knocking about doing nothing!

Don’t lie to yourself about might-needs, and could-dos. The beauty of most software is that it’s not going anywhere anytime soon. This is never truer than on Linux, where most apps are just an apt install command away.

To remove a specific app by name run:

sudo apt-get remove package-name1 package-name2

To remove packages and dependencies that are no longer required (because you’ve uninstalled other packages or newer versions have replaced them) run the following command:

sudo apt-get autoremove

4. Use A System Cleaner like BleachBit

Screen Shot 2016-08-09 at 16.09.32

Writing a list on system cleaning could easily end up 10x as long as this one if we were to tell you about every app, cache, log and system process hiding in every nook and cranny.

BleachBit saves us from doing that. It’s like the CCleaner of Linux – a byte scouring beast. The app can remove pretty much everything and anything and should only ever be used with caution.

It can wipe the caches of more than 70 popular desktop applications (including most web browsers); hoovers up old file, browser and bash history; and makes light work of logs you’ll never read.

No surprise that we recommend installing it as one of our things to do after installing Ubuntu.

You can install BleachBit on Ubuntu 16.04 LTS straight from Ubuntu Software. Run it as root, and check the boxes besides the parts you’d like to clean. Click ‘Preview’ to get an estimate of how much space they take up, and click “Clean” to remove them.

Install BleachBit from Ubuntu Software

Read More

 

 

Free Up Disk Space In Ubuntu, Free Up Space In Ubuntu, Free Up Space On Ubuntu, How To Free Up Space On Ubuntu

Apt-get Autoremove Purge, Apt-get Autoremove Purge Kernel, Ubuntu Apt-get Autoremove Purge

Sudo Apt Get Autoremove Ubuntu, Sudo Apt-get Autoremove Linux-image, Sudo Apt-get Autoremove On Ubuntu

Empty trash Ubuntu - Debian

5 Simple Ways To Free Up Space on Ubuntu – Debian

5 Simple Ways To Free Up Space on Ubuntu

A bit of maintenance can make heaps more room

linuxScott BouvierUpdated 9 August 2016

Microsoft Windows

Let’s go beyond the obvious

Let’s say you need to free up some space on Ubuntu — how do you go about it?

Unlike Windows, with its built-in defrag and disk clean-up tools, Ubuntu doesn’t make it immediately obvious how you go about trying to free up space.

What do you do once you’ve emptied the trash, and deleted those .ISO downloads? How do you recover more space?

We’re going to show you 5 super simple (and in some cases blindingly obvious if easily forgotten) steps you can take to get back those GBs, materialise more MBs, and clean out the stale KBs.

Whenever you need more space — and heck, even if you don’t — here are 5 simple ways to free up disk space on Ubuntu. 

1. Clean the APT Cache (And Do It Regularly)

It sounds so obvious, and yet chances are you haven’t done this.

By default Ubuntu keeps every update it downloads and installs in a cache on your disk, just in case you ever need it again.

This is useful if you regularly add and remove apps, find yourself needing to reconfigure/reinstall a specific package, or have a poor connection.

But the flip side is that the apt package cache can quickly swell to several hundred MBs. This command tells you how big your apt cache is:

du -sh /var/cache/apt/archives

To clean the apt cache on Ubuntu simply run the following command.

sudo apt-get clean

The apt clean command removes ALL packages kept in the apt cache, regardless of age or need. If you’re on a slow, capped or intermittent connection you may want to consider skipping this step.

2. Remove Old Kernels (If No Longer Required)

remove old kernels

Now, admittedly, this step is one you want to approach with caution.

Having a choice of kernels to boot up is, honestly, quite handy, especially if you notice something has gone awry while using the latest one.

Unless you’re in the throes of constant hardware woes there’s little need to hoard kernels.

It’s easy to remove old kernels in Ubuntu. You can do it from the command line using the following command:

sudo apt-get autoremove --purge

Note that this command will only remove kernels that a) are no longer needed and b) were installed from the Ubuntu archive through system updates. If you install kernels manually or through a third-party PPA you’ll need to get your hands dirty.

3. Uninstall Apps & Games You Never Use (And Be Honest!)

Chances are you have a number of apps installed that you never use. Maybe you installed them on the back of an awesome review, out of nosiness, or to handle a particular task.

Whatever the excuse, if an app is no longer needed, but more space is, don’t be afraid to uninstall it.

Typical apps you may wish to expunge include web browsers (are you ever going to use Opera, Epiphany, Midori and Min?), music players (heck knows there’s enough of ’em) and games that sounded good in the Steam Store description but ended up being as much fun as a Windows 10 update combo.

And everyone has LibreOffce Draw knocking about doing nothing!

Don’t lie to yourself about might-needs, and could-dos. The beauty of most software is that it’s not going anywhere anytime soon. This is never truer than on Linux, where most apps are just an aptinstall command away.

To remove a specific app by name run:

sudo apt-get remove package-name1 package-name2

To remove packages and dependencies that are no longer required (because you’ve uninstalled other packages or newer versions have replaced them) run the following command:

sudo apt-get autoremove

4. Use A System Cleaner like BleachBit

Screen Shot 2016-08-09 at 16.09.32

Writing a list on system cleaning could easily end up 10x as long as this one if we were to tell you about every app, cache, log and system process hiding in every nook and cranny.

BleachBit saves us from doing that. It’s like the CCleaner of Linux – a byte scouring beast. The app can remove pretty much everything and anything and should only ever be used with caution.

It can wipe the caches of more than 70 popular desktop applications (including most web browsers); hoovers up old file, browser and bash history; and makes light work of logs you’ll never read.

No surprise that we recommend installing it as one of our things to do after installing Ubuntu.

You can install BleachBit on Ubuntu 16.04 LTS straight from Ubuntu Software. Run it as root, and check the boxes besides the parts you’d like to clean. Click ‘Preview’ to get an estimate of how much space they take up, and click “Clean” to remove them.

Install BleachBit from Ubuntu Software

5. Stay up to date (seriously, do it!)

The most obvious step on this list is also the one few people would think to recommend. Unlike Windows, where every new update adds more overhead, package updates on Linux regularlyfreespace rather than use it.

So next time you put off that 56MB librandom-package102 update fearing you’ll lose space, maybe think again!

Summary

That just about covers it. If you only remember two steps from this list make it the first and last.

  1. Clean your apt cache from time-to-time
  2. Install patches, updates, and fixes

Now go and free some space!

Let us know how much you manage to claw back (as well as share your own top space-saving tips) in the comments! To see more articles like this from Scott, share the love by sharing this article on social media.

5-ways-free-up-space-on-ubuntu, Free Up Space In Ubuntu, Free Up Space On Ubuntu, How To Free Up Space On Ubuntu

Nativfier Make Desktop App

Make Any Website into Desktop App

Written by Martins D. Okoi

Nativefier is a CLI tool that easily create a executable desktop application of any website with succinct and minimal configuration. Anybody can use it and it is a lot lighter than typical Electron apps.

Nativefier is based on the electron-package and since Electron apps are platform independent, any Nativefiered app will run on GNU/Linux distros as well as on Windows and Mac Operating Systems.

Facebook

Talking about the reason why he created Nativefier, the developer wrote on GitHub:

I did this because I was tired of having to ⌘-tab or alt-tab to my browser and then search through the numerous open tabs when I was using Facebook Messenger or Whatsapp Web.

This is a good example of how to create solutions using our computing skills.

Features in Nativefier

  • Free and open-source with code available on GitHub.
  • Works on GNU/Linux, Windows, and Mac.
  • Desktop Notifications.
  • OS-specific icons.
  • Make single-page web apps (e.g. Telegram and WhatsApp) executable stand-alone apps.

How to Install and Use Nativefier in Linux

Installing Nativefier is as easy as running the following command in terminal.

$ npm install nativefier -g

The developer has done some heavy lifting by setting up a template app containing appropriate event listeners and callbacks in the /app folder.

This is the directory that is copied to the temporary directory when the nativefier command is called and then the core methods of electron packager follow. meaning that getting a URL and invoking the nativefier gets the job done.

  Safe Eyes – A Must Have Tool to Reduce Computer Eye Strain

So, for example, creating a GitHub or WhatsApp web executable (or any web page) is as easy as typing:

$ nativefier -name GitHub http://github.com
$ nativefier web.whatsapp.com

The -name flag is the option that tells Nativefier the name to give your executable. There are other options including:

  • flash to enable flash in your application explorer.
  • version is prints the version of your nativefier install.
  • platform automatically determined based on the current OS. Overwrite it by specifyinglinux, windows (or win32), or osx (darwin).

The full list of options and more usage details are on its GitHub page.

Note:

  1. Nativefier doesn’t have any back button by default because it is designed to wrap just single-page apps. That notwithstanding, you can build an executable from any url and hitting backspace on your keyboard will take you to the previous page.
  2. Don’t put spaces when defining the app name with the -name option on Linux because it will cause problems when pinning the app to the launcher.

Linux Mint, Linux Os, Linux Ubuntu

Install Nativefier, Nativefier Install, Nativefier Linux, Nativefier Release, Nativefier Ubuntu Ppa

Read More

Airdroid

Connect Your Android Phone to Linux

Airdroid is a unique and useful application that lets you transfer files, send SMS messages and control your phone through your PC. It is available within the Google Play store and the iOS App Store and provides a useful alternative if you need to grab a file but don’t have a USB cable at hand. While Windows has a full rich client that allows easy access to the features, those of us on Linux have to use the web-based interface, but this doesn’t make the application any less useful.

For the purposes of this article, I will be demonstrating using Airdroid on Android and connecting to a Linux PC, in this case Ubuntu 18.04.

  

First, you will need to open Play Store and search for the Airdroid app. Once found, you can download and install as normal.

Open the app, and after the short introduction, you will be presented with the following screen. The free version is ad-supported.

airdroid-min

Click on “AirDroid Web” to set up the connection between your Linux PC and the handset. You’ll see two options: you can either use the web client or navigate locally to the IP address given – in this case mine is 192.168.1.68:8888.

If you take the latter option, then your PC and phone need to be on the same network; you can’t mix Wi-Fi with cellular and vice versa.

airdoid-connect-min

Whichever option you pick, you will need to verify your handset. The web interface needs you to scan a QR code on the screen, whereas the IP address option needs manual verification on the handset. Once you have done this, you will be presented with the following screen.

airdroid-web-min

You can see an arrangement of icons that let you interact with your device. On the right side you can see your device details – in my case my Wileyfox Swift and the amount of space used so far.

In order to create this tutorial, I needed to grab some screenshots from my phone. Click on the icon called Photos. Airdroid will connect and bring up a GUI window with the images on your device. Once you have selected the images, click Download, and Airdroid will zip them and offer this format to save.

airdroid-images-min

Other functions are available like Files, which gives you a file manager, again allowing you to download or upload images, documents or anything you like to your device.

airdroid-files-min

Clicking App will bring up a window that allows you to install APK files directly onto the device. This is useful for countries where the Google Play store is not available or if you simply want to experiment with APK files that are outside of this ecosystem, such as F-Droid, an alternative, free, open-source software app store. Do note that you will need to allow “Unknown Sources’ within the Settings first.

airdroid-apps-min

A word of warning: installing APK files can lead your device to becoming compromised. Always check where they are being downloaded from, and please use verifiable sites like APK Mirror. If you have any doubts, then do not install the APK.

Airdroid also lets you call someone from your desktop.

airdroid-calledit-min

Click the small phone icon at the top menu bar, and it will open a dialpad. As you start to type numbers, Airdroid will run through your contacts and let you pick whichever person you want to call.

There are many other things that Airdroid can do with your Android device, so download it and experiment, but this gives you some ideas. Let us know in the comments section how you use Airdroid.

 

Read More

 

Connect Android Phone To Linux Computer, Connect Android Smartphone To Linux, Connect Android Tablet To Linux Pc, Connect Android To Linux Ubuntu, Connect Linux And Android, Connect Linux To Android Phone, Connect Linux With Android, How To Connect Linux To Android, Linux Connect To Android Tablet

Scroll To Top