formats

How to install php-ldap module on CentOS5

in Linux

yum install php-ldap

vi /etc/php.ini

add extension=ldap.so

service httpd restart

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 
formats

How to change default gateway on windows by command line

in windows

you can change you default gateway on windows by route command , it’s very useful. Other than , you can add route to other network by this command too.

Syntax route [-f] [-p] [Command[Destination] [mask Network] [Gateway] [metric Metric]] [if Interface]]

Example:

To display the entire contents of the IP routing table, type:

route print

To display the routes in the IP routing table that begin with 10., type:

route print 10.*

To add a default route with the default gateway address of 192.168.12.1, type:

route add 0.0.0.0 mask 0.0.0.0 192.168.12.1

To add a route to the destination 10.41.0.0 with the subnet mask of 255.255.0.0 and the next hop address of 10.27.0.1, type:

route add 10.41.0.0 mask 255.255.0.0 10.27.0.1

To add a persistent route to the destination 10.41.0.0 with the subnet mask of 255.255.0.0 and the next hop address of 10.27.0.1, type:

route -p add 10.41.0.0 mask 255.255.0.0 10.27.0.1

To add a route to the destination 10.41.0.0 with the subnet mask of 255.255.0.0, the next hop address of 10.27.0.1, and the cost metric of 7, type:

route add 10.41.0.0 mask 255.255.0.0 10.27.0.1 metric 7

To add a route to the destination 10.41.0.0 with the subnet mask of 255.255.0.0, the next hop address of 10.27.0.1, and using the interface index 0×3, type:

route add 10.41.0.0 mask 255.255.0.0 10.27.0.1 if 0×3

To delete the route to the destination 10.41.0.0 with the subnet mask of 255.255.0.0, type:

route delete 10.41.0.0 mask 255.255.0.0

To delete all routes in the IP routing table that begin with 10., type:

route delete 10.*

To change the next hop address of the route with the destination of 10.41.0.0 and the subnet mask of 255.255.0.0 from 10.27.0.1 to 10.27.0.25, type:

route change 10.41.0.0 mask 255.255.0.0 10.27.0.25

 
Tags:
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 
formats

How to rpm in fedora

in Linux

Below Commands gives you an idea about how to use rpm in Redhat based distro like : fedora, centos, suse etc, it is a rpm cheat sheet by which you can easily understand its uses.

  • Install the package

# rpm -ivh {rpm-file}

  • Upgrade package

# rpm -Uvh {rpm-file}

  • Erase/remove/ an installed package

# rpm -ev {package}

  • Erase/remove/ an installed package without checking for dependencies

# rpm -ev –nodeps {package}

  • Display list all installed packages

# rpm -qa

  • Check to see if a certain package is installed

# rpm -qa | grep {package}

  • Display installed information along with package version and short description

# rpm -qi {package}

  • Find out what package a file belongs to i.e. find what package owns the file

# rpm -qf {/path/to/file}

  • Display list of configuration file(s) for a package

# rpm -qc {pacakge-name}

  • Display list of configuration files for a command

# rpm -qcf {/path/to/file}

  • Display list of all recently installed RPMs

# rpm -qa –last

  • Find out what dependencies a rpm file has

# rpm -qpR {.rpm-file}
# rpm -qR {package}

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 
formats

How to make yum more powerful

in Linux

yum is a powerful application there are applications we can add onto it to make it even more powerful.fedora

  • yum-fastestmirror – The yum-fastestmirror plugin sorts each repository’s mirrorlist by connection speed prior to downloading packages, and will choose the fastest mirror whenever yum is used. I find it to be very useful.

 

  • yumex – yumex, or yum extender, is a graphical user interface (GUI) for yum. Fedora already has a graphical interface to Yum (Add/Remove Software aka pruit) but I find yumex to be far more intuitive of an application in the way it is laid out. It is nice to browse through all of the programs that are present in a repository, or to narrow down the list or programs by performing a search. yumex allows you to do so. It’s a bit clunky, but it is still 10 times better than pirut, which try to perform similar actions.

 

  • yum-utils – yum-utils is a collection of utilities and plugins that provide additional flexibility when using yum. The utilities include package-cleanup, repoclosure, repomanage, repoquery, repo-rss, yum-builddep, and yumdownloader. package-cleanup is a definite must, as it checks for unneeded packages and dependency problems. It will also remove old kernels from the system, if needed.

To install all of these simply type the following into your terminal as root:

# yum install yumex yum-fastestmirror yum-utils

You should now have Yumex listed in your applications menu, and the rest will run in the background when you use yum or a front-end to yum. Enjoy.

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 
formats

how to find version of running SUSE Linux

in Linux

To find which version of SUSE Linux are you running, look in the following file: /etc/SuSE-release

Open the file in your desktop environment or use in a console

# cat /etc/SuSE-release

which should show something similar to (x86-64 means 64-bit version):

SUSE LINUX 10.0 (X86-64) OSS
VERSION = 10.0

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 
© OneDollarData.com
credit