Skip to content

Generate and set a random hostname on Linux boot

Notifications You must be signed in to change notification settings

mikki8/randomhost

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random Host

Create and assign a random hostname to a Linux system next time it boots up.

Installation

curl -L https://raw.githubusercontent.com/mikki8/randomhost/master/install.sh | bash

Optional

Before depending on the boot process, you can manually initiate the service to verify that it operates as intended.

  1. Start the service by executing:
sudo systemctl start randomhost
  1. Verify the hostname has been changed by running:
hostname
  1. 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

About

Generate and set a random hostname on Linux boot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%