Jeff07971 wrote: > Hi, > > Upgraded from 1.19l to 1.21 last night and apart from the double reboot > had no problems with squeezelite. > > I do have a problem with the hostname though, after the upgrade the > Picoreplayer had changed its hostname to "picoreplayer" > I changed the hostname in the picoreplayer webgui to "RPi2-1" however > after a reboot and scan of the network it is now called "box" > > Via SSH all seems ok:- > > tc@RPi2-1:~$ hostname > RPi2-1 > tc@RPi2-1:~$ > > > But my DNS server (dnsmasq) show that the picoreplayer proviides the > name "box" > > Sep 2 14:59:32 dnsmasq-dhcp[28092]: 85400081 vendor class: udhcp > 1.23.2 > Sep 2 14:59:32 dnsmasq-dhcp[28092]: 85400081 client provides name: box > > > Has anyone got any ideas ? > > Thanks Jeff > > PS keep up the great work, love this system !
Hi Jeff, I think if you go to Tweaks > Host name, type a new host name, then press save and then reboot. Everything should be OK. We haven't changed this code since 2014-12-10 so I wouldn't expect a new problem, but you never know. But... you are not going crazy. piCorePlayer sets the hostname on reboot. So you will see a different name in the host name field and what it actually is, until a reboot. If you set host name to nothing, on the next reboot piCorePlayer will set your host name to the piCore default which is "box". Also, the current code wraps quotes around the host name so it is possible to have "piCorePlayer" instead of piCorePlayer initially. If you like playing around, there are 3 files that come into play, well actually more, but a simple task is already too complicated. sethostname /etc/hosts /etc/hostname If you run sethostname with no parameters it will set you hostname to box. I think /etc/hosts explains you dns issue. Also, in ssh your Linux prompt has your current hostname in it. Play with hostname or sethostname and watch it change dynamically, but remember it will change back to the piCorePlayer setting on reboot. Following poing post here: http://forums.slimdevices.com/showthread.php?97803-piCorePlayer-Squeezelite-on-Microcore-linux-An-embedded-OS-in-RAM-with-Squeezelit&p=828695&viewfull=1#post828695 Steen has changed the code to dynamically set the hostname, rather than waiting for a reboot and changed the handling of the quotes. So, thanks for reporting your finding, hopefully the next version of the code will eliminate the potential for confusion. regards Greg ------------------------------------------------------------------------ Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403 View this thread: http://forums.slimdevices.com/showthread.php?t=97803 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
