From c910a58f07fc26589943afb9e59a9fa44edbb7b2 Mon Sep 17 00:00:00 2001 From: Michael Kroes Date: Sat, 26 Mar 2016 14:15:28 +0100 Subject: [PATCH 1/3] Set the hostname of the box during the setup --- setup/system.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/setup/system.sh b/setup/system.sh index c2fa1b9d..d8d814a1 100755 --- a/setup/system.sh +++ b/setup/system.sh @@ -4,6 +4,18 @@ source setup/functions.sh # load our functions # Basic System Configuration # ------------------------- +# ### Set hostname of the box + +# If the hostname is not correctly resolvable sudo can't be used. This will result in +# errors during the install +# +# First set the hostname in the configuration file, then activate the setting +# Also make sure that the loopback device resolves to the hostname + +echo $PRIMARY_HOSTNAME > /etc/hostname +hostname $PRIMARY_HOSTNAME +sed -i "s/127\.0\.1\.1.*/127.0.1.1\t$PRIMARY_HOSTNAME/" /etc/hosts + # ### Add swap space to the system # If the physical memory of the system is below 2GB it is wise to create a From 3210ccdcac9791c8c8e9c950a482cf1d69a714be Mon Sep 17 00:00:00 2001 From: Michael Kroes Date: Sat, 26 Mar 2016 15:41:20 +0100 Subject: [PATCH 2/3] Don't set the hostname on the loopback 127.0.1.1 --- setup/system.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/setup/system.sh b/setup/system.sh index d8d814a1..1a7b3e9d 100755 --- a/setup/system.sh +++ b/setup/system.sh @@ -14,7 +14,6 @@ source setup/functions.sh # load our functions echo $PRIMARY_HOSTNAME > /etc/hostname hostname $PRIMARY_HOSTNAME -sed -i "s/127\.0\.1\.1.*/127.0.1.1\t$PRIMARY_HOSTNAME/" /etc/hosts # ### Add swap space to the system From bc40134b7b790a9597447e2ee71e3d928485af4c Mon Sep 17 00:00:00 2001 From: Michael Kroes Date: Thu, 7 Apr 2016 10:55:20 +0200 Subject: [PATCH 3/3] Remove comment about loopback interface --- setup/system.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/setup/system.sh b/setup/system.sh index 1a7b3e9d..cc152524 100755 --- a/setup/system.sh +++ b/setup/system.sh @@ -10,7 +10,6 @@ source setup/functions.sh # load our functions # errors during the install # # First set the hostname in the configuration file, then activate the setting -# Also make sure that the loopback device resolves to the hostname echo $PRIMARY_HOSTNAME > /etc/hostname hostname $PRIMARY_HOSTNAME