WikiPrint - from Polar Technologies

DRM4G Installation

There are several ways in which you can install DRM4G.

pip

The easiest way would be to install it using the command pip install drm4g. To check if you have this tool installed just open a terminal and execute which pip. If you have it installed you'll see something like this:

$ which pip
/usr/bin/pip

In the case you don't have it, follow the instructions shown in their ?documentation page.

Install in custom directory

Sometimes you will want to specify a certain directory in which to install DRM4G. To do that you'll have to bear in mind a couple of details.

The installation command would have to be:

$ pip install drm4g --install-option="--prefix=/your/path" -v

or

$ pip install drm4g --install-option="--home=/your/path" -v

This will install your binary files and libraries under the specified path, but DRM4G will still not be able to run.

During the installation, you will be prompted with a question about modifying your .profile or .bashrc file. If you accept, you will only have to define these two environment variables the first time.

Finally, if you wish to define where your configuration and log files will be created, before starting DRM4G with drm4g start you should set the environment variable $DRM4G_DIR with whichever directory you wish.

Without pip

First and foremost you would have to make sure you have installed the necessary requirements. Those are PyCrypto, Paramiko and docopt.

sudo apt-get update
sudo apt-get install python-crypto
sudo apt-get install python-paramiko
sudo apt-get install python-docopt

Once that has been taken care of, you can download the source code from ?here.

After you extract the package, in a terminal, head into the folder and run:

Install in custom directory

If you want to use a specific directory as the installation path, you can do it like this:

python setup.py install --prefix=/your/path

or

python setup.py install --home=/your/path

There are other considerations to have in mind, but they are the same as the ones explained above.