1218 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
91eaf3301d datetime: Move time zone to date time module
- It is more appropriate to have the time zone setting in date time
  module.
2015-09-04 19:53:46 +05:30
Sunil Mohan Adapa
da3e92312c config: Handle miscellaneous time zones also
- In appears that in Debian it is possible to set the timezones from one
  of the listed items in zonetab.info or addtitional timezones from the
  directory /usr/share/zoneinfo/Etc/.  Add these too.

- By default all FreedomBox images have Etc/UTC as time zone.  This is
  now properly listed.
2015-09-04 19:27:16 +05:30
Bharath Chava
b1c11b5cc7 Start deluge-web service after package install 2015-09-04 15:50:13 +05:30
Sunil Mohan Adapa
bff8dd5a5c tor: Fixes for APT transport setup
- When Deb822 formatted source files are present, error out and don't
  show as enabled.

- When /etc/apt/sources.list.d/*.sources files are present, error out
  and don't show as enabled.

- Handle files /etc/apt/sources.list.d/*.list.

- Workaround Augeas lens not understanding '[options]' in sources.list.
2015-09-04 15:38:16 +05:30
Sunil Mohan Adapa
09f64f6a4b tor: Disable APT transport when Tor is disabled
- To make sure that APT is not unusable.
2015-09-04 15:38:16 +05:30
Sunil Mohan Adapa
266a7cd15e tor: Show action errors properly in UI 2015-09-04 15:38:16 +05:30
Sunil Mohan Adapa
aa88b09d69 tor: Update APT transport help text 2015-09-04 15:38:16 +05:30
James Valleroy
787fc22d04 tor: Enable apt-transport-tor upon install. 2015-09-04 15:38:16 +05:30
James Valleroy
f25ce0216f tor: Add control to enable/disable apt-transport-tor (Closes: #78). 2015-09-04 15:38:15 +05:30
Sunil Mohan Adapa
1c046d0ece firewall: Remove assigning zones to interfaces
This is now properly handled by freedombox-setup network scripts.  There
is no need to set it up here.  Also there is chance they might by
configured wrong.
2015-09-02 19:48:35 -04:00
Sunil Mohan Adapa
100f8392e3 Fix issue with Apache configuration
I faced a situation that on my localhost resolved to an IPv6 address and
Apache was unable to connect to Plinth as Plinth does not yet listen on
IPv6 address.  It is best to change this to an explict local IP address
at least until Plinth listens on IPv6 address.
2015-09-02 19:40:54 -04:00
Sunil Mohan Adapa
114370c2e0 upgrades: Finish the reorganisation of views 2015-09-02 19:23:05 +05:30
James Valleroy
c539dc6db3 upgrades: Move auto upgrades configure form to first tab.
Split forms and views into separate files.
2015-09-02 19:23:05 +05:30
James Valleroy
76cdc69099 upgrades: Enable automatic upgrades after install 2015-09-02 19:23:05 +05:30
Sunil Mohan Adapa
35d3244636 xmpp: Minor identation fixes 2015-09-01 22:41:53 +05:30
James Valleroy
19a6e24685 xmpp: Display current domainname and example user ID. 2015-08-30 21:14:51 -04:00
James Valleroy
162b28aafe xmpp: Replace host list instead of adding during domainname change (Closes #167). 2015-08-30 19:16:14 -04:00
James Valleroy
6ecd184d37 datetime: fix page title 2015-08-29 10:39:21 -04:00
Sunil Mohan Adapa
28f84ad0b1 datetime: New module for date & time operations
- Enable/disable ntpd from this module.  Since ntpd has implications on
  anonymity.

- Implement NTP diagonstics from freedombox-setup.

- Eventually provide ability to set date & time of the system.

- Eventually move timezone configuration to this module.
2015-08-29 10:32:14 -04:00
James Valleroy
e7b68f7e28 diagnostics: Remove extra 'error' displayed results.
Just show 'error' for missing command.
2015-08-29 09:37:35 -04:00
James Valleroy
d8828ee877 tor: remove unused import 2015-08-29 07:50:47 -04:00
James Valleroy
9a25e6b21d tor: Add torsocks as required package, needed for diagnostics.
Display error for diagnostic if command is missing.
2015-08-29 07:48:06 -04:00
James Valleroy
dee7474b5e tor: minor comment updates 2015-08-29 07:04:22 -04:00
James Valleroy
f81e4a60d3 owncloud: fix diagnose url 2015-08-29 06:59:37 -04:00
James Valleroy
a95142cfff privoxy: Use diagnostics_button template like other modules. 2015-08-29 06:56:34 -04:00
Sunil Mohan Adapa
2926d17104 transmission: Implement diagnostics 2015-08-29 06:22:02 -04:00
Sunil Mohan Adapa
f81f53350f roundcube: Implement diagnostics 2015-08-29 06:22:02 -04:00
Sunil Mohan Adapa
8179e94d64 owncloud: Implement diagnostics 2015-08-29 06:22:02 -04:00
Sunil Mohan Adapa
4870e7dba3 mumble: Implement diagnostics 2015-08-29 06:22:02 -04:00
Sunil Mohan Adapa
3f9bcafeeb ikiwiki: Implement diagnostics 2015-08-29 06:22:02 -04:00
Sunil Mohan Adapa
20d8c56aa0 deluge: Implement diagnostics 2015-08-29 06:22:02 -04:00
Sunil Mohan Adapa
6b7de75b62 diagnostics: Implement diagnostics for Plinth
- Note that while Plinth is running or not running, diagnostics can be
  run on the command line with --diagnose option to Plinth binary.  That
  makes these tests just as useful as freedombox-setup testsuite.
2015-08-29 06:22:02 -04:00
Sunil Mohan Adapa
c2e85a872e networks: Implement diagnostics
- Since DNS server is started now by setting ipv4 'shared' method on a
  network connection, DNS tests are done here.
2015-08-29 06:22:01 -04:00
Sunil Mohan Adapa
69420c38cb privoxy: Implement diagnostics
- Mostly moved from freedombox-setup.
2015-08-29 06:22:01 -04:00
Sunil Mohan Adapa
8fd4f69bfd tor: Implement diagnostics
- Mostly moved from freedombox-setup.
2015-08-29 06:22:01 -04:00
Sunil Mohan Adapa
c417c12436 xmpp: Implement diagnostics
- Mostly moved from freedombox-setup.
2015-08-29 06:22:01 -04:00
Sunil Mohan Adapa
4210332bf6 users: Improve diagnostics
- Move diagnostics into main module instead of action script.

- Ability run diagnostics as non-root user (because it runs in Plinth
  instead of action).

- Diagnose whether LDAP server is listening.

- Diagnose directory entities created during setup.
2015-08-29 06:22:01 -04:00
Sunil Mohan Adapa
0febeb7244 diagnostics: Add --diagnose command line option
- When this option is provided, Plinth will initialize, load modules,
  execute diagnostics, print the results on console and quit.

- Replacement for /usr/lib/freedombox/testsuite
2015-08-29 06:22:01 -04:00
Sunil Mohan Adapa
2b1b60fba5 Minor coding styling update in main.py 2015-08-29 06:22:01 -04:00
Sunil Mohan Adapa
eca538169e diagnostics: Revamp main diagnostics page
- Run diagnostics on each module separately.

- Run diagnostics in a separate thread.

- Show progressive update while running diagnostics.

- Store and show old diagnostics.

- Prevent CSRF on the expensive operation of running diagnostics.
2015-08-29 06:22:01 -04:00
Sunil Mohan Adapa
49c4c1dce6 diagnostics: Action helpers for modules
- Helper for checking whether a port is being listened on.

- Helper for checking whether a URL is accessible.

- Helper for checking whether a URL is accessible with all possible IPs
  and machine names.

- Helper for checking whether it is possible to connect to a port.
2015-08-29 06:22:01 -04:00
Sunil Mohan Adapa
991f848c23 diagnostics: Template/styling helpers for modules 2015-08-29 06:22:01 -04:00
Sunil Mohan Adapa
36426b373c diagnostics: Refactor module results template
- For reuse elsewhere
2015-08-29 06:22:01 -04:00
Sunil Mohan Adapa
4bddc70ce0 diagnostics: Add external dependency on psutil 2015-08-29 06:22:01 -04:00
James Valleroy
ea64fa1c7a Merge remote-tracking branch 'sunil/tor-setup' 2015-08-26 19:18:18 -04:00
Sunil Mohan Adapa
be46e9588a shaarli: Minor comments updates 2015-08-23 17:27:34 +05:30
James Valleroy
4458a6537d Add Bookmarks (Shaarli) module. 2015-08-23 16:43:13 +05:30
Sunil Mohan Adapa
0b1e97d99c Treat entire input as password
Instead of just the first line.

PEP8 fixes.
2015-08-23 16:24:29 +05:30
Sean Alexandre
21b9a5b02a Passwords now sent over stdin instead of command line.
Fixes Issue #166:
Don't pass passwords on command line
https://github.com/freedombox/Plinth/issues/166

This issue was for 4 modules: Transmission, Pagekite, DynamicDNS, and Ikiwiki.
2015-08-23 15:20:08 +05:30
Sunil Mohan Adapa
ef156dab91 networks: Minor styling and comments update
- Add comment about PPP peers possibly not responding to echo requests.
2015-08-22 21:14:21 +05:30