Tuesday 17 April 2018

CouchDB replication in command line

Here I have mentioned the command line replication method only.

curl -X POST -d ‘{“source”:”https://username:password@sourceIP:6984/databasename”,”target”:”http://username:password@targetIP:5984/databasename”}’ https://username:password@sourceIP:6984/_replicate -H ‘Content-Type: application/json’

We can you http and https which we required in that filed.

Tuesday 10 April 2018

How to install GUI in rhel 7

Step 1

Need to check the available groups of YUM with following command.

yum group list

Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Available environment groups:
Minimal Install
Infrastructure Server
File and Print Server
Basic Web Server
Virtualization Host
Server with GUI


it will show result like this. We need GUI it will listed in that group.

Step 2

Now need to install the GUI group with following command.

yum groupinstall 'Server with GUI' -y
it will install all the required dependencies and packages.

After installation complete just check the targets. In rhel 7 run levels called as targets.


systemctl get-default

it will show the result as below

multiuser.target

Now modify the targets to graphical.target, for that do the following steps.

systemctl enable graphical.target --force

rm /etc/systemmd/system/default.target

ln -s /usr/lib/systemd/system/graphical.target /etc/systemd/system/default.target


Now verify the current target

systemctl get-default

it will show like

graphical.target

Step 3

Reboot the server and check.


Permanent hostname setup for RHEL7

Step 1 Set the host name on NMTUI tool like following nmtui set host name   then save and exit Step 2 add the following l...