Categories
How to's

How to add path

To add path normally you enter the following commands
Here i want to add ~/bin to the path of executables.

$export PATH=$PATH:~/bin

But you have to type this every time you run the terminal.

To make it automatically available

edit your /.bash_profile file

add the following lines

if [ -d ~/bin ] ;
then
PATH=${PATH}:~/bin
fi

The file must end with carriage return to work

then try executing the files in your ~/bin directory

you must see them working. Else try this

open the terminal.

Goto Edit–>current profile and click on title and command tab as shown in


figure and check the button run command as login shell.

If you dont want it be a login shell
enter the same code in .bashrc file.
Then the path gets modified before you open the terminal

this must work hopefully .

Categories
How to's

How to enable automatic login in Linux

To enable automatic logon.
In Gnome goto
Desktop –> Administration –> Login window

Enter the root password & you will see a window


just check the Enable Automatic Login button and enter the name of the user

In KDE

goto

settings–> System administration —>login manager


Just check the auto-login button and enter the user name here

Categories
How to's

How to view pdf file from console in linux

This article is about how to view a pdf file from linux console.
To view a pdf in a console install pdftohtml and elinks

$apt-get install pdftohtml elinks

then make a shell script

name it as pdfview
Here the script


#!/bin/sh
#Created by webmaster@http://linuxtuts.blogspot.com
NOARGS=0

if [ $# = $NOARGS ]
then
echo "usage :- pdfview filename.pdf"
exit
fi

if [ -d ~/tmp ]
then
echo "tmp directory exists hmmm....."
else
mkdir ~/tmp
fi

echo "converting pdf to html"
z=`expr substr "$*" 1 1`
#echo $z

if [ "$z" = "/" ]
then
file=$*
else

file=`pwd`/$*
fi

#echo "$file"
if ! [ -e "$file" ]
then
echo "File not found"
exit

fi

cd ~/tmp
pdftohtml -q "$file" temp.html

if [ -e ~/tmp/temp.html ]
then
echo "opening files"
elinks ~/tmp/temp.html
rm temp.html temps.html temp_ind.html
else

echo "The file cannot be converted"
exit
fi

echo "By http://linuxtuts.blogspot.com"

Then copy the file to /usr/local/bin
cd to directory /usr/local/bin
execute command as root
chmod a+x pdfview
and exit thats all.
Now u can view pdf files from console. You cannot view copyright material from this.

with command

$pdfview filename.pdf

to exit the application use q

Sample view

Categories
How to's

How to connect to a XDMCP server from linux client

Install the following package

$apt-get install xnest

and give the command

$gdmXnestchooser

It will show screen like in the figure

Normally you will see the server in the window. Else enter the ip of the server

Then double click on the server’s button

You will see a logon window like this

Then login and you can see the Xmanager type session here

If u want a full screen logon in gnome goto applications–>system–>newlogin

and in the actions choose run xdmcp server. Then you will see the same screen

Categories
How to's

How to Install English Dictionary In Linux

First Install Dictd Server.

command is


apt-get install dictd


Then install dict (i doubt about it)

Then the gnome dictionary client
Goto preferences and add the source like


Click on add button & enter the following values.

click on add after you have entered the above preferences. & search for a word to check the settings

Categories
How to's

How to make Open Office Load Faster

In any open office application goto tools–>options. goto the memory field as shown in figure

Enter 128 mb in use for open office field & 20mb for memory per object field. Then save them
But these are not only the optimum ones. If you have memory low than 256mb, just enter some 64-32 mb & test it to find the optimum time. I have seen results pretty good.

Categories
How to's

How to create custom Keyboard shortcuts

I am writing this post after seeing a query in a forum. The procedure to create custom keyboard shortcuts is

1) Open Gnome configuration editor goto apps–> metacity –>keybinding_commands

2) Double click on command1 and enter the program you want to add shorcuts for. In this example we take gnome-calculator and press ok button.

Photobucket

3) Then goto apps>metacity–> global keybindings
4) Double click the key run_command1 and enter the key bindings. Suppose we want to give it as Alt+c. Type as c in the field and press ok button.

Photobucket

Thats all !!. Now close the configuration editor and press alt+c. You will see the gnome-calcultator appearing on your screen.
Categories
How to's

How to make an ISO image in linux

If you want to make an iso file from CD or DVD goto the following steps.
1) First place the disk in the cd/dvd drive. Donot mount it.
2) If it auto mounts then unmount it.
3) Type the following commands

To make an iso image from a dvd

$dd if=/dev/dvd of=dvd.iso

To make an iso image from cd
$dd if=/dev/cdrom of=cd.iso

To make an iso image from an scsi cdrom use command

$dd if=/dev/scd0 of=cd.iso

4) To make an ISO from files on your hard drive, create a directory which holds the files you want and use the mkisofs command.

$mkisofs -o /tmp/cd.iso /tmp/dir/

The result is a file cd.iso which contains all the files in directory /tmp/dir

If you get a message error mkisofs not found ,it means the program mkisofs is not present in the system ( not installed). So install program called mkisofs.
for debian type this as root

$apt-get install mkisofs

Categories
How to's

How to Change You desktop resolution

To change you desktop resolution in gnome, open terminal and type the following commands.

$gnome-display-properties

you will see a window like this

the change the resolution to your desired values

Categories
How to's

How to remove hard Drive Partition icons from Desktop

You might have obeserved , when you install debian the hard drive partition icons are displayed on the desktopby default. It annoys some people (like me). To remove the icons from the desktop open gnome configuration editor

then goto /apps/nautilus/desktop

then uncheck the variable volumes_visible . Then the icons will disappear.

On the contrary if you want them to be on desktop , just follow the same procedure and check the variable volumes_visible