diff --git a/README.md b/README.md index 2d5cb03..7973be9 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,30 @@ sudo apt-get update sudo apt-get install firmware-iwlwifi ``` +### MongoDB + +MongoDB doesn't have official packages for Debian Stretch at this moment, so we'd have to install from the Jessie repository which will throw an error saying the dependency `libssl1.0.0` will not be satisfied. + +#### Installing MongoDB on Debian Stretch + +```shell +# Get signing keys +sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5 + +# Add the Debian 8 repo +echo "deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.6 main" | sudo tee + +# Download libssl1.0.0 deb file and install +TEMP_DEB="$(mktemp)" && +wget -O "$TEMP_DEB" 'security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb7u3_amd64.deb' && +sudo dpkg -i "$TEMP_DEB" +rm -f "$TEMP_DEB" + +# Install mongodb +sudo apt-get update +sudo apt-get install mongodb-org +``` + ### nodejs nodejs apt repository is several years behind, so add nodesource repos. nodejs 9.x (current version) @@ -84,30 +108,6 @@ export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" ``` -### MongoDB - -MongoDB doesn't have official packages for Debian Stretch at this moment, so we'd have to install from the Jessie repository which will throw an error saying the dependency `libssl1.0.0` will not be satisfied. - -#### Installing MongoDB on Debian Stretch - -```shell -# Get signing keys -sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5 - -# Add the Debian 8 repo -echo "deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.6 main" | sudo tee - -# Download libssl1.0.0 deb file and install -TEMP_DEB="$(mktemp)" && -wget -O "$TEMP_DEB" 'security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb7u3_amd64.deb' && -sudo dpkg -i "$TEMP_DEB" -rm -f "$TEMP_DEB" - -# Install mongodb -sudo apt-get update -sudo apt-get install mongodb-org -``` - ### PulseAudio Had an issue on Debian Stretch on my Dell PC where pulseaudio daemon won't autostart. This solved the problem each time: