Take screenshot from command line

Take a screenshot of your desktop using the SCROT utility. Basic usage is to call the scrot command in a console, but this would take an instant screenshot of the desktop in the current directory. Thus it would be better used along with the “-d” (delay) option in order to have a time buffer to place the desired objects on the desktop.

Fix NetBeans big fonts on Ubuntu

There is a rather annoying issue related with NetBeans displaying large fonts on Ubuntu for menus and panels. There are some suggestions on Ubuntu forums related with java fonts settings, but there are a couple of better solutions which may improve the way NetBeans looks on Ubuntu when it comes to font size.

Play music from command line

Although there are a lot of GUI media players out there, it is also possible to listen to your favorite music from the command line. The mpg123 tool allows you to play a song, a playlist or even a stream and has all major features of a GUI media player: control keys, equalizer, replay gain, gapless playback.

Display banner text in command line

You can display banner-like texts with large characters created from regular characters using the FIGlet utility. Basic usage requires only the text you want to output on the CLI, but you can also specify the font used in text rendering, dimensions and other layout options.

Fix for Google Chrome crash after startup

The issue with Google Chrome was that it crashed in about 3 seconds after startup. I encountered this problem using Chrome 9 and 10 beta on Ubuntu 10.10, but this fix may apply to other versions and operating systems as well.

Extract audio from video file

Since there are so many tools (Minitube, youtube-dl) which allows you to download video files from YouTube or other video sharing sites, let’s go one step further and extract the sound from the downloaded video file to a mp3 file. The FFmpeg tool will do the trick just fine

Use your browser to decode base64 encoded data

If you are dealing with base64 encoded data you may find useful to know that any modern browser can easily decode it using the Data URI scheme. All you need is pass the encoded data to the browser in the same way as you would enter a regular URL, but of course using the correct structure of the data URI scheme.

Disk management in Linux

If you need to manage your disk or just check the disk space usage of a Linux powered computer, here are some suggestions for both graphical and command line interfaces.

CLI search and replace in multiple files

Here is a quick tip about how to find and replace a text in multiple files, from CLI.In this example you have some text files (.txt) with urls like “http://example.com, http://another-example.com…”. What you are trying to do is to replace all “http” references with “https”.