Benutzer-Werkzeuge

Webseiten-Werkzeuge


Seitenleiste

linux:start

Linux Tipps

Nextcloud (Ubuntu 20.04.5 arm)

Folgende PHP-Module werden benötigt:

  • php8.0-gd
  • php8.0-zip
  • php8.0-apcu
  • php8.0-mysql
  • php8.0-fpm
  • php8.0-cli
  • php8.0-phar
  • php8.0-common
  • php8.0-intl
  • php8.0-xml
  • php8.0-imagick

/etc/php/8.0/cli/php.ini

apc.enable_cli=1

/etc/php/8.0/fpm/php.ini

memory_limit = 512M

upload_max_filesize = 20M

Prerequisites for manual installation

The Nextcloud .tar archive contains all of the required PHP modules. This section lists all required and optional PHP modules. Consult the PHP manual for more information on modules. Your Linux distribution should have packages for all required modules. You can check the presence of a module by typing php -m | grep -i . If you get a result, the module is present.

Required:

  • PHP (7.4)
  • PHP module ctype (enthalten in php7.4-common)
  • PHP module curl
  • PHP module dom
  • PHP module GD
  • PHP module hash (only on FreeBSD)
  • PHP module iconv
  • PHP module JSON
  • PHP module libxml (Linux package libxml2 must be >=2.7.0)
  • PHP module mbstring
  • PHP module openssl
  • PHP module posix
  • PHP module session
  • PHP module SimpleXML
  • PHP module XMLReader
  • PHP module XMLWriter
  • PHP module zlib

Database connectors (pick the one for your database:)

  • PHP module pdo_mysql (MySQL/MariaDB)

Recommended packages:

  • PHP module fileinfo (highly recommended, enhances file analysis performance)
  • PHP module bz2 (recommended, required for extraction of apps)
  • PHP module intl (increases language translation performance and fixes sorting of non-ASCII characters)

Required for specific apps:

  • PHP module ldap (for LDAP integration)
  • PHP module smbclient (SMB/CIFS integration, see SMB/CIFS)
  • PHP module ftp (for FTP storage / external user authentication)
  • PHP module imap (for external user authentication)
  • PHP module bcmath (for passwordless login)
  • PHP module gmp (for passwordless login)

Recommended for specific apps (optional):

  • PHP module gmp (for SFTP storage)
  • PHP module exif (for image rotation in pictures app)

For enhanced server performance (optional) select one of the following memcaches:

  • PHP module apcu (>= 4.0.6)
  • PHP module memcached
  • PHP module redis (>= 2.2.6, required for Transactional File Locking)

See Memory caching to learn how to select and configure a memcache.

For preview generation (optional):

  • PHP module imagick
  • avconv or ffmpeg
  • OpenOffice or LibreOffice

For command line processing (optional):

  • PHP module pcntl (enables command interruption by pressing ctrl-c)

For command line updater (optional):

  • PHP module phar (upgrades Nextcloud by running sudo -u www-data php /var/www/nextcloud/updater/updater.phar)

You don’t need the WebDAV module for your Web server (i.e. Apache’s mod_webdav), as Nextcloud has a built-in WebDAV server of its own, SabreDAV. If mod_webdav is enabled you must disable it for Nextcloud. (See Apache Web server configuration for an example configuration.)

Midnight Commander

Gelegentlich erscheint in der Konsole (Plasma/KDE) der mc in ganz komischen hellen Farben, nicht in dem satten Blau-Weiß, das die Traditionalisten so mögen. Hintergrund dafür ist die Farbschemawahl für die Konsole. Unter -> Einstellungen - Profil bearbeiten - Farbschema auf Weiß auf Schwarz stellen, und schon klappt das wieder. Meistens steht das Schema auf Breeze o.ä.

Server absichern

neuen Benutzer anlegen

mkdir /home/madin
useradd -g users -d /home/madin -s /bin/bash madin
passwd madin
chown madin:users /home/madin
usermod -aG sudo madin

root login per ssh verbieten

Zuallererst! Prüfen ob die Anmeldung mit dem neu angelegten Benutzer möglich ist!

Ändern in der Datei /etc/ssh/sshd-config die Zeile:

PermitRootLogin yes

in

PermitRootLogin no

Danach den sshd neu starten:

/etc/init.d/ssh reload

bzw.

/etc/init.d/sshd_reload

Fertig!

linux/start.txt · Zuletzt geändert: 2022/12/10 23:18 von admin