Search found 878 matches

by LHammonds
Mon Jan 10, 2022 11:38 am
Forum: Tutorials
Topic: How to Install an FTP over SSL (FTPS) on Ubuntu Server 20.04
Replies: 7
Views: 266

Fail2Ban Standard Filters

ON HOLD - NEED TO RESEARCH THIS SECTION Fail2Ban Standard Filters If you followed my instructions for setting up the Ubuntu Server, you should already have sshd being protected by Fail2Ban. Now we are going to add the pre-defined vsftpd filter. Edit the jail configuration file: sudo vi /etc/fail2ba...
by LHammonds
Mon Jan 10, 2022 11:38 am
Forum: Tutorials
Topic: How to Install an FTP over SSL (FTPS) on Ubuntu Server 20.04
Replies: 7
Views: 266

Command-Line FTP Clients for Automation

Command-Line FTP Clients for Automation sftp command comes with OpenSSH and should already be installed on your server. Example: echo "lcd /local/path" > /tmp/ftp.cmd echo "cd /remote/path" >> /tmp/ftp.cmd echo "mget *" >> /tmp/ftp.cmd sftp -b /tmp/ftp.cmd ftpuser@192....
by LHammonds
Mon Jan 10, 2022 11:37 am
Forum: Tutorials
Topic: How to Install an FTP over SSL (FTPS) on Ubuntu Server 20.04
Replies: 7
Views: 266

Public / Private Key Management

Public / Private Key Management If you need to generate an SSH key with a passphrase in order to connect to another FTP server, it can be a tricky thing to automate scripts that push and pull files to that server since each time you connect, it will ask for the passphrase. I've seen some recommend ...
by LHammonds
Mon Jan 10, 2022 11:36 am
Forum: Tutorials
Topic: How to Install an FTP over SSL (FTPS) on Ubuntu Server 20.04
Replies: 7
Views: 266

Configure User Accounts

Configure User Accounts At the login prompt, login with your administrator account ( administrator / myadminpass ) At the $ prompt, temporarily grant yourself super user privileges by typing sudo su {ENTER} and then provide the administrator password ( myadminpass ). Add an ftpusers group. addgroup...
by LHammonds
Mon Jan 10, 2022 11:34 am
Forum: Tutorials
Topic: How to Install an FTP over SSL (FTPS) on Ubuntu Server 20.04
Replies: 7
Views: 266

Firewall Rules

Firewall Rules Edit the firewall script that was created during the initial setup of the server (if you followed my instructions ): vi /var/scripts/prod/en-firewall.sh Add (or enable) the following: echo "Adding FTPS Server rules" ufw allow proto tcp to any port 990 comment 'FTPS' 1>/dev/...
by LHammonds
Mon Jan 10, 2022 11:33 am
Forum: Tutorials
Topic: How to Install an FTP over SSL (FTPS) on Ubuntu Server 20.04
Replies: 7
Views: 266

Install FTP Service

Install FTP Service At the login prompt, login with your administrator account ( administrator / myadminpass ) At the $ prompt, temporarily grant yourself super user privileges by typing sudo su {ENTER} and then provide the administrator password ( myadminpass ). Install vsftpd and make a backup of...
by LHammonds
Mon Jan 10, 2022 11:31 am
Forum: Tutorials
Topic: How to Install an FTP over SSL (FTPS) on Ubuntu Server 20.04
Replies: 7
Views: 266

Install Ubuntu Server

Install Ubuntu Server The 1st thing to do is the installation of Ubuntu Server. The following guide will describe how to setup a server for use in a production environment and this document assumes the guide was followed to setup Ubuntu. The server install guide also contains an "Assumption&qu...
by LHammonds
Mon Jan 10, 2022 11:29 am
Forum: Tutorials
Topic: How to Install an FTP over SSL (FTPS) on Ubuntu Server 20.04
Replies: 7
Views: 266

How to Install an FTP over SSL (FTPS) on Ubuntu Server 20.04

Greetings and salutations, I hope this thread will be helpful to those who follow in my foot steps as well as getting any advice based on what I have done / documented. To discuss this thread, please participate here: Ubuntu Forums High-level overview This document will describe how to setup an FTP ...
by LHammonds
Thu Dec 09, 2021 1:45 pm
Forum: Tutorials
Topic: How to Install Avorion on Ubuntu Server 20.04 LTS
Replies: 14
Views: 2226

Installing Mods

Installing Mods ------------- WORK-IN-PROGRESS ------------- Not finished with this section, these are just notes for me to try out and refine. sudo touch /opt/avorion/savegame/galaxy1/modconfig.lua sudo chown avserver:avserver /opt/avorion/savegame/galaxy1/modconfig.lua sudo chmod 0640 /opt/avorio...
by LHammonds
Wed Nov 24, 2021 4:49 pm
Forum: Tutorials
Topic: How to Install Avorion on Ubuntu Server 20.04 LTS
Replies: 14
Views: 2226

Backup and Restore

Backup ------------- WORK-IN-PROGRESS ------------- Reference: Database Backup Script I will turn these into easy-to-run scripts but for now, this is the meat of what they will do. tar -cpf - /opt/avorion/savegame/* | 7z a -si -mx=9 -w/tmp /opt/avorion/bak/2021-09-22-avorion.tar.7z 1>/dev/null 2>&a...
by LHammonds
Wed Nov 24, 2021 4:45 pm
Forum: Tutorials
Topic: How to Install Avorion on Ubuntu Server 20.04 LTS
Replies: 14
Views: 2226

Avorion as a Service

Avorion as a Service A generic system service will be created that will work for every instance by passing it the instance name as a parameter. This will allow the operating system to start each service when the server boots up and stop each service upon shutdown or reboot. This also means that the...
by LHammonds
Wed Nov 24, 2021 4:33 pm
Forum: Tutorials
Topic: How to Install Avorion on Ubuntu Server 20.04 LTS
Replies: 14
Views: 2226

Script - Fix Permissions

Avorion Fix Permissions Script This script is responsible for fixing ownership and permission settings on all Avorion-related files. wget https://raw.githubusercontent.com/LHammonds/avorion-bash/main/avorion-fixperms.sh --output-document /tmp/avorion-fixperms.sh chmod 0750 /tmp/avorion-fixperms.sh ...
by LHammonds
Wed Nov 24, 2021 4:27 pm
Forum: Tutorials
Topic: How to Install Avorion on Ubuntu Server 20.04 LTS
Replies: 14
Views: 2226

Script - Update

Avorion Update Script This start script is responsible for updating Avorion. I will only perform an update if all instances are offline. wget https://raw.githubusercontent.com/LHammonds/avorion-bash/main/avorion-update.sh --output-document /tmp/avorion-update.sh sudo chmod 0750 /tmp/avorion-update....
by LHammonds
Wed Nov 24, 2021 4:25 pm
Forum: Tutorials
Topic: How to Install Avorion on Ubuntu Server 20.04 LTS
Replies: 14
Views: 2226

Script - Stop

Avorion Stop Script This start script is responsible for properly stopping a specific instance of Avorion. It issues a save command and then a stop command. It can be run manually but is designed to be used by the systemd service account. NOTE: Always ensure a save command is issued before a stop c...
by LHammonds
Wed Nov 24, 2021 4:24 pm
Forum: Tutorials
Topic: How to Install Avorion on Ubuntu Server 20.04 LTS
Replies: 14
Views: 2226

Script - Start

Avorion Start Script This start script is responsible for starting a specific instance of Avorion. It can be run manually but is designed to be used by the systemd service account. wget https://raw.githubusercontent.com/LHammonds/avorion-bash/main/avorion-start.sh --output-document /tmp/avorion-sta...
by LHammonds
Tue Nov 23, 2021 8:52 am
Forum: Tutorials
Topic: Syncthing
Replies: 3
Views: 437

Syncthing

>> INSERT TEXT HERE <<
by LHammonds
Tue Nov 23, 2021 8:51 am
Forum: Tutorials
Topic: Syncthing
Replies: 3
Views: 437

Syncthing for Ubuntu

Add firewall rules to the operating system to allow the service(s) to be visible outside the server: ufw allow proto tcp to any port 22000 comment 'syncthing sync' 1>/dev/null 2>&1 ufw allow proto udp to any port 22000 comment 'syncthing sync' 1>/dev/null 2>&1 ufw allow proto udp to any por...
by LHammonds
Tue Nov 23, 2021 8:51 am
Forum: Tutorials
Topic: Syncthing
Replies: 3
Views: 437

Syncthing for Windows

Download the Windows 64-bit archive Extract the archive (Example: syncthing-linux-amd64-v1.18.4.tar.gz ) to a folder such as D:\Apps\Syncthing\ Run syncthing.exe If prompted by the firewall, allow it access. Or run the following commands from an admin-level prompt to allow access (assuming you will...
by LHammonds
Tue Nov 23, 2021 8:51 am
Forum: Tutorials
Topic: Syncthing
Replies: 3
Views: 437

Syncthing

------------- WORK-IN-PROGRESS ------------- ------------- PROJECT ON HOLD WHILE WAITING ON SOMEONE ELSE ------------- Greetings and salutations, I hope this thread will be helpful to those who follow in my foot steps as well as getting any advice based on what I have done / documented. To discuss ...
by LHammonds
Mon Oct 25, 2021 10:30 am
Forum: Tutorials
Topic: How to Install NextCloud on Ubuntu Server 20.04 LTS
Replies: 5
Views: 9748

Reset Password

Reset Admin Password If you do not know your admin password, you can set the password via the command-line. Login to the web server via console or PuTTY session. Change the current directory to where NextCloud is installed. Example: cd /var/www/nextcloud.mydomain.com Issue the following command sub...