I got my 2nd Ubuntu Touch device this week, the BQ tablet. I already have an Ubuntu phone and for both devices the hostname is "ubuntu-phablet" so I'd like to change at least one of the two.

I have tried changing the tablet's hostname by remounting the filesystem read-write and issuing a new name with the 'hostname' command but the new name didn't stay after a reboot. What am I missing?

share|improve this question
1  
Have you tried editing /etc/hosts while in read-write mode rather than using the host name command ? – ShaneQful Apr 24 '16 at 16:34
3  
Added a bug to track this. bugs.launchpad.net/canonical-devices-system-image/+bug/15743‌​70 – popey Apr 24 '16 at 19:45
up vote 0 down vote accepted

It turned out I needed to edit the file /etc/hostname (and update the ::1 and 127.0.1.1 entries in /etc/hosts). Rebooted and everything is fine.

share|improve this answer
1  
That doesn't work without remounting the filesystem as read/write though (with all the possible implications that has). – JanC Apr 24 '16 at 19:24
    
Indeed it doesn't. First thing I did afterwards was reboot to make sure it was set to read-only again. – Jurjen Apr 25 '16 at 7:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.