Commit 4375ce9b authored by aTc's avatar aTc

added hostname and firewall config

parent e5cd8bb0
......@@ -46,6 +46,26 @@ $password
# ---
# Set hostname
while ! hostname=$(zenity --title="Name your Pyra" --entry --text "Please choose a name for your Pyra.\n\nIt 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."
hostnamectl set-hostname $hostname
# --
# Enable firewall
# allow incoming ssh
ufw allow ssh
ufw enable
# ----
dpkg-reconfigure -fgnome keyboard-configuration
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment