Changes between Version 11 and Version 12 of DRM4G/Installation


Ignore:
Timestamp:
Aug 23, 2016 1:10:25 PM (5 years ago)
Author:
minondoa
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DRM4G/Installation

    v11 v12  
    1414}}}
    1515
    16 {{{#!comment
    17 which pip or pip -V?
    18 }}}
    19 
    2016In the case you don't have it, follow the instructions shown in their [[https://pip.pypa.io/en/stable/installing/|documentation page]] to install it.
    2117
    22 * '''With root authorization''': You can go ahead and run `sudo pip install drm4g`
     18* '''With root access''': You can go ahead and run `sudo pip install drm4g`
    2319* '''In a [https://virtualenv.pypa.io/en/stable/  virtual environment]''': Just run `pip install drm4g`
    24 * '''Without root authorization''': Run `pip install drm4g --user`
    25 
    26 {{{#!comment
    27 - I'm not sure if I should use "authorization", "permissions", "privileges", "access"...
    28 }}}
     20* '''Without root access''': Run `pip install drm4g --user`
    2921
    3022
     
    4941This will install your binary files and libraries under the specified path, but DRM4G will still not be able to run.
    5042
    51 * You want your system to be aware of where the DRM4G package is, so that python may be able to import it. You'll have to define the environment variable '''$PYTHONPATH''', which will have to point to the library folder under the path you chose. At the end of the installation, you'll se a message that will inform you on how to do that.
     43* You want your system to be aware of where the DRM4G package is, so that python may be able to import it. You'll have to define the environment variable '''PYTHONPATH''', which will have to point to the library folder under the path you chose. At the end of the installation, you'll see a message that will inform you on how to do that.
    5244
    53 * The next step is to have it know that DRM4G has been installed. You'll have to make sure that the directory you choose is added in your environment variable '''$PATH''' or you could have it added to your '''sys.path'''. The folder we are interested in is the "''bin''" folder inside your directory.
     45* The next step is to have it know that DRM4G has been installed. You'll have to make sure that the directory you choose is added in your environment variable '''PATH''' or you could have it added to your '''sys.path'''. The folder we are interested in is the "''bin''" folder inside your directory.
    5446
    55 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.
     47During the installation, you will be prompted with a question about modifying your `$HOME/.profile` or `$HOME/.bashrc` file. If you accept, you will only have to define these two environment variables the first time.
    5648 * Alternatively you can access the file yourself, which is under the home directory, and make the necessary changes.
    57 
    58 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.
    59 {{{#!comment
    60 This paragraph should maybe go in another section. Something called extras or something of the sort.
    61 }}}
    6249
    6350
     
    6956{{{
    7057#!sh
    71 sudo apt-get update
    7258sudo apt-get install python-paramiko
    7359sudo apt-get install python-docopt
    74 }}}
    75 {{{#!comment
    76 The idea of not using pip is to not add another "dependency", but doing it like this I'm "forcing" the user to have apt
    7760}}}
    7861
     
    8871After you extract the package, in a terminal, head into the folder and run:
    8972
    90 * '''With root authorization''':  `sudo python setup.py install`
    91 * '''In a virtual environment''':  `python setup.py install`
    92 * '''Without root authorization''':  `python setup.py install --user`
     73* '''With root access''':  `sudo python setup.py install`
     74* '''In a [https://virtualenv.pypa.io/en/stable/  virtual environment]''':  `python setup.py install`
     75* '''Without root access''':  `python setup.py install --user`
    9376
    9477
     
    10891
    10992There are other considerations to have in mind, but they are the same as the ones explained [#customInstall above].
     93
     94[[NoteBox(tip, By default your configuration files will be located in `$HOME/.drm4g/` 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.)]]