Search found 465 matches

by LHammonds
Wed Nov 08, 2017 9:01 am
Forum: Tutorials
Topic: How to install Samba as PDC on Ubuntu Server 16.04
Replies: 0
Views: 33

How to install Samba as PDC on Ubuntu Server 16.04

Currently researching this topic. GOALS: * Create an Active Directory Domain Controller * Allow Windows PCs to authenticate against the domain * Allow Windows PCs to join the domain * Share files on Linux to Windows PCs Outline DONE - Install Ubuntu Server DONE - Prerequisites DONE - Samba PDC Inst...
by LHammonds
Wed Oct 04, 2017 12:04 am
Forum: Tutorials
Topic: How to Install MariaDB on Ubuntu Server 16.04 LTS
Replies: 12
Views: 1440

Re: How to Install MariaDB on Ubuntu Server 16.04 LTS

Web Front-end Someone asked if there was a graphical way to manage the server. After a long sigh, I mentioned that phpmyadmin is a popular front-end. Here is how you install it: apt install phpmyadmin I would recommend uninstalling it after your initial setup since having an Apache web service tend...
by LHammonds
Wed Oct 04, 2017 12:01 am
Forum: Tutorials
Topic: How to Install MariaDB on Ubuntu Server 16.04 LTS
Replies: 12
Views: 1440

Crontab Schedule

Crontab Schedule I would not advise anyone to ever "edit" a live crontab schedule by typing "crontab -e" but rather edit a saved schedule file and then load the schedule file. This will allow you to make backups of the schedule so you can always go back to a known-good schedule or at least back to ...
by LHammonds
Wed Oct 04, 2017 12:00 am
Forum: Tutorials
Topic: How to Install MariaDB on Ubuntu Server 16.04 LTS
Replies: 12
Views: 1440

Migration

Migrate Database from Old Server You can use the full backup automatically made by the "mysql-backup.sh" script (/bak/mysql/mysql-all.sql) if you have that already running or you can create a manual backup. The steps below will document how to do it manually but you could just as easily use your ex...
by LHammonds
Tue Oct 03, 2017 11:58 pm
Forum: Tutorials
Topic: How to Install MariaDB on Ubuntu Server 16.04 LTS
Replies: 12
Views: 1440

Backup Individual Database

Database Backup On Demand This script is designed to run every minute looking for key files. If a specific file shows up on the samba share, it will trigger an immediate backup of the specified database. This is helpful when scheduling the backup of an app server and coordinating the backup of the ...
by LHammonds
Tue Oct 03, 2017 11:57 pm
Forum: Tutorials
Topic: How to Install MariaDB on Ubuntu Server 16.04 LTS
Replies: 12
Views: 1440

Backup All Databases

MySQL Backup Script This script is designed to perform a full backup of all databases while the server is online. It actually does three kinds of backups. First, it pulls all the databases into a single file which is good for restoring everything on new servers. It then pulls by database to create ...
by LHammonds
Tue Oct 03, 2017 11:56 pm
Forum: Tutorials
Topic: How to Install MariaDB on Ubuntu Server 16.04 LTS
Replies: 12
Views: 1440

Scripting

Scripting Much of the solutions beyond this point involve scripts (programming snippets / automated commands). In particular, they are Bash Scripts. I chose this due to its popularity and the fact it comes with Ubuntu. I try to make use of what comes with the system without requiring additional sof...
by LHammonds
Tue Oct 03, 2017 11:55 pm
Forum: Tutorials
Topic: How to Install MariaDB on Ubuntu Server 16.04 LTS
Replies: 12
Views: 1440

Usage Examples

Usage Examples Connect to the server using PuTTY. At the login prompt, login with your administrator account ( administrator / myadminpass ) and then temporarily grant yourself super user privileges by typing sudo su Start a mysql session and create a database called minecraft and a user called min...
by LHammonds
Sun Oct 01, 2017 9:30 am
Forum: Tutorials
Topic: How to install OwnCloud 10 on Ubuntu Server 16.04 LTS
Replies: 7
Views: 203

Fail2Ban

Fail2Ban If you have Fail2Ban installed and protecting SSH as part of the base install. You can add these few changes to also watch for ownCloud login failures. vi /etc/fail2ban/filter.d/owncloud.conf ## Author: Lon Hammonds ## Date: 2017-09-26 [INCLUDES] before = common.conf [Definition] ## ownClo...
by LHammonds
Sun Oct 01, 2017 9:30 am
Forum: Tutorials
Topic: How to install OwnCloud 10 on Ubuntu Server 16.04 LTS
Replies: 7
Views: 203

External Storage

External Storage These are the steps to enable and configure external storage to mount an existing share on another server...Windows 2012 in this case. Step #1 Gather Share Information Make sure you have valid connection information such as the following: IP Address of the server hosting the share....
by LHammonds
Sun Oct 01, 2017 9:28 am
Forum: Tutorials
Topic: How to install OwnCloud 10 on Ubuntu Server 16.04 LTS
Replies: 7
Views: 203

Upgrades

It is recommended to upgrade any time a release is made but I've been burned before with point releases not working...which is why I stayed on 8.0.2 for so long. But when you do upgrade an old install, you cannot skip the major releases. So going from 8.0.2 to 10.0.3 means you need to upgrade in thi...
by LHammonds
Sun Oct 01, 2017 9:25 am
Forum: Tutorials
Topic: How to install OwnCloud 10 on Ubuntu Server 16.04 LTS
Replies: 7
Views: 203

Post-Installation

Directory Security These are the recommended modes and ownership for your ownCloud directories and files: All files should be read-write for the file owner, read-only for the group owner, and zero for the world All directories should be executable (because directories always need the executable bit...
by LHammonds
Sun Oct 01, 2017 9:16 am
Forum: Tutorials
Topic: How to install OwnCloud 10 on Ubuntu Server 16.04 LTS
Replies: 7
Views: 203

ownCloud Installation

OwnCloud We are installing manually instead of using the package manager for the following reasons: Can obtain the newer version straight from owncloud's website Don't want MySQL installed on the same server since I have a dedicate DB server (and also would rather use MariaDB) Want to use my own pa...
by LHammonds
Sun Oct 01, 2017 9:06 am
Forum: Tutorials
Topic: How to install OwnCloud 10 on Ubuntu Server 16.04 LTS
Replies: 7
Views: 203

Database Creation

Database Configuration mysql -u root -p Enter password: rootpass At the mysql> prompt, enter these commands: CREATE DATABASE owncloud; CREATE USER ' ownclouduser '@'%' IDENTIFIED BY ' ownclouduserpass '; GRANT ALL ON owncloud.* TO ' ownclouduser '@'%'; FLUSH PRIVILEGES; exit NOTE: The above will al...
by LHammonds
Sun Oct 01, 2017 9:05 am
Forum: Tutorials
Topic: How to install OwnCloud 10 on Ubuntu Server 16.04 LTS
Replies: 7
Views: 203

Prior to install

Name Resolution Add your owncloud domain(s) so they point to the local loopback (127.0.0.1) Add your other remote servers such as your mail and database server IPs so you can reference them by name. vi /etc/hosts 127.0.0.1 localhost 127.0.1.1 srv-owncloud 127.0.0.1 owncloud.mydomain.com 192.168.107...
by LHammonds
Sun Oct 01, 2017 8:58 am
Forum: Tutorials
Topic: How to install OwnCloud 10 on Ubuntu Server 16.04 LTS
Replies: 7
Views: 203

How to install OwnCloud 10 on Ubuntu Server 16.04 LTS

WORK-IN-PROGRESS ------------------------- WORK-IN-PROGRESS WORK-IN-PROGRESS ------------------------- WORK-IN-PROGRESS 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
Thu Sep 21, 2017 3:19 am
Forum: Tutorials
Topic: How to Install and Configure an Ubuntu Server 16.04 LTS
Replies: 19
Views: 5790

Future Research Items

Security Topics to Research and Incorporate Fail2Ban - Linode walkthru 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 detec...
by LHammonds
Thu Sep 21, 2017 3:19 am
Forum: Tutorials
Topic: How to Install and Configure an Ubuntu Server 16.04 LTS
Replies: 19
Views: 5790

Security - Fail2Ban (Optional)

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
Sun Sep 17, 2017 3:02 am
Forum: Tutorials
Topic: Home Network Research Notes
Replies: 0
Views: 91

Home Network Research Notes

LDAP - User Authentication * Raspberry Pi LDAP Server (Ubuntu) * Raspberry Pi LDAP Server * LDAP Server with Ubuntu 12.04 Router / Firewall * ZeroShell Desktop OS for old computers * Damn Small Linux * Puppy Linux System / File Recovery * Ultimate Boot CD Anonymity Online * TAILS which utilizes the ...
by LHammonds
Thu Sep 14, 2017 4:42 am
Forum: Tutorials
Topic: How To Install and Configure WordPress on Ubuntu 16.04
Replies: 8
Views: 429

Migrate to New Host

Migrate Web Site to New Host These are the steps to migrate your website to a new host (assuming the dedicated database remains on the same server). This is what I do when upgrading the server operating system. For example: Current production running on Ubuntu Server 14.04, new server setup on Ubun...