Setup SSH Keys

Buat Key Pair:

ssh-keygen -t rsa
ssh-copy-id user@

alternatifnya adalah kita bisa menyalin isi file manual ke file /home/user/.ssh/authorized_keys mesin target.


Using rsync Ubuntu

apt-get install rsync

rsync -avzh direktori_asal direktori_tujuan

mensinkronkan data atau file antara 2 server yang berbeda:

rsync -rvzh /home/backup root@

Atau juga bisa dibalik dimana kita menarik data:

rsync -rvzh root@ /home/backup_2

LDAP Backup / Restore with slapadd and slapcat



DIR=`date +'%Y%m%d-%H%M'`
mkdir -p $DIR
slapcat -n 0 > $DIR/config.ldif
slapcat -n 1 > $DIR/directory1.ldif




if [ ! -d $DIR ]; then
    echo "$DIR is not a directory"
    exit 1

sudo service slapd stop

sudo rm -rf /var/lib/ldap
sudo mkdir -p /var/lib/ldap

sudo rm -rf /etc/ldap/slap.d
sudo mkdir -p /etc/ldap/slap.d

sudo slapadd -F /etc/ldap/slapd.d -n 0 -l $DIR/config.ldif
sudo slapadd -F /etc/ldap/slapd.d -n 1 -l $DIR/directory1.ldif

sudo chown -R openldap:openldap /var/lib/ldap/
sudo chown -R openldap:openldap /etc/ldap/slap.d

sudo service slapd start

Deploy Talend ESB Service

This post will cover deploying a Talend ESB RESTful service as a OSGI Bundle for ESB in Talend runtime environment on Ubuntu server.

sudo apt-get install openjdk-7-jdk

Environment variable JAVA_HOME must be set because Talend Runtime will first look out for Java installation.

Execute below command to find out alternative Java path.

sudo update-alternatives --config java

Select path of preferred installation and update environment file by adding below code.

sudo vi /etc/environment

Reload file and Test

source /etc/environment

I am using FileZilla to send Runtime_ESBSE to Ubuntu server after compressing it, but server directory must have required permission to copy file.

Use chmod to give sufficient permissions.

sudo chmod 777 -R etl

Install unzip to extract Runtime_ESBSE on server.

sudo apt-get update
sudo apt-get install unzip

Execute trun command to launch Runtime environment. 

cd Runtime_ESBSE/container/bin

On Runtime container use list command to check status of your service.

karaf@trun()> list

we can also verify by hitting API endpoint using CURL

curl -i -H "Accept: application/json" 
-H "Content-Type: application/json" 

Now we are able to deploy ESB job as service in Talend Runtime container using apache karaf but to make it run as a operating system service we must install Karaf Wrapper feature.

Installing the wrapper

  1. Browse to the container/bin folder of the Talend Runtime installation directory, then launch the container by executing the trun file as a root user
  2. To install the wrapper feature, simply type:
    karaf@trun()> feature:install wrapper

    Once installed, wrapper feature will provide wrapper:install new command in the trun, which allows you to install Talend Runtime as a service.

  3. To register the container as a service in automatic start mode, simply type:
    karaf@trun()> wrapper:install -s AUTO_START -n talend 
    -d Talend -D "Talend ESB Runtime Service"

    To install the service:
    $ ln -s /dev/etl/talend/Runtime_ESBSE/container/bin/talend-service /etc/init.d/

    To start the service when the machine is rebooted:
    $ update-rc.d talend-service defaults

    To disable starting the service when the machine is rebooted:
    $ update-rc.d -f talend-service remove

    To start the service:
    $ /etc/init.d/talend-service start

    To stop the service:
    $ /etc/init.d/talend-service stop

    To uninstall the service :
    $ rm /etc/init.d/talend-service

A command to list all users? And how to add, delete, modify users? [Ubuntu]

To list all local users you can use:

cut -d: -f1 /etc/passwd

To list all users capable of authenticating (in some way), including non-local, see this reply:

Some more useful user-management commands (also limited to local users):

To add a new user you can use:

sudo adduser new_username


sudo useradd new_username

See also: What is the difference between adduser and useradd?

To remove/delete a user, first you can use:

sudo userdel username

Then you may want to delete the home directory for the deleted user account :

sudo rm -r /home/username

(Please use with caution the above command!)

To modify the username of a user:

usermod -l <em>new_username</em> <em>old_username</em></code></pre>
To change the password for a user:
sudo passwd username

To change the shell for a user:

sudo chsh username

To change the details for a user (for example real name):

sudo chfn username

And, of course, see also: man adduser, man useradd, man userdel... and so on.

Install Tallend Open Studio (Ubuntu 64 Bit)

1. Install Java

Install JRE – Java Runtime Environment

$ sudo apt-get install openjdk-8-jre

Install JDE – Java Development Kit

$ sudo apt-get install openjdk-8-jdk

[Setup Java Environment]

$echo $JAVA_HOME

$echo $JRE_HOME

2. Download and Install XULRunner 1.9.2

cd /usr/local/lib
sudo tar jxf /the file direcotry/xulrunner-1.9.2.en-US.linux-i686.tar.bz2

3. Open TalendOpenStudio-linux-gtk-x86_64.ini and add the last line as below:


4.script to launch Talend Open Studio

/TOS installation directory/TalendOpenStudio-linux-gtk-x86_64

$ ./