Posts

Showing posts from September, 2014

installing language pack from command line

To install language from terminal you have to first know the code for the language (for example bn is code for Bengali and hi is the code for Hindi). Now first install the basic language packages for your desktop using the following code: sudo apt-get install language-pack-[cod] language-pack-gnome-[cod] language-pack-[cod]-base language-pack-gnome-[cod]-base It is not still done, because every other software may have its won language pack. To know which more package you have to install more you can use the following command check-language-support -l [cod] And then install those packages also. Example: Suppose you want to install language pack for Bengali, so first run the command sudo apt-get install language-pack-bn language-pack-gnome-bn language-pack-bn-base language-pack-gnome-bn-base Then run check-language-support -l bn And then from list install language packs for all applications. Source: http://askubuntu.com/questions/149876/how-can-i-install-one-language

Solving different time problem in windows and ubuntu

In Windows and Ubuntu dual boot machine you may some time find that the time are different. This is because windows treat BIOS clock time as local time while Ubuntu treat BIOS clock time as GMT. So Windows display same time as BIOS clock but Ubuntu add/subtract time difference from GMT and show. For example Indian standard time is +5:30 hour ahead of GMT. Ubuntu will add 5:30 hour with BIOS clock and show. So there will be always difference in Windows time and Ubuntu time. To solve it just run the following command  sudo gedit /etc/default/rcS and find the portion which says "UTC=yes" and chance it to "UTC=no"  (Without quotes)   Hope this will solve the problem.   Cheers APaul Source: http://ubuntuguide.net/fix-different-time-clock-between-windows-and-ubuntu

Marging partition in gparted

Image
  Figure 1: Main window of Gparted Figure 2: Resize/Move window We can resize our disk partition or marge with another partition in Ubuntu using gparted . First you have to install gparted using following command: $ sudo apt-get install gparted Now open gparted . You may need to give administrative password. When opened it will look like the figure. First you have to unmount the partition(s) you want to resize or marge. Just right click > unmount Again right click on the partition you want to resize or marge and then select resize/move option This will open another window like the second image, you can drag and resize your partition and marge with another partition. Now click on resize/move button. Your partition size should be changed now. For more detail answer visit the following link of askubuntu.com and check the several good answers. http://askubuntu.com/questions/51272/how-do-i-repartition-with-gparted Though this doesn't delete the data in

Colour highlighting GNUPLOT code in gedit.

Gedit by default show colour highlighting for the gnuplot code. But we can easily make it. We just have to download the language definition file and copy to the proper folder. The language definition file is a .lang file. You can download the gnuplot language definition from the following linke. https://wiki.gnome.org/Projects/GtkSourceView/LanguageDefinitions Download the file and copy the file to the folder /usr/share/gtksourceview-2.0/language-specs/ . You can use the following command $ sudo cp /your/download/location/gnuplot.lang /usr/share/gtksourceview-2.0/language-specs/  Now if you open any gnuplot code file with gedit you can see all the colours. But there is a problem, it will show colour highlight only for those file having extension .plt , but gnuplot can have extension .gp also. So to add .gp also in colour highlighting you have to add one line in the .lang file. If you check the file carefully you can see that there is a protion like this. <language id= "gnu