I’ve been running a rpi for a couple of years now. Made it into a webserver, used it for playing with nginx and django.
At one point it failed. I did not know what, but i reset my sdcard and lost everything. Almost, i had backup, but it’s good to start from scratch. Turns out it was the psu.
Anyway, i’ve been reading that sd cards are unreliable, so i want to poot it from a ssd. This is what i’m gonna try today.
- Write image to ssd via rufus
- First boot dietpi and setup
- intall fail2ban, openssh serve, neovim
- copy ssh key
cat C:\Users\astam\.ssh\id_rsa.pub | ssh root@192.168.100.8 'cat >> ~/.ssh/authorized_keys'
- edit
sudo nano /etc/ssh/sshd_config.d/dietpi.conf
PasswordAuthentication
tono
- restart ssh
systemctl restart ssh
- restart ssh
- install samba ???
- nextcloud is tricky - but i’ll see if it’s needed
- set share
mount hdd
add share in
/etc/samba/smb.conf
restart smbd