Update ubuntuinstall.md
This commit is contained in:
parent
6b97b415ff
commit
eb5473bbb6
1 changed files with 27 additions and 9 deletions
|
@ -24,6 +24,8 @@
|
||||||
* Lbrynet DAEMON started on ports 3333 and 4444
|
* Lbrynet DAEMON started on ports 3333 and 4444
|
||||||
* Spee.ch started on port 3000
|
* Spee.ch started on port 3000
|
||||||
|
|
||||||
|
_note: throughout this guide you'll be replacing `{{xyz}}` with `yourvalue` omitting the brackets_
|
||||||
|
|
||||||
# 1. Setup OS and install dependencies
|
# 1. Setup OS and install dependencies
|
||||||
## OS
|
## OS
|
||||||
|
|
||||||
|
@ -54,9 +56,9 @@ ssh to username@domainname or username@ip_address
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Git, Curl, Tmux, Unzip, ffmpeg, Node
|
## Git, Curl, Unzip, ffmpeg, imagemagick, Node
|
||||||
|
|
||||||
`sudo apt-get install git curl tmux unzip ffmpeg nodejs imagemagick -y`
|
`sudo apt-get install git curl unzip ffmpeg nodejs imagemagick -y`
|
||||||
|
|
||||||
## Clone speech either from your own fork, or from the lbryio/spee.ch repo.
|
## Clone speech either from your own fork, or from the lbryio/spee.ch repo.
|
||||||
|
|
||||||
|
@ -68,7 +70,7 @@ ssh to username@domainname or username@ip_address
|
||||||
|
|
||||||
`git clone https://github.com/{{youraccount}}/spee.ch.git`
|
`git clone https://github.com/{{youraccount}}/spee.ch.git`
|
||||||
|
|
||||||
`git clone git@github.com:{{youraccount}}/spee.ch`
|
`git clone git@github.com:{{youraccount}}/spee.ch`
|
||||||
|
|
||||||
* For Publishers and Content creators - stable release
|
* For Publishers and Content creators - stable release
|
||||||
|
|
||||||
|
@ -79,17 +81,23 @@ ssh to username@domainname or username@ip_address
|
||||||
`chmod 750 -R ~/spee.ch/docs/setup`
|
`chmod 750 -R ~/spee.ch/docs/setup`
|
||||||
|
|
||||||
# 2 Secure the UFW firewall
|
# 2 Secure the UFW firewall
|
||||||
|
|
||||||
## UFW
|
## UFW
|
||||||
|
|
||||||
`sudo ~/spee.ch/docs/setup/scripts/firewall.sh`
|
`sudo ~/spee.ch/docs/setup/scripts/firewall.sh`
|
||||||
|
|
||||||
|
_if your distro isn't vanilla ubuntu 16 or 18, you may have to install it_
|
||||||
|
|
||||||
# 3 Install Caddy to handle https and reverse proxy
|
# 3 Install Caddy to handle https and reverse proxy
|
||||||
|
|
||||||
## Get Caddy
|
## Get Caddy
|
||||||
|
|
||||||
`curl https://getcaddy.com | sudo bash -s personal`
|
`curl https://getcaddy.com | sudo bash -s personal`
|
||||||
|
|
||||||
## Set up Caddy reverse proxy and ssl
|
## Set up Caddy reverse proxy and ssl
|
||||||
|
|
||||||
|
_Make Caddy's folders, copy the template, edit the Caddyfile, copy the caddyfile to its folder._
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo mkdir -p /opt/caddy/logs/
|
sudo mkdir -p /opt/caddy/logs/
|
||||||
sudo mkdir -p /opt/caddy/store/
|
sudo mkdir -p /opt/caddy/store/
|
||||||
|
@ -147,7 +155,7 @@ ssh to username@domainname or username@ip_address
|
||||||
|
|
||||||
mysql>
|
mysql>
|
||||||
|
|
||||||
`ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'your_mysql_password';`
|
`ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'yourpassword123';`
|
||||||
|
|
||||||
mysql>
|
mysql>
|
||||||
|
|
||||||
|
@ -173,14 +181,14 @@ ssh to username@domainname or username@ip_address
|
||||||
|
|
||||||
## Set up lbrynet to run as systemd service
|
## Set up lbrynet to run as systemd service
|
||||||
|
|
||||||
We'll soon update the setup scripts. Meanwhile, here's an example lbrynet.service file
|
We'll soon update the setup scripts. Meanwhile, here's an example lbrynet.service file. Again, fully replace {{USERNAME}}
|
||||||
|
|
||||||
```
|
```
|
||||||
[Unit]
|
[Unit]
|
||||||
Description="LBRYnet daemon"
|
Description="LBRYnet daemon"
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
# Change environment to /home/{{USERNAME}}
|
# Replace {{USERNAME}} with your username, e.g. `bob` or `speechuser`
|
||||||
[Service]
|
[Service]
|
||||||
Environment="HOME=/home/{{USERNAME}}"
|
Environment="HOME=/home/{{USERNAME}}"
|
||||||
ExecStart=/opt/lbry/lbrynet start
|
ExecStart=/opt/lbry/lbrynet start
|
||||||
|
@ -220,14 +228,15 @@ Now we can `lbrynet` without `/opt/lbry`. Let's make sure we're back in our home
|
||||||
These settings will prevent you and your users from spending your server's LBC on paid content. Full documentation is [here](https://lbry.tech/resources/daemon-settings).
|
These settings will prevent you and your users from spending your server's LBC on paid content. Full documentation is [here](https://lbry.tech/resources/daemon-settings).
|
||||||
|
|
||||||
~$
|
~$
|
||||||
`mkdir .lbrynet`
|
|
||||||
|
|
||||||
`cd .lbrynet`
|
`cd ~/.local/share/lbry/lbrynet`
|
||||||
|
|
||||||
`nano daemon_settings.yml`
|
`nano daemon_settings.yml`
|
||||||
|
|
||||||
copy and paste in the following code (Ctrl+Shift V)
|
copy and paste in the following code (Ctrl+Shift V)
|
||||||
|
|
||||||
|
_upnp is unnecessary for a vps but may be useful behind a properly configured NAT_
|
||||||
|
|
||||||
```
|
```
|
||||||
run_reflector_server: false
|
run_reflector_server: false
|
||||||
max_key_fee: {amount: 0, currency: LBC}
|
max_key_fee: {amount: 0, currency: LBC}
|
||||||
|
@ -236,6 +245,13 @@ Now we can `lbrynet` without `/opt/lbry`. Let's make sure we're back in our home
|
||||||
```
|
```
|
||||||
|
|
||||||
`CONTROL+O` then `CONTROL+X` to save and exit
|
`CONTROL+O` then `CONTROL+X` to save and exit
|
||||||
|
|
||||||
|
Restart lbrynet sdk:
|
||||||
|
|
||||||
|
`sudo systemctl restart lbrynet`
|
||||||
|
|
||||||
|
`sudo systemctl status lbrynet`
|
||||||
|
|
||||||
|
|
||||||
## Display wallet address to which to send 5+ LBC.
|
## Display wallet address to which to send 5+ LBC.
|
||||||
|
|
||||||
|
@ -254,6 +270,7 @@ Now we can `lbrynet` without `/opt/lbry`. Let's make sure we're back in our home
|
||||||
# 6 Set up spee.ch
|
# 6 Set up spee.ch
|
||||||
|
|
||||||
## Build it
|
## Build it
|
||||||
|
|
||||||
`cd spee.ch`
|
`cd spee.ch`
|
||||||
|
|
||||||
~/spee.ch:
|
~/spee.ch:
|
||||||
|
@ -274,7 +291,8 @@ Now we can `lbrynet` without `/opt/lbry`. Let's make sure we're back in our home
|
||||||
* Port: 3000
|
* Port: 3000
|
||||||
* Site Title: Your Site Name
|
* Site Title: Your Site Name
|
||||||
* Enter your site's domain name: https://example.com or http://localhost:3000
|
* Enter your site's domain name: https://example.com or http://localhost:3000
|
||||||
* Enter a directory where uploads should be stored: (/home/lbry/Uploads)
|
* Enter a directory where uploads should be stored: (/home/{{username}}/Uploads) *
|
||||||
|
_* if you're not sure, `pwd`_
|
||||||
|
|
||||||
`npm run build` (or `npm run dev` to build for developing)
|
`npm run build` (or `npm run dev` to build for developing)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue