Categories
applications How to's

How to view djvu files in linux

Most of the scanned texts are found in DJVU format. DJVU files are usually of less size compared to their PDF counter parts. In linux evince can open djvu file. But in case you don’t like the interface of evince there is another reader to view DJVU files called djview. Just type this as root to install djview

#apt-get install djview

and you will see it in graphics section of Applications menu.

Categories
applications How to's Info

What is the command to invoke Adobe acrobat reader in Linux

If you have installed Adobe Reader in Linux and you need to invoke it from console ( for some reason you don’t want to go to menus). Just enter acroread  and you will see  Adobe reader opened.
to open a file enter

$acroread filename.pdf

enter acroread -help and you will find all the command line options available to you. Here is the list of options available

Usage: /usr/bin/acroread [options] [list of files]

Options:
    --display=
        This option specifies the host and display to use.
    --screen=
        X screen to use. Use this options to override the 
 screen part of the DISPLAY environment variable.
    --sync
        Make X calls synchronous. This slows down the program considerably.
    -geometry [x][{+|-}{+|-}]
        Size and/or location of the document windows.
        Note: this option is position dependent, and can be
        specified multiple times. The geometry specified only
        affects the list of files following it.
    -help
        Prints the common command-line options.
    -iconic
        Launches in an iconic state on the desktop.
    -setenv =
        Tells the main application to perform the equivalent of
        C-shell setenv  .
    -tempFile
        Indicates files listed on the command line are temporary files
        and should not be put in the recent file list.  The document
        title will be the title in the pdf document, instead of the
        filename.
    -tempFileTitle        Same as -tempFile, except the title is specified.    -toPostScript [options] pdf_file ... [ps_dir]    -toPostScript [options] -pairs pdf_file_1 ps_file_1 ...    -toPostScript [options]        Converts the given pdf_files to PostScript.        In the first form, if the last file specified is a directory,        then all preceding files will be converted to PostScript        and the generated PostScript files will be placed into ps_dir.        If a directory is not specified, then the PostScript files        will be placed in the same directory as the original file.        In the second form, the file list contains pairs, each        consisting of a PDF filename and a corresponding PostScript        filename.        The third form specifies a filter, reading a PDF file from        standard input and writing the PostScript file to standard        output.        Note: When using -toPostScript it must be the first argument        passed in on the command line.        The following are valid options for the conversion of PDF to        PostScript:        -binary - emit binary PostScript where possible        -start  - identify the first page in the document to be           converted (default is the first page of the document)        -end  - identify the last page in the document to be           converted (default is the last page of the document)        -optimizeForSpeed - emit PostScript such that all fonts are           emitted once at the beginning of the document.  This           results in faster transmission times and smaller           PostScript documents but requires more PostScript printer           virtual memory.        -landscape - rotate the pages to print landscape        -reverse - reverse the page order of the output        -odd - emit only odd-numbered pages        -even - emit only even-numbered pages        -commentsOff - don't print comments        -annotsOff - don't print annots        -stampsOff - don't print stamps        -markupsOn - print document and markups        -level2 - emit Level 2 PostScript  (level1 is not supported)        -level3 - emit Level 3 PostScript         -printerhalftones - use the printer default halftones.        -saveVM - download fonts as needed to preserve printer memory -size - Paper size (letter,tabloid,ledger,legal,a3,a4,a5,b4,b5)        -scale  - scale the pages according to the scale factor           (default is 100 percent)        -shrink - shrink the pages to fit the page size        -expand - expand the pages to fit the page size        -size  - set the page size.  The following page sizes           are recognized:              letter - letter size paper              tabloid - tabloid size paper              ledger - ledger size paper              legal - legal size paper              executive - executive size paper              a3 - ISO standard A3 size              a4 - ISO standard A4 size              a5 - ISO standard A5 size              b4 - ISO standard B4 size              b5 - ISO standard B5 size              wxh - custom size paper where w is the integer width                 in points and h is the integer height in points        -transQuality level - set the transparency flattening level            Value from 1-5, where 1 means rasterize everything, 5 means           rasterize as little as possible, default is 3.    -openInNewWindow        The application starts normally without checking if it        is already running.    -version        Print version information and quit.    -visual  [depth=]    -visual id=    -visual best    -visual default        Specifies a visual.        In the first form, the visual class (specified by either        its name or number) with an option depth determine the        visual to use.        In the second form, the visual id is specified. The prefix        0x must be used for hexadecimal numbers.        The third form uses an internal algorithm based on depth        and visual class.        The fourth form simply uses the default visual.        Note that PseudoColor visuals of depth greater than 8,        and DirectColor visuals are not supported.
Categories
grub How to's

How to add splashimage to grub.

Splashimage loads in the background when grub loads. You can add a splash image. To add splash image you need to pick up and image which is in the format of .xpm or convert an existing picture to .xpm using gimp or imagemagick. To know more about .xpm format visit this page on xpm.

lets rename the file to splash.xpm

zip it in .gz format.

$gzip splash.xpm

the new file would be splash.xpm.gz

copy this file to /boot/grub directory. You must be logged in as root to be able to copy files to that directory.

#cp splash.xpm.bz2 /boot/grub/

open /boot/grub/menu.lst file in your favourite text editor like vi or grub.

add the following line

splashimage=(hd0,1)/boot/grub/splash.xpm.gz

P.s if your root partition is first partition of your first hard disk (Master Hard Drive) then you need to add

splashimage=(hd0,0)/boot/grub/splash.xpm.gz

if it is second partition of your first hard disk drive (Master Hard Drive) then you need to add

splashimage=(hd0,1)/boot/grub/splash.xpm.gz

now save menu.lst and reboot.

njoi!!

Categories
grub How to's

How to change the default timeout before default OS boots in grub

To change the default timeout after which grub boots into default Operating System goto /boot/gru/menu.lst.
search for key word timeout

you will see the portion of file as below.
change the time from 5 to 10 or any secs you need .

now grub waits for 10 secs before booting into default os.

## timeout sec

# Set a timeout, in SEC seconds, before automatically booting the
default entry

# (normally the first entry defined).

timeout 5

Categories
How to's

How to View HTML files from Console.

To view html from console you can use any of the text browsers available in linux.
Here are the list.
w3m
lynx
elinks

Of all elinks is fully featured browser. It has command line Interface and very easy to use.
w3m is very simple browser as far as i am concerned
You can see other formats like pdf & doc etc in console after converting them to html first and opening with above text html browsers

See article on How to view PDF in console

w3m manual

Categories
grub How to's

How to set Default Operating System to boot IN GRUB

How to set default boot option in grub??
you have seen a large no of os kerenels whihc you can boot into in GRUB screen like below!!

linux-image2.6.18-486
linux-image2.6.18-686
linux-image2.6.24-486
linux-image2.6.24-686
linux-image2.6.34-666

to set the default OS kernel to be booted
open terminal login as root..
$su
enter root password
the use GEDIT or vi to edit the /boot/grub/menu.lst file…

#gedit /boot/grub/menu.lst

in the file search for line default 0

if you option is at 5th position in the menu list (.. then
change
default 0 to default 4 in the menu.lst file.

Now next time you will boot the default OS to boot will be the 5th one..!
cheers

Categories
How to's

How to import Data from Excel Sheet into Openoffice.org Database

There has been many tutorials about how to import data into openoffice.org calc from various formats. But i find there is some thing missing.

How to import data from and excel sheet or any spreadsheet into “openoffice.org base” application?

Well normally there is no menu path like in ms acess to import a table from excel sheet. I have search all menus in the base but i was unable to find how to do that.

Coming to how to do that

First open you spreadsheet of table in openoffice.org calc and give name to the columns in the table.

Then copy the data as shown in figure

After that open the openoffice.org base file and click on tables button as shown in figure and right click on the show area as below.

You can see paste option enabled. Just paste it there and then follow the import options

Give a name to the table, select what you want to import ( data or the format of the table)

Then select which columns of the tables you want to import

format your fields and set primary key

you are done with importing finally…..

Categories
How to's

How to Install Mplayer Skins

Download the skins from here

and extract them in
/usr/share/mplayer/skins as root to install skins for all users
or into ~/.mplayer/skins/ to install for yourself as normal user

Categories
How to's

How to change File type associations in Gnome

Right click on file of the type whose association you want to change and goto properties.



click on open with tab

here choose the application you want to use to open the type of files with.
You can also choose custom applications. Click on the add button and you will see a screen as below


You can either choose an application from above or enter a custom command or enter path to the application to add new program.
If you click on browse button you can see a file dialog opened
to choose the desire application.

Categories
How to's

How to install java plugin for firefox in linux

First Install java runtime environment download it form Sun’s site

Then follow these steps

change to the plugins direcory of firefox

usually /usr/lib/firefox/plugins for firefox
/usr/lib/iceweasel/plugins for iceweasel
/usr/lib/mozilla/plugins for mozilla
/usr/lib/iceape/plugins for iceape
/usr/lib/epiphany//plugins/ for epiphany

Then execute the following commands as root or super user

$ln -s /opt/jre/plugin/i386/ns7/libjavaplugin_oji.so ./libjavaplugin_oji.so

I assume that you JRE directory is in /opt directory. Usually it is in /usr/lib/java or /usr/lib/jre etc…