Update README, remove setup2, rename setup1 as setup
This commit is contained in:
parent
19d6b45cb2
commit
2ecf42280b
16
README.md
16
README.md
@ -1,8 +1,12 @@
|
||||
# ISO Server
|
||||
This is the ancestor of NAS Server. It was both an FTP Server anda web server providing ISO images or things like that
|
||||
over network. Moreover, it was administrated by OpenMediaVault.
|
||||
# NAS Server
|
||||
|
||||
This repository contains files used to set up our NAS server on a freshly installed Armbian. Target is Bullseye.
|
||||
|
||||
### Introduction
|
||||
The SBC used has a hard drive attached (SATA), which is the storage drive. This disk should be encrypted if needed.
|
||||
|
||||
An FTP server is installed on the device, providing network access to authorized people.
|
||||
|
||||
### Setup
|
||||
The setup takes place in two parts:
|
||||
* `setup1.sh` setups OMV on a blank Armbian and then reboot
|
||||
* `setup2.sh` then configures the system specificaly for the ISO server
|
||||
##### Installation
|
||||
* `setup.sh` is a script automating the installation and configuration of required software
|
||||
|
39
setup2.sh
39
setup2.sh
@ -1,39 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# The purpose of this script is to setup our ISO server on a blank Armbian.
|
||||
# This script is to be run as root.
|
||||
# This script runs AFTER setup1.sh, which installs OMV and reboots the system
|
||||
|
||||
# YOU SHOULD REMOVE THIS SCRIPT AFTER SETUP
|
||||
|
||||
# Functions
|
||||
|
||||
|
||||
# Only run if the user is root
|
||||
if [[ $USER != 'root' ]] ; then
|
||||
echo "You must run this script as root!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
run_directory_path=$(pwd)
|
||||
|
||||
# Set parameters
|
||||
|
||||
|
||||
# Main process
|
||||
# You should comment below what you do not want to happen
|
||||
|
||||
|
||||
echo ""
|
||||
echo "We're all good here!"
|
||||
echo "You should now:"
|
||||
echo "* set $user's password"
|
||||
echo "* lock root and admin accounts"
|
||||
echo "* remove $run_directory_path content"
|
||||
echo "* reboot the SBC"
|
||||
echo "And perhaps:"
|
||||
echo "* set htop at your convenience"
|
||||
echo "* use below commands to edit SSH config:"
|
||||
echo " sed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config"
|
||||
echo " sed -i 's/PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config" # NOTE This one is different from the others, because of OMV setup
|
||||
exit 0
|
Reference in New Issue
Block a user