Skip to content

Instantly share code, notes, and snippets.

View davidestf's full-sized avatar
🎯
Focusing

Davide Staffieri davidestf

🎯
Focusing
View GitHub Profile
@davidestf
davidestf / gist:2c3310e2095da096de31e05eacaa032a
Created December 3, 2020 16:20
Secure your server debian / wordpress
Creating strong passwords i would recommend using a browser extensions as password generator.
-Configuring Auto-Update:
apt install unattended-upgrades
systemctl enable unattended-upgrades
systemctl status unattended-upgrades
nano /etc/apt/apt.conf.d/50unattended-upgrades
@davidestf
davidestf / Upcloud.LAMP.Wordpress.sh
Last active June 4, 2024 12:04
UpCloud Set up / Install / Configure - LAMP + Wordpress on DEBIAN server
#!/bin/bash
#Set up an non-privileged user and sudo
echo -n "Enter the username: "
read username
echo -n "Enter the password: "
read -s password
adduser "$username"
echo $username:$password | chpasswd
#echo "$password" | passwd "$username" --stdin