400 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
afe345d01b Cleanup system configuration module
- Add license header
- Fix pylint, pep8 and pyflakes warnings and errors
- Fix incorrect use of gettext._()
- Don't store hostname and timezone in Plinth storage. Instead use
  values from probing the system
- Don't use exec()
- Other minor refactorings
2014-04-05 14:42:18 +09:00
Sunil Mohan Adapa
c3a8f3cb61 Ignore .py.bak files created when compiling templates 2014-04-05 14:22:28 +09:00
Nick Daly
890bc7ea99 Merge pull request #67 from jvalleroy/tor-info
Merge: JValleroy's Tor information page.
2014-03-29 14:55:46 +00:00
James Valleroy
186f610708 Add tor information page. 2014-03-26 23:27:59 -04:00
Nick Daly
e30a9b6a27 Merge pull request #63 from jvalleroy/split-apache-config
Split apache conf into 2 files, one for HTTP and one for SSL.
2014-03-25 03:05:05 +00:00
Nick Daly
be052c9969 Merge pull request #65 from jvalleroy/diagnostic-test
Merge: James's Diagnostics branch.
2014-03-25 00:48:54 +00:00
James Valleroy
67a5280073 Add license information and description for diagnostics module. 2014-03-24 20:46:51 -04:00
Nick Daly
6d6b5148cc Merge pull request #62 from SunilMohanAdapa/master
Merge: Sunil's PageKite UI module.
2014-03-25 00:27:22 +00:00
James Valleroy
c349d875a6 Add diagnostic test which runs the freedombox testsuite and displays its result. 2014-03-24 20:17:28 -04:00
James Valleroy
f178b74055 Split apache conf into 2 files, one for HTTP and one for SSL. 2014-03-24 07:19:57 -04:00
Sunil Mohan Adapa
0482507e04 Minor style update for PageKite UI 2014-03-24 00:08:19 +05:30
Nick Daly
f79463ec56 Merge pull request #61 from jvalleroy/master
Add link to jwchat, and install owncloud without recommends.
2014-03-23 17:33:21 +00:00
Sunil Mohan Adapa
b30b2f5683 Fix PageKite module load order so loads after /router/setup 2014-03-23 19:49:59 +05:30
Sunil Mohan Adapa
8db3217f16 Implement module for configuring PageKite 2014-03-23 19:09:24 +05:30
Sunil Mohan Adapa
7ebeb44b22 Pass arguments to form parts as it is mean to 2014-03-23 18:56:51 +05:30
Sunil Mohan Adapa
288e4bb6ca Place page specific js after jquery so that jquery can be used 2014-03-23 18:50:41 +05:30
Sunil Mohan Adapa
e49aa3df43 Add python-contract as dependency 2014-03-22 12:56:12 +05:30
Sunil Mohan Adapa
0d79d58b1d Add python-passlib as dependency 2014-03-22 12:52:24 +05:30
Sunil Mohan Adapa
438b97e6d0 Fix error in handling exceptions during configuration read 2014-03-22 09:58:01 +05:30
James Valleroy
1b6208d0b8 Install owncloud without recommends. 2014-03-21 07:35:39 -04:00
James Valleroy
15070aefb6 Add link to jwchat. 2014-03-20 22:49:03 -04:00
Nick Daly
1af15f79b7 Merge upstream. 2014-03-13 12:18:34 -05:00
Nick Daly
a09aa90145 Only redirect Plinth requests to HTTPS.
Previously, we redirected all requests to HTTPS.  Now, we redirect
only when the user tries to connect to the Plinth site.
2014-03-13 12:16:32 -05:00
Nick Daly
434a2a5833 Merge pull request #59 from jvalleroy/module-manager
Merge: James Valleroy's Plinth Module Manager
2014-03-02 23:24:22 +00:00
Nick Daly
2b4e17e425 Fix Lintian error: unsafe symlinks exist only while testing.
We only need these actions during test time, so create symlinks to
them before running the tests and remove them after testing:

- actions/echo: /bin/echo

- actions/id: /usr/bin/id
2014-03-02 16:20:46 -06:00
Nick Daly
c5ceae5819 Properly use bcrypt:
- Don't crypto: use a library provided time-independent comparison.

- Document details about max password length and other caveats.
2014-03-02 15:36:22 -06:00
Nick Daly
8e2284a643 Added notes to the first connection design. 2014-02-04 21:13:07 -06:00
James Valleroy
1e21712fa5 Instead of a separate page and form classes for ownCloud module, just need one class that does both. 2014-01-31 23:19:38 -05:00
James Valleroy
c9d58ee73d Combined module management actions into a single file, so it should be easier to add new optional modules. 2014-01-31 21:44:32 -05:00
James Valleroy
411785eb3f Make module manager work for any available modules. 2014-01-31 19:48:40 -05:00
James Valleroy
7c6f1e72fa simple form for enabling/disabling owncloud module 2014-01-27 22:42:06 -05:00
James Valleroy
6a6185a744 Added actions to manage modules (manually adding/removing symlinks for now). 2014-01-26 21:59:58 -05:00
Nick Daly
cb9ca1b86c Finished first pass at LICENSES file. 2013-12-26 22:40:08 -06:00
Nick Daly
2f98202312 Added some module-level documentation.
Of course, only stage 0 (#1: Hello!) is written.  The rest will come
next.
2013-12-26 22:39:55 -06:00
Nick Daly
a00555e506 Added documentation on the first-connection process.
This is a four-part process:

1. Hello!  Configure basic administrative information.

2. Configure identity information.

3. Configure network.

4. Box is running normally, user can interact with and add and remove
services per the normal processes.
2013-12-22 20:55:14 -06:00
Nick Daly
278db809ab Removed compiled pyc file. 2013-12-22 20:49:26 -06:00
Nick Daly
883c08eb94 Removed logfiles. 2013-12-16 21:08:22 -06:00
Nick Daly
bb75e4285f Added whitespace. 2013-12-16 21:08:00 -06:00
Nick Daly
cdca585a98 Renamed COPYRIGHTS to LICENSES 2013-12-16 21:05:02 -06:00
Nick Daly
b4db64719a Added COPYRIGHTS file to track copyright status.
This'll be handy for the Debian packaging.
2013-12-15 19:00:22 -06:00
Nick Daly
468fc00330 Removed fixed links issue. 2013-12-15 18:58:50 -06:00
Nick Daly
68e186deff Finally fix firstboot redirect problems.
This issue was easy to solve once I started using the Live HTTP
Headers Firefox extension to debug it:

https://addons.mozilla.org/en-US/firefox/addon/live-http-headers/

With this particular InternalRedirect, CherryPy inexplicably responds
with a 301 ("Moved Permanently") unless we manually tell it to use a
307 ("Moved Temporarily") response code.  I don't know why CherryPy
does this, and it may be indicative of a deeper problem that I don't
currently have time to debug, as the request-response process for
redirecting from http://(server)/plinth to
https://(server)/plinth/firstboot is ridiculous and contains about
twice as many requests as I would've expected.
v0.3.1
2013-12-08 11:46:33 -06:00
Nick Daly
4d5d93678b Require python-bcrypt as a build-from-source dependency. 2013-12-08 11:39:37 -06:00
Nick Daly
51e3af611b Moved Apache configuration to Plinth setup script.
James added the Apache Headers module to the makefile, but not the
FreedomBox-Setup configuration script.  However, it's ridiculous to
have multiple locations for that same logic, so now the makefile uses
the setup script for the Apache configuration instead.

Also, the modules are now fancy and alphabetized.
2013-12-08 11:37:15 -06:00
James Valleroy
96f4430513 Remove includeSubDomains option from HSTS header. 2013-11-28 02:27:08 +00:00
James Valleroy
96310b4366 Use HSTS in apache conf. Fixes #47. 2013-11-28 00:52:18 +00:00
Nick Daly
0ec794aaa7 Merge pull request #56 from jvalleroy/remove_old_user_db
Remove old user stuff
2013-11-24 20:43:35 -08:00
Nick Daly
16c994b787 Cleaned up missed references to privilegedactions. 2013-11-24 22:07:13 -06:00
Nick Daly
e23650232b Merged async actions. 2013-11-24 18:46:16 -06:00
Nick Daly
0349113e97 Commands can be executed asynchronously and as non-root.
If commands are executed synchronously, they'll return output and
error strings.  If commands are executed asynchronously, nothing is
returned.  We assume you can communicate with asynchronous processes
out-of-band.

Not every command needs to be executed as root, so there's a new
entry-point, *actions.run*, which executes actions as the current
user.
2013-11-24 18:42:15 -06:00