Friday, December 6, 2013

How to remove and move icons on the panels of Ubuntu 12.04 in Gnome Classic

http://www.linuxandlife.com/2012/05/how-to-remove-and-move-icons-on-panels.html

The trick to get the move and remove options is you need to press the Window key + Alt simultaneously when right clicking on the icons, and you will find these move and remove options.

Note: In Ubuntu 12.04, the option for Gnome Classic is removed by default. If you want to use Gnome Classic instead of Unity ( Gnome Classic is nearly identical to the old Gnome 2 environment) you just need to install the gnome-panel package with the following command:

 sudo apt-get install gnome-panel  

Wednesday, March 13, 2013

Installing Office 2010 in Linux (Solving the activation key problem)

It is unfortunate that most sociological journals require authors to submit papers in a MS-Word format even though most sociologists, I bet, do not like monopoly. Linux users are forced to use Windows just because of this.

Anyway, Office 2010 can be installed in Linux machines pretty easily by using PlayonLinux. However, activation can sometimes be problematic. Here is a step-by-step explanation on how to install Office 2010 in Linux machine with PlayonLinux, solving the 2010 activation key problem.

Basically there are three steps.
1. Installing PlayonLinx (http://www.playonlinux.com/en/).
2. Modifying Office 2010 Installation program.
3. Installing Office 2010 using PlayonLinux

If you've already installed Office 2010 using PlayonLinux in your Linux machine and you're experiencing the activation key problem, uninstall Office 2010 using the remove function of PlayonLinux and follow steps 2 and 3.


1. Installing PlayonLinux

- Avoid the old versions. Synaptic Package Manger of ubuntu will install old versions.
- Install the latest version (4.1.9)
- You can find detail commands here.


2. Modifying Office 2010 Installation program.

(1) Install isomaster program which allows you to edit iso image files.

- Here is the isomaster's homepage.
- You can install isomaster with Synaptic Package Manager or ubuntu software center.

(2) Read Office 2010 Program in isomaster.

- Of course, you need a valid Office 2010 program CD (or iso image).
- Once you read the iso image file, you will see a screen like the below:

(3) Find "config.xml" file under the "ProPlus.WW" directory of the Office 2010 CD.

- Right click on the file or click F4, then you can edit "config.xml" file
- If a text editor is not designated in isomaster, go to "Tools --> Options", and then select your choice of an editor (e.g., gedit).

(4) Modify "config.xml" file as follows:

<configuration product="ProPlus">
    <Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" />
    <PIDKEY Value="xxxxxxxxxxxxxxxxxxxxxxxxx" />
    <Setting Id="AUTO_ACTIVATE" Value="1" />
</configuration>

Don't change other codes between <configuration product="ProPlus"> and </configuration>. Just copy and paste the codes marked by blue color in the above box.

In the above codes, change the product key (i.e., xxxxx-xxxxx-xxxxx-xxxxx-xxxxx) to a legitimate product key. 

Save config.xml. 

(Note: The above codes are written by Edmun Langasson). 

(5) Go to "File --> Save As" and save MS-Office as a new iso file.

(6) Mount the new iso file in Linux.

- You can mount an iso file in two ways: (1) burn the iso file as a progra CD and mount it; (2) mount the iso image using Gmount program.


3. Install Office 2010 using PlayonLinux. 

(1) Start PlayonLinux
- It will ask you a couple of things. Just say yes to everything.

(2)  Select "install" on the menu list, and you will see a screen like this:


(3) Select "Office" and select "Microsoft Office 2010."

(4) You will see a screen like the below. Select Use DVD-ROM(s) and identify a directory which has the new Office iso image.

(5) Install Office 2010 as usual.



4. Enjoy!

- After installation, start Word. Go to "File --> Help". On the upper right side of Word, you will see "Product Activate." Hooray!

Tuesday, January 15, 2013

Slow Printer Issue: ubuntu 12.04


1. Alt + F2
>  system-config-printer

2. Change "Make and Model" to Generic PCL 5e Printer Foomatic/hpijs-pcl5e (recommended)

Original source: here

Sunday, January 13, 2013

Tuesday, January 8, 2013

Installing Stata 12 in ubuntu 12.04

1. Prepare

Install "libgtksourceview2.0-0" & "libgtksourceview2.0-0-common" & "libgnomeprint2.2-0" using Synaptic Package

2. Install (note: change directories as necessary)

> sudo mkdir /usr/local/stata12 
> cd /usr/local/ 
> sudo chmod a+rx /usr/local/stata12 
> cd /usr/local/stata12 
> sudo mkdir /tmp/statainstall 
> sudo cp -r /media/Stata /tmp/statainstall
> sudo chmod -R 777 /tmp/statainstall 
> sudo /tmp/statainstall/Stata/install 
> sudo ./stinit

3. Make Symbolic links

> sudo ln -s /usr/lib/libgtksourceview-2.0.so.0 /usr/lib/libgtksourceview-1.0.so.0

> cd /usr/bin
> sudo ln -s /usr/local/stata12/xstata xstata 
> sudo ln -s /usr/local/stata12/xstata-se xstata-se 
> sudo ln -s /usr/local/stata12/stata stata 
> sudo chmod -R 777 /usr/local/stata12

4. Open Stata

> xstata-se

5. Remove Temp Directory

> sudo rm /tmp/statainstall/Stata/install

Thursday, May 24, 2012

Printer in Mint

To change the printer setting in Mint:

"Alt + F2" and type "system-config-print"

Thursday, September 1, 2011

Adobe Flash in Ubuntu 64-bit

Copy and paste the following command in Terminal:

> sudo add-apt-repository ppa:sevenmachines/flash && sudo apt-get update && sudo apt-get install flashplugin64-installer