elog2labfolder/_build/latex/elog2labfolder.tex
author weiher
Tue, 27 Mar 2018 16:07:14 +0200
changeset 15 523ca1dfd077
parent 13 a21f3604f1db
child 18 57431f642e82
permissions -rw-r--r--
added new chapter on installation of CUPS printers
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
     1
%% Generated by Sphinx.
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
     2
\def\sphinxdocclass{report}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
     3
\documentclass[letterpaper,10pt,english]{sphinxmanual}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
     4
\ifdefined\pdfpxdimen
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
     5
   \let\sphinxpxdimen\pdfpxdimen\else\newdimen\sphinxpxdimen
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
     6
\fi \sphinxpxdimen=.75bp\relax
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
     7
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
     8
\usepackage[utf8]{inputenc}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
     9
\ifdefined\DeclareUnicodeCharacter
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    10
 \ifdefined\DeclareUnicodeCharacterAsOptional
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    11
  \DeclareUnicodeCharacter{"00A0}{\nobreakspace}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    12
  \DeclareUnicodeCharacter{"2500}{\sphinxunichar{2500}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    13
  \DeclareUnicodeCharacter{"2502}{\sphinxunichar{2502}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    14
  \DeclareUnicodeCharacter{"2514}{\sphinxunichar{2514}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    15
  \DeclareUnicodeCharacter{"251C}{\sphinxunichar{251C}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    16
  \DeclareUnicodeCharacter{"2572}{\textbackslash}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    17
 \else
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    18
  \DeclareUnicodeCharacter{00A0}{\nobreakspace}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    19
  \DeclareUnicodeCharacter{2500}{\sphinxunichar{2500}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    20
  \DeclareUnicodeCharacter{2502}{\sphinxunichar{2502}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    21
  \DeclareUnicodeCharacter{2514}{\sphinxunichar{2514}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    22
  \DeclareUnicodeCharacter{251C}{\sphinxunichar{251C}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    23
  \DeclareUnicodeCharacter{2572}{\textbackslash}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    24
 \fi
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    25
\fi
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    26
\usepackage{cmap}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    27
\usepackage[T1]{fontenc}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    28
\usepackage{amsmath,amssymb,amstext}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    29
\usepackage{babel}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    30
\usepackage{times}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    31
\usepackage[Bjarne]{fncychap}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    32
\usepackage[dontkeepoldnames]{sphinx}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    33
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    34
\usepackage{geometry}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    35
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    36
% Include hyperref last.
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    37
\usepackage{hyperref}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    38
% Fix anchor placement for figures with captions.
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    39
\usepackage{hypcap}% it must be loaded after hyperref.
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    40
% Set up styles of URL: it should be placed after hyperref.
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    41
\urlstyle{same}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    42
\addto\captionsenglish{\renewcommand{\contentsname}{Contents:}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    43
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    44
\addto\captionsenglish{\renewcommand{\figurename}{Fig.}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    45
\addto\captionsenglish{\renewcommand{\tablename}{Table}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    46
\addto\captionsenglish{\renewcommand{\literalblockname}{Listing}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    47
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    48
\addto\captionsenglish{\renewcommand{\literalblockcontinuedname}{continued from previous page}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    49
\addto\captionsenglish{\renewcommand{\literalblockcontinuesname}{continues on next page}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    50
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    51
\addto\extrasenglish{\def\pageautorefname{page}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    52
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    53
\setcounter{tocdepth}{1}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    54
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    55
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    56
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    57
\title{Labfolder at FHI Documentation}
15
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
    58
\date{Mar 27, 2018}
3
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    59
\release{1.0}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    60
\author{Stefan Weiher}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    61
\newcommand{\sphinxlogo}{\vbox{}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    62
\renewcommand{\releasename}{Release}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    63
\makeindex
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    64
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    65
\begin{document}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    66
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    67
\maketitle
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    68
\sphinxtableofcontents
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    69
\phantomsection\label{\detokenize{index::doc}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    70
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    71
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    72
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    73
\chapter{Installation of labfolder}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    74
\label{\detokenize{installation:welcome-to-elog2labfolder-s-documentation}}\label{\detokenize{installation::doc}}\label{\detokenize{installation:installation-of-labfolder}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    75
Labfolder is easy to install. Follow the instructions given in the \sphinxstyleemphasis{labfolder Installation Manual}. The broad steps are: \sphinxstylestrong{install MySQL, docker and labolder; configure labfolder via the server.cnf file}. This labfolder config file could look like this:
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    76
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    77
\fvset{hllines={, ,}}%
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    78
\begin{sphinxVerbatim}[commandchars=\\\{\}]
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    79
\PYGZsh{} Network settings
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    80
DEFAULT\PYGZus{}HTTP\PYGZus{}PROTOCOL=https://
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    81
DEFAULT\PYGZus{}DOMAIN=labfolder.rz\PYGZhy{}berlin.mpg.de
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    82
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    83
\PYGZsh{} JDBC Properties
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    84
JDBC\PYGZus{}SERVER\PYGZus{}TIMEZONE=Europe/Berlin
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    85
JDBC\PYGZus{}DATABASE\PYGZus{}URL=jdbc:mysql://localhost:3306/labfolder?useUnicode=true\PYGZam{}characterEncoding=UTF\PYGZhy{}8
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    86
JDBC\PYGZus{}USERNAME=labfolder
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    87
JDBC\PYGZus{}PASSWORD=fhilab
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    88
JDBC\PYGZus{}SCHEMA\PYGZus{}NAME=labfolder
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    89
\PYGZsh{}REMOVE\PYGZus{}ABANDONED\PYGZus{}TIMEOUT=60
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    90
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    91
\PYGZsh{} Mail client properties
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    92
MAIL\PYGZus{}STARTTLS=false
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    93
MAIL\PYGZus{}AUTHENTICATION\PYGZus{}ENABLE=false
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    94
MAIL\PYGZus{}HOST=mail.fhi\PYGZhy{}berlin.mpg.de
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    95
MAIL\PYGZus{}PORT=25
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    96
\PYGZsh{}MAIL\PYGZus{}USERNAME=
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    97
\PYGZsh{}MAIL\PYGZus{}PASSWORD=
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    98
MAIL\PYGZus{}EMAIL=ppb@fhi\PYGZhy{}berlin.mpg.de
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
    99
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   100
\PYGZsh{} Server Event logging
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   101
LOG\PYGZus{}TO\PYGZus{}FILE=true
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   102
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   103
\PYGZsh{}Maximum upload file size
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   104
FILEUPLOAD\PYGZus{}MAXUPLOADSIZE=25000000
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   105
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   106
\PYGZsh{} User and group control
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   107
DEFAULT\PYGZus{}GROUP\PYGZus{}SIZE=50
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   108
DEFAULT\PYGZus{}GROUP\PYGZus{}TYPE\PYGZus{}MAXI=true
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   109
DEFAULT\PYGZus{}USER\PYGZus{}STORAGE=3221225472
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   110
FEATURE\PYGZus{}GLOBAL\PYGZus{}PREVENT\PYGZus{}DELETE\PYGZus{}CONTENT=false
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   111
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   112
\PYGZsh{} Terms and Privacy links
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   113
TERMS\PYGZus{}OF\PYGZus{}USE\PYGZus{}LINK=https://www.labfolder.com/terms\PYGZhy{}external\PYGZhy{}servers/
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   114
PRIVACY\PYGZus{}LINK=https://www.labfolder.com/privacy\PYGZhy{}external\PYGZhy{}servers/
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   115
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   116
\PYGZsh{} LDAP Authentication
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   117
FEATURE\PYGZus{}LDAP\PYGZus{}AUTHENTICATION=true
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   118
LDAP\PYGZus{}URL=ldap://ldap.rz\PYGZhy{}berlin.mpg.de:389
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   119
LDAP\PYGZus{}BASE=ou=people,dc=ppb,dc=rz\PYGZhy{}berlin,dc=mpg,dc=de
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   120
\PYGZsh{}LDAP\PYGZus{}SERVER\PYGZus{}TYPE=
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   121
LDAP\PYGZus{}USER\PYGZus{}DN=cn=pwCheck,dc=rz\PYGZhy{}berlin,dc=mpg,dc=de
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   122
LDAP\PYGZus{}PASSWORD=ProstetnikVogonJeltz
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   123
\PYGZsh{}LDAP\PYGZus{}ANONYMOUS\PYGZus{}READ\PYGZus{}ONLY=
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   124
LDAP\PYGZus{}USER\PYGZus{}DN\PYGZus{}PATTERNS=uid=\PYGZob{}0\PYGZcb{}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   125
\PYGZsh{}LDAP\PYGZus{}IS\PYGZus{}TLS\PYGZus{}ENABLED=
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   126
\PYGZsh{}LDAP\PYGZus{}IS\PYGZus{}ATTRIBUTE\PYGZus{}SEARCH\PYGZus{}ENABLED=
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   127
\PYGZsh{}LDAP\PYGZus{}ATTRIBUTE\PYGZus{}SEARCH\PYGZus{}NAME=
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   128
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   129
\PYGZsh{} Usage monitoring
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   130
ACTIVE\PYGZus{}USER\PYGZus{}REPORT\PYGZus{}USE\PYGZus{}DEFAULT\PYGZus{}MAIL\PYGZus{}CLIENT=true
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   131
CUSTOMER\PYGZus{}IDENTIFIER=\PYGZsq{}Fritz\PYGZhy{}Haber\PYGZhy{}Institut\PYGZsq{}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   132
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   133
\PYGZsh{} Mendeley
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   134
FEATURE\PYGZus{}MENDELEY=false
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   135
\PYGZsh{}MENDELEY\PYGZus{}CLIENT\PYGZus{}ID=
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   136
\PYGZsh{}MENDELEY\PYGZus{}CLIENT\PYGZus{}SECRET=
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   137
\PYGZsh{}MENDELEY\PYGZus{}CLIENT\PYGZus{}CALLBACKURL=http://localhost:9091/eln/mendeley/oauthCallback
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   138
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   139
\PYGZsh{} Dropbox
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   140
FEATURE\PYGZus{}DROPBOX=false
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   141
\PYGZsh{}DROPBOX\PYGZus{}CONSUMER\PYGZus{}KEY=
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   142
\PYGZsh{}DROPBOX\PYGZus{}CONSUMER\PYGZus{}SECRET=
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   143
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   144
\PYGZsh{} Figshare
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   145
FEATURE\PYGZus{}FIGSHARE=false
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   146
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   147
\PYGZsh{} XHTML Export
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   148
FEATURE\PYGZus{}XHTML\PYGZus{}EXPORT=true
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   149
EXPORT\PYGZus{}DOCUMENT\PYGZus{}REPOSITORY\PYGZus{}TYPE=fileSystem
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   150
\end{sphinxVerbatim}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   151
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   152
The configuration is explained in detail in the installation manual. Now, \sphinxstylestrong{create the labfolder database and run labfolder} (see the manual for details). Additionally, you could install Apache and set it up as a reverse proxy in order to make labfolder only available through https. The exact steps are:
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   153
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   154
\fvset{hllines={, ,}}%
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   155
\begin{sphinxVerbatim}[commandchars=\\\{\}]
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   156
labfolder@lf:\PYGZti{}\PYGZdl{} sudo apt\PYGZhy{}get install build\PYGZhy{}essential
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   157
labfolder@lf:\PYGZti{}\PYGZdl{} sudo apt install apache2
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   158
labfolder@lf:\PYGZti{}\PYGZdl{} sudo a2enmod proxy proxy\PYGZus{}ajp proxy\PYGZus{}http rewrite deflate headers proxy\PYGZus{}balancer proxy\PYGZus{}connect proxy\PYGZus{}html xml2enc
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   159
labfolder@lf:\PYGZti{}\PYGZdl{} sudo a2enmod ssl
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   160
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   161
\PYGZsh{}\PYGZsh{}\PYGZsh{} Use certificates from e.g. let\PYGZsq{}s encrypt. Please see below for more information.
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   162
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   163
\PYGZsh{}\PYGZsh{}\PYGZsh{} create /etc/apache2/sites\PYGZhy{}available/labfolder.conf with virtual hosts for http and https:
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   164
labfolder@lf:\PYGZti{}\PYGZdl{} sudo a2ensite labfolder.conf
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   165
labfolder@lf:\PYGZti{}\PYGZdl{} sudo a2dissite 000\PYGZhy{}default.conf
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   166
labfolder@lf:\PYGZti{}\PYGZdl{} sudo service apache2 restart
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   167
\end{sphinxVerbatim}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   168
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   169
To get SSL certificates from letsencrypt is quite straight forward. For example this guide shows how to set up SSL certificates:
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   170
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   171
\sphinxurl{https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-16-04}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   172
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   173
The Apache labfolder config file could look like this:
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   174
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   175
\fvset{hllines={, ,}}%
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   176
\begin{sphinxVerbatim}[commandchars=\\\{\}]
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   177
\PYG{o}{\PYGZlt{}}\PYG{n}{VirtualHost} \PYG{o}{*}\PYG{p}{:}\PYG{l+m+mi}{80}\PYG{o}{\PYGZgt{}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   178
    \PYG{n}{ErrorLog} \PYG{o}{/}\PYG{n}{var}\PYG{o}{/}\PYG{n}{log}\PYG{o}{/}\PYG{n}{apache2}\PYG{o}{/}\PYG{n}{error}\PYG{o}{.}\PYG{n}{log}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   179
    \PYG{n}{LogLevel} \PYG{n}{warn}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   180
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   181
    \PYG{n}{ServerName} \PYG{n}{labfolder}\PYG{o}{.}\PYG{n}{rz}\PYG{o}{\PYGZhy{}}\PYG{n}{berlin}\PYG{o}{.}\PYG{n}{mpg}\PYG{o}{.}\PYG{n}{de}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   182
    \PYG{n}{Redirect} \PYG{o}{/} \PYG{n}{https}\PYG{p}{:}\PYG{o}{/}\PYG{o}{/}\PYG{n}{labfolder}\PYG{o}{.}\PYG{n}{rz}\PYG{o}{\PYGZhy{}}\PYG{n}{berlin}\PYG{o}{.}\PYG{n}{mpg}\PYG{o}{.}\PYG{n}{de}\PYG{o}{/}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   183
\PYG{o}{\PYGZlt{}}\PYG{o}{/}\PYG{n}{VirtualHost}\PYG{o}{\PYGZgt{}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   184
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   185
\PYG{o}{\PYGZlt{}}\PYG{n}{VirtualHost} \PYG{o}{*}\PYG{p}{:}\PYG{l+m+mi}{443}\PYG{o}{\PYGZgt{}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   186
    \PYG{n}{ErrorLog} \PYG{o}{/}\PYG{n}{var}\PYG{o}{/}\PYG{n}{log}\PYG{o}{/}\PYG{n}{apache2}\PYG{o}{/}\PYG{n}{error}\PYG{o}{.}\PYG{n}{log}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   187
    \PYG{n}{LogLevel} \PYG{n}{warn}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   188
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   189
    \PYG{n}{ServerName} \PYG{n}{labfolder}\PYG{o}{.}\PYG{n}{rz}\PYG{o}{\PYGZhy{}}\PYG{n}{berlin}\PYG{o}{.}\PYG{n}{mpg}\PYG{o}{.}\PYG{n}{de}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   190
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   191
    \PYG{n}{SSLEngine} \PYG{n}{On}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   192
    \PYG{n}{SSLCertificateFile} \PYG{o}{/}\PYG{n}{etc}\PYG{o}{/}\PYG{n}{letsencrypt}\PYG{o}{/}\PYG{n}{live}\PYG{o}{/}\PYG{n}{labfolder}\PYG{o}{.}\PYG{n}{rz}\PYG{o}{\PYGZhy{}}\PYG{n}{berlin}\PYG{o}{.}\PYG{n}{mpg}\PYG{o}{.}\PYG{n}{de}\PYG{o}{/}\PYG{n}{fullchain}\PYG{o}{.}\PYG{n}{pem}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   193
    \PYG{n}{SSLCertificateKeyFile} \PYG{o}{/}\PYG{n}{etc}\PYG{o}{/}\PYG{n}{letsencrypt}\PYG{o}{/}\PYG{n}{live}\PYG{o}{/}\PYG{n}{labfolder}\PYG{o}{.}\PYG{n}{rz}\PYG{o}{\PYGZhy{}}\PYG{n}{berlin}\PYG{o}{.}\PYG{n}{mpg}\PYG{o}{.}\PYG{n}{de}\PYG{o}{/}\PYG{n}{privkey}\PYG{o}{.}\PYG{n}{pem}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   194
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   195
    \PYG{n}{ProxyPass} \PYG{o}{/} \PYG{n}{http}\PYG{p}{:}\PYG{o}{/}\PYG{o}{/}\PYG{l+m+mf}{141.14}\PYG{o}{.}\PYG{l+m+mf}{138.230}\PYG{p}{:}\PYG{l+m+mi}{9091}\PYG{o}{/}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   196
    \PYG{n}{ProxyPassReverse} \PYG{o}{/} \PYG{n}{http}\PYG{p}{:}\PYG{o}{/}\PYG{o}{/}\PYG{l+m+mf}{141.14}\PYG{o}{.}\PYG{l+m+mf}{138.230}\PYG{p}{:}\PYG{l+m+mi}{9091}\PYG{o}{/}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   197
\PYG{o}{\PYGZlt{}}\PYG{o}{/}\PYG{n}{VirtualHost}\PYG{o}{\PYGZgt{}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   198
\end{sphinxVerbatim}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   199
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   200
13
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   201
\chapter{Printing via CUPS and attaching files to labfolder logbooks}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   202
\label{\detokenize{installation_cups:printing-via-cups-and-attaching-files-to-labfolder-logbooks}}\label{\detokenize{installation_cups::doc}}
15
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   203
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 {\hyperref[\detokenize{installation_cups:section-cups-admin}]{\sphinxcrossref{\DUrole{std,std-ref}{Set up CUPS as labfolder admin}}}}. Users of labfolder read the section {\hyperref[\detokenize{installation_cups:section-cups-user}]{\sphinxcrossref{\DUrole{std,std-ref}{Printing to labfolder projects}}}}.
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   204
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   205
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   206
\section{Set up CUPS as labfolder admin}
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   207
\label{\detokenize{installation_cups:section-cups-admin}}\label{\detokenize{installation_cups:set-up-cups-as-labfolder-admin}}
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   208
First, you need to install CUPS on the virtual machine that runs labfolder:
13
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   209
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   210
\fvset{hllines={, ,}}%
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   211
\begin{sphinxVerbatim}[commandchars=\\\{\}]
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   212
\PYG{n}{sudo} \PYG{n}{apt}\PYG{o}{\PYGZhy{}}\PYG{n}{get} \PYG{n}{install} \PYG{n}{cups} \PYG{n}{cups}\PYG{o}{\PYGZhy{}}\PYG{n}{client} \PYG{n}{cups}\PYG{o}{\PYGZhy{}}\PYG{n}{bsd}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   213
\end{sphinxVerbatim}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   214
15
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   215
Next, configure \sphinxcode{/etc/cups/cupsd.conf}:
13
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   216
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   217
\fvset{hllines={, ,}}%
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   218
\begin{sphinxVerbatim}[commandchars=\\\{\}]
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   219
\PYG{c+c1}{\PYGZsh{} Sample configuration file for the CUPS scheduler.  See \PYGZdq{}man cupsd.conf\PYGZdq{} for a}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   220
\PYG{c+c1}{\PYGZsh{} complete description of this file.}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   221
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   222
\PYG{c+c1}{\PYGZsh{} Log general information in error\PYGZus{}log \PYGZhy{} change \PYGZdq{}warn\PYGZdq{} to \PYGZdq{}debug\PYGZdq{}}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   223
\PYG{c+c1}{\PYGZsh{} for troubleshooting...}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   224
\PYG{n}{LogLevel} \PYG{n}{debug}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   225
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   226
\PYG{c+c1}{\PYGZsh{} Deactivate CUPS\PYGZsq{} internal logrotating, as we provide a better one, especially}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   227
\PYG{c+c1}{\PYGZsh{} LogLevel debug2 gets usable now}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   228
\PYG{n}{MaxLogSize} \PYG{l+m+mi}{0}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   229
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   230
\PYG{c+c1}{\PYGZsh{} Administrator user group...}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   231
\PYG{n}{SystemGroup} \PYG{n}{lpadmin}
15
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   232
\PYG{n}{ServerAdmin} \PYG{o}{\PYGZlt{}}\PYG{n}{name}\PYG{o}{\PYGZgt{}}\PYG{n+nd}{@fhi}\PYG{o}{\PYGZhy{}}\PYG{n}{berlin}\PYG{o}{.}\PYG{n}{mpg}\PYG{o}{.}\PYG{n}{de}
13
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   233
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   234
\PYG{n}{HostNameLookups} \PYG{n}{On}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   235
\PYG{n}{ServerAlias} \PYG{o}{*}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   236
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   237
\PYG{c+c1}{\PYGZsh{} Only listen for connections from the local machine.}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   238
\PYG{n}{Listen} \PYG{n}{lftest}\PYG{o}{.}\PYG{n}{rz}\PYG{o}{\PYGZhy{}}\PYG{n}{berlin}\PYG{o}{.}\PYG{n}{mpg}\PYG{o}{.}\PYG{n}{de}\PYG{p}{:}\PYG{l+m+mi}{631}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   239
\PYG{n}{Listen} \PYG{o}{/}\PYG{n}{var}\PYG{o}{/}\PYG{n}{run}\PYG{o}{/}\PYG{n}{cups}\PYG{o}{/}\PYG{n}{cups}\PYG{o}{.}\PYG{n}{sock}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   240
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   241
\PYG{c+c1}{\PYGZsh{} Show shared printers on the local network.}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   242
\PYG{n}{Browsing} \PYG{n}{Off}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   243
\PYG{n}{BrowseOrder} \PYG{n}{allow}\PYG{p}{,}\PYG{n}{deny}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   244
\PYG{n}{BrowseAllow} \PYG{n+nb}{all}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   245
\PYG{n}{BrowseLocalProtocols} \PYG{n}{CUPS} \PYG{n}{dnssd}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   246
\PYG{n}{BrowseAddress} \PYG{n+nd}{@LOCAL}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   247
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   248
\PYG{c+c1}{\PYGZsh{} Default authentication type, when authentication is required...}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   249
\PYG{n}{DefaultAuthType} \PYG{n}{Basic}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   250
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   251
\PYG{c+c1}{\PYGZsh{} Web interface setting...}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   252
\PYG{n}{WebInterface} \PYG{n}{Yes}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   253
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   254
\PYG{c+c1}{\PYGZsh{} Restrict access to the server...}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   255
\PYG{o}{\PYGZlt{}}\PYG{n}{Location} \PYG{o}{/}\PYG{o}{\PYGZgt{}}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   256
  \PYG{n}{Satisfy} \PYG{n}{All}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   257
  \PYG{n}{Allow} \PYG{n}{localhost}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   258
  \PYG{n}{Allow} \PYG{l+m+mf}{141.14}\PYG{o}{.}\PYG{o}{*}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   259
  \PYG{n}{Allow} \PYG{l+m+mf}{172.16}\PYG{o}{.}\PYG{o}{*}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   260
  \PYG{n}{Allow} \PYG{l+m+mf}{192.}\PYG{o}{*}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   261
  \PYG{n}{Allow} \PYG{n+nb}{all}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   262
  \PYG{c+c1}{\PYGZsh{} Allow shared printing and remote administration...}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   263
  \PYG{n}{Order} \PYG{n}{allow}\PYG{p}{,}\PYG{n}{deny}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   264
  \PYG{n}{Allow} \PYG{n+nb}{all}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   265
\PYG{o}{\PYGZlt{}}\PYG{o}{/}\PYG{n}{Location}\PYG{o}{\PYGZgt{}}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   266
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   267
\PYG{c+c1}{\PYGZsh{} Restrict access to the admin pages...}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   268
\PYG{o}{\PYGZlt{}}\PYG{n}{Location} \PYG{o}{/}\PYG{n}{admin}\PYG{o}{\PYGZgt{}}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   269
  \PYG{n}{Order} \PYG{n}{deny}\PYG{p}{,}\PYG{n}{allow}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   270
  \PYG{n}{Satisfy} \PYG{n}{All}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   271
  \PYG{n}{AuthType} \PYG{n}{Basic}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   272
  \PYG{n}{Require} \PYG{n}{user} \PYG{n+nd}{@SYSTEM}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   273
  \PYG{n}{Deny} \PYG{n}{All}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   274
  \PYG{n}{Allow} \PYG{n}{localhost}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   275
  \PYG{n}{Allow} \PYG{l+m+mf}{141.14}\PYG{o}{.}\PYG{o}{*}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   276
  \PYG{n}{Allow} \PYG{l+m+mf}{172.16}\PYG{o}{.}\PYG{o}{*}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   277
\PYG{o}{\PYGZlt{}}\PYG{o}{/}\PYG{n}{Location}\PYG{o}{\PYGZgt{}}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   278
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   279
\PYG{c+c1}{\PYGZsh{} Restrict access to configuration files...}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   280
\PYG{o}{\PYGZlt{}}\PYG{n}{Location} \PYG{o}{/}\PYG{n}{admin}\PYG{o}{/}\PYG{n}{conf}\PYG{o}{\PYGZgt{}}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   281
  \PYG{n}{Order} \PYG{n}{deny}\PYG{p}{,}\PYG{n}{allow}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   282
  \PYG{n}{AuthType} \PYG{n}{Default}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   283
  \PYG{n}{Require} \PYG{n}{user} \PYG{n+nd}{@SYSTEM}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   284
  \PYG{n}{Satisfy} \PYG{n}{All}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   285
  \PYG{n}{Require} \PYG{n}{user} \PYG{n}{root}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   286
  \PYG{n}{Deny} \PYG{n}{All}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   287
  \PYG{n}{Allow} \PYG{l+m+mf}{127.0}\PYG{o}{.}\PYG{l+m+mf}{0.1}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   288
  \PYG{n}{Allow} \PYG{l+m+mf}{141.14}\PYG{o}{.}\PYG{o}{*}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   289
  \PYG{n}{Allow} \PYG{l+m+mf}{172.16}\PYG{o}{.}\PYG{o}{*}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   290
\PYG{o}{\PYGZlt{}}\PYG{o}{/}\PYG{n}{Location}\PYG{o}{\PYGZgt{}}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   291
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   292
\PYG{c+c1}{\PYGZsh{} Set the default printer/job policies...}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   293
\PYG{o}{\PYGZlt{}}\PYG{n}{Policy} \PYG{n}{default}\PYG{o}{\PYGZgt{}}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   294
  \PYG{o}{.}\PYG{o}{.}\PYG{o}{.} \PYG{c+c1}{\PYGZsh{} probably as in the original}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   295
\PYG{o}{\PYGZlt{}}\PYG{o}{/}\PYG{n}{Policy}\PYG{o}{\PYGZgt{}}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   296
\end{sphinxVerbatim}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   297
15
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   298
Change the \sphinxstyleemphasis{Server Admin}’s e-mail address and the server that shall be listened to (see the \sphinxcode{Listen} statement). Set \sphinxcode{FileDevice Yes} in \sphinxcode{/etc/cups/cups-files.conf}. Now, create a directory where all printers will go, e.g. \sphinxcode{/usr/local/labfolder/printers}.
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   299
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   300
Get the package for creating new printers from git:
13
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   301
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   302
\fvset{hllines={, ,}}%
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   303
\begin{sphinxVerbatim}[commandchars=\\\{\}]
15
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   304
labfolder@lftest:\PYGZti{}\PYGZdl{} git clone https://github.molgen.mpg.de/weiher/cupsPrinters
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   305
labfolder@lftest:\PYGZti{}\PYGZdl{} ls
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   306
cupsPrinters  labfolder
13
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   307
\end{sphinxVerbatim}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   308
15
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   309
The only file you need to adapt is \sphinxcode{newPrinter.sh}. It is not a must but it is suggested to name the printers like the projects. For example, the FEL projects \sphinxstyleemphasis{operating} and \sphinxstyleemphasis{installation} could be placed at \sphinxcode{.../printers/FEL/operating} and \sphinxcode{.../printers/FEL/installation}. Execute the script with sudo rights:
13
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   310
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   311
\fvset{hllines={, ,}}%
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   312
\begin{sphinxVerbatim}[commandchars=\\\{\}]
15
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   313
labfolder@lftest:\PYGZti{}/cupsPrinters\PYGZdl{} sudo ./newPrinter.sh
13
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   314
\end{sphinxVerbatim}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   315
15
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   316
To prevent \sphinxcode{DENIED} errors from apparmor install and set the following and restart the CUPS server:
13
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   317
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   318
\fvset{hllines={, ,}}%
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   319
\begin{sphinxVerbatim}[commandchars=\\\{\}]
15
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   320
\PYGZdl{} sudo apt\PYGZhy{}get install apparmor\PYGZhy{}utils apparmor\PYGZhy{}profiles
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   321
\PYGZdl{} sudo aa\PYGZhy{}complain cupsd
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   322
\PYGZdl{} sudo service cups restart
13
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   323
\end{sphinxVerbatim}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   324
15
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   325
In case you need to debug some logfiles can be found here: \sphinxstyleemphasis{/var/log/syslog}, \sphinxstyleemphasis{/var/log/cups/error\_log} and \sphinxstyleemphasis{/var/log/cups/acces\_log}
13
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   326
15
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   327
One last change is that you need to once add a user named \sphinxstyleemphasis{Printer Print} (firstname lastname) to the labfolder database. This can be done manually inside the DB by this command:
13
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   328
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   329
\fvset{hllines={, ,}}%
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   330
\begin{sphinxVerbatim}[commandchars=\\\{\}]
15
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   331
\PYGZdl{} mysql \PYGZhy{}u root \PYGZhy{}p
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   332
Enter password:
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   333
...
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   334
mysql\PYGZgt{} use labfolder;
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   335
mysql\PYGZgt{} INSERT INTO user (email, password, firstname, lastname, signupTimestamp, maxStorage) VALUES (\PYGZsq{}printer@fhi\PYGZhy{}berlin.mpg.de\PYGZsq{}, \PYGZsq{}91a13f2aba4a35b00c35dfacadd1d75f4a5171dfa7a465fca9c40e6b007ce982\PYGZsq{}, \PYGZsq{}Printer\PYGZsq{}, \PYGZsq{}Print\PYGZsq{}, \PYGZsq{}2018\PYGZhy{}03\PYGZhy{}21 10:54:00\PYGZsq{}, \PYGZsq{}10000000\PYGZsq{});
13
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   336
\end{sphinxVerbatim}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   337
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   338
15
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   339
\section{Printing to labfolder projects}
523ca1dfd077 added new chapter on installation of CUPS printers
weiher
parents: 13
diff changeset
   340
\label{\detokenize{installation_cups:printing-to-labfolder-projects}}\label{\detokenize{installation_cups:section-cups-user}}
13
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   341
The last thing you need to do is to set up a printer \sphinxstyleemphasis{operating} on your local machine. In Ubuntu Gnome hit Alt+F2 keys and enter \sphinxcode{system-config-printer}. In this printer config interface add a new printer \sphinxstyleemphasis{operating} as follows:
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   342
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   343
\noindent{\hspace*{\fill}\sphinxincludegraphics[width=0.700\linewidth]{{create_local_printer01}.png}\hspace*{\fill}}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   344
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   345
\noindent{\hspace*{\fill}\sphinxincludegraphics[width=0.700\linewidth]{{create_local_printer02}.png}\hspace*{\fill}}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   346
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   347
\noindent{\hspace*{\fill}\sphinxincludegraphics[width=0.700\linewidth]{{create_local_printer03}.png}\hspace*{\fill}}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   348
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   349
\noindent{\hspace*{\fill}\sphinxincludegraphics[width=0.700\linewidth]{{create_local_printer04}.png}\hspace*{\fill}}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   350
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   351
\noindent{\hspace*{\fill}\sphinxincludegraphics[width=0.700\linewidth]{{create_local_printer05}.png}\hspace*{\fill}}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   352
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   353
\noindent{\hspace*{\fill}\sphinxincludegraphics[width=0.700\linewidth]{{create_local_printer06}.png}\hspace*{\fill}}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   354
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   355
\noindent{\hspace*{\fill}\sphinxincludegraphics[width=0.700\linewidth]{{create_local_printer07}.png}\hspace*{\fill}}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   356
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   357
3
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   358
\chapter{Groups, ownership and sharing in labfolder}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   359
\label{\detokenize{groups:groups-ownership-and-sharing-in-labfolder}}\label{\detokenize{groups::doc}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   360
As labfolder user you can create groups (ultimately: group projects) and private projects. In \sphinxstyleemphasis{Manage \textgreater{} Projects} you see all projects that you own and that you are a member of.
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   361
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   362
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   363
\section{Private projects}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   364
\label{\detokenize{groups:private-projects}}
11
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   365
You alone are the owner of these projects in \sphinxstyleemphasis{My Private Projects}. Their ownership cannot be transfered from you to anyone else via the webinterface. Only via accepting the invitation to a group with the policy that private projects are not allowed the content of the former private project would be visible (and administrable) also to the group’s admin(s). By directly manipulating the database the ownership could be changed to an active user as well.
3
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   366
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   367
\noindent{\hspace*{\fill}\sphinxincludegraphics[width=0.700\linewidth]{{private_projects}.png}\hspace*{\fill}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   368
11
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   369
\sphinxstylestrong{Private projects are possible through a back door} if a user creates their own group which doesn’t necessarily mean that they invite other users to this group. In their own group they could create as many (private) projects as they like.
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   370
3
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   371
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   372
\section{Group projects}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   373
\label{\detokenize{groups:group-projects}}
11
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   374
Any labfolder user can create groups and subgroups in \sphinxstyleemphasis{Manage \textgreater{} Groups \textgreater{} Button “+Add”}. But within an already existing group a member can only create subgroups if they are set as an administrator of this group. In the role of the admin you can do the following:
3
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   375
\begin{itemize}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   376
\item {} 
11
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   377
Create (sub)groups
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   378
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   379
\item {} 
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   380
Invite users to your (sub)group via e-mail
3
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   381
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   382
\item {} 
11
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   383
Move users between subgroups
3
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   384
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   385
\item {} 
11
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   386
Set and remove (sub)group members as admins
3
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   387
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   388
\item {} 
11
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   389
Remove users from a (sub)group e.g. when they are leaving the institute (\sphinxstylestrong{In this case the ownership of this user’s projects within the (sub)group needs to be transfered first!})
3
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   390
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   391
\item {} 
11
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   392
Delete (sub)groups (before deleting it you need to remove all group members)
3
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   393
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   394
\end{itemize}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   395
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   396
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   397
\section{Group settings}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   398
\label{\detokenize{groups:group-settings}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   399
Administrators of groups (but not the ones of the subgroups) can edit the general settings of groups.
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   400
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   401
\noindent{\hspace*{\fill}\sphinxincludegraphics[width=0.700\linewidth]{{group_settings}.png}\hspace*{\fill}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   402
\begin{itemize}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   403
\item {} 
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   404
Through the option \sphinxstyleemphasis{Prevent group members from deleting content} all users (including the admin) are prevented from deleting projects or any other data from the labfolder database. Projects will merely be hidden if a user decides to \sphinxstyleemphasis{Remove} it from their list of projects.
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   405
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   406
\item {} 
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   407
By checking the option \sphinxstyleemphasis{Prevent group members from having private projects}, group members will not be allowed to have private projects. All private projects of group members will be moved into the group projects, but will not be shared with any other group members.
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   408
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   409
\item {} 
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   410
By switching on \sphinxstyleemphasis{Users can be members of several subgroups}, users which are already members of a group can be invited again to another subgroup within the group. If switched to off members cannot be invited to subgroups of their current group.
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   411
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   412
\end{itemize}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   413
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   414
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   415
\chapter{Import and export of projects and entries}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   416
\label{\detokenize{import_export::doc}}\label{\detokenize{import_export:import-and-export-of-projects-and-entries}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   417
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   418
\section{Import}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   419
\label{\detokenize{import_export:import}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   420
The import of projects (from another labfolder instance or from another logbook software) is only possible via the labfolder API. An import of labfolder-own projects via webinterface is not possible to date. You can find the API documentation here:
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   421
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   422
\begin{DUlineblock}{0em}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   423
\item[] Version 1: \sphinxurl{http://labfolder.rz-berlin.mpg.de:9091/api/v1}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   424
\item[] Version 2: \sphinxurl{https://labfolder.rz-berlin.mpg.de/api/v2/docs/development.html}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   425
\end{DUlineblock}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   426
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   427
Version 2 is still in the development phase.
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   428
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   429
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   430
\section{Export}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   431
\label{\detokenize{import_export:export}}
13
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   432
Exporting projects (or just single entries) is possible in three different formats: PDF, XHTML and JSON. The \sphinxstylestrong{export as PDF} can be done from within a project …
3
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   433
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   434
\noindent{\hspace*{\fill}\sphinxincludegraphics[width=0.700\linewidth]{{export_of_projects}.png}\hspace*{\fill}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   435
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   436
… or from the project overview (\sphinxstyleemphasis{Manage \textgreater{} Projects}):
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   437
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   438
\noindent{\hspace*{\fill}\sphinxincludegraphics[width=0.700\linewidth]{{export_of_projects2}.png}\hspace*{\fill}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   439
13
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   440
The \sphinxstylestrong{XHTML export} can be done via the settings:
3
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   441
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   442
\noindent{\hspace*{\fill}\sphinxincludegraphics[width=0.700\linewidth]{{export_xhtml}.png}\hspace*{\fill}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   443
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   444
However, to use this type of export it has to be installed first in the \sphinxstyleemphasis{Manage \textgreater{} Apps} section. By means of the XHTML export all projects that one owns will be exported. A detailled selection of projects or entries to be exported is not possible. As soon as the export process is finished a download link appears in the settings in \sphinxstyleemphasis{Data exports}. The downloadable ZIP file contains all images and files along with an index.html file that contains information about all entries. You could open and view the index.html file in a browser similar to the view in labfolder.
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   445
13
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   446
The \sphinxstylestrong{JSON export} is only useable via the API endpoint \sphinxcode{GET /entries}. However, at the moment the response only contains useful information such as dates and tags. The author name is hidden behind the author ID and the entry text content is completely missing.
3
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   447
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   448
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   449
\chapter{Importing projects from e.g. the ELOGbook to Labfolder at the FHI}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   450
\label{\detokenize{importing_from_elog:importing-projects-from-e-g-the-elogbook-to-labfolder-at-the-fhi}}\label{\detokenize{importing_from_elog::doc}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   451
The ELOG entries of a certain project need to be exported as \sphinxstyleemphasis{Raw} which looks like this:
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   452
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   453
\fvset{hllines={, ,}}%
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   454
\begin{sphinxVerbatim}[commandchars=\\\{\}]
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   455
\PYGZdl{}@MID@\PYGZdl{}: 12
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   456
Date: Tue, 03 Dec 2013 12:15:14 +0100
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   457
Author: Wieland SchÃ\P{}llkopf
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   458
Author Email: mailto:wschoell@fhi\PYGZhy{}berlin.mpg.de
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   459
Category: Shift summary
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   460
Subject: 1st solid\PYGZhy{}state experiment with FHI FEL
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   461
Severity: DOCU
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   462
Keywords:
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   463
Record date: 1386069171
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   464
Attachment:
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   465
Encoding: HTML
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   466
========================================
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   467
\PYGZlt{}p\PYGZgt{}Today Alex Paarmann and Marc Herzog are measuring in the wavelength range from 10 to 20 micron with a 0.5 mm thick GGG (Gadolinium Gallium Garnet, \PYGZlt{}a title=\PYGZdq{}Gadolinium\PYGZdq{} href=\PYGZdq{}http://en.wikipedia.org/wiki/Gadolinium\PYGZdq{}\PYGZgt{}Gd\PYGZlt{}/a\PYGZgt{}\PYGZlt{}sub\PYGZgt{}3\PYGZlt{}/sub\PYGZgt{}\PYGZlt{}a title=\PYGZdq{}Gallium\PYGZdq{} href=\PYGZdq{}http://en.wikipedia.org/wiki/Gallium\PYGZdq{}\PYGZgt{}Ga\PYGZlt{}/a\PYGZgt{}\PYGZlt{}sub\PYGZgt{}5\PYGZlt{}/sub\PYGZgt{}\PYGZlt{}a title=\PYGZdq{}Oxygen\PYGZdq{} href=\PYGZdq{}http://en.wikipedia.org/wiki/Oxygen\PYGZdq{}\PYGZgt{}O\PYGZlt{}/a\PYGZgt{}\PYGZlt{}sub\PYGZgt{}12\PYGZlt{}/sub\PYGZgt{}). Electron energy is set to 26 MeV.\PYGZlt{}/p\PYGZgt{}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   468
\end{sphinxVerbatim}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   469
11
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   470
The entry shown above looks like this in the ELOG webinterface:
3
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   471
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   472
\noindent{\hspace*{\fill}\sphinxincludegraphics[width=1.000\linewidth]{{elog_entry}.png}\hspace*{\fill}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   473
11
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   474
What is noticeable is that the ELOG export comes with an “Ã\P{}” instead of an “ö”. Interestingly, if only entries done by Wieland are exported the export file has UTF-8 encoding which can actually print German “Umlaute” (ö, ä, ü). If, however, all entries are exported the encoding changes to an encoding that cannot handle e.g. “ö”.
3
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   475
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   476
After importing the above ELOG entry into labfolder this entry appears like that:
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   477
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   478
\noindent{\hspace*{\fill}\sphinxincludegraphics[width=1.000\linewidth]{{entry_after_import}.png}\hspace*{\fill}}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   479
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   480
11
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   481
\section{Using python to import from ELOG to labfolder}
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   482
\label{\detokenize{importing_from_elog:using-python-to-import-from-elog-to-labfolder}}
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   483
There is a GitHub project containing a python program for importing a raw (see the export example above) ELOG project. Get the project files by typing:
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   484
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   485
\fvset{hllines={, ,}}%
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   486
\begin{sphinxVerbatim}[commandchars=\\\{\}]
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   487
\PYGZdl{} git clone https://github.molgen.mpg.de/weiher/elog2labfolder.git
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   488
\end{sphinxVerbatim}
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   489
13
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   490
The script \sphinxstyleemphasis{elog2labfolder.py} is meant to be executed from remote, that is, not on the machine on which labfolder is running. A prerequisit is the python MySQLDB package because for a few methods the labfolder API cannot be used, instead, direct manipulation of the labfolder MySQL database is needed. The actual labfolder API is applied in the methodes collected in \sphinxstyleemphasis{myPythonAPIv1.py} and \sphinxstyleemphasis{myPythonAPIv2.py}. Mostly, API version 2 is used but adding text at the end of an entry can only be accomplished by using the version 1 API call. \sphinxstyleemphasis{getListOfAuthors.py} gives you a list of all authors that are mentioned in a raw ELOG export file.
11
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   491
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   492
13
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   493
\section{Alternatives to manipulating the labfolder DB on MySQL level}
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   494
\label{\detokenize{importing_from_elog:alternatives-to-manipulating-the-labfolder-db-on-mysql-level}}
11
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   495
As mentioned previously: a few methods in the python API use a direct manipulation of the labfolder DB via MySQL queries. These methods are:
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   496
\begin{itemize}
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   497
\item {} 
13
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   498
\sphinxstyleemphasis{createUserAccount(email, author, entryContent, verboseOutput, cursor, db)}: If an author of an ELOG logbook entry does not yet have a labolder account this account is created on the fly by setting a default (encrypted) password. This password is irrelevant because labfolder checks the entered password with the one from the LDAP server. Note: when setting a password in the DB labfolder’s LDAP authentication needs to be disabled (FEATURE\_LDAP\_AUTHENTICATION=false) beforehand and enabled again after the setting process is finished.
11
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   499
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   500
\item {} 
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   501
\sphinxstyleemphasis{updateAuthor(userID, blockID, cursor, db)}: Update the author of an entry. With the script \sphinxstyleemphasis{elog2labfolder.py} an entry is created with the author that is the person whose labfolder credentials are used to get the login token. Via this method the true author can be set to the passed in \sphinxstyleemphasis{userID}.
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   502
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   503
\item {} 
13
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   504
\sphinxstyleemphasis{updateDateAndTime(date, blockID, cursor, db)}: Similar to \sphinxstyleemphasis{updateAuthor()} this method sets the creation and modification date to the creation time and date of the entry to be imported. This is necessary because otherwise creation and modification date in labfolder are the time and date when the import took place.
11
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   505
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   506
\end{itemize}
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   507
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   508
The labfolder support suggested the following alternative involving using the labfolder API:
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   509
\begin{itemize}
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   510
\item {} 
13
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   511
User account: A user account can be created via the API 2 endpoint \sphinxcode{/auth/signup}. The password will be an encrypted dummy password. In order for this to work the LDAP authentication must be turned off when this endpoint is called. After the account creation LDAP authentication should be turned on again. Once the true user of this account logs in labfolder will ignore the dummy password and check the entered password against the password stored in LDAP.
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   512
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   513
\item {} 
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   514
Author: To create a labfolder entry by using the original entry’s author needs a special work-around. \sphinxstylestrong{First, make sure to prevent labfolder users from accessing labfolder for the time of the import.} Then, manually change all user passwords in the DB to the same (encrypted) password. Switch off the LDAP authentication and restart labolder. Now, import entry by entry and get a new login token for each new entry. It is only possible to get login tokens for all users because they all have the same known password. If the author of the entry to be imported does not exist yet in the DB you need to create an account via the API 2 endpoint \sphinxcode{/auth/signup}. Now you reopen the access to the labfolder instance and switch on LDAP again restarting labfolder afterwards. The users can login using their FHI credentials no matter the “universal” password in the DB. If LDAP authentication is not turned on the users could do a password recovery on the login screen and re-set their password to their liking.
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   515
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   516
\item {} 
a21f3604f1db Added new chapter about CUPS printers
weiher
parents: 11
diff changeset
   517
Date and time: Since you cannot change creation and modification time stamp of an entry via the API you could instead create custom dates during the import of an entry. The original entry creation timestamp could be “Original entry creation” followed by the creation time and date of the import. All entries can be filtered and searched by the custom dates.
11
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   518
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   519
\end{itemize}
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   520
ccfe3c7fa0d2 Erweiterung der Doku um ein Kapitel zum Import und Export; das Kapitel ist noch nicht ganz fertig
weiher
parents: 3
diff changeset
   521
3
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   522
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   523
\renewcommand{\indexname}{Index}
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   524
\printindex
b71be85a294c Initial commit of labfolder at FHI documentation
weiher
parents:
diff changeset
   525
\end{document}