mirror of
https://github.com/neocities/neocities.git
synced 2025-07-23 11:06:02 +02:00
Vagrantfile and provision scripts for development
This commit is contained in:
parent
46883b2bdd
commit
9038141e28
16 changed files with 128 additions and 50 deletions
23
vagrant/common.sh
Normal file
23
vagrant/common.sh
Normal file
|
@ -0,0 +1,23 @@
|
|||
# Quiets the TTY error message
|
||||
#sed -i 's/^mesg n$/tty -s \&\& mesg n/g' /root/.profile
|
||||
|
||||
DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
apt-get -y update
|
||||
apt-get -y upgrade
|
||||
apt-get install -y openntpd htop autossh sshfs vim
|
||||
|
||||
echo 'UTC' | tee /etc/timezone
|
||||
dpkg-reconfigure -f noninteractive tzdata
|
||||
|
||||
update-alternatives --set editor /usr/bin/vim.basic
|
||||
|
||||
ufw allow ssh
|
||||
ufw --force enable
|
||||
ufw logging off
|
||||
|
||||
sed -i 's|[#]*PasswordAuthentication yes|PasswordAuthentication no|g' /etc/ssh/sshd_config
|
||||
sed -i 's|UsePAM yes|UsePAM no|g' /etc/ssh/sshd_config
|
||||
#sed -i 's|[#]*PermitRootLogin yes|PermitRootLogin no|g' /etc/ssh/sshd_config
|
||||
|
||||
service ssh restart
|
Loading…
Add table
Add a link
Reference in a new issue