Testskript

by slimmen
0 deployments · 0 still active · last rev. 1 month ago

Compatible with: Ubuntu 16.04 LTS
						#!/bin/bash
                        apt-get -y install software-properties-common
                        apt-add-repository ppa:chris-lea/redis-server -y

                        apt-get update -y
                        apt-get upgrade -y

                        # Disable SSH Password Auth
                        sed -i "/PasswordAuthentication yes/d" /etc/ssh/sshd_config
                        echo "PasswordAuthentication no" >> /etc/ssh/sshd_config

                        service ssh restart

                        # Setup Kalligo user
                        useradd kalligo
                        mkdir -p /home/kalligo/.ssh
                        mkdir -p /home/kalligo/.ssl
                        adduser kalligo sudo
                        usermod -a -G www-data kalligo
                        
                        chsh -s /bin/bash kalligo
                        cp /root/.profile /home/kalligo/.profile
                        cp /root/.bashrc /home/kalligo/.bashrc