Posts

Showing posts from April, 2013

Associating file to an perticular application through command line

Image
We can select which program will open a particular type of document from terminal command line using mimeopen command. This tool is very useful if your program is not showing up in right click and open with option (like in case of program installed through PlayOnLinux ). If you know full command how to open the program you can use mimeopen to associate particular document type with that program.  So first open a terminal. Then navigate to the perticular folder where your file is. And then run the following command. $ mimeopen -d filename.ext And then it will show all option that can open that document. As a last option there will be an option other. You can select any option, just enter the corresponding number and enter. If you choose other option then it will show you option the command. Enter the full command (may be with full path some time) and then that program will open that file. From now on when ever you double click on that file type, it will always open with the same

Installing office 2010 with wine in Ubuntu

Ubuntu is my favourite desktop OS. This is very easy to use and user friendly.  Ubuntu by default ships with Libra office which is very good and capable of doing almost all the job we can do in MS Office. But the problem is Libra office is not very good while opening complex documents created in MS Office. Specially if the document contains lots of equations and picture. But I need to deal with lots of such documents. Fortunately we can install MS Office in Ubuntu using wine with some tweak. In this post I will explain how to install MS Office in Ubuntu. Installing Wine To install MS Office we have to install wine 1.5. For that first you have to add stable ppa of wine and then install it. Run the following commands in an open terminal. $ sudo add-apt-repository ppa:ubuntu-wine/ppa $ sudo apt-get update $ sudo apt-get install wine This will install the latest version of wine. Mesa OpenGl and 32 bit library Next step is to install mesa OpenGl and 32 bit libraries, use

Recovering deleted file

Some time we accidentally delete some important file, which we should not. If we simply delete it (moving to trash) we can easily recover it going to trash and restoring it. But if we permanently delete it (like using shift+delete key or emptying trash), it becomes very difficult to recover them. But we can do this using PhotoRec software. This can run in any kind of file system. You can even use it to recover lost photos from camera memory card or flash drive. This software is available for Linux, Windows and Mac. But here I will concentrate on Linux (mainly Ubunut) only. Installing PhotoRec First of all you have to install photorec using the following command sudo apt-get install testdisk Recovering File First open terminal and then run the following command sudo photorec and then first choose your drive form where you want to recover files, and then choose the option intel type. On the next screen choose the partition from where you want to recover the file. On next