5.3. Uso dello script
Per finire, una volta teminata la preparazione dello script, sarete pronti per poterlo eseguire. Eseguite un login all'interno del RHN Satellite Server o RHN Proxy Server, e navigate fino a raggiungere la directory
/var/www/html/pub/bootstrap/
, eseguite il seguente comando, alterando l'hostname ed il nome dello script in modo da soddisfare il tipo di sistema:
cat bootstrap-EDITED-NAME.sh | ssh root@CLIENT_MACHINE1 /bin/bash
cat bootstrap-EDITED-NAME.sh | ssh root@CLIENT_MACHINE1 /bin/bash
Un'alterativa meno sicura è quella di utilizzare
wget
o curl
, per riprendere ed eseguire uno script da ogni sistema client. Eseguite il login all'interno di ogni macchina client ed emettete il seguente comando, alterando lo script e l'hostname in modo richiesto:
wget -qO - \ https://your-satellite.example.com/pub/bootstrap/bootstrap-EDITED-NAME.sh \ | /bin/bash
wget -qO - \
https://your-satellite.example.com/pub/bootstrap/bootstrap-EDITED-NAME.sh \
| /bin/bash
Oppure con
curl
:
curl -Sks \ https://your-satellite.example.com/pub/bootstrap/bootstrap-EDITED-NAME.sh \ | /bin/bash
curl -Sks \
https://your-satellite.example.com/pub/bootstrap/bootstrap-EDITED-NAME.sh \
| /bin/bash
Una volta eseguito lo script su ogni sistema client è necessario eseguire una configurazione idonea ad utilizzare il server RHN.