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

How to solve Google Chrome Flickering on Ubuntu 16.04

Just do the following two steps:

  1. sudo nano /usr/share/applications/google-chrome.desktop

  2. Scroll down to the “Exec” line
  3. Add two additional parameters, so that it looks like this:

    Exec=/usr/bin/google-chrome-stable –disable-gpu-driver-bug-workarounds –enable-native-gpu-memory-buffers %U

That’s it, now restart Chrome and it shall work perfectly!

I am using Google Chrome 54 64-bit on Linux Mint 18 64-bit with the Cinnamon Desktop

Source: https://www.youtube.com/watch?v=Lzawulh5vKo

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

Fixing DNS Issues with Linux Mint 18

A problem that has been bugging me for a while on my Linux Mint 18, that the DNS is not working properly and on a random basis.

What I could fix it with is that I just did the following:

sudo vi /etc/NetworkManager/NetworkManager.conf

Then commented out this line:

dns=dnsmasq

That’s it! I don’t remember the source I took it from, but will add it once I remember 😛

Enjoy!

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

Create LVM Physical Volumes, Volume Groups and Logical Volumes on Ubuntu 16.04

It’s pretty straight-forward, but before you start, you need to check for block devices that can be used to create physical volumes:

sudo lvmdiskscan

You will see a result that looks like this:
/dev/ram0 [ 64.00 MiB]
/dev/sda [ 50.00 GiB]
/dev/ram1 [ 64.00 MiB]
/dev/vda1 [ 40.00 GiB]
/dev/ram2 [ 64.00 MiB]
/dev/ram3 [ 64.00 MiB]
/dev/ram4 [ 64.00 MiB]
/dev/ram5 [ 64.00 MiB]
/dev/ram6 [ 64.00 MiB]
/dev/ram7 [ 64.00 MiB]
/dev/ram8 [ 64.00 MiB]
/dev/ram9 [ 64.00 MiB]
/dev/ram10 [ 64.00 MiB]
/dev/ram11 [ 64.00 MiB]
/dev/ram12 [ 64.00 MiB]
/dev/ram13 [ 64.00 MiB]
/dev/ram14 [ 64.00 MiB]
/dev/ram15 [ 64.00 MiB]
1 disk

Just ignore all the /dev/ram* and notice the /dev/sda drive, this is the one that you will need.

Afterwards, you need to do the following, I will assume I have one block device, then will create one physical volume, one logical volume (taking all free space) and one volume group:

  1. sudo pvcreate /dev/sda
    Physical volume “/dev/sda” successfully created
  2. sudo vgcreate vgData /dev/sda
    Volume group “vgData” successfully created
  3. sudo lvcreate -l 100%FREE -n lvData1 vgData
    Logical volume “lvData1” created.
  4. sudo mkfs.ext4 /dev/vgData/lvData1
    mke2fs 1.42.13 (17-May-2015)
    Discarding device blocks: done
    Creating filesystem with 13106176 4k blocks and 3276800 inodes
    Filesystem UUID: e2ce00dd-236a-474d-b773-033e1cb7cb55
    Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
    4096000, 7962624, 11239424

    Allocating group tables: done
    Writing inode tables: done
    Creating journal (32768 blocks): done
    Writing superblocks and filesystem accounting information: done

  5. sudo mkdir /mnt/webdata
  6. sudo mount /dev/vgData/lvData1 /mnt/webdata
  7. To make it permanent on system boot, add the following entry to /etc/fstab:
    /dev/vgData/lvData1 /mnt/webdata ext4 defaults,nofail 0 0

That’s it, Enjoy!

Sources:

  1. https://www.digitalocean.com/community/tutorials/an-introduction-to-lvm-concepts-terminology-and-operations
  2. https://www.digitalocean.com/community/tutorials/how-to-use-lvm-to-manage-storage-devices-on-ubuntu-16-04
Posted in Linux, linuxmint, Ubuntu, Uncategorized | Tagged , | Leave a comment

How to allow non-root user to capture packets with Wireshark on Ubuntu 16.04

Only two steps you need to do:

  1. “sudo dpkg-reconfigure wireshark-common” (choose yes to allow Dumpcap to make the wireshark group members able to capture packets)
  2. “sudo adduser USERNAME wireshark” to add your user to the wireshark group

Then you just need to logout and back in.

This was tested successfully on Ubuntu 16.04

Enjoy!

Sources:

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