Create and assign a random hostname to a Linux system next time it boots up.
curl -L https://raw.githubusercontent.com/mikki8/randomhost/master/install.sh | bash
Before depending on the boot process, you can manually initiate the service to verify that it operates as intended.
- Start the service by executing:
sudo systemctl start randomhost
- Verify the hostname has been changed by running:
hostname
- Examine the changes to the "/etc/hosts" file:
cat /etc/hosts
make template from vm
curl -L https://raw.githubusercontent.com/mikki8/randomhost/master/maketemplate.sh | bash