summaryrefslogtreecommitdiff
path: root/scripts/custom.sh
blob: 19227fe93f99633f498f275c15d92fa251050139 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

# Allow root login
sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config

# install additional packages
# LEAP people like some of these: see also #6898 and https://github.com/leapcode/leap_cli/pull/17

apt-get -y install leap-archive-keyring puppet lsb-release facter rsync curl bash-completion wget sudo unzip vim tmux ntp git rdoc sshfs

# Don't use client locales
# https://stackoverflow.com/questions/29609371/how-do-not-pass-locale-through-ssh
sed 's/^AcceptEnv.*//' /etc/ssh/sshd_config

# Set root pw
echo 'root:vagrant' | chpasswd