fix readme command for offline installing

pull/129/head
BrianSipple 8 years ago
parent ebb58da840
commit 2fa6bf3eb0

@ -1,33 +1,33 @@
## Wie kann ich dieses Buch offline lesen? ## Wie kann ich dieses Buch offline lesen?
Nehmen wir einmal an, Du gehst auf eine längere Reise und möchtest Dich unterwegs in die Shader-Programmierung einarbeiten. In diesem Fall könntest Du eine Kopie dieses Buches auf Deinen Rechner laden und diese über einen lokalen Server anzeigen lassen. Nehmen wir einmal an, Du gehst auf eine längere Reise und möchtest Dich unterwegs in die Shader-Programmierung einarbeiten. In diesem Fall könntest Du eine Kopie dieses Buches auf Deinen Rechner laden und diese über einen lokalen Server anzeigen lassen.
Alles, was Du dafür benötigst, ist Python 2.6 und ein Client-Programm für GIT. Auf Computern mit MacOS und auf dem RaspberryPi ist Python standardmäßig bereits vorinstalliert. Dort musst Du lediglich den GIT-Client zusätzlich installieren. Alles, was Du dafür benötigst, ist Python 2.6 und ein Client-Programm für GIT. Auf Computern mit MacOS und auf dem RaspberryPi ist Python standardmäßig bereits vorinstalliert. Dort musst Du lediglich den GIT-Client zusätzlich installieren.
Unter **MacOSX** benötigst Du dafür [homebrew](http://brew.sh/). Sobald das Paket installiert ist, kannst Du in einem Terminal-Fenster folgendes eingeben: Unter **MacOSX** benötigst Du dafür [homebrew](http://brew.sh/). Sobald das Paket installiert ist, kannst Du in einem Terminal-Fenster folgendes eingeben:
```bash ```bash
brew update brew update
brew upgrade brew upgrade
brew install git brew install git
``` ```
Auf einem **RaspberryPi** gibst Du folgendes ein: Auf einem **RaspberryPi** gibst Du folgendes ein:
```bash ```bash
sudo apt-get update sudo apt-get update
sudo apt-get upgrade sudo apt-get upgrade
sudo apt-get install git-core glslviewer sudo apt-get install git-core glslviewer
``` ```
Hast Du alles beisammen, musst Du lediglich folgende Befehle aufrufen, um das *Book of Shaders* per GIT auf Deinen Rechner zu laden und den Server zur Anzeige des Inhalts zu starten: Hast Du alles beisammen, musst Du lediglich folgende Befehle aufrufen, um das *Book of Shaders* per GIT auf Deinen Rechner zu laden und den Server zur Anzeige des Inhalts zu starten:
```bash ```bash
cd ~ cd ~
git clone --recursive https://github.com/patriciogonzalezvivo/thebookofshaders.git git clone --recursive https://github.com/patriciogonzalezvivo/thebookofshaders.git
cd thebookofshaders cd thebookofshaders
git submodule foreach git pull git submodule foreach git submodule init && git submodule update
php -S localhost:8000 php -S localhost:8000
``` ```
Nutze dann den vorinstallierten Internet-Browser auf Deinem Rechner zur Anzeige des Buches durch Eingabe folgender URL [```http://localhost:8000/```](http://localhost:8000/) Nutze dann den vorinstallierten Internet-Browser auf Deinem Rechner zur Anzeige des Buches durch Eingabe folgender URL [```http://localhost:8000/```](http://localhost:8000/)

@ -9,7 +9,7 @@ Su **MacOSX** siate sicuri di avere installato [homebrew](http://brew.sh/) e qui
```bash ```bash
brew update brew update
brew upgrade brew upgrade
brew install git brew install git
``` ```
Su **Raspberry Pi** è necessario fare: Su **Raspberry Pi** è necessario fare:
@ -26,8 +26,8 @@ Una volta che avete installato tutto, non vi resta che fare:
cd ~ cd ~
git clone --recursive https://github.com/patriciogonzalezvivo/thebookofshaders.git git clone --recursive https://github.com/patriciogonzalezvivo/thebookofshaders.git
cd thebookofshaders cd thebookofshaders
git submodule foreach git pull git submodule foreach git submodule init && git submodule update
php -S localhost:8000 php -S localhost:8000
``` ```
Quindi aprite il browser e inserite [```http://localhost:8000/```](http://localhost:8000/) Quindi aprite il browser e inserite [```http://localhost:8000/```](http://localhost:8000/)

@ -9,7 +9,7 @@ In **MacOSX** be sure to have [homebrew](http://brew.sh/) installed and then on
```bash ```bash
brew update brew update
brew upgrade brew upgrade
brew install git brew install git
``` ```
On **Raspberry Pi** you need to do: On **Raspberry Pi** you need to do:
@ -26,8 +26,8 @@ Once you have everything installed you just need to do:
cd ~ cd ~
git clone --recursive https://github.com/patriciogonzalezvivo/thebookofshaders.git git clone --recursive https://github.com/patriciogonzalezvivo/thebookofshaders.git
cd thebookofshaders cd thebookofshaders
git submodule foreach git pull git submodule foreach git submodule init && git submodule update
php -S localhost:8000 php -S localhost:8000
``` ```
Then open your browser to [```http://localhost:8000/```](http://localhost:8000/) Then open your browser to [```http://localhost:8000/```](http://localhost:8000/)

Loading…
Cancel
Save