I was playing around with Google Colaborary and was able to get PRPNet running.
Here are the steps to configure and run the PRPNet client on Google Colaboratory.
These are the steps to configure:
- Download the 64 bit Linux version from Primegrid PRPNet
- In Google Drive create the following folder Primegrid/PRPNet/
- Configuration information for PRPNet is available here
- Upload the following files to the folder
* llr
* pfgw64
* prpclient
* prpclient.ini
Use this python script:
import os.path
from google.colab import drive
if not os.path.exists('/content/drive/My Drive/Primegrid'):
drive.mount('/content/drive')
%cd '/content/drive/My Drive/Primegrid/PRPNet/'
print ("Copying files...")
!cp 'prpclient' /usr/local/bin/
!cp 'prpclient.ini' /usr/local/bin/
print ("Setting permissions...")
!chmod 755 *
!chmod 755 '/usr/local/bin/prpclient'
!chmod 755 '/usr/local/bin/prpclient.ini'
print ("Starting code...")
!cd '.' && LD_LIBRARY_PATH="lib:${LD_LIBRARY_PATH}" /usr/local/bin/prpclient
- Run (play button in the upper left).
- Leave the browser window open. If anything breaks, try "Runtime -> Reset all runtimes..." and start again.
- PRPNet has checkpoints, so you can restart and continue at any point.
|