Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

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

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

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

Delete Google-earth

> sudo su -
> cd /opt/google-earth/
> export DISPLAY=:0
> ./uninstall

Clean-up WINE menus

> rm -f $HOME/.config/menus/applications-merged/wine*
> rm -rf $HOME/.local/share/applications/wine
> rm -f $HOME/.local/share/desktop-directories/wine*
> rm -f $HOME/.local/share/icons/????_*.xpm

Saturday, February 26, 2011

"Statdict" Pronunciation in ubuntu

1. Download "WyabdcRealPeopleTTS" from sourceforge
2. Install it under usr/share/stardict/sounds/
3. Change the preference of Stardict as follows:
    (1) play --> aplay
    (2) change the directory of "WyabdcRealPeopleTTS"




Saturday, January 1, 2011

ubuntu shutdown menu

if ubuntu shutdown menu disappears,

> sudo apt-get install indicator-applet-session

Then right-click the panel>Add to Panel... and then select 'Indicator applet session'

Original post: http://ubuntuforums.org/showthread.php?t=1332398

Friday, December 24, 2010

Change folder permission

Command to change folder permission including sub-directories. 

> sudo chmod -R 777 /folder-directory

Add Home Folder on GNOME Panel

http://www.watchingthenet.com/add-shortcut-to-your-home-directory-on-ubuntu-gnome-panel.html

Wednesday, March 3, 2010

rkward

R-GUI for linux users.

http://rkward.sourceforge.net/

Looks much better than Rcommander or JGR.

Sunday, February 14, 2010

List of "open with" in nautilus

look in ~/.local/share/applications

Monday, January 25, 2010

gedit & latex

gedit-latex-plugin

Install it using Synaptic Package Manager.

Friday, January 22, 2010

Change the default browser in ubuntu

sudo update-alternatives --config x-www-browser

gedit plug-in of R

http://sourceforge.net/projects/rgedit/

How to install:

To install, extract the RgeditXX.tar.bz2 archive somewhere and copy the contents of the resulting folder into to your ~/.gnome2/gedit/plugins folder (please note the "." dot; create this folder if necessary). Now, your ~/.gnome2/gedit/plugins folder should also contain:

RCtrl <- this is a folder
RCtrl.gedit-plugin
RCtrl.preferences
RCtrl.py ReadMe.txt <- this ReadMe.txt file

Then activate the "R Integration" plug-in from gedit.

Thursday, January 14, 2010

Getting Projectors to Work in Ubuntu

From: http://www.alterego7.com/2008/04/getting-projectors-to-work-in-ubuntu.html

1. Connect the projector to your laptop.

2. Do this in command line.

sudo dpkg-reconfigure xserver-xorg


3. Just press Enter through every screen.

4. Restart X for the changes to take effect by pressing CTRL + ALT + BACKSPACE.

5. Log in again as you always do.

6. And finally, the projector will automagically display your Ubuntu desktop and you can show off your desktop effects to your co-workers.

Thursday, January 7, 2010

Empty Trash

sudo rm -rf ~/.local/share/Trash/*

Setting Hangul Gulim as a default font in Linux

http://kldp.org/node/92122