Re-order package installation to have all required programs installed before use on minimal systems and remove a few more potential conflicts
This commit is contained in:
34
README.md
34
README.md
@ -10,10 +10,25 @@ The configuration was tested with a standard Debian buster and Ubuntu 18.04 LTS
|
||||
|
||||
Uninstall packages that may interfere with this setup:
|
||||
```
|
||||
DEBIAN_FRONTEND=noninteractive apt-get purge apache2* resolvconf exim4* && systemctl disable systemd-resolved.service
|
||||
DEBIAN_FRONTEND=noninteractive apt-get purge -y apache2* resolvconf exim4* nginx* libnginx-mod* php7* && systemctl disable systemd-resolved.service
|
||||
```
|
||||
|
||||
To get the latest mariadb version, you should follow these instructions to add the official tor repository for your distribution: (https://downloads.mariadb.org/mariadb/repositories/)
|
||||
The following command will install all required packages:
|
||||
```
|
||||
DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends install -y apt-transport-tor brotli bzip2 clamav-daemon clamav-freshclam clamav-milter curl dovecot-imapd dovecot-pop3d git dnsmasq hardlink haveged iptables libsasl2-modules locales locales-all logrotate lsb-release mariadb-server nano postfix postfix-mysql quota quotatool rsync ssh subversion tor unzip vim wget xz-utils zip zopfli
|
||||
```
|
||||
The following command will install all required build dependencies for nginx and php:
|
||||
```
|
||||
DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends install -y autoconf bison g++ gcc ghostscript gnupg libargon2-dev libbz2-dev libbrotli-dev libc-client2007e-dev libcurl4-openssl-dev libedit-dev libenchant-dev libffi-dev libgd-dev libgmp-dev libgpg-error-dev libgpgme-dev libkrb5-dev libldap2-dev liblmdb-dev libmagickwand-dev libmariadb-dev libonig-dev libpcre3-dev libpng-dev libpspell-dev libqdbm-dev libreadline-dev libsasl2-dev libsodium-dev libsqlite3-dev libssl-dev libsystemd-dev libtidy-dev libtool libwebp-dev libxml2-dev libxpm-dev libxslt1-dev libzip-dev make poppler-utils re2c zlib1g-dev
|
||||
```
|
||||
|
||||
To get the latest mariadb version, you should follow these instructions to add the official repository for your distribution: (https://downloads.mariadb.org/mariadb/repositories/)
|
||||
|
||||
Add torproject to our repositories:
|
||||
```
|
||||
curl -sSL https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | apt-key add -
|
||||
echo "deb https://deb.torproject.org/torproject.org `lsb_release -cs` main" >> /etc/apt/sources.list
|
||||
```
|
||||
|
||||
Install nodejs + yarn
|
||||
```
|
||||
@ -25,21 +40,6 @@ nvm install node
|
||||
npm i -g yarn
|
||||
```
|
||||
|
||||
Add torproject to our repositories:
|
||||
```
|
||||
curl -sSL https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | apt-key add -
|
||||
echo "deb https://deb.torproject.org/torproject.org `lsb_release -cs` main" >> /etc/apt/sources.list
|
||||
```
|
||||
|
||||
The following command will install all required packages:
|
||||
```
|
||||
DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends install apt-transport-tor brotli bzip2 clamav-daemon clamav-freshclam clamav-milter curl dovecot-imapd dovecot-pop3d git dnsmasq hardlink haveged iptables libsasl2-modules locales locales-all logrotate mariadb-server nano postfix postfix-mysql quota quotatool rsync ssh subversion tor unzip vim wget xz-utils zip zopfli
|
||||
```
|
||||
The following command will install all required build dependencies for nginx and php:
|
||||
```
|
||||
DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends install -y autoconf bison g++ gcc ghostscript gnupg libargon2-dev libbz2-dev libbrotli-dev libc-client2007e-dev libcurl4-openssl-dev libedit-dev libenchant-dev libffi-dev libgd-dev libgmp-dev libgpg-error-dev libgpgme-dev libkrb5-dev libldap2-dev liblmdb-dev libmagickwand-dev libmariadb-dev libonig-dev libpcre3-dev libpng-dev libpspell-dev libqdbm-dev libreadline-dev libsasl2-dev libsodium-dev libsqlite3-dev libssl-dev libsystemd-dev libtidy-dev libtool libwebp-dev libxml2-dev libxpm-dev libxslt1-dev libzip-dev make poppler-utils re2c zlib1g-dev
|
||||
```
|
||||
|
||||
Note that both, debian and the torproject have hidden service package archives, so you may want to edit /etc/apt/sources.list to load from those instead:
|
||||
```
|
||||
deb tor://vwakviie2ienjx6t.onion/debian `lsb_release -cs` main
|
||||
|
Reference in New Issue
Block a user