diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-03-10 00:39:55 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-03-10 00:39:55 -0300 |
commit | a5a95816d9bf218d237ca2138762fd98ea15557d (patch) | |
tree | 6f1a846f67a37383a8ee77488b2fa0fdb8788530 /provision/desktop-basic | |
parent | b25353e87fbf6b21ff6112f24262eb93195fd1ec (diff) | |
download | kvmx-a5a95816d9bf218d237ca2138762fd98ea15557d.tar.gz kvmx-a5a95816d9bf218d237ca2138762fd98ea15557d.tar.bz2 |
Provision: script params
Diffstat (limited to 'provision/desktop-basic')
-rwxr-xr-x | provision/desktop-basic | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/provision/desktop-basic b/provision/desktop-basic index 8567474..5438b67 100755 --- a/provision/desktop-basic +++ b/provision/desktop-basic @@ -5,8 +5,17 @@ # Parameters DIRNAME="`dirname $0`" +BASENAME="`basename $0`" +HOSTNAME="$1" +DOMAIN="$2" +MIRROR="$3" APT_INSTALL="LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y" +# Set hostname +echo "$HOSTNAME.$DOMAIN" | sudo tee /etc/hostname > /dev/null +echo "127.0.0.1 $HOSTNAME.$DOMAIN" | sudo tee /etc/hosts > /dev/null + +# Configure keyboard cat <<-EOF | sudo tee /etc/default/keyboard > /dev/null # KEYBOARD CONFIGURATION FILE |