We underestimate the influence of little things.
- Charles W. Chestnutt

Indeed, the small details in life can have a huge effect on your productivity. This was the case when I had set up a new virtual machine in VMWare Workstation 12.5 that was running Ubuntu 17.04. I quickly found out that there was no 1920x1080 display option within Settings>Displays despite having installed VMWare Tools. The most comfortable display option was 1920x1200, but it quickly became a pain in the *ss to have to scroll the window up and down each time. Luckily, a quick Google search found me the perfect workaround to quickly fix this issue. This should work for most popular Linux distributions including Linux Mint, Kali Linux, ParrotSec OS and Debian OS.

  • First, download the script below using wget command.
wget https://drive.google.com/uc?export=download&id=0B13pRCozBt8LVC1RNnlVWThCM0E

Or if you're too paranoid, you could just open up a text editor and paste the code below, then save the file as setscreen.sh

xrandr --newmode "1920x1080"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
xrandr --addmode Virtual1 1920x1080
xrandr --output Virtual1 --mode 1920x1080
  • Next, you'll want to run the script and let it do its thing.
bash setscreen.sh

If you see a 'permission denied' error, just prefix with sudo.

  • Your screen resolution should now be 1920x1080. If you don't want to manually run the script every time you reboot your VM, you can set choose to automatically execute the script at startup by following the below steps.

  1. Open Startup Applications. Click Add

2. Click Browse, Find setscreen.sh, choose it and click Open. Then Click Add.

You're all set! Now you can concentrate on debugging writing codeπŸ˜‰