lbry-sdk/RUNNING.md

147 lines
3.3 KiB
Markdown
Raw Normal View History

How to watch It's a Wonderful Life via LBRY
2015-08-20 17:27:15 +02:00
2015-10-03 00:30:16 +02:00
## Quickest quick guide
2015-08-20 17:27:15 +02:00
Create a directory called lbry, and go into that directory
2015-10-03 00:23:11 +02:00
Download the file https://raw.githubusercontent.com/lbryio/lbry-setup/master/lbry_setup.sh and run it in that directory
2015-10-03 00:23:11 +02:00
Once it's done building, type:
2015-10-03 00:23:11 +02:00
2015-12-05 22:25:20 +01:00
```
lbrynet-console
2015-12-05 22:25:20 +01:00
```
2015-10-03 00:23:11 +02:00
A console application will load, and after a moment you will be presented with a ">" signifying
that the console is ready for commands.
2015-10-03 00:23:11 +02:00
If it's your first time running lbrynet-console, you should be given some credits to test the
network. If they don't show up within a minute or two, let us know, and we'll send you some.
2015-10-03 00:23:11 +02:00
After your credits have shown up, type
```
get wonderfullife
```
into the prompt and hit enter.
You will be asked if you want to cancel, change options, save, and perhaps stream the file.
Enter 's' for save and then hit enter.
The file should start downloading. Enter the command 'status' to check on the status of files
that are in the process of being downloaded.
To stop lbrynet-console, enter the command 'exit'.
2015-10-03 00:23:11 +02:00
2015-08-20 17:27:15 +02:00
2015-10-03 00:30:16 +02:00
## Slightly longer install guide
### Installing lbrycrd, the full blockchain client
Note: this process takes upwards of an hour and is not necessary to use lbrynet.
2015-08-20 17:27:15 +02:00
2015-12-05 22:25:20 +01:00
```
git clone --depth=1 -b alpha https://github.com/lbryio/lbrycrd.git
cd lbrycrd
sudo apt-get install build-essential libtool autotools-dev autoconf pkg-config libssl-dev libboost-all-dev libdb-dev libdb++-dev libqt4-dev libprotobuf-dev protobuf-compiler
./autogen.sh
2015-12-05 22:25:20 +01:00
./configure --with-incompatible-bdb --without-gui
2015-10-03 00:23:11 +02:00
make
2015-12-05 22:25:20 +01:00
```
2015-08-20 17:27:15 +02:00
When make has completed, create the directory where LBRYcrd data will be stored. ~/.lbrycrd is where LBRYcrd will look by default and so is recommended.
2015-10-03 00:23:11 +02:00
2015-12-05 22:25:20 +01:00
```
mkdir ~/.lbrycrd
2015-12-05 22:25:20 +01:00
echo 'rpcuser=rpcuser
rpcpassword=rpcpassword' > ~/.lbrycrd/lbrycrd.conf
# (use a long random password if your computer is on a network anyone else has access to. e.g, pwgen -s 20)
cd ..
2015-08-20 17:27:15 +02:00
2015-12-05 22:25:20 +01:00
```
2015-10-03 00:30:16 +02:00
### Installing lbrynet from source
Acquire the LBRYnet source code from https://github.com/lbryio/lbry
2015-10-03 00:23:11 +02:00
2015-12-05 22:25:20 +01:00
```
cd lbry
sudo apt-get install libgmp3-dev build-essential python-dev python-pip
2015-12-05 22:25:20 +01:00
```
2015-08-20 17:27:15 +02:00
(with virtualenv)
2015-10-03 00:23:11 +02:00
2015-12-05 22:25:20 +01:00
```
python-virtualenv
2015-10-03 00:23:11 +02:00
virtualenv .
2015-10-03 00:23:11 +02:00
source bin/activate
2015-10-03 00:23:11 +02:00
python setup.py install
2015-08-20 17:27:15 +02:00
2015-12-05 22:25:20 +01:00
```
to deactivate the virtualenv later:
2015-10-03 00:23:11 +02:00
2015-12-05 22:25:20 +01:00
```
deactivate
2015-12-05 22:25:20 +01:00
```
2015-08-20 17:27:15 +02:00
to reactivate it, go to the directory in which you created it and:
2015-10-03 00:23:11 +02:00
2015-12-05 22:25:20 +01:00
```
source bin/activate
2015-12-05 22:25:20 +01:00
```
2015-08-20 17:27:15 +02:00
(without virtualenv)
2015-10-03 00:23:11 +02:00
2015-12-05 22:25:20 +01:00
```
python setup.py build bdist_egg
2015-10-03 00:23:11 +02:00
sudo python setup.py install
2015-12-05 22:25:20 +01:00
```
2015-08-20 17:27:15 +02:00
2015-10-03 00:30:16 +02:00
## Slightly longer running guide
### lbrynet-console can be set to use lbrycrdd instead of the built in lightweight client.
To run lbrynet-console with lbrycrdd:
```
lbrynet-console </path/to/lbrycrdd>
```
If lbrycrdd is not already running, lbrynet will launch it at that path, and will shut it down
when lbrynet exits. If lbrycrdd is already running, lbrynet will not launch it and will not
shut it down, but it will connect to it and use it.
2015-10-02 23:08:15 +02:00
### Running lbrycrdd manually
2015-10-03 00:30:16 +02:00
From the lbrycrd directory, run:
2015-12-05 22:25:20 +01:00
```
./src/lbrycrdd -server -daemon
2015-12-05 22:25:20 +01:00
```
If you want to mine LBC, also use the flag '-gen', so:
2015-12-05 22:25:20 +01:00
```
./src/lbrycrdd -server -daemon -gen
2015-12-05 22:25:20 +01:00
```
Warning: This will put a heavy load on your CPU
2015-10-02 23:08:15 +02:00
It will take a few minutes for your client to download the whole block chain.
2015-10-02 23:08:15 +02:00
To shut lbrycrdd down: from the lbrycrd directory, run:
2015-12-05 22:25:20 +01:00
```
./src/lbrycrd-cli stop
```
Any questions or problems, email jimmy@lbry.io