Using Slicehost right now, and had two slices up and active while I was transitioning from Ubuntu 9.04 to 10.10. After I shut down my first one, I wanted to rename the host for the second one, I did so by doing the following:
- Within Slicehost manage, clicking rename of the slice, and then putting in the new name.
Issuing the command:
hostname newhostname
- Editing a hostname file named /etc/hostname and changing the last hostname to the new one
And finally by reloading the hostname file and rebooting my slice:
sudo /etc/init.d/hostname start sudo reboot
Hope that helps someone (or more likely me in a few months when I forget..)