Configuració del client de correu electrònic (squirremail)
Configuració del client de correu electrònic (squirremail) Mentre estava mirant informació de la instal·lació, he vist que aquest programa està desactualitzat, i no funciona amb les noves versions de Debian com la que nosaltres fem servir, ja que és Debian 12, el problema és el PHP, ja que el que bé instal·lat és el 8.2, i l’últim PHP que funciona amb el squirrmail és el 7.4, llavors el primer que farem serà desactualitzat el PHP a l’última versió utilitzable, per després fer la instal·lació. Amb les següents comandes instal·larem les dependències que necessitem, el repositori de l’antic PHP per a després instal·lar-ho. # Actualizar sistema e instalar dependencias iniciales sudo apt update sudo apt install -y lsb-release ca-certificates apt-transport-https software-properties-common gnupg # Agregar la llave GPG y el repositorio de PHP sudo curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list # Instalar PHP 7.4 y módulos necesarios para SquirrelMail sudo apt update sudo apt install -y php7.4 php7.4-common php7.4-mysql php7.4-xml php7.4-mbstring php7.4-curl libapache2-mod-php7.4 Resultats comandes # Actualizar sistema e instalar dependencias iniciales vagrant@debian:~$ sudo apt update Hit:1 http://deb.debian.org/debian bookworm InRelease Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB] Get:3 http://security.debian.org/debian-security bookworm-security InRelease [48.0 kB] Get:4 http://security.debian.org/debian-security bookworm-security/main Sources [196 kB] Get:5 http://security.debian.org/debian-security bookworm-security/main amd64 Packages [291 kB] Fetched 590 kB in 0s (1677 kB/s) Reading package lists… Done Building dependency tree… Done Reading state information… Done 26 packages can be upgraded. Run 'apt list –upgradable' to see them. vagrant@debian:~$ sudo apt install -y lsb-release ca-certificates apt-transport-https software-properties-common gnupg Reading package lists… Done Building dependency tree… Done Reading state information… Done lsb-release is already the newest version (12.0-1). lsb-release set to manually installed. ca-certificates is already the newest version (20230311+deb12u1). The following additional packages will be installed: appstream dirmngr gir1.2-glib-2.0 gir1.2-packagekitglib-1.0 gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv libappstream4 libassuan0 libduktape207 libgirepository-1.0-1 libglib2.0-0 libglib2.0-bin libglib2.0-data libgstreamer1.0-0 libksba8 libnpth0 libpackagekit-glib2-18 libpolkit-agent-1-0 libpolkit-gobject-1-0 libxmlb2 libyaml-0-2 packagekit packagekit-tools pinentry-curses polkitd python3-blinker python3-cffi-backend python3-cryptography python3-dbus python3-distro python3-gi python3-jwt python3-lazr.restfulclient python3-lazr.uri python3-oauthlib python3-software-properties python3-wadllib sgml-base xml-core Suggested packages: apt-config-icons pinentry-gnome3 tor parcimonie xloadimage scdaemon low-memory-monitor gstreamer1.0-tools pinentry-doc polkitd-pkla python-blinker-doc python-cryptography-doc python3-cryptography-vectors python-dbus-doc python3-crypto sgml-base-doc debhelper The following NEW packages will be installed: appstream apt-transport-https dirmngr gir1.2-glib-2.0 gir1.2-packagekitglib-1.0 gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm libappstream4 libassuan0 libduktape207 libgirepository-1.0-1 libglib2.0-bin libgstreamer1.0-0 libksba8 libnpth0 libpackagekit-glib2-18 libpolkit-agent-1-0 libpolkit-gobject-1-0 libxmlb2 libyaml-0-2 packagekit packagekit-tools pinentry-curses polkitd python3-blinker python3-cffi-backend python3-cryptography python3-dbus python3-distro python3-gi python3-jwt python3-lazr.restfulclient python3-lazr.uri python3-oauthlib python3-software-properties python3-wadllib sgml-base software-properties-common xml-core The following packages will be upgraded: gpgv libglib2.0-0 libglib2.0-data 3 upgraded, 46 newly installed, 0 to remove and 23 not upgraded. Need to get 16.0 MB of archives. After this operation, 36.9 MB of additional disk space will be used. Get:1 http://deb.debian.org/debian bookworm/main amd64 sgml-base all 1.31 [15.4 kB] Get:2 http://deb.debian.org/debian bookworm/main amd64 gpgv amd64 2.2.40-1.1+deb12u2 [649 kB] Get:3 http://deb.debian.org/debian bookworm/main amd64 libglib2.0-0 amd64 2.74.6-2+deb12u8 [1402 kB] Get:4 http://deb.debian.org/debian bookworm/main amd64 libxmlb2 amd64 0.3.10-2 [60.2 kB] Get:5 http://deb.debian.org/debian bookworm/main amd64 libyaml-0-2 amd64 0.2.5-1 [53.6 kB] Get:6 http://deb.debian.org/debian bookworm/main amd64 libappstream4 amd64 0.16.1-2 [199 kB] Get:7 http://deb.debian.org/debian bookworm/main amd64 appstream amd64 0.16.1-2 [407 kB] Get:8 http://deb.debian.org/debian bookworm/main amd64 apt-transport-https all 2.6.1 [25.2 kB] Get:9 http://deb.debian.org/debian bookworm/main amd64 libassuan0 amd64 2.5.5-5 [48.5 kB] Get:10 http://deb.debian.org/debian bookworm/main amd64 gpgconf amd64 2.2.40-1.1+deb12u2 [565 kB] Get:11 http://deb.debian.org/debian bookworm/main amd64 libksba8 amd64 1.6.3-2 [128 kB] Get:12 http://deb.debian.org/debian bookworm/main amd64 libnpth0 amd64 1.6-3 [19.0 kB] Get:13 http://deb.debian.org/debian bookworm/main amd64 dirmngr amd64 2.2.40-1.1+deb12u2 [793 kB] Get:14 http://deb.debian.org/debian bookworm/main amd64 libgirepository-1.0-1 amd64 1.74.0-3 [101 kB] Get:15 http://deb.debian.org/debian bookworm/main amd64 gir1.2-glib-2.0 amd64 1.74.0-3 [159 kB] Get:16 http://deb.debian.org/debian bookworm/main amd64 libpackagekit-glib2-18 amd64 1.2.6-5 [113 kB] Get:17 http://deb.debian.org/debian bookworm/main amd64 gir1.2-packagekitglib-1.0 amd64 1.2.6-5 [25.9 kB] Get:18 http://deb.debian.org/debian bookworm/main amd64 gnupg-l10n all 2.2.40-1.1+deb12u2 [1093 kB] Get:19 http://deb.debian.org/debian bookworm/main amd64 gnupg-utils amd64 2.2.40-1.1+deb12u2 [927 kB] Get:20 http://deb.debian.org/debian bookworm/main amd64 gpg amd64 2.2.40-1.1+deb12u2 [950 kB] Get:21 http://deb.debian.org/debian bookworm/main amd64 pinentry-curses amd64 1.2.1-1 [77.4 kB] Get:22 http://deb.debian.org/debian bookworm/main amd64 gpg-agent amd64 2.2.40-1.1+deb12u2 [695 kB] Get:23 http://deb.debian.org/debian bookworm/main amd64 gpg-wks-client amd64 2.2.40-1.1+deb12u2 [541 kB] Get:24 http://deb.debian.org/debian bookworm/main amd64 gpg-wks-server amd64 2.2.40-1.1+deb12u2 [531 kB] Get:25 http://deb.debian.org/debian bookworm/main amd64 gpgsm amd64 2.2.40-1.1+deb12u2 [671 kB] Get:26 http://deb.debian.org/debian bookworm/main amd64 gnupg all 2.2.40-1.1+deb12u2 [846 kB] Get:27 http://deb.debian.org/debian bookworm/main amd64 libduktape207 amd64 2.7.0-2 [134 kB] Get:28 http://deb.debian.org/debian bookworm/main amd64 libglib2.0-data all 2.74.6-2+deb12u8 [1210 kB] Get:29 http://deb.debian.org/debian bookworm/main amd64 libglib2.0-bin amd64 2.74.6-2+deb12u8 [112 kB] Get:30 http://deb.debian.org/debian bookworm/main amd64 libgstreamer1.0-0 amd64 1.22.0-2+deb12u1 [1170 kB] Get:31 http://deb.debian.org/debian bookworm/main amd64 libpolkit-gobject-1-0 amd64 122-3 [43.9 kB] Get:32 http://deb.debian.org/debian bookworm/main amd64 libpolkit-agent-1-0 amd64 122-3 [24.4 kB] Get:33 http://deb.debian.org/debian bookworm/main amd64 xml-core all 0.18+nmu1 [23.8 kB] Get:34 http://deb.debian.org/debian bookworm/main amd64 polkitd amd64 122-3 [112 kB] Get:35 http://deb.debian.org/debian bookworm/main amd64 packagekit amd64 1.2.6-5 [610 kB] Get:36 http://deb.debian.org/debian bookworm/main amd64 packagekit-tools amd64 1.2.6-5 [30.9 kB] Get:37 http://deb.debian.org/debian bookworm/main amd64 python3-blinker all 1.5-1 [14.7 kB] Get:38 http://deb.debian.org/debian bookworm/main amd64 python3-cffi-backend amd64 1.15.1-5+b1 [84.6 kB] Get:39 http://deb.debian.org/debian bookworm/main amd64 python3-cryptography amd64 38.0.4-3+deb12u1 [665 kB] Get:40 http://deb.debian.org/debian bookworm/main amd64 python3-dbus amd64 1.3.2-4+b1 [95.1 kB] Get:41 http://deb.debian.org/debian bookworm/main amd64 python3-distro all 1.8.0-1 [20.5 kB] Get:42 http://deb.debian.org/debian bookworm/main amd64 python3-gi amd64 3.42.2-3+b1 [219 kB] Get:43 http://deb.debian.org/debian bookworm/main amd64 python3-jwt all 2.6.0-1 [26.6 kB] Get:44 http://deb.debian.org/debian bookworm/main amd64 python3-lazr.uri all 1.0.6-3 [13.7 kB] Get:45 http://deb.debian.org/debian bookworm/main amd64 python3-wadllib all 1.3.6-4 [37.2 kB] Get:46 http://deb.debian.org/debian bookworm/main amd64 python3-oauthlib all 3.2.2-1 [95.4 kB] Get:47 http://deb.debian.org/debian bookworm/main amd64 python3-lazr.restfulclient all 0.14.5-1 [50.4 kB] Get:48 http://deb.debian.org/debian bookworm/main amd64 python3-software-properties all 0.99.30-4.1~deb12u1 [32.9 kB] Get:49 http://deb.debian.org/debian bookworm/main amd64 software-properties-common all 0.99.30-4.1~deb12u1 [62.1 kB] Fetched 16.0 MB in 1s (24.2 MB/s) apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct! apt-listchanges: Reading changelogs… perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_GB:en", LC_ALL = (unset), LC_MONETARY = "es_ES.UTF-8", LC_ADDRESS = "es_ES.UTF-8", LC_TELEPHONE = "es_ES.UTF-8", LC_NAME = "es_ES.UTF-8", LC_MEASUREMENT = "es_ES.UTF-8", LC_IDENTIFICATION = "es_ES.UTF-8", LC_NUMERIC = "es_ES.UTF-8", LC_PAPER = "es_ES.UTF-8", LANG = "en_GB.UTF-8" are supported and installed on your system. perl: warning: Falling back to a fallback locale ("en_GB.UTF-8"). locale: Cannot set LC_ALL to default locale: No such file or directory Extracting templates from packages: 100% Selecting previously unselected package sgml-base. (Reading database … 37468 … Read more