Search found 550 matches

by LHammonds
Thu Apr 19, 2018 8:37 pm
Forum: Tutorials
Topic: How to Install and Configure an Ubuntu Server 18.04 LTS
Replies: 24
Views: 271

Future Research Items

Security Topics to Research and Incorporate Gamin File Change Monitoring - Gamin web site PSAD intrusion detection - TheFanClub walkthru (Note, current version is 2.4.4 released on Feb 2017, Ubuntu repository version is 2.2.3 released in March, 2014) Tiger intrusion detection - homepage Tripwire in...
by LHammonds
Thu Apr 19, 2018 8:37 pm
Forum: Tutorials
Topic: How to Install and Configure an Ubuntu Server 18.04 LTS
Replies: 24
Views: 271

Trouble-Shooting

Boot Issues systemd-analyze plot > /srv/samba/share/boot.xml Open boot.xml in a web browser to examine the boot process to see if anything is taking longer than it should. systemd-analyze blame This shows a list of all running processes ordered by the time it took to initialize. Be careful not to j...
by LHammonds
Thu Apr 19, 2018 8:35 pm
Forum: Tutorials
Topic: How to Install and Configure an Ubuntu Server 18.04 LTS
Replies: 24
Views: 271

Server Replacement

Replacing a server with a new one If you want to keep SSH keys and the fingerprint from changing when swapping out an old server for a new one (e.g. old FTPS server to new FTPS which interfaces with many 3rd-party vendors), these are the steps needed to keep the system looking the same. The old ser...
by LHammonds
Thu Apr 19, 2018 8:33 pm
Forum: Tutorials
Topic: How to Install and Configure an Ubuntu Server 18.04 LTS
Replies: 24
Views: 271

Migrating Users from one server to another

Migrating users/groups from one server to another WARNING: These migration commands are completely untested by me...just jotting down these research notes for future testing. Commands to run on old server Copy accounts to passwd.mig using awk to filter out system accounts (i.e. only copy user accou...
by LHammonds
Thu Apr 19, 2018 8:32 pm
Forum: Tutorials
Topic: How to Install and Configure an Ubuntu Server 18.04 LTS
Replies: 24
Views: 271

Partition-Level Restores

Restore Partitions Using SystemRescueCD and FSArchiver Partitions cannot be mounted when restoring to them. If services can be stopped that use files on a specific partition, it can be unmounted and restored. However, the root partition can never be restore while the server is online so these instr...
by LHammonds
Thu Apr 19, 2018 8:29 pm
Forum: Tutorials
Topic: How to Install and Configure an Ubuntu Server 18.04 LTS
Replies: 24
Views: 271

Partition-Level Backups

Backup Partitions Using LVM Snapshots and FSArchiver This method will allow online backup of the server at the partition level. It is designed to run via crontab schedule but can also be run manually. This should be considered a full backup which means you will probably need to rely on other method...
by LHammonds
Thu Apr 19, 2018 8:26 pm
Forum: Tutorials
Topic: How to Install and Configure an Ubuntu Server 18.04 LTS
Replies: 24
Views: 271

File Sharing via Windows Shares

Configure Windows Server as a Remote Mount Point If you have a Windows 2008 server that serves as your offsite backup repository, this section describes how to configure and mount the remote server for storage use. Part of the backup process involves copying the backup files to an offsite storage s...
by LHammonds
Thu Apr 19, 2018 8:24 pm
Forum: Tutorials
Topic: How to Install and Configure an Ubuntu Server 18.04 LTS
Replies: 24
Views: 271

File Sharing via NFS (Linux to Linux)

NFS Mount (Sharing among Linux) If you want to share files between Linux servers, you can use NFS. Here is how you can do that. On the machine that will host the files to be shared: Install the required software: apt install nfs-kernel-server Configure a folder to be shared: vi /etc/exports Add the...
by LHammonds
Thu Apr 19, 2018 8:23 pm
Forum: Tutorials
Topic: How to Install and Configure an Ubuntu Server 18.04 LTS
Replies: 24
Views: 271

File Sharing via Samba

Configure Ubuntu for File Sharing This file sharing section is optional but can be handy if you need to swap files between the Linux server and a Windows machine. This documentation will utilize this share for passing pre-configured files (configs, scripts, etc.) to make it faster/easier during ins...
by LHammonds
Thu Apr 19, 2018 8:19 pm
Forum: Tutorials
Topic: How to Install and Configure an Ubuntu Server 18.04 LTS
Replies: 24
Views: 271

Security - Messages

SUDO Warning Message Enable the default warning message whenever "sudo" is used. Edit sudoers file by typing: sudo EDITOR=vim visudo Add the following line near the other defaults (instead of "always" you can use "once" too): Defaults lecture=always To make sure the syntax of the edited file is not...
by LHammonds
Thu Apr 19, 2018 8:16 pm
Forum: Tutorials
Topic: How to Install and Configure an Ubuntu Server 18.04 LTS
Replies: 24
Views: 271

Security - SSH Public and Private Keys

SSH Public and Private Keys If you have more than one Ubuntu server, you probably will want to setup a trusted SSH authentication between the two servers so you can securely and automatically transfer files between them with commands such as scp or sftp. NOTE: You probably have the root account loc...
by LHammonds
Thu Apr 19, 2018 8:14 pm
Forum: Tutorials
Topic: How to Install and Configure an Ubuntu Server 18.04 LTS
Replies: 24
Views: 271

Security - Fail2Ban

Fail2Ban Fail2Ban is an intrusion prevention system that can be used to protect servers from different kinds of attacks. Fail2ban scans log files for various services, such as SSH, FTP, SMTP, Apache and block the IP address that makes too many password failures. Install Fail2Ban apt-get install fai...
by LHammonds
Thu Apr 19, 2018 8:13 pm
Forum: Tutorials
Topic: How to Install and Configure an Ubuntu Server 18.04 LTS
Replies: 24
Views: 271

Security - Firewall

Firewall Linux uses IPTables as its firewall but learning the ins and outs of the syntax can be daunting. Luckily for us, Ubuntu has a front-end for it called Uncomplicated Firewall (UFW for short). If you are not using IPv6 (most networks are still just using IPv4), you can comment out the IPv6 se...
by LHammonds
Thu Apr 19, 2018 8:06 pm
Forum: Tutorials
Topic: How to Install and Configure an Ubuntu Server 18.04 LTS
Replies: 24
Views: 271

Scripts - Operator Menu

Operator Menu To make my servers easier to administer within my group (who are not all *NIX guys), I made an operator script that can be used to manipulate the server. The main features I wanted to make easier for other members of the IT group are: 1. Update the operating system (manually) 2. Disk ...
by LHammonds
Thu Apr 19, 2018 8:05 pm
Forum: Tutorials
Topic: How to Install and Configure an Ubuntu Server 18.04 LTS
Replies: 24
Views: 271

Scripts - Check Storage

Check Storage Space In favor of managing by exception, this script that can be scheduled to run daily to check the file systems to see if they are getting close to filling up and will automatically expand them a little bit and give you an email notice. Everything is done at the megabyte level. If y...
by LHammonds
Thu Apr 19, 2018 8:01 pm
Forum: Tutorials
Topic: How to Install and Configure an Ubuntu Server 18.04 LTS
Replies: 24
Views: 271

Scripts - APT Upgrade

APT Upgrade This script that can be scheduled to run daily to check for OS/software updates in the repositories and then install them if available. The following is an example of a crontab entry to schedule the script to run once per day @ 3am. /var/scripts/data/crontab.root 0 3 * * * /var/scripts/...
by LHammonds
Thu Apr 19, 2018 3:29 pm
Forum: Tutorials
Topic: How to Install and Configure an Ubuntu Server 18.04 LTS
Replies: 24
Views: 271

Operator Scripts

I like scripts to be as generic as possible when copying among multiple servers. I push the service start/stop specifics into their own scripts which can be unique to each server depending on what services need to be stopped/started. On a MySQL/MariaDB server, the scripts that start and stop service...
by LHammonds
Thu Apr 19, 2018 2:37 pm
Forum: Tutorials
Topic: How to Install and Configure an Ubuntu Server 18.04 LTS
Replies: 24
Views: 271

Installing Ubuntu Server - Scheduling

Crontab Schedule The crontab schedule can be edited directly by typing "crontab -e" but that can be a bit dangerous. It would be safer to edit a file and then load that file into the schedule. This will allow backups of the schedule to be made. If there is ever a problem with the schedule, it can b...
by LHammonds
Thu Apr 19, 2018 12:43 pm
Forum: Tutorials
Topic: How to Install and Configure an Ubuntu Server 18.04 LTS
Replies: 24
Views: 271

Scripting

Many of the sections below utilize BASH scripts as part of the solution/automation. To speed up installation for myself and others, the commands below will download and extract the base set of scripts I use as a foundation for all my servers. You can download all of them at once or skip this step an...
by LHammonds
Thu Apr 19, 2018 9:21 am
Forum: Tutorials
Topic: How to Install and Configure an Ubuntu Server 18.04 LTS
Replies: 24
Views: 271

Installing Ubuntu Server - Software Configurations

Software Configurations Turn on the server and connect using PuTTY. 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 ( my...