
if ! [[ "8 9 10 11 12 13" == *"$(grep VERSION_ID /etc/os-release | cut -d '"' -f 2 | cut -d '.' -f 1)"* ]];
then
    echo "Debian $(grep VERSION_ID /etc/os-release | cut -d '"' -f 2 | cut -d '.' -f 1) is not currently supported.";
    exit;
fi

printf "hbues.net post installation script of kvm vm \n"


sudo apt install \
        build-essential \
        libssl-dev \
        zlib1g-dev \
        libncurses5-dev \
	libncursesw5-dev \
	libreadline-dev \
	libsqlite3-dev \
	libgdbm-dev \
	libdb5.3-dev \
	libbz2-dev \
	autoconf \
	automake \
	libtool \
	cmake \
	python3 \
	python3-dev \
	python3-pip \
	python3-venv \
	git \
        vim-nox \
	libssl-dev \
	libcurl4-openssl-dev \
	libxml2-dev \
	libsqlite3-dev \
	gdb \
        curl \
	valgrind \
	libc6-dev \
	linux-libc-dev \
	bat \
	kitty \
	alacritty 



printf "Configure git\n"
git_name="support"
git_mail='support@hbues.net'
git_host='source'
git_host_name='git.baizabal.xyz'
git_host_port='23231'
git_port='23231'
git_branch='master'
git_repo='tunnpy'
git_repo_module='rpc'
git_repo_module_branch='gst_api'
git_submodule_dir="restapi/bridge"
git_submodule_base="restapi"
git_submodule_type="bridge"


git config --global user.name "${git_name}"
git config --global user.email "${git_mail}"

mkdir -p $HOME/.ssh
printf " Host ${git_host} \n HostName ${git_host_name} \n Port ${git_port} \n User ${git_name} \n" > $HOME/.ssh/config

#source ~/.bashrc
#ssh-keygen -t ed25519 -C "${git_mail}" 
#ssh-copy-id ${git_host_name}





