Differences between revisions 1 and 7 (spanning 6 versions)
Revision 1 as of 2011-03-21 17:03:54
Size: 329
Editor: humpback
Comment: hurried but has the info we eternally seem to need
Revision 7 as of 2024-03-13 14:48:02
Size: 1498
Editor: motsugo
Comment: motsugo and mussel usage
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Webcams run off [[Camwhore]] The [[webcam page|https://webcam.ucc.asn.au/]] is served via [[Mussel]], the `webcam` user fetches images in a `crontab(5)` job on [[Motsugo]].
Line 3: Line 3:
Script periodically runs from www-data's crontab on camwhore to pull the images from the feed. == Authentication ==
Line 5: Line 5:
A script on martello then runs from webcam's crontab to pull the images off camwhore and put them into /home/other/webcam/ The [[webcam page|https://webcam.ucc.asn.au/]] requires authentication. You can use your UCC LDAP/AD account, or you can use a shared login for non-UCC members.
Line 7: Line 7:
Webpage data for webcam.ucc.asn.au is in /home/other/webcam/public-html The login details for this shared account can be found on boards in UCC, Unigames, and UniSFA.

This means that access to the webcams can only be gotten by visiting Cameron Hall.

This shared account will also have rotating passwords, so keep an eye out every 2 months for a new login.

=== Password Rotation ===

This section details instructions on how to rotate the static webcam password. You must either be a wheel member or a committee member to do this. The static password is stored in a [[https://httpd.apache.org/docs/current/programs/htpasswd.html|htpasswd]] file at `/home/other/webcam/public-html/password` (this is the `AuthUserFile` in `/home/other/webcam/public-html/.htaccess` ). To update this file, run the following command:

{{{sudo htpasswd -bc /home/other/webcam/public-html/password <username> <passwd>}}}

`sudo(1)` may prompt you for your account password. The changes should be effective immediately; navigate to https://webcam.ucc.asn.au/ and test it out. Note that browsers cache basic auth passwords for the session, so you may need to restart your browser (e.g. if you've already authenticated with LDAP credentials).

The https://webcam.ucc.asn.au/ is served via Mussel, the webcam user fetches images in a crontab(5) job on Motsugo.

Authentication

The https://webcam.ucc.asn.au/ requires authentication. You can use your UCC LDAP/AD account, or you can use a shared login for non-UCC members.

The login details for this shared account can be found on boards in UCC, Unigames, and UniSFA.

This means that access to the webcams can only be gotten by visiting Cameron Hall.

This shared account will also have rotating passwords, so keep an eye out every 2 months for a new login.

Password Rotation

This section details instructions on how to rotate the static webcam password. You must either be a wheel member or a committee member to do this. The static password is stored in a htpasswd file at /home/other/webcam/public-html/password (this is the AuthUserFile in /home/other/webcam/public-html/.htaccess ). To update this file, run the following command:

sudo htpasswd -bc /home/other/webcam/public-html/password <username> <passwd>

sudo(1) may prompt you for your account password. The changes should be effective immediately; navigate to https://webcam.ucc.asn.au/ and test it out. Note that browsers cache basic auth passwords for the session, so you may need to restart your browser (e.g. if you've already authenticated with LDAP credentials).