Installation
[WORK IN PROGRESS]
This installation guide uses gentoo like OS and is tested to work also in a virtual machine. To install a virtual machine in a Debian environment, you can follow these guides. 1) https://wiki.debian.org/LXC#Installation 2) https://wiki.debian.org/LXC/SimpleBridge#Using_lxc-net

Installation on Gentoo

1
$ emerge eix
2
$ emerge sudo
3
$ emerge -av mediainfo
4
$ emerge -av exiftool
5
$ emerge imagemagick
6
$ USE="-drm -opengl" emerge -av ufraw
7
$ emerge -av mysql
8
$ emerge --config dev-db/mysql
Copied!
Insert your password and remember it!
1
$ nano /etc/portage/make.conf
Copied!
Add this configuration to make.conf:
1
## /etc/portage/make.conf
2
3
# built this stage.
4
# Please consult /usr/share/portage/config/make.conf.example for a more
5
# detailed example.
6
CFLAGS="-march=native -O2 -pipe"
7
# Use the same settings for both variables
8
CXXFLAGS="${CFLAGS}"
9
MAKEOPTS="-j17"
10
# NOTE: This stage was built with the bindist Use flag enabled
11
PORTDIR="/usr/portage"
12
DISTDIR="/usr/portage/distfiles"
13
PKGDIR="/usr/portage/packages"
14
15
# This sets the language of build output to English.
16
# Please keep this setting intact when reporting bugs.
17
LC_MESSAGES=C
18
CPU_FLAGS_X86='aes avx avx2 f16c fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3'
19
USE="bindist mmx sse sse2 mmxext sse4_1 sse4_2 ssse3 x265 jpeg2k mp3 \
20
-opengl -drm opus oss postproc bluray rtmp schroedinger sdl theora v4l vorbis x264 xvid zlib \
21
jpeg tiff png faac network aac aacplus alsa amr amrenc \
22
lm_sensors libcaca gnutls vaapi ffmpeg apache2 -X"
23
GENTOO_MIRRORS="http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
Copied!
Be careful not to paste strange characters, even if not visible.
1
MAKEOPTS="-j17" is refered to the numbers of your processors.
2
You can find this information typing:
3
$ cat /proc/cpuinfo
4
So if your machine, for example, have 4 processor you can edit this line like:
5
MAKEOPTS="-j4"
Copied!
1
$ nano /etc/portage/package.use/php
Copied!
Add this configuration to php:
dev-lang/php acl apache2 bcmath berkdb bzip2 cdb cgi cjk cli crypt ctype curl fileinfo filter ftp gd gdbm gmp hash iconv ipv6 json mysql mysqli nls odbc opcache pdo phar posix readline session simplexml ssl tokenizer unicode xml xmlreader xmlrpc xmlwriter zip zlib
1
$ emerge -av =dev-lang/php-5.6.35-r1
Copied!
These are the packages that would be merged, in order:
Calculating dependencies... done! [ebuild N ] dev-libs/oniguruma-6.7.1:0/4::gentoo USE="-combination-explosion-check -crnl-as-line-terminator -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB [ebuild N ] dev-db/unixODBC-2.3.5-r1::gentoo USE="minimal unicode -odbcmanual -static-libs" ABI_X86="(64) -32 (-x32)" 1,596 KiB [ebuild N ] dev-libs/libmcrypt-2.5.8-r4::gentoo 0 KiB [ebuild N ] dev-lang/nasm-2.13.01::gentoo USE="-doc" 0 KiB [ebuild N ] dev-db/cdb-0.75-r4::gentoo 53 KiB [ebuild N ] app-eselect/eselect-php-0.9.4-r5::gentoo USE="apache2 -fpm" 0 KiB [ebuild N ] media-libs/libjpeg-turbo-1.5.1::gentoo USE="-java -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB [ebuild N ] virtual/jpeg-0-r2::gentoo USE="-static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB [ebuild N ] dev-lang/php-5.6.35-r1:5.6::gentoo USE="acl apache2 bcmath berkdb bzip2 cdb cgi cjk cli crypt ctype curl fileinfo filter ftp gd gdbm gmp hash iconv ipv6 json mysql mysqli nls odbc opcache pdo phar posix readline session simplexml ssl tokenizer unicode xml xmlreader xmlrpc xmlwriter zip zlib -calendar -coverage -debug -embed -enchant -exif (-firebird) -flatfile -fpm -imap -inifile -intl -iodbc -kerberos -ldap -ldap-sasl -libedit -libmysqlclient -libressl -mhash -mssql -oci8-instant-client -pcntl -postgres -qdbm -recode (-selinux) -sharedmem -snmp -soap -sockets -spell -sqlite -sybase-ct -systemd -sysvipc -threads -tidy -truetype -vpx -wddx -xpm -xslt" 12,175 KiB
Total: 9 packages (9 new), Size of downloads: 13,823 KiB
Would you like to merge these packages? [Yes/No]
[Type yes if sodisfied]
1
$ emerge --update --newuse --deep --ask world
2
$ eix-update
3
$ nano /etc/portage/package.use/mysql
Copied!
Add this line to file mysql:
dev-db/mysql extraengine
1
$ emerge -av apache
Copied!
1
$ visudo
Copied!
The part below, and only this section is to modifie in /etc/sudoers. In this manner will be abilitate all user for group wheel (to confront with gpasswd) Remember that you must open this file with visudo.
Uncomment %wheel ALL=(ALL) NOPASSWD: ALL Uncomment %sudo ALL=(ALL) ALL
1
$ eix-update
2
$ eix dev-lang/php
3
$ emerge -av =dev-lang/php-5.6.35-r1
Copied!
If you emerge also php7. in a new SLOT (cfr. portage) is necessary to verify wich ambient is set with. This version of software require php 5.6
1
$ eselect php list apache2
2
3
[1] php5.6 *
4
[2] php7.1
Copied!
1
$ nano /etc/conf.d/apache2
Copied!
Add at the finish, in line APACHE2_OPTS
-D PHP
1
$ rc-service apache2 restart
Copied!
1
$ nano /etc/php/apache2-php5.6/php.ini
Copied!
Add and change in php.ini: error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE display_errors = On date.timezone = "Europe/Rome"
1
$ rc-service mysql start
2
$ mysql -u root -p
3
CREATE DATABASE DAM2;
4
CREATE DATABASE asset09;
5
CREATE DATABASE flow_bins;
6
\q
7
$ wget http://git.cubotto.org/db_structure.zip
8
$ unzip db_structure.zip
9
$ mysql -u root -p asset09 < asset09.sql
10
$ mysql -u root -p flow_bins < flow_bins.sql
11
$ mysql -u root -p DAM2 < DAM2.sql
Copied!
The table asset09.admgoups it must never be changed, contains the numerical values of the levels of permissions associated with the users contained in the table asset09.administrators
The table asset09.support it must never be changed, contains information for treatments of media assets associated with the different types of devices.
1
$ nano /etc/portage/package.use/ffmpeg
Copied!
Add this line media-video/ffmpeg openh264 libv4l -drm -opengl x11-libs/libva -drm -opengl
1
(si devono riverificare queste linee emerge -av libva
2
416 USE="drm" emerge -av libva
3
417 USE="drm" emerge -av libva
4
418 etc-update
5
419 USE="drm" emerge -av libva
6
420 emerge -av ffmpeg
7
421 emerge -av ffmpeg)
8
9
$ emerge -av ffmpeg
10
$ emerge -av ffmpegthumbnailer
11
$ emerge --ask dev-vcs/git
12
$ git config --global user.email "<[email protected]>"
13
$ git config --global user.name "<your_user_name>"
14
$ cd /var/www/localhost/htdocs
15
$ git clone http://git.cubotto.org:/cranio/Kegmmav.git
16
$ chown -R apache:apache Kegmmav/
17
$ nano /etc/apache2/vhosts.d/00_default_vhost.conf
Copied!
Add after ServerName DocumentRoot /var/www/localhost/htdocs/Kegmmav/public_html
1
rc-service apache2 restart
2
3
gpasswd -a apache wheel
4
5
crei la dir source sotto usr/local/ e ci metti i sorgenti del modulo di streaming
6
7
cd ~/mod_h264_streaming-2.2.7
8
./configure --with-apxs=`which apxs2`
9
make
10
sudo make install
11
12
13
add in httpd.conf this line
14
LoadModule h264_streaming_module /usr/lib/apache2/modules/mod_h264_streaming.so
15
AddHandler h264-streaming.extensions .mp4
16
17
rc-service apache2 restart
18
19
ricordarsi prima di installare ffmpeg di creare in package.use il file con le sue istruzioni
20
Copied!
Last modified 3yr ago
Copy link