458 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
afb00f98ab
upgrades: Make manual upgrade a background process
- Closes #366 and closes #304 (all sub-tasks).

- Start new process group with setsid() by sending
  start_new_session=True

- Detach from parent process fds by closing all FDs and attaching stdin,
  stdou and stderr to /dev/null.

- Don't wait for the process to complete.

- This allows for upgrading Plinth while upgrades are trigged from
  Plinth itself.

- Show log of upgrade exection instead of output and error log of the
  process which can no longer be collected.  This has the advantage of
  showing automatic executions also.

- Rewrite the mechanism to detect whether upgrades can be run.  It is
  now based on whether the package manager is busy.  This has the
  advantage of working properly if other apt processes are running,
  automatic upgrades are running, etc.

- Busy status works even if Plinth is restarted while upgrades are in
  progress.

- More descriptive messages showing that upgrades don't have to be
  triggered manually.

- Warn that other packages can't be installed while upgrades are
  running, which may take a long time.

- Warn the users of potential temporary unavailability of
  Plinth/Apache2.
2016-01-20 21:13:18 -05:00
Sunil Mohan Adapa
1a17819380
letsencrypt: New basic module for SSL certficates
This is the first implementation for obtaining certificates from Let's
Encrypt.  Following the features and limitations.

- Requires manual operation.

- Registrations are done anonymously.

- Supports revoking and re-obtaining certificates.  Does not have a way
  to show if a certficate is already renewed.

- Automatic renewal is not available.

- Details messages in case of errors.

- Has ability to switch to testing mode by using LE's staging servers.

- Sets up Apache configuration for the domain and enables/disables it.
  When certificates are not available for a domain, default website
  configuration is used.  When certificates are available, separate
  SSL website configuration for each domain is used.

- Many domain will work with a single IP address with the help of Server
  Name Indication (SNI) which is supported by all modern browsers.

- Supports diagnostics on websites.
2016-01-14 14:18:43 +05:30
Sunil Mohan Adapa
6afe350fe5
monkeysphere: Proper domain handling
Action:

- Don't use const for HOST_TOOL, it is unlikely to be ever changed.

- Don't pass multiple key ids as single string to monkeysphere-host.

- Use JSON for data transfer with action instead of custom format and
  parsing.

- Minor styling fixes.

Template:

- More consistent indentation.

- Improve the description.

- Add headers to the table.

- List domains instead of domain types.

URLs:

- Take domain as argument for key generation.

- Narrow down fingerprint matching regex.

Views:

- Take domain as argument for key generation.  Verify that domain is
  valid.

- Minor grammer fix to cancel message.

- Use JSON format for getting key status.

- List domains instead of domain types.
2016-01-14 14:00:23 +05:30
James Valleroy
70d85cbd6f
monkeysphere: New module for verifying SSH servers
monkeysphere: Run publish as background task, allow user to cancel.

Small fixes to names module:

- Remove unused ugettext import.

- Change SERVICES to tuple.

- If a domain is not available for a service type, return None instead
  of (translated) "Not Available".

- Rename get_services -> get_enabled_services.
2016-01-14 14:00:08 +05:30
cat-git
2f9b419f4f
networks: Fix grammer in two sentences
Minor changes to English grammar to make user messages more
readable/translatable.
2016-01-08 15:04:13 +05:30
cat-git
d06a88ced2
help: Add link to irc webchat (Closes: #292) 2016-01-08 14:52:09 +05:30
Daniel Steglich
de2d2323d4 Merge pull request 338 from SunilMohanAdapa:
Refactoring of networks module.
2016-01-01 22:00:28 +00:00
Sunil Mohan Adapa
96f9fee96b
firstboot: Fix double nested navbar 2015-12-30 01:10:45 +05:30
Sunil Mohan Adapa
0464ac83d8
firstboot: Add doc strings for custom tags 2015-12-30 01:10:09 +05:30
fonfon
56e1b4ae57
firstboot: removed link to 'Applications'
minor bugfix - the icon wasn't displayed but the link and hover effect
were still there.
2015-12-30 01:09:13 +05:30
fonfon
0f742d704b
firstboot: Dont show normal mainmenu in help pages
- plus some minor adaptions like titles and using cfg.box_name
2015-12-30 01:08:43 +05:30
fonfon
a25f73005c Merge pull request #352 from SunilMohanAdapa/first-boot-improvements
Tested it, thanks for the additions;
2015-12-25 11:01:09 +01:00
Sunil Mohan Adapa
efac9cb59e transmission: Disable rpc whitelists on install 2015-12-23 06:16:22 -05:00
fonfon
74f64123b3 first-boot: state10: change text and layout
Instead of the buttons there is now only one link in the text for the
network setup.
2015-12-22 10:46:56 +05:30
fonfon
77e74746f0 first-boot: state1: fix focusing on form element 2015-12-22 10:38:30 +05:30
fonfon
23aee97ea9 first-boot: state0: update text and button 2015-12-22 10:38:26 +05:30
fonfon
6ee545023d first-boot: use a common navbar
- Also hide the applications icon in the second step while keeping the
  logo.
2015-12-22 10:05:37 +05:30
James Valleroy
48295abccc Use ugettext_lazy during init of config and power modules. 2015-12-19 18:31:37 -05:00
Philippe Baret
99dbf78662 Edited first paragraph
Added a sentence to avoid stress when you land on the first time without know if a click on Tor link will install it or not directly.
see https://github.com/freedombox/Plinth/issues/347
2015-12-19 13:36:47 -05:00
Philippe Baret
2037a273b3 Edited string
LDAP mention to delete (https://github.com/freedombox/Plinth/issues/347)
2015-12-19 13:36:47 -05:00
James Valleroy
8c3337ad60 Some fixes for shaarli:
- Pass on_install to required packages decorator.
- Fix indentation.
2015-12-19 11:00:06 -05:00
Philippe Baret
32a5b3cfbc shaarli: on_install function
please read https://github.com/freedombox/Plinth/issues/344
2015-12-16 18:07:31 +01:00
Ruben Lubbes
71f3dd6483 Typo 2015-12-13 19:54:10 +01:00
Sunil Mohan Adapa
007a4ec2b0 firewall: Fix minor Django deprication warning 2015-12-12 15:39:39 +05:30
Sunil Mohan Adapa
3c895f58f5 quassel: Minor styling and UI message chanages
- Add information about Quassel clients and usage.

- Expand introduction.

- Update titles for consistency.

- Minor styling
2015-12-12 15:38:03 +05:30
Sunil Mohan Adapa
644ab8db9f quassel: Fix issue with firewall operation 2015-12-12 15:36:33 +05:30
Sunil Mohan Adapa
6bc9c3bd8e quassel: Implement diagnostics 2015-12-12 15:35:43 +05:30
James Valleroy
e74c4791ec Add quassel module. 2015-12-11 19:09:54 -05:00
Sunil Mohan Adapa
201837518f Update strings during edit/delete operations 2015-12-09 23:55:55 +05:30
Ruben Lubbes
161e374419 Improved base strings to avoid duplicates
Should not affect already translated strings.
2015-12-09 23:55:55 +05:30
Ruben Lubbes
fad7448417 More punctuation and minor errors changed 2015-12-09 23:55:55 +05:30
Ruben Lubbes
841439ba73 Punctuation errors changed after DE language check
Influences all translations, so do not use for 0.7.
2015-12-09 23:55:55 +05:30
Sunil Mohan Adapa
42d0198a2e networks: Refactor for simplicity and brevity
- Make connection adding/editing forms inherit from base.

- Make the forms responsible for extracting cleaned data.

- Use dictionaries for passing around settings values while
  adding/editing connections.
2015-12-09 17:56:11 +05:30
Sunil Mohan Adapa
ba5c7a772d networks: Refactor & fix extracting netmask
- Use host byte ordering instead of big-endian.
2015-12-09 17:55:03 +05:30
Sunil Mohan Adapa
da99a7cb9d networks: Minor indentation fixes 2015-12-09 12:21:38 +05:30
Sunil Mohan Adapa
d1b20ac113 networks: I18N for static IP configuration 2015-12-09 12:20:37 +05:30
Daniel Steglich
1a1faa8a1b Github issue 314: static IP configuration enhancement
* fixed IP configuration
  * set up a new ipv4settings object to avoid the need of reseting all the values
* extended Static IP configuration:
  * allow configuration of netmask (optional)
  * allow configuration of Gateway (optional)
  * allow configuartion of two DNS Servers (optional)
* extend DHCP configuration:
  * allow configuration of user specific DNS Server
  * DHCP provided DNS Servers will be ignored in that case
2015-12-09 10:28:53 +05:30
Sunil Mohan Adapa
3e8a6f553a Minor styling fix 2015-12-06 15:52:14 +05:30
James Valleroy
0695ee5abb tor: Switch to obfs4proxy.
Replaces scramblesuit, and also supports obfs3.
Also add tor-geoipdb which is useful for bridges.
2015-12-06 12:21:22 +05:30
Sunil Mohan Adapa
a69f419c3c Make Django urlpatterns list of url()s
- Support for legacy pattern() mechanism will be removed in Django
  1.10.  Currently we see a warning for each Plinth module.
2015-12-05 09:33:23 -05:00
Sunil Mohan Adapa
7100429342 tor: Minor fixes
- Be a little bit more strict about Tor tests by requiring the module to
  be importable even when not running as root.
2015-12-04 10:14:47 +05:30
James Valleroy
90a1c334fe Skip tor tests unless root. 2015-12-04 09:16:06 +05:30
James Valleroy
66625c35a3 Handle error where /etc/tor/torrc does not exist when checking hidden service config.
Handle error where tor state file does not exist when getting list of ports.

Add test for checking if apt-transport-tor is enabled.
2015-12-04 09:16:06 +05:30
Sunil Mohan Adapa
803f4ecc94 names: Update icon to not clash with applications 2015-11-28 17:44:43 -05:00
Sunil Mohan Adapa
a0da928dae power: Minor updates
- Change term 'reboot' to 'restart' as it is less techinical and more
  consistent with popular interaces on desktop/mobiles.

- Updated description for power module.

- Simplify the module title to just 'Power'.

- Update the use of elipses and angular quotes as angular quotes and
  elipses are both used to indicate that further user interface will be
  available after pressing the button.

- Remove suprious '\' in power_reboot.html.

- Notify to the user that web interface will not be available after
  reboot/shutdown.

- Redirect the user to application page after restart/shutdown.  If the
  page serve succeeds, they will have simply refresh/access it after
  restart/shutdown after waiting or powering on.
2015-11-27 11:40:09 +05:30
Joel Valleroy
a002ca300c Use POST for reboot/shutdown now 2015-11-26 17:05:34 -05:00
Joel Valleroy
eca36e6f96 add power module with reboot and shut down 2015-11-26 16:29:38 -05:00
Sunil Mohan Adapa
0220cff57c upgrades: Minor fixes
- Show error message based on return code rather than messages in
  stderr.

- Don't decorate the message paragraph with alert color, we are already
  doing that by showing a message at the top.

- Untabify.

- Improve message showing that upgrades are running, gramatically.

- Show errors messages decorated as errors.

- Minor cleanups.
2015-11-26 11:10:59 +05:30
James Valleroy
24cd095c6e upgrades: Run as background task (Closes: #285). 2015-11-26 07:53:01 +05:30
fonfon
1dbc566515 names module, pagekite: moved updating names to utils 2015-11-25 15:22:27 +01:00