elog2labfolder/_build/html/installation_cups.html
author weiher
Mon, 04 Jun 2018 16:38:36 +0200
changeset 18 57431f642e82
parent 15 523ca1dfd077
permissions -rw-r--r--
Minor additions for comprehension and changes in the document structure
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
15
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
     1
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
     2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
     3
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
     4
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
     5
<html xmlns="http://www.w3.org/1999/xhtml">
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
     6
  <head>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
     7
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
     8
    <title>Printing via CUPS and attaching files to labfolder logbooks &#8212; Labfolder at FHI 1.0 documentation</title>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
     9
    <link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    10
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    11
    <script type="text/javascript">
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    12
      var DOCUMENTATION_OPTIONS = {
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    13
        URL_ROOT:    './',
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    14
        VERSION:     '1.0',
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    15
        COLLAPSE_INDEX: false,
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    16
        FILE_SUFFIX: '.html',
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    17
        HAS_SOURCE:  true,
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    18
        SOURCELINK_SUFFIX: '.txt'
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    19
      };
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    20
    </script>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    21
    <script type="text/javascript" src="_static/jquery.js"></script>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    22
    <script type="text/javascript" src="_static/underscore.js"></script>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    23
    <script type="text/javascript" src="_static/doctools.js"></script>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    24
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    25
    <link rel="index" title="Index" href="genindex.html" />
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    26
    <link rel="search" title="Search" href="search.html" />
18
57431f642e82 Minor additions for comprehension and changes in the document structure
weiher
parents: 15
diff changeset
    27
    <link rel="prev" title="Importing projects from e.g. the ELOGbook to Labfolder at the FHI" href="importing_from_elog.html" />
15
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    28
   
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    29
  <link rel="stylesheet" href="_static/custom.css" type="text/css" />
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    30
  
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    31
  
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    32
  <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    33
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    34
  </head>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    35
  <body>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    36
  
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    37
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    38
    <div class="document">
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    39
      <div class="documentwrapper">
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    40
        <div class="bodywrapper">
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    41
          <div class="body" role="main">
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    42
            
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    43
  <div class="section" id="printing-via-cups-and-attaching-files-to-labfolder-logbooks">
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    44
<h1>Printing via CUPS and attaching files to labfolder logbooks<a class="headerlink" href="#printing-via-cups-and-attaching-files-to-labfolder-logbooks" title="Permalink to this headline">¶</a></h1>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    45
<p>Follow this guide to set up CUPS virtual printers to be able to print webpages and pictures/files (PDF, PNG, JPG, PS) to one of labfolder’s logbooks, thus, creating a new entry with an attachment. If you are an admin of the labfolder VM read the section <a class="reference internal" href="#section-cups-admin"><span class="std std-ref">Set up CUPS as labfolder admin</span></a>. Users of labfolder read the section <a class="reference internal" href="#section-cups-user"><span class="std std-ref">Printing to labfolder projects</span></a>.</p>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    46
<div class="section" id="set-up-cups-as-labfolder-admin">
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    47
<span id="section-cups-admin"></span><h2>Set up CUPS as labfolder admin<a class="headerlink" href="#set-up-cups-as-labfolder-admin" title="Permalink to this headline">¶</a></h2>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    48
<p>First, you need to install CUPS on the virtual machine that runs labfolder:</p>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    49
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">cups</span> <span class="n">cups</span><span class="o">-</span><span class="n">client</span> <span class="n">cups</span><span class="o">-</span><span class="n">bsd</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    50
</pre></div>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    51
</div>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    52
<p>Next, configure <code class="docutils literal"><span class="pre">/etc/cups/cupsd.conf</span></code>:</p>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    53
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="c1"># Sample configuration file for the CUPS scheduler.  See &quot;man cupsd.conf&quot; for a</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    54
<span class="c1"># complete description of this file.</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    55
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    56
<span class="c1"># Log general information in error_log - change &quot;warn&quot; to &quot;debug&quot;</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    57
<span class="c1"># for troubleshooting...</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    58
<span class="n">LogLevel</span> <span class="n">debug</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    59
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    60
<span class="c1"># Deactivate CUPS&#39; internal logrotating, as we provide a better one, especially</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    61
<span class="c1"># LogLevel debug2 gets usable now</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    62
<span class="n">MaxLogSize</span> <span class="mi">0</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    63
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    64
<span class="c1"># Administrator user group...</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    65
<span class="n">SystemGroup</span> <span class="n">lpadmin</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    66
<span class="n">ServerAdmin</span> <span class="o">&lt;</span><span class="n">name</span><span class="o">&gt;</span><span class="nd">@fhi</span><span class="o">-</span><span class="n">berlin</span><span class="o">.</span><span class="n">mpg</span><span class="o">.</span><span class="n">de</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    67
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    68
<span class="n">HostNameLookups</span> <span class="n">On</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    69
<span class="n">ServerAlias</span> <span class="o">*</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    70
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    71
<span class="c1"># Only listen for connections from the local machine.</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    72
<span class="n">Listen</span> <span class="n">lftest</span><span class="o">.</span><span class="n">rz</span><span class="o">-</span><span class="n">berlin</span><span class="o">.</span><span class="n">mpg</span><span class="o">.</span><span class="n">de</span><span class="p">:</span><span class="mi">631</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    73
<span class="n">Listen</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">run</span><span class="o">/</span><span class="n">cups</span><span class="o">/</span><span class="n">cups</span><span class="o">.</span><span class="n">sock</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    74
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    75
<span class="c1"># Show shared printers on the local network.</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    76
<span class="n">Browsing</span> <span class="n">Off</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    77
<span class="n">BrowseOrder</span> <span class="n">allow</span><span class="p">,</span><span class="n">deny</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    78
<span class="n">BrowseAllow</span> <span class="nb">all</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    79
<span class="n">BrowseLocalProtocols</span> <span class="n">CUPS</span> <span class="n">dnssd</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    80
<span class="n">BrowseAddress</span> <span class="nd">@LOCAL</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    81
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    82
<span class="c1"># Default authentication type, when authentication is required...</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    83
<span class="n">DefaultAuthType</span> <span class="n">Basic</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    84
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    85
<span class="c1"># Web interface setting...</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    86
<span class="n">WebInterface</span> <span class="n">Yes</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    87
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    88
<span class="c1"># Restrict access to the server...</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    89
<span class="o">&lt;</span><span class="n">Location</span> <span class="o">/&gt;</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    90
  <span class="n">Satisfy</span> <span class="n">All</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    91
  <span class="n">Allow</span> <span class="n">localhost</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    92
  <span class="n">Allow</span> <span class="mf">141.14</span><span class="o">.*</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    93
  <span class="n">Allow</span> <span class="mf">172.16</span><span class="o">.*</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    94
  <span class="n">Allow</span> <span class="mf">192.</span><span class="o">*</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    95
  <span class="n">Allow</span> <span class="nb">all</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    96
  <span class="c1"># Allow shared printing and remote administration...</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    97
  <span class="n">Order</span> <span class="n">allow</span><span class="p">,</span><span class="n">deny</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    98
  <span class="n">Allow</span> <span class="nb">all</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
    99
<span class="o">&lt;/</span><span class="n">Location</span><span class="o">&gt;</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   100
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   101
<span class="c1"># Restrict access to the admin pages...</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   102
<span class="o">&lt;</span><span class="n">Location</span> <span class="o">/</span><span class="n">admin</span><span class="o">&gt;</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   103
  <span class="n">Order</span> <span class="n">deny</span><span class="p">,</span><span class="n">allow</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   104
  <span class="n">Satisfy</span> <span class="n">All</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   105
  <span class="n">AuthType</span> <span class="n">Basic</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   106
  <span class="n">Require</span> <span class="n">user</span> <span class="nd">@SYSTEM</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   107
  <span class="n">Deny</span> <span class="n">All</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   108
  <span class="n">Allow</span> <span class="n">localhost</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   109
  <span class="n">Allow</span> <span class="mf">141.14</span><span class="o">.*</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   110
  <span class="n">Allow</span> <span class="mf">172.16</span><span class="o">.*</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   111
<span class="o">&lt;/</span><span class="n">Location</span><span class="o">&gt;</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   112
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   113
<span class="c1"># Restrict access to configuration files...</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   114
<span class="o">&lt;</span><span class="n">Location</span> <span class="o">/</span><span class="n">admin</span><span class="o">/</span><span class="n">conf</span><span class="o">&gt;</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   115
  <span class="n">Order</span> <span class="n">deny</span><span class="p">,</span><span class="n">allow</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   116
  <span class="n">AuthType</span> <span class="n">Default</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   117
  <span class="n">Require</span> <span class="n">user</span> <span class="nd">@SYSTEM</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   118
  <span class="n">Satisfy</span> <span class="n">All</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   119
  <span class="n">Require</span> <span class="n">user</span> <span class="n">root</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   120
  <span class="n">Deny</span> <span class="n">All</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   121
  <span class="n">Allow</span> <span class="mf">127.0</span><span class="o">.</span><span class="mf">0.1</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   122
  <span class="n">Allow</span> <span class="mf">141.14</span><span class="o">.*</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   123
  <span class="n">Allow</span> <span class="mf">172.16</span><span class="o">.*</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   124
<span class="o">&lt;/</span><span class="n">Location</span><span class="o">&gt;</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   125
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   126
<span class="c1"># Set the default printer/job policies...</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   127
<span class="o">&lt;</span><span class="n">Policy</span> <span class="n">default</span><span class="o">&gt;</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   128
  <span class="o">...</span> <span class="c1"># probably as in the original</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   129
<span class="o">&lt;/</span><span class="n">Policy</span><span class="o">&gt;</span>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   130
</pre></div>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   131
</div>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   132
<p>Change the <em>Server Admin</em>’s e-mail address and the server that shall be listened to (see the <code class="docutils literal"><span class="pre">Listen</span></code> statement). Set <code class="docutils literal"><span class="pre">FileDevice</span> <span class="pre">Yes</span></code> in <code class="docutils literal"><span class="pre">/etc/cups/cups-files.conf</span></code>. Now, create a directory where all printers will go, e.g. <code class="docutils literal"><span class="pre">/usr/local/labfolder/printers</span></code>.</p>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   133
<p>Get the package for creating new printers from git:</p>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   134
<div class="highlight-default"><div class="highlight"><pre><span></span>labfolder@lftest:~$ git clone https://github.molgen.mpg.de/weiher/cupsPrinters
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   135
labfolder@lftest:~$ ls
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   136
cupsPrinters  labfolder
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   137
</pre></div>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   138
</div>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   139
<p>The only file you need to adapt is <code class="docutils literal"><span class="pre">newPrinter.sh</span></code>. It is not a must but it is suggested to name the printers like the projects. For example, the FEL projects <em>operating</em> and <em>installation</em> could be placed at <code class="docutils literal"><span class="pre">.../printers/FEL/operating</span></code> and <code class="docutils literal"><span class="pre">.../printers/FEL/installation</span></code>. Execute the script with sudo rights:</p>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   140
<div class="highlight-default"><div class="highlight"><pre><span></span>labfolder@lftest:~/cupsPrinters$ sudo ./newPrinter.sh
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   141
</pre></div>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   142
</div>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   143
<p>To prevent <code class="docutils literal"><span class="pre">DENIED</span></code> errors from apparmor install and set the following and restart the CUPS server:</p>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   144
<div class="highlight-default"><div class="highlight"><pre><span></span>$ sudo apt-get install apparmor-utils apparmor-profiles
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   145
$ sudo aa-complain cupsd
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   146
$ sudo service cups restart
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   147
</pre></div>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   148
</div>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   149
<p>In case you need to debug some logfiles can be found here: <em>/var/log/syslog</em>, <em>/var/log/cups/error_log</em> and <em>/var/log/cups/acces_log</em></p>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   150
<p>One last change is that you need to once add a user named <em>Printer Print</em> (firstname lastname) to the labfolder database. This can be done manually inside the DB by this command:</p>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   151
<div class="highlight-default"><div class="highlight"><pre><span></span>$ mysql -u root -p
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   152
Enter password:
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   153
...
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   154
mysql&gt; use labfolder;
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   155
mysql&gt; INSERT INTO user (email, password, firstname, lastname, signupTimestamp, maxStorage) VALUES (&#39;printer@fhi-berlin.mpg.de&#39;, &#39;91a13f2aba4a35b00c35dfacadd1d75f4a5171dfa7a465fca9c40e6b007ce982&#39;, &#39;Printer&#39;, &#39;Print&#39;, &#39;2018-03-21 10:54:00&#39;, &#39;10000000&#39;);
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   156
</pre></div>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   157
</div>
18
57431f642e82 Minor additions for comprehension and changes in the document structure
weiher
parents: 15
diff changeset
   158
<p>Das Passwort steht für “test1234”. Der entsprechende Hash-Wert im MySQL-Kommando wurde von Florian Hauer (labfolder) erstellt.</p>
15
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   159
</div>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   160
<div class="section" id="printing-to-labfolder-projects">
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   161
<span id="section-cups-user"></span><h2>Printing to labfolder projects<a class="headerlink" href="#printing-to-labfolder-projects" title="Permalink to this headline">¶</a></h2>
18
57431f642e82 Minor additions for comprehension and changes in the document structure
weiher
parents: 15
diff changeset
   162
<p>The last thing you need to do is to set up a printer, for example, <em>operating</em> on your local machine. In Ubuntu Gnome hit Alt+F2 keys and enter <code class="docutils literal"><span class="pre">system-config-printer</span></code>. In this printer config interface add a new printer <em>operating</em> as follows:</p>
15
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   163
<a class="reference internal image-reference" href="_images/create_local_printer01.png"><img alt="_images/create_local_printer01.png" class="align-center" src="_images/create_local_printer01.png" style="width: 70%;" /></a>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   164
<a class="reference internal image-reference" href="_images/create_local_printer02.png"><img alt="_images/create_local_printer02.png" class="align-center" src="_images/create_local_printer02.png" style="width: 70%;" /></a>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   165
<a class="reference internal image-reference" href="_images/create_local_printer03.png"><img alt="_images/create_local_printer03.png" class="align-center" src="_images/create_local_printer03.png" style="width: 70%;" /></a>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   166
<a class="reference internal image-reference" href="_images/create_local_printer04.png"><img alt="_images/create_local_printer04.png" class="align-center" src="_images/create_local_printer04.png" style="width: 70%;" /></a>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   167
<a class="reference internal image-reference" href="_images/create_local_printer05.png"><img alt="_images/create_local_printer05.png" class="align-center" src="_images/create_local_printer05.png" style="width: 70%;" /></a>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   168
<a class="reference internal image-reference" href="_images/create_local_printer06.png"><img alt="_images/create_local_printer06.png" class="align-center" src="_images/create_local_printer06.png" style="width: 70%;" /></a>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   169
<a class="reference internal image-reference" href="_images/create_local_printer07.png"><img alt="_images/create_local_printer07.png" class="align-center" src="_images/create_local_printer07.png" style="width: 70%;" /></a>
18
57431f642e82 Minor additions for comprehension and changes in the document structure
weiher
parents: 15
diff changeset
   170
<p>Now, just select this printer when printing a webpage or a picture to a labfolder project.</p>
15
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   171
</div>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   172
</div>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   173
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   174
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   175
          </div>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   176
        </div>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   177
      </div>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   178
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   179
        <div class="sphinxsidebarwrapper"><div class="relations">
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   180
<h3>Related Topics</h3>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   181
<ul>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   182
  <li><a href="index.html">Documentation overview</a><ul>
18
57431f642e82 Minor additions for comprehension and changes in the document structure
weiher
parents: 15
diff changeset
   183
      <li>Previous: <a href="importing_from_elog.html" title="previous chapter">Importing projects from e.g. the ELOGbook to Labfolder at the FHI</a></li>
15
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   184
  </ul></li>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   185
</ul>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   186
</div>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   187
<div id="searchbox" style="display: none" role="search">
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   188
  <h3>Quick search</h3>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   189
    <form class="search" action="search.html" method="get">
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   190
      <div><input type="text" name="q" /></div>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   191
      <div><input type="submit" value="Go" /></div>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   192
      <input type="hidden" name="check_keywords" value="yes" />
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   193
      <input type="hidden" name="area" value="default" />
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   194
    </form>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   195
</div>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   196
<script type="text/javascript">$('#searchbox').show(0);</script>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   197
        </div>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   198
      </div>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   199
      <div class="clearer"></div>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   200
    </div>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   201
    <div class="footer">
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   202
      &copy;2018, Stefan Weiher.
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   203
      
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   204
      |
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   205
      Powered by <a href="http://sphinx-doc.org/">Sphinx 1.6.6</a>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   206
      &amp; <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.10</a>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   207
      
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   208
      |
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   209
      <a href="_sources/installation_cups.rst.txt"
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   210
          rel="nofollow">Page source</a>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   211
    </div>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   212
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   213
    
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   214
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   215
    
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   216
  </body>
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents:
diff changeset
   217
</html>