Project

General

Profile

Segnalazione #515

Richiesta aggiunta parametro a fuss-client per cambio /etc/hostname ed /etc/hosts

Added by Paolo Dongilli almost 6 years ago. Updated almost 6 years ago.

Status:
Risolto
Priority:
Alta
Start date:
06/11/2018
Due date:
% Done:

0%

Estimated time:

Description

Per risparmiare il tempo necessario a modificare i file

/etc/hostname
/etc/hosts

prima di lanciare fuss-client, si chiede se possibile di aggiungere un nuovo parametro in fuss-client che permetta di specificare il nome del host e di modificare i suddetti file rendendo effettive le modifiche senza un reboot.

Vedere se a tal fine è necessario solo

invoke-rc.d hostname.sh start
invoke-rc.d networking force-reload
invoke-rc.d network-manager force-reload

come indicato nel wiki di Debian: https://wiki.debian.org/HowTo/ChangeHostname

Associated revisions

Revision 37542b18 (diff)
Added by Elena Grandi almost 6 years ago

Add -H option to set the hostname of the current machine. refs: #515

Revision 8853b35f (diff)
Added by Elena Grandi almost 6 years ago

Update /etc/hosts with the current hostname. refs: #515

History

#1

Updated by Elena Grandi almost 6 years ago

  • Status changed from Nuovo to Commenti
  • Assignee changed from Simone Piccardi to Paolo Dongilli

Implementato il parametro -H <nuovo hostname> che cambia l'hostname prima di configurare il sistema. È nella versione 9.0.2 di fuss-client, appena uploadata.

Non è necessario riavviare il sistema, la modifica è subito attiva (e ovviamente può essere usato quando si invoca fuss-client -a, non serve lanciarlo due volte).

#2

Updated by Paolo Dongilli almost 6 years ago

  • Status changed from Commenti to Risolto

L'ho appena collaudato e funziona. Grazie.

Also available in: Atom PDF