| « Debian unstable, CUPS 1.4.1: Sharing printers | VMware ESXi 4 - Allow ssh connections » |
Networker 7.5.1 client on Debian GNU Linux 5.0 / Ubuntu 9.04
Networker client for Linux only comes “rpm packaged".
Here are a few stepsIn order to install Networker Client on Debian or Ubuntu linux servers:
Install
alienpackage converterroot@deb:~# apt-get install alien
Convert the networker client package from rpm to deb
root@deb:~# alien lgtoclnt-7.5.1-1.x86_64.rpm
Install the deb package
root@deb:~# dpkg -i lgtoclnt_7.5.1-2_amd64.deb
Start the networker client. this will create the /nsr directory. Then kill the networker client daemon:
root@deb:~# nsrexecd root@deb:~# kill `pidof nsrexecd`
Create the
/nsr/res/serversroot@deb:~# cat /nsr/res/servers your_networker_server.yourdomain.com
Wnat to know more???
...
Create a /etc/init.d/networker script (get one from a RH client):
#! /bin/sh
# Copyright (c) 1990-2009, EMC Corporation
# All rights reserved.
### BEGIN INIT INFO
# Required-Start: syslog network
# Required-Stop: syslog network
# X-UnitedLinux-Should-Start: portmap
# Should-Start: portmap
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: EMC Networker. A backup and restoration software package.
### END INIT INFO
case $1 in
start)
(echo 'starting NetWorker daemons:') > /dev/console
LD_LIBRARY_PATH=/usr/lib/nsr:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
if [ -f /usr/sbin/nsrexecd ]; then
if [ -f /usr/sbin/NetWorker.clustersvr ]; then
if [ -f /nsr.NetWorker.local -o -h /nsr.NetWorker.local ]; then
if [ -h /nsr ]; then
rm -f /nsr
ln -s /nsr.NetWorker.local /nsr
fi
fi
fi
(/usr/sbin/nsrexecd) > /dev/console 2>&1
(echo ' nsrexecd') > /dev/console
fi
if [ -f /usr/sbin/lgtolmd ]; then
(/usr/sbin/lgtolmd -p /nsr/lic -n 1) > /dev/console 2>&1
(echo ' lgtolmd') > /dev/console
fi
if [ -f /usr/sbin/nsrd -a \
! -f /usr/sbin/NetWorker.clustersvr ]; then
(/usr/sbin/nsrd) > /dev/console 2>&1
(echo ' nsrd') > /dev/console
fi
;;
stop)
(echo 'stopping NetWorker daemons:') > /dev/console
if [ -f /usr/sbin/nsr_shutdown ]; then
if [ -f /usr/sbin/NetWorker.clustersvr ]; then
(/usr/sbin/nsr_shutdown -q) > /dev/console 2>&1
(echo ' nsr_shutdown -q') > /dev/console
else
(/usr/sbin/nsr_shutdown -q) > /dev/console 2>&1
(echo ' nsr_shutdown -q') > /dev/console
fi
fi
;;
status)
if [ -f /usr/sbin/nsr_shutdown ]; then
/usr/sbin/nsr_shutdown -l
fi
;;
*)
echo "usage: `basename $0` {start|stop|status}"
;;
esacUpdate the rc scripts of the client:
root@deb:~# update-rc.d networker defaults
You’re done!!
6 comments
Comment from: Bryan Heath [Visitor]
02/03/10 @ 18:56
Comment from: MH [Visitor]
Just a note to others, make sure that the .rpm file is the correct one for the OS version (32 or 64). For awhile i couldn't figure out why alien wouldn't work.. and it was because i had the wrong version of the .rpm file!
05/25/11 @ 15:43
Comment from: Apu [Visitor]
I added:
chmod ugo+x /etc/init.d/networker
after creating the file.
10/14/11 @ 12:23