Install QDirStat Directory Usage Utility

Install the following package:

$ sudo add-apt-repository ppa:nathan-renniewaldock/qdirstat
$ sudo apt-get update
$ sudo apt install qdirstat

Refer: https://www.makeuseof.com/tag/how-to-analyze-your-disk-usage-pattern-in-linux/

Windows 10 Stuck on Update

Refer: http://bootables.net/windows-10-updates-stuck-download/

Open a command terminal as an administrator and shutdown two services:

  • C:>net stop wuauserv
  • C:>net stop bits

Go to the following folder and delete everything, a few folders may stick.

  • C:\Windows\SoftwareDistribution

Reboot your computer and update services should be already restarted, you can restart them manually like this with another admin terminal.

  • C:>net start wuauserv
  • C:>net start bits

VirtualBox guest OS accessing local server on host OS

Refer: http://superuser.com/questions/144453/virtualbox-guest-os-accessing-local-server-on-host-os

Enable ONE network adapter. Set it to NAT and start your machine. Don't need to configure anything.

On guest machine's browser type http://10.0.2.2 which will show you the same content as "localhost" in the host OS.

10.0.2.2 is the "default gateway" for NAT connections and your guest OS' IP is 10.0.2.15

Of course you can set a "HOST-ONLY" or an "Internal Network" which will allow you another advanced configurations. I recommend to stay with NAT.

Fixing VirtualBox Clipboard

# Take a current snapshot

# Start appliance and open a terminal
$ sudo apt-get update
$ sudo apt-get install build-essential

# Reinstall the Guest Editions
Devices, "Insert Guest Editions CD Image..."
Run, Enter your credentials, and let it install
Reboot your Appliance

# See if it works, and if it does
Shutdown, delete snapshot and take new snapshot

Sharing VirtualBox folders

You have Ubuntu running in Windows and you want to share a windows folder with Ubuntu. Do the following:

Make sure you have installed the Guest Additions

Configure the shared folder in my VirtualBox. Click menu option "Devices->Shared Folders" to configure the sharing

This has gotten much easier now, VirtualBox will just mount the folder; however, you need to make sure your user is part of the vboxsf group; otherwise, you will need to be root in order to copy or access the files, use the following command:

sudo usermod -G vboxsf -a jboss1

Older Instructions

Open terminal and created a directory called share under "mnt" so it looks as “/mnt/share”. This required "admin" privileges, and then run the following command.

sudo mount -t vboxsf sharename /mnt/share

There is a bug with VirtualBox 4.3.10 and mounting, the following commands will fix, after you mount the Guest Additions

$ cd /sbin
$ sudo rm mount.vboxsf
$ ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions/mount.vboxsfsudo usermod -G vboxsf -a jboss1

Increase size of Virtual Box Drive

VBoxManage clonehd "source.vmdk" "cloned.vdi" --format vdi
VBoxManage modifyhd "cloned.vdi" --resize 51200
VBoxManage clonehd "cloned.vdi" "resized.vmdk" --format vmdk

The above will resize the hard disk up to 50GB (50 * 1024MB).
You will need need to go into Windows Disk Management and extend the drive