Server Playbooks
No edit summary |
No edit summary |
||
(11 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:IT]] | |||
= Stuff on how the servers work = | = Stuff on how the servers work = | ||
* [[Wiki Transfer]] | * [[Wiki Transfer]] | ||
* [[ | * [[Server Backups]] | ||
== Apple devices on site == | |||
For some reason best known only to Apple, their devices don't want to connect to a network that doesn't have a default gateway they can reach. Back in Preston, the gateway is their router (10.0.0.2), but that's not reachable from the field. | |||
DHCP is run on gonzo. The config file is: <code>/etc/dhcp/dhcpd.conf</code> Near the top you will find a section looking like this: | |||
# this for on site | |||
# option routers 10.0.0.5; | |||
# this for at the office | |||
option routers 10.0.0.2; | |||
Uncomment the <code>10.0.0.5</code> line and comment out the <code>10.0.0.2</code> line. Then restart the dhcpd daemon using <code>systemctl restart isc-dhcp-server</code> | |||
This needs reversing before shutting down the server ready to leave site. | |||
== Changing a Wiki User password == | == Changing a Wiki User password == | ||
Line 13: | Line 28: | ||
* SSH into the server | * SSH into the server | ||
* Go to the directory for the wiki: | * Go to the directory for the wiki: | ||
** Plot Wiki <code>cd / | ** Plot Wiki <code>cd /var/www/html/mediawiki-crew-empire</code> | ||
** Public Wiki <code>cd / | ** Public Wiki <code>cd /var/www/html/mediawiki-public</code> | ||
** Crew Wiki <code>cd / | ** Crew Wiki <code>cd /var/www/html/mediawiki-crew-pd</code> | ||
* Run the script: <code>php maintenance/changePassword.php --user= | * Run the script: <code>php maintenance/changePassword.php --user=USERS_USER_NAME --password=VERY_SECURE_NEW_PASSWORD</code> | ||
* Suggest they go to change it at <code>https://www.profounddecisions.co.uk/empireplotwiki/Special:ChangeCredentials/</code> (replace for correct wiki location) | * Suggest they go to change it at <code>https://www.profounddecisions.co.uk/empireplotwiki/Special:ChangeCredentials/</code> (replace for correct wiki location) | ||
That's it. | That's it. | ||
== Clearing a wiki cache == | |||
ssh in, go to the directory for the wiki (same as above) | |||
Then run: <code>php maintenance/purgeList.php --all -v</code> | |||
== Adding a page to the dropdowns == | |||
Simply add it to the list in [[Imperial:TitleBar]] |
Latest revision as of 13:30, 26 July 2024
Stuff on how the servers work
Apple devices on site
For some reason best known only to Apple, their devices don't want to connect to a network that doesn't have a default gateway they can reach. Back in Preston, the gateway is their router (10.0.0.2), but that's not reachable from the field.
DHCP is run on gonzo. The config file is: /etc/dhcp/dhcpd.conf
Near the top you will find a section looking like this:
# this for on site # option routers 10.0.0.5; # this for at the office option routers 10.0.0.2;
Uncomment the 10.0.0.5
line and comment out the 10.0.0.2
line. Then restart the dhcpd daemon using systemctl restart isc-dhcp-server
This needs reversing before shutting down the server ready to leave site.
Changing a Wiki User password
Ideally, they go to the password reset page - https://www.profounddecisions.co.uk/empireplotwiki/Special:PasswordReset for the plot wiki - and that works.
If not, ssh in:
- SSH into the server
- Go to the directory for the wiki:
- Plot Wiki
cd /var/www/html/mediawiki-crew-empire
- Public Wiki
cd /var/www/html/mediawiki-public
- Crew Wiki
cd /var/www/html/mediawiki-crew-pd
- Plot Wiki
- Run the script:
php maintenance/changePassword.php --user=USERS_USER_NAME --password=VERY_SECURE_NEW_PASSWORD
- Suggest they go to change it at
https://www.profounddecisions.co.uk/empireplotwiki/Special:ChangeCredentials/
(replace for correct wiki location)
That's it.
Clearing a wiki cache
ssh in, go to the directory for the wiki (same as above)
Then run: php maintenance/purgeList.php --all -v
Adding a page to the dropdowns
Simply add it to the list in Imperial:TitleBar