An array of C#, PHP, and HTML programming articles, tutorials, and resources

Posts Tagged ‘ install ’

The below instructions for installing rlogin have been confirmed for CentOS. This means there is a very high probability it is compatible with a registered copy of Red Hat Enterprise Linux 4 (rhel4).

ENSURE RSH PACKAGES INSTALLED

The first step is to insure you have the correct packages installed. To do this, simply type the following in the terminal.

rpm -qa | grep -i rsh

The following should return two packages similar to:

rsh-server-0.17-25.3
rsh-0.17-25.3

If you are missing any of the above packages, run the code below to have the appropriate two rsh packages installed using yum.

yum install rsh*

EDIT FILE: /etc/xinetd.d/rsh
The most common changes are in red, though you should still confirm the rest of the file.

# default: off
# description:
# The rshd server is a server for the rcmd(3) routine and,
# consequently, for the rsh(1) program. The server provides
# remote execution facilities with authentication based on
# privileged port numbers from trusted hosts.
service shell
{
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.rshd
disable = no
}

EDIT FILE: /etc/xinetd.d/rlogin
The most common changes are in red, though you should still confirm the rest of the file.

# default: off
# description:
# Rlogind is a server for the rlogin program. The server provides remote
# execution with authentication based on privileged port numbers from trusted
# host
service login
{
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.rlogind
disable = no
}

EDIT FILE: /etc/xineted.d/rexec
The most common changes are in red, though you should still confirm the rest of the file.

# default: off
# description:
# Rexecd is the server for the rexec program. The server provides remote
# execution facilities with authentication based on user names and
# passwords.
service exec
{
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.rexecd
disable = no
}

EDIT FILE: /etc/securetty
The most common changes are in red, though you should still confirm the rest of the file.

console
vc/1
vc/2
vc/3
vc/4
vc/5
vc/6
vc/7
vc/8
vc/9
vc/10
vc/11
ttyS0
tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
tty11
pts/0
pts/1
pts/2
pts/3
pts/4
pts/5
pts/6
pts/7
pts/8
pts/9
rsh
rlogin
rexec

RESTART THE RSH-SERVER SERVICE
To restart, one of the the following two commands below. One restarts the service while the other starts again.

/etc/init.d/xinetd start
/etc/init.d/xinetd restart

After a clean installation of Red Hat Enterprise Linux 5 (RHEL5) with an active subscription, I came across an immediate problem when attempting to run an application. I get the following error:

libXm.so.3: cannot open shared object file: No such file or directory

The first step is to insure that the files are actually missing. The easiest way to confirm if the file exists on the system is to run the locate command. Try the below linux command below which will return a list of similar files.

locate libXm.so

The number after libXm.so is merely the version number. If you are missing libXm.so.3, but you have libXm.so.4, you can create a symbolic link (-s) from file libXm.so version 4 to version 3 with the below linux command.

ln -s libXm.so.4 libXm.so.3

It turns out that I was missing a motif package, and that by installing openmotif (a perfect motif alternative) will quickly resolve the issue. Try the following below:

yum install openmotif22.i386 openmotif22.x86_64

Say yes to both prompts to complete the openmotif installation.