Skip to content

pvbaudin/RPi-Change-Hostname

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RPi-Change-Hostname

Simple script to change hostname of raspberry pi

change-hostname-from-boot.sh must be launched at startup. crontab file provided shows the cron way of doing it.

add line @reboot /home/pi/scripts/change-hostname-from-boot.sh to crontab or use provided crontab file

This script reads the file /boot/hostname.txt which is accessible on the bootable raspbian media

Example use: Once the boot script is set up, hostname can also be changed by remotely running the change_hostname script which edits the /boot/hostname.txt file

sh change_hostname.sh [newhostname]

run remotely with ssh user@host 'bash -s [newhostname]' < ./change_hostname.sh

About

Simple script to change hostname of raspberry pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages