Commit Graph
7667 Commits
Author SHA1 Message Date
Tejaswi1305 bbc5851c33 Translated using Weblate (Telugu)
Currently translated at 97.0% (1807 of 1862 strings)
2025-04-10 04:55:40 +02:00
Jahnavi Lakshmi yerramsetty 22a68d0240 Translated using Weblate (Telugu)
Currently translated at 96.9% (1805 of 1862 strings)
2025-04-10 04:27:32 +02:00
Tejaswi1305 c0981498e4 Translated using Weblate (Telugu)
Currently translated at 96.9% (1805 of 1862 strings)
2025-04-10 04:27:32 +02:00
Vemula Sai Ruchitha c36609acd2 Translated using Weblate (Telugu)
Currently translated at 95.8% (1784 of 1862 strings)
2025-04-10 04:18:39 +02:00
tuliogit 3e57b1d52f Translated using Weblate (Portuguese)
Currently translated at 100.0% (1854 of 1854 strings)
2025-04-10 00:41:29 +02:00
Sunil Mohan Adapa 4308f8ea01 sogo: Adjust apache configuration to work on Trixie
Closes: #2507.

In Bookworm, /usr/lib/GNUStep/SOGo/WebServerResources is a symlink to
/usr/share/GNUStep/SOGo/WebServerResources. On Trixie, the directory
/usr/lib/GNUStep does not exist. In both cases,
/usr/share/GNUStep/SOGo/WebServerResources is where the actual resources are.
Update apache configuration to use /usr/share instead of /usr/lib/.

Tests:

- On Bookworm and Trixie, install sogo and ensure that the web UI is working.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Benedek Nagy <contact@nbenedek.me>
2025-04-09 23:03:15 +02:00
Besnik Bleta 64bb3568c1 Translated using Weblate (Albanian)
Currently translated at 99.5% (1846 of 1854 strings)
2025-04-09 15:07:20 +02:00
Максим Горпиніч 5d27b1698d Translated using Weblate (Ukrainian)
Currently translated at 100.0% (1854 of 1854 strings)
2025-04-09 15:07:20 +02:00
Jiří Podhorecký 1bb1f4e34d Translated using Weblate (Czech)
Currently translated at 100.0% (1854 of 1854 strings)
2025-04-09 15:07:19 +02:00
大王叫我来巡山 01eada3af0 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 62.2% (1154 of 1854 strings)
2025-04-09 15:07:19 +02:00
Burak Yavuz 3dfbde3313 Translated using Weblate (Turkish)
Currently translated at 100.0% (1854 of 1854 strings)
2025-04-09 15:07:18 +02:00
Hosted Weblate f6e0b0a750 Merge branch 'origin/main' into Weblate. 2025-04-08 17:12:45 +02:00
Tejaswi1305 4840acc880 Translated using Weblate (Telugu)
Currently translated at 97.4% (1779 of 1826 strings)
2025-04-08 11:10:22 -04:00
SNEHA LATHA REDDY e56381eceb Translated using Weblate (Telugu)
Currently translated at 97.4% (1779 of 1826 strings)
2025-04-08 11:10:21 -04:00
Jahnavi Lakshmi yerramsetty da0a706816 Translated using Weblate (Telugu)
Currently translated at 95.4% (1779 of 1826 strings)
2025-04-08 11:10:13 -04:00
Tejaswi1305 9fb330d449 Translated using Weblate (Telugu)
Currently translated at 97.4% (1779 of 1826 strings)
2025-04-08 12:02:42 +00:00
SNEHA LATHA REDDY 6ac1592f15 Translated using Weblate (Telugu)
Currently translated at 97.4% (1779 of 1826 strings)
2025-04-08 12:02:41 +00:00
Jahnavi Lakshmi yerramsetty aac3aca946 Translated using Weblate (Telugu)
Currently translated at 97.4% (1779 of 1826 strings)
2025-04-08 12:02:41 +00:00
James Valleroy d955686876 Merge remote-tracking branch 'freedombox-team/main' 2025-04-08 08:01:53 -04:00
Tejaswi1305 2bd9a58b63 Translated using Weblate (Telugu)
Currently translated at 95.8% (1750 of 1826 strings)
2025-04-08 05:13:30 +02:00
SNEHA LATHA REDDY eb6ab650d8 Translated using Weblate (Telugu)
Currently translated at 95.8% (1750 of 1826 strings)
2025-04-08 05:13:29 +02:00
Gundumi Sri Krishna Sudhindra a01ea46acf Translated using Weblate (Telugu)
Currently translated at 95.4% (1743 of 1826 strings)
2025-04-08 05:09:27 +02:00
ANNAPUREDDY RAKSHITHA 2aabf00747 Translated using Weblate (Telugu)
Currently translated at 95.4% (1743 of 1826 strings)
2025-04-08 05:09:27 +02:00
Parimi Pujitha 7ac2b49b6c Translated using Weblate (Telugu)
Currently translated at 95.4% (1743 of 1826 strings)
2025-04-08 05:09:27 +02:00
ANNAPUREDDY RAKSHITHA 452f686d8d Translated using Weblate (Telugu)
Currently translated at 95.0% (1736 of 1826 strings)
2025-04-08 05:02:32 +02:00
Tejaswi1305 49bc5201fe Translated using Weblate (Telugu)
Currently translated at 95.0% (1736 of 1826 strings)
2025-04-08 05:02:31 +02:00
Jahnavi Lakshmi yerramsetty 81034b8694 Translated using Weblate (Telugu)
Currently translated at 95.0% (1736 of 1826 strings)
2025-04-08 05:02:31 +02:00
DeepikaReddy 4f6d217fdd Translated using Weblate (Telugu)
Currently translated at 95.0% (1736 of 1826 strings)
2025-04-08 05:02:31 +02:00
Parimi Pujitha 1a214e8adf Translated using Weblate (Telugu)
Currently translated at 95.0% (1736 of 1826 strings)
2025-04-08 05:02:31 +02:00
DeepikaReddy c5edafa134 Translated using Weblate (Telugu)
Currently translated at 92.4% (1688 of 1826 strings)
2025-04-08 04:46:17 +02:00
James Valleroy 23b25f87ca Release v25.7 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2025-04-07 21:48:08 -04:00
James Valleroy e4586eeb72 upgrades: Cleanup use of return value from _apt_run
_apt_run does not return anything.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
[sunil: Update test case]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Tested-by: Sunil Mohan Adapa <sunil@medhas.org>
2025-04-07 18:28:00 -07:00
James Valleroy fa6068f877 locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2025-04-07 21:07:28 -04:00
James Valleroy 97cc901fe6 upgrades: Remove unused import
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2025-04-07 20:59:29 -04:00
Sunil Mohan Adapa 5d96bb9250 mediawiki: Update configuration to work with version 1.4 (Trixie)
Closes: #2505

Tests:

- Install app on Bookworm. Web interface works. 'Special pages' page shows
'rename user' page. That page loads.

- Dist-upgrade to Trixie. Database upgrade is performed by FreedomBox service
soon after the distribution upgrade. App still works. 'Special pages' page shows
'rename user' page. That page loads.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-04-07 20:59:26 -04:00
Sunil Mohan Adapa 42586feee8 upgrades: Trigger special package operations in a simpler way
Closes: #2498.

- Now, as soon as service starts, it will perform force upgrade operations and
post-installation app setup operations. So, it is no loner necessary to wait for
10 minutes and trigger the one of the operations with 'apt-get update'.

- In addition, the post-installation operations are triggered more explicitly
and sooner.

Tests:

- Install MediaWiki on Bookworm. Run distribution upgrade to Trixie and it
works. Log shows that post install operations were performed and mediawiki setup
was rerun.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-04-07 20:59:24 -04:00
Sunil Mohan Adapa bc116e028a main: Run package operations immediately after startup
- When service is started, check if there are any configuration file prompts
pending and perform package updates.

- When service is started, check if there are any package version updates that
require app re-run.

- These operations are done in the same thread that does app version upgrade.
All three operations don't race against each other for apt lock. On the
downside, some operations may get delayed if previous operation fails
temporarily.

Tests:

- After service starts, after 'Setup completed' message we can see messages
'Attempting to perform post-dpkg operations', 'Completed post-dpkg operations',
'Attempting to perform upgrade', and 'Completed upgrade'.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-04-07 20:59:21 -04:00
Sunil Mohan Adapa 2ceb80607a setup: Perform package operations immediately on trigger
- Operations triggered by FreedomBox service itself such 'apt-get update' and
'apt-get install' don't cause the package operations (post-install and
post-update) to get triggered. This is due to recent implementation of a check
with the FREEDOMBOX_INVOKED environment variable. So, it fairly safe to attempt
these operations immediately as they would have been invoked from outside.

- In one case, when unattended-upgrades is triggered it could lead to
post-install trigger getting triggered too quickly. But this only leads the
operation detecting that apt is busy and performing the long wait immediately
after.

- In case of distribution upgrade, this could mean simpler reasoning and less
wait time.

Tests:

- When a package is installed, post-dpkg operations are triggered and completed
immediately. However, another apt process immediately takes lock, this results
in a waiting period.

- When a 'apt update' is run, update operations are triggered and completed
immediately.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-04-07 20:59:17 -04:00
Veiko Aasa a67885f793 upgrades: Prevent installation of the Samba Active Directory service
samba-ad-dc package depends on winbind, which breaks FreedomBox LDAP PAM
configuration. In Debian Trixie, AD server package is required by samba
package, but is not required to run Samba file server. See also Debian
bug report 1099755.

Relates to #2498.

Tests performed:
- In Debian Bookworm, install samba, do dist-upgrade, check that
samba-ad-dc and winbind packages are not insalled and adding new user
works.
- In Debian Trixie, uninstalling and installing samba app works and
after this, adding new user works.

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
2025-04-06 08:40:42 -07:00
Yurt Page b645965313 Translated using Weblate (Russian)
Currently translated at 96.3% (1760 of 1826 strings)
2025-04-06 16:46:44 +02:00
Sunil Mohan Adapa fecccd20a8 upgrades: Run distribution upgrade at around 06:00 everyday
- Instead of an arbitrary time decided by when FreedomBox service as started.

Tests:

- Add a log message before return statement. Set the system clock to 02:00 and
start service in debug mode. Wait for 3 minutes. The timer is triggered but
nothings happens.

- Set the system clock to 06:10 and start service in debug mode. Wait for 3
minutes and a distribution upgrade check is performed and a message is printed.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-04-06 09:38:03 -04:00
Sunil Mohan Adapa e039f9f061 upgrades: Show notification before, during, and after a dist upgrade
- Show a notification 60 days, 30 days, 1 week, and 1 day before distribution
upgrade. If a notification is dismissed for any of these periods don't show
again until new period starts. Override any previous notification.

- Show a notification just before the distribution upgrade showing that the
process has started. Override any previous notification.

- Show a notification after the distribution upgrade is completed that it is
done. Override any previous notification. Keep this until it is 60 days before
next distribution upgrade. If user dismisses the notification, don't show it
again.

Tests:

- Start a bookworm VM.

- Disable the auto updates. Set the date to 2025-08-01. Start the service.
Notification is not shown when distribution check is done. Enable auto updates.

- Set the date to 2025-07-01. Start the service. No notification is shown after
distribution upgrade check is run.

- Set the date to 2025-08-01. Start the service. Notification is shown when
distribution check is done. Clicking on the 'Go to Distribution Update' takes to
distribution update page.

- Set the date to 2025-08-02. Start the service. Notification is not updated
when distribution check is done. Dismiss the notification.

- Set the date to 2025-08-03. Start the service. Notification is not shown when
distribution check is done.

- Set the date to 2025-08-22. Start the service. Notification is shown when
distribution check is done. Dismiss the notification.

- Set the date to 2025-08-23. Start the service. Notification is not shown when
distribution check is done.

- Set the date to 2025-09-15. Start the service. Notification is shown when
distribution check is done.

- Set the date to 2025-09-18 18:00. Start the service. Notification is shown
when distribution check is done.

- Set the date to 2025-09-19 18:00. Start the service. Notification is shown
that distribution update has started. Distribution upgrade has started. Dismiss
this notification. Upgrade does not succeed to due timestamp miss matches with
release file.

- Once the distribution upgrade has started. Start the service. Notification is
not shown when distribution check is done.

- Rollback to a snapshot before distribution upgrade. Start the distribution
upgrade manually and notice that notification is not shown when distribution
check is done.

- Once the distribution upgrade has completed, start the service. Notification
is shown the distribution upgrade has completed when distribution check is done.
Dismiss this notification.

- Restart the service. Notification is not shown when distribution check is
done.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-04-06 09:37:59 -04:00
Sunil Mohan Adapa b6f0e7f323 upgrades: Don't ignore apt error during distribution upgrade
- This is important because only if all the command succeed, the changes to
/etc/apt/sources.list file are committed.

Tests:

- Set the time to 2025-09-20. Distribution updates are triggered. 'apt update'
fails due an mismatch with release file's timestamp. Instead of proceeding, the
distribution upgrade is halted.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-04-06 09:37:56 -04:00
Sunil Mohan Adapa 44b4c38d8a upgrades: Use special desc. for snapshots take before dist upgrade
- This will help identify these snapshots more easily in case a revert it
needed.

Tests:

- Start a distribution upgrade. Notice that the snapshot taken has special
description that it was taken before a distribution upgrade.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-04-06 09:37:53 -04:00
Sunil Mohan Adapa 30b057e7ee upgrades: Add introduction to the distribution upgrade page
- Refer to the manual and mention that users can keep their distribution for 5
years before upgrade.

Tests:

- Proofread, links work.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-04-06 09:37:50 -04:00
Sunil Mohan Adapa 22b30da8de upgrades: Revamp distribution upgrade UI
Closes: #2090

- Create a new page for distribution upgrade.

- If distribution upgrade is running show its status here without any other UI.

- Show various conditions for not allowing distribution upgrades.
  - Automatic updates disabled
  - Distribution updates disabled
  - Not enough free space.
  - Unknown or mixed distribution in sources.list.

- If distribution upgrade was interrupted, show that information here and allow
triggering distribution upgrade again. This is detected by noticing that
codename in base-files is higher than one detected in sources.list.

- If the user is not testing/unstable, show a message and don't allow
triggering.

- If next stable has not been released, don't auto-upgrade but allow manual
upgrade. Show special warnings.

- If next stable has been released but only recently, don't auto-upgrade but
allow manual upgrade.

- If next stable has been released and it has been 30 days, allow auto-upgrade
and manual upgrade.

- Seek confirmation before triggering manual upgrade. Provide appropriate
advice.

- Rely on hard-coded list of releases and their release dates instead of
querying the server.

Tests:

- When automatic updates or distribution updates are disabled, an alert message
is shown distribution upgrade page. If both are disabled, both messages show up
in the alert. The start distribution upgrade button is disabled. Clicking on the
button does not work.

- Reducing the available free disk space will cause alert message to show up and
start upgrade button to be disabled.

- When the distribution in /etc/apt/sources.list is mixed or unknown, an alert
message is shown. the start distribution upgrade button is disabled.

- When the distribution in /etc/apt/sources.list is testing or unstable, an
alert message is shown "You are on a rolling release distribution...". the start
distribution upgrade button is disabled. The current distribution is
'None (testing)' or 'None (unstable)'. Next stable distribution is Unknown.

- If get_current_release is hard-coded to return (None, 'trixie'). Then a
message is show in the distribution update page 'A previous run of distribution
update may have been interrupted. Please re-run the distribution update.' A
'Continue Distribution Update' button is shown in warning color. The button
takes to confirm page where the confirm button is shown in blue and is enabled.

- On a bookworm VM, visiting the page shows the message "You are on the latest
stable distribution...". Upgrade button shows in red. Clicking it takes to
confirmation page. The page shows a warning alert and red confirmation button.

- Setting the clock to '2025-08-21' shows the message "A new stable distribution
is available. Your FreedomBox will be update automatically in 4 weeks...".
Upgrade button shows in blue. Clicking it takes to confirmation page. The page
does show warning. The button is in blue.

- Setting the clock to '2025-09-30' shows the message "A new status distribution
is available. Your FreedomBox will be updated automatically soon...". Upgrade
button shows in blue. Clicking it takes to confirmation page. The page does show
warning. The button is in blue.

- Clicking the confirmation button starts the distribution upgrade process. This
distribution upgrade page is shown. The page shows spinner with a message and no
other UI. Page is refreshed every 3 seconds. When the distribution upgrade
process is completed, the page shows the current status.

- Killing the apt-get process during distribution upgrade stop the page refresh.
The page shows that process was interrupted and also continuation. Clicking on
the confirmation button resumes the distribution upgrade process.

- After distribution upgrade, the page shows the current distribution and next
distribution properly. There is not release date for the next distribution. A
message shows: "Next stable distribution is not available yet."

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-04-06 09:37:43 -04:00
Sunil Mohan Adapa 7c14677277 service: Notify systemd when service starts up
- Run as a Type=notify service with systemd service.

- Notify systemd just before blocking in the main thread.

- This allows systemd to catch any errors with startup of the service and log
appropriately. This also allows clients depending on making DBus calls etc. to
know that service is ready to serve requests.

- This will increase the boot time slightly as systemd will wait until
FreedomBox service to become active.

Tests:

- Raise an exception in main() during startup. Run 'systemctl start plinth'. No
error is thrown without this patch. With the patch, an error is shown.

- After 'systemctl start plinth', service shows in 'active' state.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-04-05 10:20:59 -04:00
Sunil Mohan Adapa 6cc71aa5d7 app: During startup, run post-init operation in background
- This allows for the service to become "ready" and serving web connection sooner.

- If some operations such as obtaining certificates and domain configurations
are happening, these can be shown as operations with UI notifications.

Tests:

- Running 'freedombox-develop --setup' works. 'App initialization completed'
message is printed before 'Running setup...' message. Process exits
successfully.

- Running 'freedombox-develop --setup-no-install' works. 'App initialization
completed' message is printed before 'Running setup...' message. Process exits
successfully.

- Running 'freedombox-develop' works. 'App initialization completed' message is
printed before 'Running regular setup' and 'Setup finished'. Cherrypy starts
listening before 'App initialization completed' message.

- Running a fresh VM setup works.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-04-05 10:20:56 -04:00
Sunil Mohan Adapa a8eba9e719 upgrades: Increase distribution upgrade timeout to 3 days
- 12 hours might genuinely not enough with SD cards, slow download speeds, and
large number of packages (due to apps such as GNOME).

Tests:

- None

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-04-05 08:23:18 -04:00
Sunil Mohan Adapa 2b6bac2b73 radicale: Rerun setup when package updated
Closes: #2501

Tests:

- Install radicale app.

- Install a sample package using apt. Trigger will be run and but  will
not result in radicale setup rerun.

- Make newer radicale available. This can be done by enabling testing
distribution but setting its priority low. radicale priority from testing will
be set to high. When unattened-upgrades is run, it will trigger the FreedomBox
mechanism and will result in database upgrade.

- After this install a sample package using apt. Trigger will be run but will
not result in radicale setup rerun.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-04-04 21:34:49 -04:00