5.3. Script Use

Finally, when you're finished preparing the script for use, you're ready to run it. On the RHN Server, navigate to the /var/www/html/pub/bootstrap/ directory and run the following command, altering the hostname and name of the script as needed to suit system type:

cat bootstrap-EDITED-NAME.sh | ssh root@CLIENT_MACHINE1 /bin/bash

A less secure alternative is to use either wget or curl to retrieve and run the script from every client system. Log into each client machine and issue the following command, altering script and hostname accordingly:

wget -qO- https://test.com/pub/bootstrap/bootstrap-EDITED-NAME.sh | /bin/bash

Or with, curl:

curl -Sks https://test.com/pub/bootstrap/bootstrap-EDITED-NAME.sh | /bin/bash

When this script has been run on each client system, all should be configured to use the RHN Server.