Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pyra-first-run
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sven Oliver Moll
pyra-first-run
Commits
4375ce9b
Commit
4375ce9b
authored
Jul 24, 2015
by
aTc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added hostname and firewall config
parent
e5cd8bb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
pyra-first-run.sh
pyra-first-run.sh
+20
-0
No files found.
pyra-first-run.sh
View file @
4375ce9b
...
...
@@ -46,6 +46,26 @@ $password
$password
EOF
# ---
# Set hostname
while
!
hostname
=
$(
zenity
--title
=
"Name your Pyra"
--entry
--text
"Please choose a name for your Pyra.
\n\n
It should only contain letters, numbers and dashes, no spaces."
--entry-text
"
$username
-pyra"
)
||
[
"x
$hostname
"
=
"x"
]
;
do
zenity
--title
=
"Error"
--error
--text
=
"Please try again."
done
hostnamectl set-hostname
$hostname
# --
# Enable firewall
# allow incoming ssh
ufw allow ssh
ufw
enable
# ----
dpkg-reconfigure
-fgnome
keyboard-configuration
...
...
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