#!/bin/bash #set debconf krb5 and samba-common ad_domain_name=$1 ad_host_name=$2 echo "samba-common samba-common/workgroup string WORKGROUP" | sudo debconf-set-selections echo "samba-common samba-common/dhcp boolean false" | sudo debconf-set-selections echo "samba-common samba-common/do_debconf boolean true" | sudo debconf-set-selections apt-get -y install samba-common cat > /root/debconf-krb5.conf <