Ticket 125 ‐ Update Server Hostnames and Prompts - SupaHotBall/OE2-Group-D GitHub Wiki

Task

  1. Open PuTTY.
  2. Enter the IP address of the target server.
  3. Click Open.
  4. Login using SSH credentials.

Steps Taken

Management Server

  • Image from management server:

image

  • Image for the hostname changed

image

  • To ensure the hostname remains after a reboot
  • Code: sudo nano /etc/hosts

image

  • Customize the shell prompt
  • Code: nano ~/.bashrc
  • And paste this export PS1="[\u@Mgmt \W]\$ " at the bottom of the script

image

  • Apply the changes
  • Code: source ~/.bashrc

image

App Server

  • Image from app server:

image

  • Image for the hostname changed

image

  • To ensure the hostname remains after a reboot
  • Code: sudo nano /etc/hosts

image

  • Customize the shell prompt
  • Code: nano ~/.bashrc
  • And paste this export PS1="[\u@Apps \W]\$ " at the bottom of the script

image

  • Apply the changes
  • Code: source ~/.bashrc

image

DB Server

  • Image from db server:

image

  • Image for the hostname changed

image

  • To ensure the hostname remains after a reboot
  • Code: sudo nano /etc/hosts

image

  • Customize the shell prompt
  • Code: nano ~/.bashrc
  • And paste this export PS1="[\u@Db \W]\$ " at the bottom of the script

image

  • Apply the changes
  • Code: source ~/.bashrc

image

Backup Server

  • Image from backup server:

image

  • Image for the hostname changed

image

  • To ensure the hostname remains after a reboot
  • Code: sudo nano /etc/hosts

image

  • Customize the shell prompt
  • Code: nano ~/.bashrc
  • And paste this export PS1="[\u@Backup \W]\$ " at the bottom of the script

image

  • Apply the changes
  • Code: source ~/.bashrc

image

Challenges

N/A


External Resources

N/A


Ticket Reference

https://rt.dataraster.com/Ticket/Display.html?id=125