menuimage

Description

Usage

Options

Details

License

Changelog

Download

My_Other_Sites

My_Programs

Comments

timedicer-server-setup v7.0609 [09 Jun 2017] by Dominic

Description

timedicer-server-setup.sh is part of the TimeDicer suite https://www.timedicer.co.uk, and sets up a TimeDicer Server or updates the existing setup.

It is normally run with -f option after the first boot of a new TimeDicer Server machine. It can be run subsequently with or without -f option to update the machine.

Usage

timedicer-server-setup.sh [option] [you@your_email_address.org]

Options

-v verbose (show normal output from commands)
-f run automatically assuming 'y' for all questions - email address on command line required
-h show this help
-l show changelog

Details

Depending on the user's choices and existing installed software, the server is configured as follows -
- download and extract key scripts from www.timedicer.co.uk (including self-updating this script)
- check and update timezone information [requires user response]
- download and install postfix [requires user response]
- download and install updates for Ubuntu
- restrict access to users' /home folders to the respective user
- download and install wakeonlan, lvm2, ssh, apache2, php
- bespoke settings for nano, php, postfix, cron, and enable apache2.conf
- create ssh keys for primary user and for root
- download and install rdiff-backup and rdiffweb
- start rdiffweb, apache2 and postfix
- send a test email

License

Copyright © 2017 Dominic Raferd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Changelog

[version indicates when: 201y.mmdd]
7.0609: new way of obtaining ip addresses
7.0425: add ability to work with, and setup remote login/mounting for, LUKS + dm-crypt encrypted root fs, add full setup of email relayhost authentication
7.0412: very minor text fixes
6.0707: bugfix
6.0706: improve self-updating code, remove php5-common for Ubuntu >=16.04, don't install sshfs
6.0622: make compatible with Ubuntu 16.04 (Xenial), force rdiffweb 0.6.3 upgrade
6.0426: delete any pre-existing .don files when updating key scripts
6.0422: internal changes
6.0218: no longer compulsory to supply email address on command line (except with -f)
5.1224: install new rdiff-backup >=0.7
5.0806: some bugfixes
5.0129: add dutree.sh
4.1203: bugfix so that local TimeDicer homepage appears correctly after installation
4.1116: further small changes for Ubuntu 14.04
4.1111: fix for Ubuntu 14.04 (copy web page files to /var/www/html)
2.1107: timedicer-mirror.sh updated
2.0827: timedicer-mirror.sh updated, help text updated
2.0701: fix for Ubuntu 12.04 to prevent apache2 messages about undefined ServerName
2.0627: fix for Ubuntu 12.04 to allow creation of primary user rsa key, don't create /home/tmp, add cryptsetup package to prevent inotify_add_watch messages/delay at boot time
2.0515: renamed as timedicer-server-setup.sh, now self-updating
2.0425: fix of a small (but fatal) bug
2.0312: small bugfix, updated help text for rdiffweb-install.sh
2.0308: rename timedicer-mirror as timedicer-mirror.sh
2.0224: remove rdiff-backup-fs-install and vmware-tools-install from package of installed utilities, rename rdiffweb-install as rdiffweb-install.sh
2.0221: rename lv-usage.sh as lvm-usage.sh
1.1231: improved output from lv-usage.sh (cron job test for disk space)
1.1023: create /home/tmp directory when rdiff-backup is installed
1.1011: recoding for timedicer-mirror
1.1009: bugfixes for rdiffweb-install, timedicer-mirror and newuser-request.sh
1.0916a: remove heirloom-mailx (and remove dependency upon it)
1.0916: add timezone configuration
1.0915c: fix rdiffweb-install failure on 2nd run, add rdiffweb setup package to timedicer-server-setup.tar.bz2 so setup can still work if rdiffweb site is down
1.0915: add recognition of any type of network port
1.0914: add make-home-lv.sh, can ease LVM configuration fix for rdiffweb-install to work with python2.7 (Ubuntu 11.04)
1.0913: add install of postfix, lvm2, ssh and heirloom-mailx to assist with VM-based or non-standard TimeDicer Server setup
1.0901: alter Server web pages so no data (css, png) is loaded from www.timedicer.co.uk, all is held and accessed locally - removes an unintended 'phone home' and means page formats are okay even if Server has no internet access
1.0830: alter various files so that when a new TimeDicer user is created, a new rdiffweb user is also created
1.0306: remove installation of rdiff-backup-fv [patched rdiff-backup]
1.0301: bugfix - prevent automatic silent abort on exit code>0 remove daily repo verification from cron
1.0227: added changelog option and updated help text
1.0222: install wakeonlan, add script install-rdiff-backup-fs (but rdiff-backup-fs not installed)
1.0217: install sshfs and auto-add new users to fuse group
1.0216: bugfix - create root rsa key without passphrase
1.0207: bugfixes

Download timedicer-server-setup.sh

My Other Sites

My Programs

Here is a selection of some (other) programs I have written, most of which run from the command line (CLI), are freely available and can be obtained by clicking on the links. Dependencies are shown and while in most cases written for a conventional Linux server, they should run even on a Raspberry Pi, and many can run under Windows using Cygwin. Email me if you have problems or questions, or if you think I could help with a programming requirement.

Backup Utilities

Debian/Ubuntu kernel and LVM Utilities

Dellmont / Three / Giffgaff / Vodafone - VoIP and Mobile Phone Account Utilities

Miscellaneous Programs

Comments

No comments yet
*Name:
Email:
Hide my email
*Text:
 
Powered by Scriptsmill Comments Script