Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

Sunday, August 19, 2012

Google Drive - Language Change issue.

This post is not something which is related to Programming. It's the issue I had with the newly launched Google Drive. I have my windows 7 in French but with some tweaks now its in English. The issue I had with Google Drive was that no matter how many times I installed/re-installed the application on windows, it always was with French as language. There is no option in the settings of Google Drive to change it. And I prefer to have it in English. So here is the trick to solve this issue.

Close Google Drive from the system tray and do following:

Solution 1 (Need to be done every time you restart windows and that's annoying):
Step 1: Go to command prompt. (Run -> cmd).
Step 2: run the following command: 
C:\>set LANG="en_US" C:\Program Files\Google\Drive\googledrive.exe 
Solution 2 (Easy and not Annoying):
Set a new environment variable with variable name "LANG" and value "en_US" (In case if you don't know how to set enviornment variable in Windows check my old post on Windows Environment Variable).

Once all this is done start Google drive again and Voila.. problem solved.

Hope this helped you. 

Friday, July 6, 2012

VirtualBox Guest Additions

What is VirtualBox Guest Additions?

VirtualBox Guest Additions are a package of programs and drivers which are installed on a guest OS running in VM. It helps to improve guest's performance and make integration much more seamless. There are many other features like Host/Guest Time sync, shared folders, Mouse pointer enhancements and many more. 
Here, I will focus on how to install VirtualBox Guest Additions and how to configure Shared Folder for a Fedora virtual machine?

Installing VirtualBox Guest Additions

All the commands here are run with root privileges. Get the root privileges by logging in as root or use sudo in the beginning of the commands. 

Getting required packages: 

Once you have the Linux guest machine installed on virtual machine, install some additional packages required for VirtualBox Guest Additions like dkms, kernel-devel, etc.

To install all the packages required run the following command: 

yum install dkms binutils gcc make patch libgomp glibc-headers kernel-headers kernel-devel

Mount the VirtualBox Guest Additions

Once the package installation is done and we have the packages required by Guest Additions, lets start installing the actual thing. 
Mount the Guest Additions ISO from VM menu using Device -> Install Guest Addition.


Make sure there is no other CD already mounted on your virtual machine, if there is one, then unmount it. 

Install the VirtualBox Guest Additions

Once the mount is done, go to the shell and open the mounted Guest Additions ISO. 

You can see different installer files, run the one which suits your requirement with following command: 
sh VBoxLinuxAdditions.run
Restart the machine and we are almost there... 

Setting up the Shared Folder

Shared Folder functionality is one of the features that comes with the VBox Guest Additions. Once VBox Addition is well installed, the next is to setup a shared folder with the host machine.
First you need to setup shared folder. From the VBox menu open:  Devices -> Shared Folder. 

Then choose the folder from the host machine to share with your guest machine (in my case host is Windows and guest is Linux Fedora 9).


After this, you need to mount the shared folder on Linux guest machine.
Create a folder where you want to mount the shared folder by 
 mkdir share-host
then mount the folder onto the shared folder share-host.
mount -t vboxsf share-host
 

To do an auto-mount on each boot put the command in the /etc/rc.local or whichever script is run at the end of boot processes. 

Thursday, June 28, 2012

Windows Environment Variable

Setting Up Windows Environment Variable

Following steps are for Windows 7.

  1. Open system properties either by using shortcut WinKey + Pause or right click on My Computer -> Properties.
  2. Open Advanced System Setting
  3. Go to the Advanced  tab.
     
  4. Open Environment Variable. by using the button at the bottom right with the same name.
  5. Now depending on your requirement either add a new variable or use the existing one.
      
And that's done. 


Cheers,
fLiCkEr.