Tuesday, October 30, 2012

VMD installation: VMD Main Window missing

 After installation of VMD.

When VMD starts, by default three windows will open (Fig. 2): the VMD Main window, the OpenGL Display window, and the VMD Console window (or a Terminal window on a Mac).
 
If "VMD Main" window does not appear.
 I think this indicates that either you don't have a .vmdrc in your  VMD installation directory, or there's a file permissions issue, or you  have an empty .vmdrc in your home directory. One of those is the likely reason you're not getting the main menu on startup. 

To solve this problem, you can do in this way:
1. Build a new file with name ".vmdrc" in your home directory (if you do not have)
2.Add this line in the .vmdrc file:   menu main on
  

Thursday, October 11, 2012

How to change font and background color in shell terminal

All the color settings is in this file: /etc/DIR_COLORS. In example below I will show how to change the color for  directory listing. The default font color for directory/folder is dark blue with black background so I want to change it so that it is easier to read.
The steps as below

1) To have the color to have effect in root ,  copy the file to root directory
cp /etc/DIR_COLORS /root/.dircolors

or

To have the color to have effect in user account, copy to home directory
cp /etc/DIR_COLORS /home/.dircolors


2) use any editor to modify the file (.dircolors)


3) Scroll down until you find this:     DIR XX;XX       # directory (XX = 2 digits number)


4) Change the font color using the code shown below. For example if I want the folder to be shown as yellow with black background i will change the line to  DIR 33;40       # directory


5) Exit from your shell window, login again.  Type ls to see the effect, Volla!
Besides directory, you can change other color settings in the same file.

Monday, October 1, 2012

seting shared folder between Windows XP(host) and Unbutu 12.10 (guest)



This simple tutorial is going to show you how to manage users and groups in graphical way using gnome-system-tools in Ubuntu. It is the old gnome 2 Users & Groups management tool which has been dropped since Ubuntu 11.10. Fortunately it still available in Ubuntu Software Center.


1. To install this Users & Groups management tool, search for and install gnome-system-tools in Ubuntu Software Center.



2. Once installed, in Unity dash search for and launch users and groups:

 

When you try to access a shared folder under Ubuntu using VirtualBox, you will notice that you don't have permission to access it. This problem is due to the fact that VirtualBox has added a group having the name “vboxsf” to the virtual machine running Ubuntu , and therefore any member who is not belonging to this group will have no access.


3. Note: If Guest Additions are not installed in Ubuntu, then these steps might not work for you. To install Guest Additions, open Devices > Install Guest Additions:



4. To join the “vboxsf” group, follow these instructions:

4.1. First, create a shared folder by opening Devices > Shared Folders:



4.2. Use the Add button to add a shared folder, provide the folder path and name, etc.



4.3. After adding a shared folder, use the Unity dash under Ubuntu 11.04 to open Users and Groups:



4.4. Click Manage Groups:



4.5. Scroll down the list and select "vboxsf", then click Properties:



4.6.  In the Group Members section, check on the user you want to add to the "vboxsf" group and confirm by clicking OK.



4.7. Submit your user password and click Authenticate, then close the Group settings and Users and Groups windows:



4.8. You can now access your shared folder by opening the /media/ folder. A shared folder starts always with these two letters "sf_":


That's it!

Monday, September 10, 2012

How to copy & paste from Ubuntu to Windows?

Go to VirtualMachine's Settings->General->Advanced->Shared Clipboard (Bidirectional)
Reboot your virtual machine.

Tuesday, June 26, 2012

Ubuntu Linux: How do I install .deb packages? (zz)

http://www.cyberciti.biz/faq/ubuntu-linux-how-do-i-install-deb-packages/
Q. I am a new Ubuntu Linux use. I need to install a package called package.deb. I know I can use Synaptic package management to install packages from CD or Internet. But I want to install this special .deb file. So how can I install package?

A. You need to use dpkg package manager from shell/command prompt. dpkg is a tool to install, build, remove and manage packages. dpkg itself is controlled entirely via command line parameters. For example -i use to install .deb file.
How do I install .deb file?

To install package called package.deb type the following command:
Go to directory where package.deb is kept. For example if it is in /tmp directory:
$ cd /tmp
Type the following command:
$ sudo dpkg -i package.deb