mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
Update README.md
This commit is contained in:
parent
b7838f8501
commit
71776558bf
21
README.md
21
README.md
@ -20,30 +20,21 @@ Live Demo @ heroku: https://pigallery2.herokuapp.com/
|
|||||||
|
|
||||||
|
|
||||||
## Getting started (on Raspberry Pi 1)
|
## Getting started (on Raspberry Pi 1)
|
||||||
### Install NodeJs
|
### [Install NodeJs](https://nodejs.org/en/download/)
|
||||||
Download and extract
|
Download and extract
|
||||||
```bash
|
```bash
|
||||||
cd ~
|
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
|
||||||
wget https://nodejs.org/dist/v6.10.3/node-v6.10.3-linux-armv6l.tar.gz
|
sudo apt-get install -y nodejs
|
||||||
tar -xzf node-v6.10.3-linux-armv6l.tar.gz
|
|
||||||
```
|
```
|
||||||
Copy it to /usr/local:
|
|
||||||
```bash
|
Full node install on rapberry pi description: https://www.w3schools.com/nodejs/nodejs_raspberrypi.asp
|
||||||
cd node-v6.10.3-linux-armv6l/
|
|
||||||
sudo cp -R * /usr/local/
|
|
||||||
```
|
|
||||||
Add to path. Add the following line to `~/.bashrc`
|
|
||||||
```bash
|
|
||||||
PATH=$PATH:/usr/local/bin
|
|
||||||
```
|
|
||||||
Full node install description: https://raspberrypi.stackexchange.com/questions/48303/install-nodejs-for-all-raspberry-pi
|
|
||||||
|
|
||||||
### Install PiGallery2
|
### Install PiGallery2
|
||||||
#### Install from release
|
#### Install from release
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd ~
|
cd ~
|
||||||
wget https://github.com/bpatrik/pigallery2/releases/download/1.2.0/pigallery2.zip
|
wget https://github.com/bpatrik/pigallery2/releases/download/1.5.0/pigallery2.zip
|
||||||
unzip pigallery2.zip
|
unzip pigallery2.zip
|
||||||
cd pigallery2
|
cd pigallery2
|
||||||
npm install
|
npm install
|
||||||
|
Loading…
Reference in New Issue
Block a user