Ticket 125 ‐ Update Server Hostnames and Prompts - SupaHotBall/OE2-Group-D GitHub Wiki
Task
- Open PuTTY.
- Enter the IP address of the target server.
- Click Open.
- Login using SSH credentials.
Steps Taken
Management Server
- Image from management server:
- Image for the hostname changed
- To ensure the hostname remains after a reboot
- Code:
sudo nano /etc/hosts
- Customize the shell prompt
- Code:
nano ~/.bashrc
- And paste this
export PS1="[\u@Mgmt \W]\$ "
at the bottom of the script
- Apply the changes
- Code:
source ~/.bashrc
App Server
- Image from app server:
- Image for the hostname changed
- To ensure the hostname remains after a reboot
- Code:
sudo nano /etc/hosts
- Customize the shell prompt
- Code:
nano ~/.bashrc
- And paste this
export PS1="[\u@Apps \W]\$ "
at the bottom of the script
- Apply the changes
- Code:
source ~/.bashrc
DB Server
- Image from db server:
- Image for the hostname changed
- To ensure the hostname remains after a reboot
- Code:
sudo nano /etc/hosts
- Customize the shell prompt
- Code:
nano ~/.bashrc
- And paste this
export PS1="[\u@Db \W]\$ "
at the bottom of the script
- Apply the changes
- Code:
source ~/.bashrc
Backup Server
- Image from backup server:
- Image for the hostname changed
- To ensure the hostname remains after a reboot
- Code:
sudo nano /etc/hosts
- Customize the shell prompt
- Code:
nano ~/.bashrc
- And paste this
export PS1="[\u@Backup \W]\$ "
at the bottom of the script
- Apply the changes
- Code:
source ~/.bashrc
Challenges
N/A
External Resources
N/A
Ticket Reference
https://rt.dataraster.com/Ticket/Display.html?id=125