Blog / Linux

Ubuntu: How to delete old kernels to free up space in the boot partition

January 15, 2015

This is at least the second time this has happened to me so I figured I'd make a note here for future reference.

Basically I was running the Software Update and it complained that there is "Not enough free disk space":

The upgrade needs a total of 81.7 M free space on disk '/boot'. Please free at least an additional 15.5 M of disk space on '/boot'. Empty your trash and remove temporary packages of …

Ubuntu users: How to upgrade the BIOS of your Dell XPS 13 Ultrabook

November 22, 2014

For a machine being sold with Ubuntu pre-installed, I find it surprising that Dell doesn't have a utility to make BIOS updates easy on Ubuntu.

Dell's BIOS update utility only runs on Windows or DOS.  So for us Ubuntu users, we'll need a way to run DOS on our machines and execute their update utility there.  Luckily, there's FreeDOS.

If you're having stability or performance issues, updating the BIOS is always worth a try. …

Docker Cleanup Commands

October 4, 2014

I've been working quite a bit with Docker these last few weeks and one thing that I found really annoying was all these unused containers and images taking up precious disk space.

I wish Docker has a 'docker clean' command that would delete stopped containers and untagged images. Perhaps sometime in the near future as the project is very active. But for the time being, these commands should do the job.

Kill all running containers …

How to delete Python .pyc and .pyo files on Ubuntu 14.04

September 2, 2014

I just realized today that Ubuntu has a command called pyclean already installed by default that will recursively delete all .pyc and .pyo files.

For example, to recursively delete .pyc and .pyo files from the current working directory, you can do:

pyclean .

If you’re not on Ubuntu, you can run this command instead:

find . -name “*.pyc” -delete

Source

Using command aliases in Ubuntu 13.04

January 1, 2014

I’ve been spending a lot of time working on a project lately where I found myself having to use some commands over and over. It’s gotten to a point where I decided to create some scripts to execute the commands for me. But then even calling the scripts started to become tedious that I created short bash command aliases to execute them instead.

If you’re using the bash shell, all you have to do is …