Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[SOLVED] Hostname changing
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Solved: Hostname changing
6th Dec, 2013, 05:54 AM
Post: #1
lemmy999 Offline
Registered
Posts: 14
Joined: Dec 2012
Reputation: 0
Hostname changing
As i have a number of Pi's on my network I thought i would change hostname to differentiate them. I tried changing the hostname using the Xbian config page but got some sort of error message ( "there was a problem" IIRC)

I have tried to change the hostname manually but get the following

Code:
root@xbian:/home/xbian# nano /etc/hostname
root@xbian:/home/xbian# nano /etc/hosts
root@xbian:/home/xbian# /etc/init.d/hostname.sh
bash: /etc/init.d/hostname.sh: No such file or directory
root@xbian:/home/xbian#

Where am i going wrong??
Find all posts by this user
Quote this message in a reply
6th Dec, 2013, 07:18 AM
Post: #2
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: Hostname changing
@lemmy999

beta2 migrated almost all scripts to upstart that means no "service hostname restart" but "reload hostname". also please keep in mind that if you change manually in hostname and hosts, you still have at XBMC which uses this name for AirPlay and Zeroconf (Bonjour).

Xbian-config works - will change in hosts, hostname, will store XBMC devicename change and wait until XBMC quits (to prevent that XBMC reverts old values ion exit and settings store).

I know about the reported problem. It's just because Beta2 holds just short name in /etc/hosts, but script expects this but also long variant which is missing - get's not changed and reported.

(just checked latest version available on stable repo and this version is already fixed. so if you update at least xbian-package-config-shell package your problem should be fixed).

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
7th Dec, 2013, 01:30 AM
Post: #3
lemmy999 Offline
Registered
Posts: 14
Joined: Dec 2012
Reputation: 0
RE: Hostname changing
@mk01

Many thanks for those insights. I have updated my instance of xbian and the hostname change is now working
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 12th May, 2025, 01:10 AM Powered By MyBB, © 2002-2025 MyBB Group.