Remove tdo
[goodguy/cin-manual-latex.git] / parts / Instalation.tex
1 \chapter{Installation}
2 \label{cha:Instalation}
3 \section{How to Build Cinelerra-GG from Developer's Git Repository}%
4 \label{sec:How_to_build}
5
6 These are generic build instructions for building Cinelerra-GG Infinity.  
7 Known to work on ubuntu, mint, suse/leap, fedora, debian, centos, arch, and slackware.  
8 It has not been tested on every single possible distro yet so you might expect to have to make some minor changes.  
9 Patches have been created to build on FreeBSD through the work of another programmer and a Gentoo version is being maintained elsewhere by another programmer.
10
11 Alternatively, there are some pre-built dynamic or static binaries which are updated on a fairly regular basis (as long as code changes have been made) available at the link below.
12
13
14 \url{
15 https://cinelerra-gg.org/download/
16 }
17
18 There are 2 kinds of builds, the default system-build and a single-user build.  
19 A system build has results which are installed to the system. 
20 The majority of the files are installed in the standard system paths, but some customization is possible. 
21 The single user build allows for running completely out of a local user directory so it doesn't affect the system.
22
23 We recommend the single-user version when possible.  
24 It makes it very easy to install a new version without having to delete the older version in case you want it for backup – once you are happy with the new version, all you have to do is delete the entire old directory path.  
25 Also, if you install a new Operating System version and if you have Cinelerra on separate disk space that is preserved, you won't have to reinstall Cinelerra.  
26 In addition for purposes of having the ability to interrupt or to see any possible error messages, if you start the application from a terminal window command line you will have more control to catch problems.  
27 However, the system builds can be useful in a university lab setting where there are possibly multiple users, or multiple versions.
28
29 There are two notable differences between “standard” views of Cinelerra and this implementation for the system builds.  
30 Both of these can be configured during installation.  
31 These differences make it possible to have several different versions installed without having them “walk” on each other. 
32
33
34
35
36
37
38
39
40
41
42 \begin{enumerate}
43     \item 
44         application name can be set during installation and defaults to: “\texttt{cin}”
45     \item 
46         the home configuration directory can also be set and defaults to:\\ “\texttt{\$HOME/.bcast5}”
47 \end{enumerate}
48
49 \paragraph{To do a system build,} you should read the \texttt{README} that is at the top level after you get the source.
50
51 \begin{enumerate}
52     \item 
53         You need at least 2.5\,GB of disk storage to operate a build + you need to have “\texttt{git}” installed.
54     \item  Obviously in order to install into the system, you must run as \textbf{root}.
55     \item  The "\texttt{git}" step has to download many files (approx 100\,MB) so allow time.
56     \item  Run the following commands (this takes awhile):
57
58         \begin{lstlisting}[language=bash]
59 $ cd /<build_path>/           # this is where you need the 2.5GB of disk space
60 $ git clone --depth 1 "git://git.cinelerra-gg.org/goodguy/cinelerra.git" cinelerra5 
61 $ cd cinelerra5/cinelerra-5.1 # toplevel directory
62         \end{lstlisting}
63
64         NOTE: if your system has never had Cinelerra-GG Infinity installed, you will have to make sure you have all of the compilers and libraries necessary.  
65         So on the very first build you should run:
66
67         \begin{lstlisting}[language=bash]
68 $ ./blds/bld_prepare.sh <os> # where <os> represents the Operating System of centos, fedora, suse, leap, ubuntu, debian.
69 $ ./autogen.sh
70 $ ./configure --prefix=/usr  # optional parameters can be added here
71 $ make 2>&1 | tee log        # make and log the build
72         \end{lstlisting}
73     \item  Check for obvious build errors:
74         \begin{lstlisting}[language=bash]
75 $ grep "\*\*\*.*error" -ai log
76         \end{lstlisting}
77         If this reports errors and you need assistance or you think improvements can be made to the build s,
78         email the log which is listed below to \url{cin@lists.cinelerra-gg.org:}
79         \begin{lstlisting}[language=bash]
80 $ /<build_path>/cinelerra5/cinelerra-5.1/log
81         \end{lstlisting}
82     \item  If there are no build errors, finally just run:
83         \begin{lstlisting}[language=bash]
84    $  make install
85         \end{lstlisting}
86     \item  If it all worked, you are all setup. Just click on the cinelerra desktop icon.
87 \end{enumerate}
88
89 \paragraph{To do a single-user build,} read the \texttt{README} that is at the top level after you get the source.
90 \begin{enumerate}
91     \item  You need at least 2.5\,GB of disk storage to operate a build + you need to have  “\texttt{git}” installed.
92     \item  Recommend you build and run as \textbf{root}, just to avoid permission issues initially.
93     \item  The "\texttt{git}" step has to download many files (approx 100\,MB) so allow time.
94     \item  Run the following commands (this takes awhile):
95         \begin{lstlisting}[language=bash]
96 $ cd /<build_path>/           # this is where you need the 2.5GB of disk space
97 $ git clone --depth 1 "git://git.cinelerra-gg.org/goodguy/cinelerra.git" cinelerra5 
98 $ cd cinelerra5/cinelerra-5.1 # toplevel directory
99         \end{lstlisting}
100 \end{enumerate}
101
102 NOTE: if your system has never had Cinelerra-GG Infinity installed, you will have to make sure all
103 the compilers and libraries necessary are installed. So on the very first build you should run as \textbf{root}:
104
105 \begin{lstlisting}[language=bash]
106 $ ./blds/bld_prepare.sh <os>     # where <os> represents the Operating System of centos, fedora, suse, leap, ubuntu, debian.
107 $ ./autogen.sh
108 $ ./configure --with-single-user # the “with-single-user” parameter makes it so
109 $ make 2>&1 | tee log            # make and log build (check for errors before proceeding)
110 $ make install
111 \end{lstlisting}
112
113 Then just start the application by keying in: ./cin in the bin subdirectory OR add a desktop icon by
114 using the appropriate directory to copy the files to, run as \textbf{root}, and edit to correct the directory path.
115
116 \begin{lstlisting}[language=bash]
117 $ cd /cinelerra_directory_path
118 $ cp -a image/cin.{svg,xpm} /usr/share/pixmaps/.
119 $ cp -a image/cin.desktop /usr/share/applications/cin.desktop
120 \end{lstlisting}
121 Change the “Exec=cin” line to be “Exec=<your\_directory\_path>/bin/cin”
122
123 The preceding directions for doing a single-user build has been meticulously followed to build and run
124 on a newly installed ubuntu 15 system WITHOUT BEING ROOT except for the \texttt{bld\_prepare.sh} and creating the desktop icon.
125
126 \subsection{Notable Options and Caveats}%
127 \label{sub:notable_options_and_caveats}
128
129 These procedures and the Cinelerra-GG Infinity software have all been run as “\textbf{root}” on various home laptops and desktops. This provides the best chance to ensure all works correctly and also allows for handling errors, other problems and potential crashes with the most success.  Included in this section are some of the build variations easily available for normal builds.
130
131 To see the full list of features use:    
132
133 \begin{lstlisting}[language=bash]
134 $ ./configure –help
135 \end{lstlisting}
136 The default build is a system build which uses:    
137
138 \begin{lstlisting}[language=bash]
139 $ ./configure –without-single-user
140 \end{lstlisting}
141
142 In the single-user build, the target directory is always “cin”.  
143 Because this is also the developer build, constant names are used throughout.  
144 However, you can rename files after the install is complete.
145
146 f your distro/operating system has issues with the default install to \texttt{/usr/local}, you might have to change the location to /usr for a system build.  Then you will have to use:
147 \begin{lstlisting}[language=bash]
148 $ ./configure --prefix=/usr
149 \end{lstlisting}
150
151 If you wish to change the default directory for a system build you will have to add the destination directory path on the “\texttt{make install}” line.  For example:
152 \begin{lstlisting}[language=bash]
153 $ make install DESTDIR=<your selected target directory path>
154 \end{lstlisting}
155
156 The application name can be set during installation, but defaults to cin so that the GG/Infinity build can coexist with other Cinelerra builds if necessary.  To override the default cin name, use:    
157 \begin{lstlisting}[language=bash]
158 $ ./configure --with-exec-name=cinelerra
159 \end{lstlisting}
160
161 The home configuration directory can also be set, but defaults to \texttt{\$\$HOME/.bcast5}.  
162 For example:
163
164 \begin{lstlisting}[language=bash]
165 $ ./configure –with-config-dir=/myusername/.bcast5
166 \end{lstlisting}
167
168 NOTE:  when you specify parameters to the configure program, it will create a make file as a consequence.  
169 Since in a make file, the \$ is a special character, it must be escaped so in order to represent a \$ as part of an input parameter, it has to be stuttered.  
170 That is, you will need \$\$ (2 dollar signs) to represent a single dollar sign. 
171
172 It may be necessary on some distros which have missing or incomplete up-to-date libraries, to build cinelerra without Ladspa.  
173 To do so, use:
174
175 \begin{lstlisting}[language=bash]
176 $ ./configure --prefix=/usr --without-ladspa-build
177 \end{lstlisting}
178
179 Note that the with-ladspa-dir is the ladspa search path, and exists even if the ladspa build is not selected.  This gives you the ability to specify an alternate ladspa system path by utilizing the \texttt{LADSPA\_PATH} environment variable (that is, the default ladspa build is deselected).
180
181 Note for 32-bit 14.2 Slackware, Debian, Gentoo, Arch, FreeBSD, before running the configure, you will need to set up the following:
182
183 \begin{lstlisting}[language=bash]
184 $ export ac_cv_header_xmmintrin_h=no
185 $ export FFMPEG_EXTRA_CFG=" --disable-vdpau"
186 \end{lstlisting}
187
188 \subsection{Notes about Building from Git in your Customized Environment}%
189 \label{sub:notes_about_building_from_git_in_your_customized_environment}
190
191 Getting a build to work in a custom environment is not easy.  If you have already installed libraries which are normally in the thirdparty build, getting them to be recognized means you have to install the "devel" version so the header files which match the library interfaces exist.  Below is the list of thirdparty builds, but this list may have changed over time:
192 % It's list of Table?
193
194 \begin{table}[htpb]
195     \centering
196     \caption{List of thirdparty builds}
197     \label{tab:List_of_thirdparty_builds}
198         \small
199     \begin{tabular}{m{8em}c}
200         \toprule
201         a52dec   & yes\\
202         djbfft   & yes\\
203         fdk      & auto\\
204         ffmpeg   & yes\\
205         fftw     & auto\\
206         flac     & auto\\
207         giflib   & yes\\
208         ilmbase&auto\\
209         lame    &  auto\\
210         libavc1394&auto\\
211         libraw1394&auto\\
212         libiec61883&auto\\
213         libdv     &auto\\
214         libjpeg   &auto\\
215         openjpeg  &auto\\
216         libogg    &auto\\
217         libsndfile&auto\\
218         libtheora&auto\\
219         libuuid  & yes\\
220         libvorbis&auto\\
221         mjpegtools&yes\\
222         openexr   &auto\\
223         tiff      &auto\\
224         twolame   &auto\\
225         x264      &auto\\
226         x265      &auto\\
227         libvpx  &auto\\
228         libwebp&auto\\
229         libaom& auto\\
230     \bottomrule
231     \end{tabular}
232 \end{table}
233
234
235 The "yes" means force build and “auto” means probe and use the system version if the build operation is not static.  
236 To get your customized build to work, you need to change the probe options for the conflicting libraries from "yes" to "auto", or even rework the \texttt{configure.ac} script.  
237 There may be several libraries which need special treatment.
238
239 An example of a problem you might encounter with your customized installation is with “\texttt{a52dec}” which has probes \texttt{(CHECK\_LIB/CHECK\_HEADER)} in \texttt{configure.ac}, but \texttt{djbfft} does not.  
240 In this case, \texttt{djbfft} is only built because \texttt{a52dec} is built, so if your system has \texttt{a52dec}, set \texttt{a52dec} to auto and see if that problem is solved by retrying the build with:  
241 \begin{lstlisting}[language=bash]
242 $ ./confgure --with-single-user –enable-a52dec=auto .
243 \end{lstlisting}
244
245 With persistence, you can get results, but it may take several tries to stabilize the build.  
246 If you need help, email the "\texttt{log}" and "\texttt{config.log}", which is usually sufficient to determine why a build failed.
247 \vspace{5ex}
248
249 If you have already installed the \texttt{libfdk\_aac} development package on your computer because you prefer this version over the default aac, you will have to do the following to get this alternative operational.
250
251 \begin{lstlisting}[language=bash]
252 $ export FFMPEG_EXTRA_CFG=" --enable-libfdk-aac --enable-nonfree"
253 $ export EXTRA_LIBS=" -lfdk-aac"
254 $ for f in `grep -lw aac cinelerra-5.1/ffmpeg/audio/*`; do
255 $   sed -e 's/\<aac\>/libfdk_aac/' -i $f
256 $ done
257 \end{lstlisting}
258
259 \subsection{Cloning the Repository for Faster Updates}%
260 \label{sub:cloning_the_repository_for_faster_updates}
261
262 If you want to avoid downloading the software every time an update is available you need to create a local "repository" or repo.  
263 The repo is a directory where you first do a “\texttt{git clone}”.  
264 For the initial git clone, setup a local area for the repository storage, referred to as \texttt{<repo\_path>}.  
265 The “\texttt{git clone}” creates a repo named "\texttt{cin5}" in the \texttt{/<repo\_path>/} directory.  
266 This accesses over 300\,MB of repo data, so the device has to have at least that available.  
267 The repo path is always a perfect clone of the main repo.
268
269 \paragraph{Setting up the initial clone}%
270 \label{par:setting_up_the_initial_clone}
271 add “\texttt{ -\,- depth 1}” before cin5 which is faster/smaller, but has no history.
272
273 \begin{lstlisting}
274 $ cd /<repo\_path>/
275 $ git clone "git://git.cinelerra-gg.org/goodguy/cinelerra" cin5
276
277 Cloning into "cin5"...
278 remote: Counting objects: 20032, done.
279 remote: Compressing objects: 100% (11647/11647), done.
280 remote: Total 20032 (delta 11333), reused 16632 (delta 8189)
281 Receiving objects: 100% (20032/20032), 395.29 MiB | 3.26 MiB/s, done.
282 Resolving deltas: 100% (11333/11333), done.
283 Checking connectivity... done.
284 \end{lstlisting}
285
286 \paragraph{Update an existing repo}%
287 \label{par:update_an_existing_repo}
288
289 \begin{lstlisting}[language=bash]
290  $ cd /<repo home>/cin5
291  $ git pull
292 \end{lstlisting}
293
294 \paragraph{Useful git commands}%
295 \label{par:useful_git_commands}
296
297
298 \begin{lstlisting}[language=bash]
299 $ git clone "git://git.cinelerra-gg.org/goodguy/cinelerra.git" cin5
300 $ git pull         # pull remote changes to the local version
301 $ git status       # shows changed files
302 $ git clean -i     # interactive clean, use answer 1 to "clean"
303 \end{lstlisting}
304
305
306
307 \subsection{How to Build from a Previous GIT Version}%
308 \label{sub:how_to_build_from_a_previous_git_version}
309
310
311 \begin{lstlisting}[language=bash]
312 $ cd /<path>/cin5_repo
313 $ git log
314 $ git checkout <version>
315 \end{lstlisting}
316
317
318 The “git log” command produces a log file with hash values for commit keys.  The hash ids are the commit names to use when you use git checkout.  
319 Next is displayed sample output:
320
321
322 \begin{lstlisting}
323 delete stray line in last checkin
324
325 commit 4a90ef3ae46465c0634f81916b79e279e4bd9961
326 Author: Good Guy <good1.2guy@gmail.com>
327 Date: Thu Feb 22 14:56:45 2018 -0700
328
329 nested clips, big rework and cleanup, sams new icons, leaks and tweaks
330
331 commit f87479bd556ea7db4afdd02297fc00977412b873
332 Author: Good Guy <good1.2guy@gmail.com>
333 Date: Sat Feb 17 18:09:22 2018 -0700
334 \end{lstlisting}
335
336 For the “git checkout <version>, you would then keyin the line below for the following results:
337
338 \begin{lstlisting}
339 $ git checkout f87479bd556ea7db4afdd02297fc00977412b873
340
341 Note: checking out 'f87479bd556ea7db4afdd02297fc00977412b873'.
342
343         You are in 'detached HEAD' state. You can look around, make experimental
344         changes and commit them, and you can discard any commits you make in this
345         state without impacting any branches by performing another checkout.
346
347         If you want to create a new branch to retain commits you create, you may
348         do so (now or later) by using -b with the checkout command again. Example:
349
350         git checkout -b <new-branch-name>
351
352         HEAD is now at f87479bd... more file size icon updates, and more to followend
353 \end{lstlisting}
354
355 Later to get the repo back to current, use:    
356 \begin{lstlisting}
357 $ git checkout master
358 \end{lstlisting}
359
360
361 \subsection{Debuggable Single User Build}%
362 \label{sub:debuggable_single_user_build}
363
364
365 To build from source with full debugging symbols, first build a full static (non\_debug) build as follows but instead /tmp substituted with a permanent disk path if you want to keep it.
366
367 \begin{lstlisting}
368 $ git clone ...
369 $ cp -a /path/cinelerra-5.1 /tmp/.
370 $ cd /tmp/cinelerra-5.1
371 $ ./bld.sh
372 \end{lstlisting}
373
374
375 Then, to run as a developer in the debugger:
376
377 \begin{lstlisting}[language=bash]
378 $ CFLAGS=”-O2 -ggdb” make -j8 rebuild_all
379 $ cd cinelerra
380 $ gdb ./ci
381 \end{lstlisting}
382
383
384 \subsection{Unbundled Builds}%
385 \label{sub:unbundled_builds}
386
387 There are some generic build scripts included in the Cinelerra-GG GIT repository for users who want to do unbundled builds with ffmpeg already available on their system.  
388 This has been tested on Arch, Ubuntu 18, FreeBSD, and Leap 15 (rpm) at the time this was documented.  
389 The names of the build scripts are:  arch.bld ,  bsd.bld , deb.bld , and rpm.bld .  
390 These scripts are in the “blds” subdirectory.  
391 The bsd.bld should be used with the bsd.patch file in that same directory.
392
393 The reason that Cin Infinity traditionally uses thirdparty builds (bundled builds) is because there are a lot of different distros with varying levels of ffmpeg and other needed thirdparty libraries.  
394 However, some users prefer using their current system baseline without another/different copy of ffmpeg.  
395 With different levels of the user’s libraries, uncertainty, potential instability, and unknown issues may come up while running Cinelerra and this will make it, for all practical purposes, impossible to diagnose and debug problems or crashes.  
396 There may be no help in these cases.  You are encouraged to report any errors which potentially originate from Cin Infinity, but if the data indicates alternate library sources, please report the problems to the appropriate maintainers.
397
398 With the unbundled builds, some features may not be available and no attempt to comment them out has been made.  
399 So if you use a pulldown, or pick a render option, or choose something that is not available, it just will not work.  
400 For example, unless special options were set up by you, the LV2 audio plugins will not be available.  
401 Nor will the codec libzmpeg, the file codec ac3, or DVD creation.  
402 The old school file classes will all work, but some of the formats that come with ffmpeg may not because of the way that ffmpeg was installed on your operating system.  
403 That is because the Cinelerra ffmpeg is a known static build and is usually the latest stable/released version.  
404 In the current case of Leap 15, libx264 and libx265 are not built in and this can be debilitating;  You can always run “ffmpeg -formats” and “ffmpeg -codecs” to see what is available on your system.
405
406
407 \section{Download Already Built Cinelerra-GG}%
408 \label{sec:download_already_built_cinelerra_gg}
409
410 If you prefer to not have to take the time to build Cinelerra-GG Infinity yourself, there are pre-built dynamic or static binaries for various versions of ubuntu, mint, suse, fedora, debian, centos, arch, and slackware linux as well as Gentoo and FreeBSD.  
411 There are also 32-bit i686 ubuntu, debian, and slackware versions available.  
412 These are updated on a fairly regular basis as long as significant code changes have been made.  
413 They are in subdirectories of:
414
415 \url{https://cinelerra-gg.org/download/tars}
416
417 \url{https://cinelerra-gg.org/download/pkgs}
418
419 The “\textbf{tars}” directory contains single-user static builds for different distros.  
420 This is the recommended usage of Cinelerra-GG because all of the files will exist in a single directory.  
421 To install the single user builds, download the designated tarball from the ./tars subdirectory and unpack as indicated below:
422
423 \begin{lstlisting}[language=bash]
424 $ cd /path
425 $ mkdir cin
426 $ cd cin
427 $ tar -xJf /src/path/cinelerra-5.1-*.txz    # for the *, substitute your distro tarball name
428 \end{lstlisting}
429
430 Do NOT download the LEAP 10-bit version unless you use h265 (it can't render 8-bit h265).
431
432 The “\textbf{pkgs}” directory contains the standard packaged application for various distros.  
433 This will install a dynamic system version for users who prefer to have the binaries in the system area and for multi-user systems.  
434 In addition, performing the package install checks the md5sum in the file md5sum.txt to ensure the channel correctly transmits the package.  
435 There is a README.pkgs file in the “pkgs” directory with instructions so you can “cut and paste” and avoid typos; it is also shown next.
436
437 %TODO point to real READ.pkgs
438
439 \begin{lstlisting}
440 Depending on the distro, use the instructions below and select the appropriate 
441 setup operations to install, update or remove cinelerr-gg infinity.  (03/04/2019)
442 To upgrade, refresh repo, then replace "install" with "update", or whatever.
443
444 Email problems to cin@lists.cinelerra-gg.org
445 If repository problems, usually you can manually do an install by using:
446   wget https://cinelerra-gg.org/download/pkgs/{substitute_name}/cin_5.1.<sub_name>.deb
447   and install it manually, for example: dpkg -i cin_5.1.{substitute_filename}.deb
448
449 # GENTOO – courtesy Dominque Michel
450 # There is an ebuild package at this time as of 01/03/2019 at:
451 #    https://svnweb.tuxfamily.org/listing.php?repname=proaudio%2Fproaudio&path=
452 #    %2Ftrunk%2Foverlays%2Fproaudio%2Fmedia-video%2Fcinelerra%2F&#ab000caf7024d83112f42a7e8285f2f29
453
454 # FREEBSD – courtesy Yuri
455 # There is a port available at: https://www.freshports.org/multimedia/cinelerra-gg/
456 # To use this port: cd /usr/ports/multimedia/cinelerra-gg && make install clean
457 #   and then install this precompiled package via: pkg install cinelerra-gg
458
459 # FEDORA
460 # Replace the XX in fedoraXX in the next line with your current O/S version number
461 dnf install cinelerra --nogpgcheck --repofrompath cingg,https://cinelerra-gg.org/download/pkgs/fedoraXX/
462 ##dnf erase cinelerra
463
464 # CENTOS
465 # Python 2 has been updated for other distros to Python 3 so you might have to create a soft link
466 #   to get the correct version.  For help, send email to cin@lists.cinelerra-gg.org
467 # first create the file /etc/yum.repos.d/cin_gg, with the following contents:
468 [cin_gg]
469 name=cingg
470 baseurl=https://cinelerra-gg.org/download/pkgs/centos7
471 gpgcheck=0
472 # end of cin_gg
473 yum install cinelerra
474 ##yum erase cinelerra
475
476 # UBUNTU, replace ub14 with your distro id: ub16,ub17,ub18
477 #  Some ubuntu apt downloads register status as working 0% constantly while running the package
478 #   download, like ubuntu 14.  It may take a few minutes for this step so be patient.
479 apt install software-properties-common apt-transport-https
480 apt-add-repository https://cinelerra-gg.org/download/pkgs/ub14
481 # UBUNTU 16/17/18 note - This has been known to work, but things change quickly:
482 # VIP - for the first install, the above line adds cinelerra to /etc/apt/sources.list but...
483 # Version 16/17/18 of Ubuntu are more strict for licensing so you will have to edit
484 #  the file /etc/apt/sources.list to add [trusted=yes] after deb and before https...cin...
485 # For example the line should be: deb [trusted=yes] https://cinelerra-gg.org/download/pkgs/ub16 xenial main
486 #   Or for ub17: deb [trusted=yes] https://cinelerra-gg.org/download/pkgs/ub17 zesty main
487 #   Or for ub18: deb [trusted=yes] https://cinelerra-gg.org/download/pkgs/ub18 bionic main
488 # Also, on the install you will get an error message that you can either ignore as cinelerra
489 #  will run anyway, or else (the first time only) on the commnand line keyin: 
490 #  echo > /etc/sysctl.d/50-cin.conf "kernel.shmmax=0x7fffffff"
491 apt update
492 apt install cin
493 #to update a previous install (ignore any i386 errors as only 64 bit version available):
494 apt update
495 apt upgrade cin
496 ##apt remove cin
497
498 # MINT should use the same procedure as Ubuntu, but: 
499 # Note: apt-add-repository did not work for me, I had to use the gui version:
500 #  System_OR_Administration->Software Sources->Additional Repositories->Add a new repository
501 #  For Mint18,add: deb [trusted=yes] https://cinelerra-gg.org/download/pkgs/mint18 xenial main
502 #  For Mint19,add: deb [trusted=yes] https://cinelerra-gg.org/download/pkgs/mint19 bionic main 
503 apt update
504 apt install cin
505 #to update a previous install
506 apt update
507 apt upgrade cin
508 ##apt remove cin
509
510 # DEBIAN uses the same basic procedure as Ubuntu.
511 #  The apt-add-repository varies per system so you will have to use your best judgement
512 apt install software-properties-common apt-transport-https
513 apt-add-repository https://cinelerra-gg.org/download/pkgs/debian8
514 OR apt-add-repository https://cinelerra-gg.org/download/pkgs/debian9
515 # VIP - for the first install, the above line adds cinelerra to /etc/apt/sources.list but...
516 # Debian stretch and jessie are more strict for licensing so you will have to edit
517 #  the file /etc/apt/sources.list to add [trusted=yes] after deb and before https...cin...
518 # For example for debian8: deb [trusted=yes] https://cinelerra-gg.org/download/pkgs/debian8 jessie main
519 # For example for debian9: deb [trusted=yes] https://cinelerra-gg.org/download/pkgs/debian9 stretch main
520 apt update
521 apt install cin
522 #to update a previous install
523 apt update
524 apt upgrade cin
525 ##apt remove cin
526
527 # SUSE/LEAP
528 # (Note: you may have to zypper libavc and libiec versions if not already installed)
529 # cinelerra packages are unsigned so you will have to ignore: Package is not signed!
530 # openSUSE LEAP 15
531 zypper ar -f https://cinelerra-gg.org/download/pkgs/leap15/ cingg
532 zypper install -r cingg cinelerra   # or cinelerra10bit for 10 bit
533 # openSUSE LEAP 42
534 zypper ar -f https://cinelerra-gg.org/download/pkgs/leap42/ cingg
535 # as of 42.3 SUSE there is a new requirement, so you will need to add:
536 zypper mr -G cingg
537 zypper install -r cingg cinelerra   # or cinelerra10bit for 10 bit
538 ##zypper remove cinelerra           # or cinelerra10bit for 10 bit
539 #to update a previous install (assuming you enabled autorefresh as above)
540 zypper refresh cingg
541 zypper up cinelerra  # or cinelerra10bit for 10 bit
542
543 # SLACKWARE, substitute slk32 for slk64 and i486-1 for x86_64-1
544 wget -P /tmp https://cinelerra-gg.org/download/pkgs/slk64/cin-{date}-slk64-x86_64.txz
545 installpkg /tmp/cin...    # name you used in the above line
546 #to update a previous install
547 upgradepkg /tmp/cin...    # name you used in the above line
548 ##removepkg cin
549
550 # ARCH linux
551 # first edit the file /etc/pacman.conf, to include the following:
552 [cingg]
553 SigLevel = Optional TrustAll
554 Server = https://cinelerra-gg.org/download/pkgs/arch
555 # end of cingg
556 pacman -Sy
557 pacman -S cin
558 ##pacman -R cin
559 \end{lstlisting}
560
561 \section{Distribution Systems with Cinelerra Included}%
562 \label{sec:distribution_systems_with_cinelerra_included}
563
564 There are also some special complete distribution systems available that include Cinelerra-GG for audio and video production capabilities.
565
566 AV Linux is a downloadable/installable shared snapshot ISO image based on Debian. 
567 It provides the user an easy method to get an Audio and Video production workstation without the hassle of trying to find and install all of the usual components themselves. 
568 Of course, it includes Cinelerra-GG!  
569 It is at:
570
571 \url{http://www.bandshed.net/avlinux/}
572
573 Bodhi Linux is a free and open source distribution that comes with a curated list of open source software for digital artists who work with audio, video, includes Cinelerra GG, games, graphics, animations, physical computing, etc.  
574 It is at:
575
576 \url{https://gitlab.com/giuseppetorre/bodhilinuxmedia}  
577
578 \section{Cinx and a “Bit” of Confusion}%
579 \label{sec:cinx_and_a_bit_of_confusion}
580
581 Cinx is the exact same program as Cin.  
582 The X (x) represents the roman numeral 10 for 10-bit as opposed to 8-bit standard.  
583 The third-party library used for x265 must be specially compiled with \texttt{--bit-depth=10} in order to produce 10-bit rendered output.  
584 This build will not be able to output 8-bit depth which means you have to retain the Cin version also.  
585 Whatever build ffmpeg is linked to will determine what bit depth it can output.  
586 This is why there have to be separate builds.  
587 If you install both packages, Cin and CinX, you may get “file conflicts of same file name” --- just continue.
588
589 Keep in mind that the regular 8-bit version works on 8-bit bytes --- the standard word size for computers, but the 10-bit version has to use 2 words to contain all 10 bits so you can expect rendering to be as much as twice as slow.  
590 There is also a 12-bit version for consideration but currently the results are simply the same as 10-bit with padding to make 12-bit so it is of no value.
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607