How to install Shutter Screenshot Tool and assign as the default in Linux Mint

Shutter is an amazing screenshot taker and annotator.

To install it successfully, you have to install two packages:

sudo apt-get install shutter libgoo-canvas-perl

Note: That second package is to allow editing and annotation

You are done with the installation now.

Next, you need to assign the shortcuts to the keyboard (like PrintScrn for example):

  • Open Keyboard -> Shortcuts -> Custom Shortcuts
  • Add custom shortcut (we will add 2):
    1. For full screen screenshots, give it any name, e.g. “shutter” and make the command “shutter -f”. Then double click on keyboard bindings to assign a keyboard shortcut of your choice (in my case I used PrntScrn)
    2. For Active Window screenshots, give it any name, e.g. “shutter-window” and make the command “shutter -a”. Then double click on keyboard bindings to assign a keyboard shortcut of your choice (in my case I used Shift+PrntScrn)
  • Enjoy!

 

Posted in Linux, Uncategorized | Tagged , , | Leave a comment

Batch-resize videos on Ubuntu Linux with ffmpeg

So, the case is as follows:

I have about 15 videos files that were recorded at 4K and are very large in size. I wanted to keep everything as is, but just reduce the resolution to HD (720p).

ffmpeg would be great to achieve this, so I created the following script:

for i in *.MP4;
 do name=`echo $i | cut -d'.' -f1`;
 echo $name;
 ffmpeg -i $i -s 1280x720 -c:a copy $name.mp4.mp4;
done

This loops them one-by-one and calls ffmpeg to process them and create an output file with the same name, but with extension .mp4.mp4 (just to distinguish them, nothing more).

That’s it! Enjoy!

Sources:

Posted in Linux, Uncategorized | Tagged | Leave a comment

Allow non-root users to capture network packets with Wireshark on Ubuntu

It’s very easy to do, all you need is just add your user to the wireshark group, e.g.

sudo adduser hobba wireshark

so this makes user hobba able to capture packets without requiring sudo privileges.

Enjoy!

Tested on LinuxMint 18.1 (based on Ubuntu 16.04)

Source: https://anonscm.debian.org/viewvc/collab-maint/ext-maint/wireshark/trunk/debian/README.Debian?view=markup

Posted in Linux, linuxmint, Uncategorized | Tagged , , , | Leave a comment

Improve Intel Graphics Performance on Ubuntu 16.04 (and variants)

This solved a very annoying problem for me, as the screen was heavily tearing and I didn’t like the video playback performance.

All you need to do is the following:

  1. If you are using Ubuntu 16.04, then you don’t need this step. If you are using a variant that is based on it, like LinuxMint 18.1 in my case, you have to edit the name of your distribution, as the installer must detect that your OS is Ubuntu 16.04, not anything else.
    1. Edit the file /etc/lsb_release and comment out the following lines:
      DISTRIB_ID=LinuxMint
      DISTRIB_RELEASE=18.1
      DISTRIB_CODENAME=serena
      DISTRIB_DESCRIPTION=”Linux Mint 18.1 Serena”
    2. Add the following lines:
      DISTRIB_ID=Ubuntu
      DISTRIB_RELEASE=16.04
      DISTRIB_CODENAME=xenial
      DISTRIB_DESCRIPTION=”Ubuntu 16.04 LTS”
  2. Download the Intel installer compatible with Ubuntu 16.04 from here: https://download.01.org/gfx/ubuntu/16.04/main/pool/main/i/intel-graphics-update-tool/intel-graphics-update-tool_2.0.2_amd64.deb and install it**
  3. You will find a new software installed called “Intel Graphics Update Tool for Linux* OS”, open it and enter your password, as it needs administrative access
  4. You don’t need to change any settings, just click Next on all screens and start the installation. It will need to download some packages, so you have to be connected to the Internet
  5. After it’s done, restart your computer
  6. Enjoy!

**Note: If it complains about missing dependency for the ttf-ancient-fonts, just install it via apt-get

Posted in linuxmint, Ubuntu, Uncategorized | Tagged , , | 3 Comments

How to enable 3D Acceleration for guests in VMWare Workstation Pro 12.5

Just edit the file ~/.vmware/preferences and add the following line

mks.gl.allowBlacklistedDrivers = “TRUE”

That’s it, enjoy!

Source: http://askubuntu.com/questions/537787/enable-3d-hw-acceleration-on-vmware-workstation-10-on-ubuntu-14-04

Posted in Uncategorized, vmware | Tagged , , , , | Leave a comment

How to encrypt a USB Flash Drive in Ubuntu using LUKS

We lose USB Flash drives all the time, so if you hold any sensitive or personal stuff, you’d better have it encrypted, just in case.

Important Notes:

  1. This works only on Linux, won’t work on Windows or MAC
  2. Before you start the encryption, make sure to backup all your existing data on the flash drive, because the process will wipe it.
  3. You won’t be able to read your data on Windows or MAC
  4. If you lose your password, forget about your data

Let’s get going then. The steps are pretty simple:

  1. Open the “Disks” application:
    disks_app
  2. Select your flash drive (mine is the SanDisk Ultra USB 3.0 above)
  3. Press Ctrl + Shift + F to start the formatting process
  4. In the Type field, choose “Encrypted”
  5. Fill in the remaining fields, e.g.
    2
  6. Click “Format”
    3
  7. Confirm by clicking “Format” again
  8. That’s it. You’re Done!4

Now, whenever you insert and try to mount your flash drive in any Linux computer, the following dialogue will automatically appear:

5

Enter your password and then you will be able to use the flash drive.

Tested on Linux Mint 18.1 (based on Ubuntu 16.04 LTS).

Enjoy!

Posted in Linux, Uncategorized | Tagged , , , | Leave a comment

Compress PDF Files Effectively in Ubuntu

Found a great script that does an amazing job with compressing PDF files whilst maintaining a good quality:

Get the script from here: http://www.alfredklomp.com/programming/shrinkpdf/

Just copy the script to a text file and make it executable, then run:

./shrinkpdf infile.pdf outfile.pdf

It compressed 3 PDF files from 80 MB to 13 MB!

Enjoy!

Posted in Linux, Uncategorized | Tagged , | Leave a comment