Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
c910a58f
Commit
c910a58f
authored
Mar 26, 2016
by
Michael Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set the hostname of the box during the setup
parent
df92a10e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
system.sh
setup/system.sh
+12
-0
No files found.
setup/system.sh
View file @
c910a58f
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment