initial
This commit is contained in:
37
move-in-alpine.sh
Normal file
37
move-in-alpine.sh
Normal file
@@ -0,0 +1,37 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# new Alpine container/VM setup script
|
||||
#
|
||||
# -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
|
||||
|
||||
cat >/etc/apk/repositories <<EOF
|
||||
https://dl-cdn.alpinelinux.org/alpine/edge/main
|
||||
https://dl-cdn.alpinelinux.org/alpine/edge/community
|
||||
https://dl-cdn.alpinelinux.org/alpine/edge/testing
|
||||
EOF
|
||||
|
||||
apk update
|
||||
apk upgrade
|
||||
|
||||
# for compability with various projects
|
||||
apk add util-linux bash
|
||||
|
||||
apk add curl wget mandoc rsync git tree pv ncdu make neofetch pfetch htop neovim
|
||||
|
||||
apk add openssh openssh-server
|
||||
sed -i 's/.*PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_config
|
||||
rc-update add sshd default
|
||||
rc-service sshd start
|
||||
|
||||
apk add fail2ban
|
||||
rc-update add fail2ban default
|
||||
rc-service fail2ban start
|
||||
|
||||
if ! dmesg >&2 | grep 'Operation not permitted' >/dev/null ; then
|
||||
apk add qemu-guest-agent
|
||||
rc-update add qemu-guest-agent default
|
||||
rc-service qemu-guest-agent start
|
||||
fi
|
||||
|
||||
apk add samba samba-client cifs-utils samba-client
|
||||
|
||||
Reference in New Issue
Block a user