Commit Graph
3161 Commits
Author SHA1 Message Date
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
Sunil Mohan Adapa f93de11c6a networks: Handle unknown connections gracefully
When trying to edit connection of unknown type show an error and return
to connections list instead of trying to filling in some fields and
doing badly.
2015-08-22 21:14:21 +05:30
Sunil Mohan Adapa 2c23b0ecb4 networks: During activation raise device not found
When an interface assigned to a connection is not available in list of
devices, raise a proper error that device is not found.
2015-08-22 21:13:36 +05:30
Sunil Mohan Adapa e7214b7586 networks: Refactor common settings updation
Since IPv4 address settings are not relavent for PPPoE and the command
settings take them, split the common setting updation into basic
settings and IPv4 settings.
2015-08-22 21:11:13 +05:30
Sunil Mohan Adapa 21ee2de998 networks: Don't re-add settings if they exist
- This is a probable reason why a phantom new connection show up
  sometimes.
2015-08-22 21:11:13 +05:30
Sunil Mohan Adapa a66275bdf7 networks: Make types sorted during creation
- So that less frequently used 'PPPoE' connection is not shown as
  default.
2015-08-22 21:11:13 +05:30
Sunil Mohan Adapa 958c249dfb networks: Retrieve password while editing PPPoE
- Retrieve password using connection.get_secrets() instead of
  settings_pppoe.get_password().

- Make sure IPv4 settings are not accessed during PPPoE editing.
2015-08-22 21:10:56 +05:30
Sunil Mohan Adapa 5e6c54e600 Add network-manager, ppp, pppoe as dependencies
- Since freedombox-setup itself does not use ppp or pppoe, it is perhaps
  not right to add these two as dependencies to freedombox-setup.

- Add network-manager as dependency although it is already dependency of
  freedombox-setup.  This is so that one day Plinth can perhaps work
  independent of freedombox-setup.
2015-08-22 20:23:43 +05:30