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

Tuesday, May 31, 2011

from MP4 to MP3

> ffmpeg -i video.mp4 -f mp3 -ab 192000 -vn music.mp3

Monday, May 30, 2011

Unison in Windows 7 64bit

Unison is a powerful file synchronization program, which works in Linux, Windows, and probably also Mac. Unison is a freeware.

1) install GTK 64bit runtime

"gtk2-runtime-2.22.0-2010-10-21-ash.exe" or higher

It can be found at http://sourceforge.net/projects/gtk-win

2) download and unzip Unison GUI client into a directory where you like to have Unison

http://alan.petitepomme.net/unison/assets/2010.10.15-Esup-Unison-Unison_GTK_2.40.61.zip

It can be found at http://alan.petitepomme.net/unison/index.html


Saturday, May 7, 2011

Edit "Open With"

If you want to delete applications from this list you have to edit the following file from command line

/usr/share/applications/mimeinfo.cache

If you added item by yourself, or you want to add new item you need to edit the following file from command line

~/.local/share/applications/mimeinfo.cache

deafault actions you need to edit the following file from command line

~/.local/share/applications/defaults.list