Category Archives: Linux, PostgreSQL, etc.

Notes about using Linux, MySQL, PostgreSQL and other free software, no matter if it’s open sourced or not.

Installing ArcServe 17.5 agent on Oracle Linux 7.4

We’re slowly migrating our DB servers to Oracle Linux 7 and at the same time we’ll upgrade ArcServe 16/16.5 backup software to version 17.5. Unfortunately, the information that we found on the web regarding support for Oracle Linux 7.x is not consistent with the readme document that comes with the media.
Here is what official ArcServe Backup compatibility matrix is saying about OEL7 support:


And below, you’ll see what we got during agent installation. We believe that this inconsistency is due to the poor installation script maintenance (apparently updated in 2015). The installation of the agent 17.5 (+ mandatory patch 802!) on Oracle Linux 7.4 was a breeze .

$ lsb_release -d
Description:    Oracle Linux Server release 7.4

$ su - root
# mkdir /media/arcserve
# mount -t iso9660 /dev/cdrom /media/arcserve
# cd /media/arcserve/Arcserve_Backup/DataMoverandAgent/Linux

./install

This distribution of Linux is not certified by Arcserve Backup. If you run it, you may experience problems.
(y) to continue, (q) to quit :

<< a lot of license gibberish that you'll likely skip >>

Please enter your choice:[Y|N] (default: N)Y
Do you want to view the installation notes? (y/n):(default: y) n
Do you want to view the installation notes? (y/n):(default: y) n

Preparing for the installation, please wait...|

The following products are available to install:


#####################################################################
#       Arcserve Installation Options
#####################################################################
#  1. Arcserve Backup for Linux Data Mover                               (ABdatmov)
#  2. Arcserve Backup for Linux Client Agent                             (ABagntux)
#  3. Arcserve Backup for Linux Agent for Oracle                         (ABora)
#  4. Arcserve Backup for Linux Enterprise Option for SAP R/3 for Oracle (ABsap)
#  5. Arcserve Backup for Linux Enterprise Option for SAP HANA           (ABhana)
#
#  0. Quit
#####################################################################

Note: Client Agent will be installed automatically if Data Mover is selected.
Please enter your selection separated by "," For example: 1,2. Press Enter to select the default components (E.g. Data Mover, Client Agent)...

Your choices are:2

Please specify the installation path of Client Agent for Linux                   (default: /opt/Arcserve):

The following program will be installed:

  . Install Client Agent for Linux                     (ABagntux)      ==> [ /opt/Arcserve/ABuagent ]

Are you sure? (y)es/(n)o/(q)uit: y

All Arcserve Backup agents can be configured for automatic startup
and shutdown as part of your operating system startup and shutdown.
Do you want to enable automatic startup and shutdown of all backup agents? [y|n]:(default: y) y

Checking available space in /opt/Arcserve                     ==> [ OK ]


Installation log file is                           ==> [ /tmp/ARCserveInstall092117-1219.log ]

    Common Agent Module                      (ABcmagt)       ==> [ INSTALL SUCCESSFUL ]
    Client Agent for Linux                   (ABagntux)      ==> [ INSTALL SUCCESSFUL ]

###########################################################################

    Installation log file is                      ==> [ /tmp/ARCserveInstall092117-1219.log ]
###########################################################################


Do you want to view the readme? [y|n]:(default: y) y


<**snip** AND HERE IS THE LIST OF SUPPORTED OS's, OEL 7 is not mentioned! **snip**>

3.2  Supported Operating Systems for the Client Agent for Linux

You can install the Arcserve Backup Client Agent for Linux
on the following operating systems:

 *   Community ENTerprise Operating System 5.x, including SMP
     through 6.3 (x86, AMD64, Intel EM64T)

 *   Oracle Enterprise Linux Server 5.5 including SMP through
     6.3 (x86, AMD64, Intel EM64T)

 *   SUSE Linux Enterprise Server 9.x including SMP through 11
     SP2 (x86, AMD64, Intel EM64T)

 *   Novell Open Enterprise Server 2 10.x (x86, AMD64, Intel
     EM64T)

 *   Novell Open Enterprise Server 11, SP1 (AMD64, Intel EM64T)

 *   Turbolinux 11.x (x86, AMD64, Intel EM64T)

 *   Miracle Linux 4.0 (x86, AMD64, Intel EM64T)

 *   Red Flag Data Center Server 5.0 (x86, AMD64, Intel EM64T)

 *   Asianux 3.x (x86, AMD64, Intel EM64T)

 *   Debian 5.x through 6.06 (x86, AMD64, Intel EM64T)

 *   Ubuntu Server 10.04 LTS through 12.04 (x86, AMD64, Intel
     EM64T)

 *   Red Hat Enterprise Linux Server 4.x including SMP through
     6.3 (x86, AMD64, Intel EM64T)

 *   Red Hat Enterprise Linux 7 (AMD64, Intel EM64T)

 <**snip**  ........................................................... **snip**>

That’s it. We can start or stop the agent with the usual commands:

Start and stop the agent:
 
sudo  /etc/init.d/bab_agent stop
sudo /etc/init.d/bab_agent start

or simply:

caagent stop
caagent start

You should also download and apply patch P00000802.zip before putting agent in production:

Download patch P00000802.zip from ArcServe support.

# cd /home/alesk/Downloads/ArcServe-Patch/
# unzip P00000802.zip
# caagent stop
Shutting down Arcserve Backup Universal Agent process...Down.

-- backup original file
# cp -p /opt/Arcserve/ABuagent/uagentd /opt/Arcserve/ABuagent/uagentd.BkpP00000802

# cp uagentd /opt/Arcserve/ABuagent
# caagent start

If you have firewall enabled, then you’ll have to add port 6051 to the exception list:

sudo firewall-cmd --permanent --zone=public --add-port=6051/udp
sudo firewall-cmd --permanent --zone=public --add-port=6051/tcp
sudo firewall-cmd --reload

Agent configuration:

Configuration:

$ sudo nano /opt/Arcserve/ABcmagt/agent.cfg

[0]
#[LinuxAgent]
NAME      LinuxAgent
VERSION   17.5
HOME      /opt/Arcserve/ABuagent
#ENV      CA_ENV_DEBUG_LEVEL=4
ENV       AB_OS_TYPE=ORACLEAMERICA_X86_64
ENV       UAGENT_HOME=/opt/Arcserve/ABuagent
#ENV       LD_ASSUME_KERNEL=2.4.18
ENV       LD_LIBRARY_PATH=/opt/Arcserve/ABcmagt:$LD_LIBRARY_PATH:/SharedComponents/lib:/opt/Arcserve/ABuagent/lib
ENV       SHLIB_PATH=/opt/Arcserve/ABcmagt:$SHLIB_PATH:/SharedComponents/lib:/opt/Arcserve/ABuagent/lib
ENV       LIBPATH=/opt/Arcserve/ABcmagt:$LIBPATH:/SharedComponents/lib:/opt/Arcserve/ABuagent/lib
ENV       CAPKIHOME=/opt/Arcserve/ABcmagt/ETPKI
BROWSER   cabr
AGENT     uagentd
MERGE     umrgd
VERIFY    umrgd
NOPASSWORD                     <<< ADDED...enable single user mode, this is needed for ACL's
CAUSER A:alesk N:root          <<< ADDED...Access Control List (A=allow access, N=Deny Access)

[36]
#[ABcmagt]
#NAME     ABcmagt
#HOME     /opt/Arcserve/ABcmagt
#TCP_PORT  6051
#UDP_PORT  6051
#UDP_BCAST_PORT  41524
#DOS_MAXITEMS    1000
#DOS_DEFAULTTIMEOUT   30
NO_HOSTS_EQUIV=1               <<< ADDED...disable UNIX/Linux host equiv. authentication

$ sudo caagent stop
$ sudo caagent start

xrdp on Raspberry Pi 2 with Slovenian keyboard

This is a short memo about setting up xrdp on my Raspberry Pi 2 with freshly installed Ubuntu Mate 16.04. The objective is to run RPI headless on run level 3 (multi-user.target in systemd parlance), but with the option to have GUI access from my Windows 10 workstation via RDP (90% of the time, I’ll be using MobaXterm to ssh into RPI). Primary role of this “machine” will be executing some DBA related python scripts, some of those scripts will produce some graphics, nothing fancy, but still a lot simpler to maintain if I can login from time to time to RPI desktop.

Install xrdp:

$ ssh -X alesk@rpi-mate
$ sudo apt-get install xrdp
$ reboot
// note down your IP
$ ip addr

On Windows desktop open Remote desktop and connect to RPI. You’ll get prompt like the one on the picture:
rpi-mate-xrdp1

Enter username and password and wait for the desktop to appear. The problem however is that by default I was stuck with the US keyboard without the way to change it.
With some googling I found out, that I need to find my country code for the xrdp key mapping ini file, for example here. In my case, it’s 0x0424 – sl Slovenian.
I used country code for the naming of generated keyboard mapping file.

$ ssh alesk@rpi-mate
$ xrdp-genkeymap km-0424.ini
$ sudo cp km-0424.ini /etc/xrdp
$ sudo chown xrdp:xrdp /etc/xrdp/km-0424.ini
$ sudo service xrdp restart

Now, after reconnecting to my RPI with Remote Desktop client, I got desktop with functional Slovenian keyboard:

rpi-mate-xrdp2

Installing Cisco AnyConnect Client 3.1 on Fedora 20

This is a short memo about installation of “Cisco AnyConnect Secure Mobility Client 3.1” on my Fedora 20 (KDE) powered laptop. Although Fedora is officially not supported I didn’t find any glitches so far running Cisco vpn client on my laptop.

 
$ uname -r
3.13.6-200.fc20.x86_64

$ sudo yum install pangox-compat.x86_64  // prerequisite!

$ tar -xvzf anyconnect-predeploy-linux-64-3.1.04072-k9.tar.gz

$ cd anyconnect-3.1.04072/vpn

$ sudo ./vpn_install.sh 

// Start Cisco vpn applet with:
$ /opt/cisco/anyconnect/bin/vpnui

cisco-anyconnect

Upgrading Oracle Linux 6.4 to 6.5 (plus UEK2 to UEK3)

Steps for upgrading Oracle Linux 6.4 to 6.5 and UEK2 kernel to UEK3:

// Download and replace yum repository file with the new one!
# cd /etc/yum.repos.d
# rm public-yum-ol6.repo 
# export http_proxy=proxy.acme.com:80   (optional)
# wget http://public-yum.oracle.com/public-yum-ol6.repo
# nano public-yum-ol6.repo
// find section [ol6_UEKR3_latest] and set Enabled=1
# yum update
# reboot

That’s it. Don’t forget to set Enabled=1 in ol6_UEKR3 section, unless you don’t want to upgrade UEK2 kernel to version UEK3.

Installing and configuring ArcServe 16.1 agent on Fedora 20

A quick note about CA ArcServe Universal Agent 16.1 installation of Fedora 20 (x64):

$ sudo mount -o loop  ArcServe16SP1.iso /mnt/dvd
$ cd /mnt/dvd/ArcServe16SP1/DataMoverandAgent/Linux
$ sudo ./install

You’ll be greeted with:

Cannot identify your Linux distribution or it is not yet supported.

Important! You are installing UNIX and Linux Data Mover on a system that is 
running an operating system that is not currently supported by ARCserve. 
To check the latest list of supported operating systems, go to ca.com/support. 
If you continue, be aware that unexpected results could occur.

Do you want to continue? (YES/NO):(default: NO) YES

...
Read the license terms
...

ENTER YES (Y) TO ACCEPT THE TERMS AND CONDITIONS OF THIS AGREEMENT AS SET 
FORTH ABOVE AND PROCEED WITH THE INSTALLATION PROCESS.

ENTER NO (N) TO HALT THE INSTALLATION PROCESS.

Please enter your choice:[Y|N] (default: N) Y


Do you want to view the installation notes? (y/n):(default: y) n

Preparing for the installation, please wait...| 

The following products are available to install:


#####################################################################
#       ARCserve Installation Options
#####################################################################
#  1. CA ARCserve Backup for Linux Data Mover                               (ABdatmov)
#  2. CA ARCserve Backup for Linux Client Agent                             (ABagntux) 
#  3. CA ARCserve Backup for Linux Agent for Oracle                         (ABora)
#  4. CA ARCserve Backup for Linux Enterprise Option for SAP R/3 for Oracle (ABsap)
#                                                                       
#  0. Quit                                                              
#####################################################################

Note: Client Agent will be installed automatically if Data Mover is selected.
Please enter your selection separated by "," For example: 1,2. Press Enter to select the default components (E.g. Data Mover, Client Agent)...

Your choices are: 2

lease specify the installation path of Client Agent for Linux                   (default: /opt/CA): <ENTER>

The following program will be installed:

  . Install Client Agent for Linux                     (ABagntux)      ==> [ /opt/CA/ABuagent ]

Are you sure? (y)es/(n)o/(q)uit: y


All CA ARCserve Backup agents can be configured for automatic startup 
and shutdown as part of your operating system startup and shutdown.
Do you want to enable automatic startup and shutdown of all backup agents? [y|n]:(default: y) y

Checking available space in /opt/CA                           ==> [ OK ]


Installation log file is                           ==> [ /tmp/ARCserveInstall123113-0938.log ]

    Common Agent Module                      (ABcmagt)       ==> [ INSTALL SUCCESSFUL ]
    Client Agent for Linux                   (ABagntux)      ==> [ INSTALL SUCCESSFUL ]

###########################################################################

    Installation log file is                      ==> [ /tmp/ARCserveInstall123113-0938.log ]
###########################################################################

Do you want to view the readme? [y|n]:(default: y) n

Configuration:

[alesk@fedora20 CA]$ ls -al /opt/CA
total 8
drwxr-xr-x  4 root root   35 Dec 31 09:42 .
drwxr-xr-x. 6 root root   62 Dec 31 09:42 ..
drwxr-xr-x  4 root root 4096 Dec 31 09:42 ABcmagt
drwxr-xr-x  4 root root 4096 Dec 31 09:42 ABuagent


$ sudo nano /opt/CA/ABcmagt/agent.cfg

[0]
#[LinuxAgent]
NAME      LinuxAgent
VERSION   16.0
HOME      /opt/CA/ABuagent
#ENV      CA_ENV_DEBUG_LEVEL=4
ENV       AB_OS_TYPE=FEDORAPROJECT_X86_64
ENV       UAGENT_HOME=/opt/CA/ABuagent
#ENV       LD_ASSUME_KERNEL=2.4.18
ENV       LD_LIBRARY_PATH=/opt/CA/ABcmagt:$LD_LIBRARY_PATH:/SharedComponents/lib:/opt/CA/ABuagent/lib
ENV       SHLIB_PATH=/opt/CA/ABcmagt:$SHLIB_PATH:/SharedComponents/lib:/opt/CA/ABuagent/lib
ENV       LIBPATH=/opt/CA/ABcmagt:$LIBPATH:/SharedComponents/lib:/opt/CA/ABuagent/lib
BROWSER   cabr
AGENT     uagentd
MERGE     umrgd
VERIFY    umrgd
NOPASSWORD                      <<< ADDED
CAUSER  A:alesk N:root          <<< ADDED

[36] DISABLED
#[ABcmagt]
NAME      ABcmagt               
HOME      /opt/CA/ABcmagt
NO_HOSTS_EQUIV=1                <<< ADDED
#TCP_PORT  6051
#UDP_PORT  6051
#UDP_BCAST_PORT  41524
#DOS_MAXITEMS    1000
#DOS_DEFAULTTIMEOUT   30

As you can see all that I did was a couple of changes in agent.cfg file:

NOPASSWORD .... enable single user mode wihch is needed for ACLs
CAUSER     .... Access Control List (A=Allow access, N=Deny access)
NO_HOSTS_EQUIV=1   ... disable UNIX/Linux host equiv. authentication

Commands to start/stop CA agent:

$ sudo /etc/init.d/bab_agent start
$ sudo /etc/init.d/bab_agent stop