Some ramblings and write-ups about tech, music, travelling and other topics.
$ sudo apt-get install compizconfig-settings-manager2. Use Unity to find and launch the CompizConfig Settings Manager (super+a and search for Compiz) 3. Select "Desktop" in the left column and "Ubuntu Unity Plugin" on the right
sudo apt-get install slimwhile installation, it asks for choosing a login manager between GDM and SLiM, just choose SLiM. If you change your mind and want to change the default login manager back to GDM, run:
sudo dpkg-reconfigure gdm
# current theme, use comma separated list to specify a set to # randomly choose from current_theme debian-moreblue-orbitTo select a random a theme, replace the theme name with couple themes separated with “,”(without quotes). To Preview the theme:
slim -p /usr/share/slim/themes/NAME
A few weeks ago I went to this cozy pub in Shibuya called Craftheads. Nice selection of ales and fruit beers, mostly exclusively imported. Nice atmosphere, good food, although the price was little bit costly for the casual Friday night drinking.
When you are working with Git repositories, sometimes you want to separate out a folder into its own repository, removing it from history in the parent repository, but keeping history for the folder in the newly create repository. Here are the steps.
Often when you install a VM in virtualbox you’ll notice that initial size of the VM image would be more or less equal to the disk space actually used in the VM. However with time, as you play around, you will find that the size of VM image would always keep on increasing. The disk space actually used would be far lesser than the VM image size. We would try to compress the VM image to the space actually used up inside the VM.
Pre-condition – The image that we are going to shrink should have been dynamically expanding type, when you created the disk very first time. This is explained for a windows VM. Theoretically should work on other VMs also.
Ok, Lets get started.
We’ll need the following tools:
1. http://www.feyrer.de/g4u/nullfile-1.02.exe : This tool zeroes out free space, which our next tool compresses. For Linux based OS, search for a file, zerospace.c, which you’ll have to compile yourself.
2. VBoxManage : This tool is the command line management tool that ships with VirtualBox. Whatever you can do with the GUI, can be done by this. + A lot more
1. First boot into your VM. Defragment your drive atleast 2 times.
2. Copy the tool, nullfile mentioned above to the VM and run it. A simple double click should do it.
3. Now shutdown the guest. Open a terminal in the VM image directory. Most probably /home/<user_name>/.VirtualBox/VDI
2. Run our final command, We would be done after this.
VBoxManage modifyvdi <file_path> compact