2015-10-02 22:38:57 +02:00
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
2015-10-02 22:38:57 +02:00
Create a directory called lbry, and go into that directory
2015-10-03 00:23:11 +02:00
2015-10-02 22:38:57 +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
2015-10-02 22:38:57 +02:00
Once it's done building, type:
2015-10-03 00:23:11 +02:00
2015-11-11 21:06:14 +01:00
./lbrycrd/src/lbrycrdd -server -daemon
2015-10-03 00:23:11 +02:00
2015-10-02 22:38:57 +02:00
lbrynet-gui
2015-10-03 00:23:11 +02:00
2015-10-02 22:38:57 +02:00
A window should show up with an entry box
2015-10-03 00:23:11 +02:00
2015-10-02 22:38:57 +02:00
Type wonderfullife into the box, hit go, and choose to stream or save
2015-10-03 00:23:11 +02:00
2015-10-02 22:38:57 +02:00
To stop lbrycrdd:
2015-10-03 00:23:11 +02:00
2015-10-02 22:38:57 +02:00
./lbrycrd/src/lbrycrd-cli stop
2015-08-20 17:27:15 +02:00
2015-10-03 00:30:16 +02:00
## Slightly longer install guide
### Installing lbrycrd from source
2015-08-20 17:27:15 +02:00
2015-10-02 22:38:57 +02:00
Acquire the LBRYcrd source code from https://github.com/lbryio/lbrycrd
2015-10-03 00:23:11 +02:00
2015-10-02 22:38:57 +02:00
cd lbrycrd
2015-10-03 00:23:11 +02:00
2015-10-02 22:38:57 +02:00
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
2015-10-03 00:23:11 +02:00
2015-10-02 22:38:57 +02:00
./autogen.sh
2015-10-03 00:23:11 +02:00
2015-10-02 22:38:57 +02:00
./configure --with-incompatible-bdb
2015-10-03 00:23:11 +02:00
2015-10-02 22:38:57 +02:00
make
2015-08-20 17:27:15 +02:00
2015-10-02 22:38:57 +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-10-02 22:38:57 +02:00
mkdir ~/.lbrycrd
2015-10-03 00:23:11 +02:00
2015-10-02 22:38:57 +02:00
vim ~/.lbrycrd/lbrycrd.conf
2015-10-03 00:23:11 +02:00
2015-10-02 22:38:57 +02:00
Add the following lines to enable the RPC interface, which will be used by lbrynet-console.
2015-08-20 17:27:15 +02:00
2015-10-02 22:38:57 +02:00
rpcuser=rpcuser
2015-10-03 00:23:11 +02:00
2015-10-02 22:38:57 +02:00
rpcpassword=rpcpassword
2015-08-20 17:27:15 +02:00
2015-10-02 22:38:57 +02:00
(use a long random password if your computer is on a network anyone else has access to)
2015-08-20 17:27:15 +02:00
2015-10-02 22:38:57 +02:00
cd ..
2015-08-20 17:27:15 +02:00
2015-10-03 00:30:16 +02:00
### Installing lbrynet from source
2015-10-02 22:38:57 +02:00
Acquire the LBRYnet source code from https://github.com/lbryio/lbry
2015-10-03 00:23:11 +02:00
2015-10-02 22:38:57 +02:00
cd lbry
sudo apt-get install libgmp3-dev build-essential python-dev python-pip
2015-08-20 17:27:15 +02:00
2015-10-02 22:38:57 +02:00
(with virtualenv)
2015-10-03 00:23:11 +02:00
2015-10-02 22:38:57 +02:00
python-virtualenv
2015-10-03 00:23:11 +02:00
2015-10-02 22:38:57 +02:00
virtualenv .
2015-10-03 00:23:11 +02:00
2015-10-02 22:38:57 +02:00
source bin/activate
2015-10-03 00:23:11 +02:00
2015-10-02 22:38:57 +02:00
python setup.py install
2015-08-20 17:27:15 +02:00
2015-10-02 22:38:57 +02:00
to deactivate the virtualenv later:
2015-10-03 00:23:11 +02:00
2015-10-02 22:38:57 +02:00
deactivate
2015-08-20 17:27:15 +02:00
2015-10-02 22:38:57 +02:00
to reactivate it, go to the directory in which you created it and:
2015-10-03 00:23:11 +02:00
2015-10-02 22:38:57 +02:00
source bin/activate
2015-08-20 17:27:15 +02:00
2015-10-02 22:38:57 +02:00
(without virtualenv)
2015-10-03 00:23:11 +02:00
2015-10-02 22:38:57 +02:00
python setup.py build bdist_egg
2015-10-03 00:23:11 +02:00
2015-10-02 22:38:57 +02:00
sudo python setup.py install
2015-08-20 17:27:15 +02:00
2015-10-03 00:30:16 +02:00
## Slightly longer running guide
2015-10-02 22:38:57 +02:00
2015-10-03 00:32:20 +02:00
In order to use lbrynet-console or lbrynet-gui, lbyrcrdd must be running.
2015-10-02 23:08:15 +02:00
2015-10-03 00:32:20 +02:00
### Running lbrycrd
2015-10-03 00:30:16 +02:00
2015-10-02 22:38:57 +02:00
If you ran the easy install script, the lbrycrd folder will be in the directory you ran lbry_setup.sh from. Otherwise it is the root of the cloned lbrycrd repository. Go to that directory.
2015-11-11 21:06:14 +01:00
./src/lbrycrdd -server -daemon
If you want to mine LBC, also use the flag '-gen', so:
2015-10-02 22:38:57 +02:00
./src/lbrycrdd -server -daemon -gen
It will take a few minutes for your client to download the whole block chain.
2015-10-02 23:08:15 +02:00
2015-10-02 22:38:57 +02:00
lbrycrdd must be running in order for lbrynet to function.
2015-10-02 23:08:15 +02:00
2015-10-02 22:38:57 +02:00
To shut lbrycrdd down: from the lbrycrd directory, run
./src/lbrycrd-cli stop
2015-10-03 00:32:20 +02:00
### Option 1) Running lbrynet-console
2015-10-02 22:38:57 +02:00
2015-10-03 00:30:16 +02:00
If you used the virtualenv instructions above, make sure the virtualenv is still active. If not, reactivate it according to the instructions above, under "Installing lbrynet from source"
2015-10-03 00:23:11 +02:00
2015-10-02 22:38:57 +02:00
In your terminal:
lbrynet-console
2015-11-11 21:06:14 +01:00
You should be presented with a prompt.
2015-10-02 23:08:15 +02:00
2015-10-02 22:38:57 +02:00
Watch It's a Wonderful Life via LBRY
2015-10-02 23:08:15 +02:00
2015-11-11 21:06:14 +01:00
Type into the prompt:
2015-10-02 23:08:15 +02:00
2015-11-11 21:06:14 +01:00
get wonderfullife
2015-10-02 23:08:15 +02:00
2015-11-11 21:06:14 +01:00
To shut it down, type ctrl-c at any time or enter 'exit' into the prompt.
2015-10-02 22:38:57 +02:00
2015-10-03 00:32:20 +02:00
### Option 2) Running lbrynet-gui
If you used the virtualenv instructions above, make sure the virtualenv is still active. If not, reactivate it according to the instructions above, under "Installing lbrynet from source"
2015-10-02 22:38:57 +02:00
In your terminal:
lbrynet-gui
A window should pop up with an entry box. Type 'wonderfullife' into the box, hit go, and then choose to save it or stream it.
Enjoy!
2015-11-11 21:06:14 +01:00
Any questions or problems, email jimmy@lbry.io