KODI: Aufbau eines praktischen und funktionalen Medienzentrums fĂŒr Ihr Zuhause. Teil 6. Synchronisation der Bibliothek. MariaDB

Lyrischer Exkurs

Seit mehr als einem Jahr nutze ich KODI als Medienzentrum. Alles begann mit einigen grundlegenden Dingen, aber selbst von dieser FunktionalitÀt war ich absolut begeistert. Fernsehen, Filme und Fernsehsendungen sehen nicht mehr nach einer Art Suche aus, und alle meine Familienmitglieder lieben auch KODI, und ich kann mir nicht einmal vorstellen, wie ich ohne sie auskommen könnte.





Aber ich tauchte immer mehr in seine FĂ€higkeiten ein und erhöhte allmĂ€hlich die FunktionalitĂ€t. Ich habe scheinbar einfache Dinge implementiert, aber wenn Sie alle kleinen Details zusammenfĂŒgen, verstehen Sie, wie komfortabel, logisch und nachdenklich alles ist und vor allem - funktional. Dies ist die Art von Bewertung, die ich fĂŒr das gesamte Endergebnis gebe. FĂŒr einige wird dies natĂŒrlich ĂŒberhaupt nicht der Fall sein, da jeder „seine eigenen Marker“ hat. Aber nach den ersten Veröffentlichungen erhielt ich viele positive RĂŒckmeldungen vom Publikum und den GĂ€sten von Habr, und mir wurde klar, dass meine Erfahrung fĂŒr jemanden nĂŒtzlich war. Es ist schön. Deshalb möchte ich fortfahren.





Wenn Sie die vorherigen Veröffentlichungen verpasst haben - schauen Sie sich diese an, vielleicht gibt es etwas Interessantes fĂŒr Sie. Kurz gesagt, wir haben das Betriebssystem und KODI von Grund auf neu installiert und konfiguriert und die Anzeige von Torrent-Inhalten, YouTube und IPTV eingerichtet. Wir sprachen ĂŒber das Verwalten von anderen GerĂ€ten, Backups und Verkehrsanalysen und brachten KODI sogar bei, Retro-Spiele auszufĂŒhren.





Alle frĂŒheren Veröffentlichungen:

KODI: Aufbau eines praktischen und funktionalen Medienzentrums fĂŒr Ihr Zuhause. Teil 1

KODI: Aufbau eines praktischen und funktionalen Medienzentrums fĂŒr zu Hause. Teil 2

KODI: Aufbau eines praktischen und funktionalen Medienzentrums fĂŒr zu Hause. Teil 3. Retro-Spiele

KODI: Aufbau eines praktischen und funktionalen Medienzentrums fĂŒr zu Hause. Teil 4. Archiv IPTV

KODI: Aufbau eines praktischen und funktionalen Medienzentrums fĂŒr zu Hause. Teil 5. Yandex.Music





Warum wurde alles angefangen?

, – . – KODI, – Tizen OS. , KODI . 






, , . . Raspberry Pi 3 , ( ).





, – KODI Kubuntu 20.04 , – LibreELEC .





«» :





  • IPTV. ilook PVR IPTV Simple Client. , .





  • -. .





, LibreELEC , , . IPTV Elementum .





, MariaDB ? , , , . , ?





KODI . MySQL-, . , Windows. , 24/7, – , .





, .





. MariaDB

Wiki KODI, , – . – , , , – . – .





@vyacheslavteplyakov , Wiki , , . .





:

  • MariaDB;





  • ;





  • ;





  • – NFS SMB, NTFS, ;





  • KODI .





– . , KODI Kubuntu 20.04.





MariaDB





sudo apt update
sudo apt install mariadb-server
      
      



C . , , , , , root .









sudo mysql_secure_installation
      
      



, MariaDB. , . , – :





root@kodi-pc:/# sudo mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user.  If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
      
      



root . , ENTER.





Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.

Set root password? [Y/n]
      
      



(N).





By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n]
      
      



(Y).





Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n]
      
      



root. (N).





By default, MariaDB comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n]
      
      



, (Y).





Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n]
      
      



. (Y).





, - . kodi kodi MariaDB





sudo mariadb
GRANT ALL ON *.* TO 'kodi'@'localhost' IDENTIFIED BY 'kodi' WITH GRANT OPTION;
      
      



kodi





GRANT ALL PRIVILEGES ON *.* TO kodi@'%' IDENTIFIED BY 'kodi';
      
      



,





FLUSH PRIVILEGES;
      
      



MariaDB ,





exit
      
      



, 3306 bind-address 0.0.0.0. MariaDB





sudo mcedit /etc/mysql/mariadb.conf.d/50-server.cnf
      
      







port = 3306
      
      



bind-address 0.0.0.0 ( 127.0.0.1)





bind-address = 0.0.0.0
      
      



MySQL-





sudo service mysql restart
      
      



, . . .





, MySQL Workbench.





:

Connection Method - Standart (TCP/IP)

Hostname – 192.168.0.50 ( )

Port – 3306

Username – kodi ( , )





«Test Connection», , – :





. «». . MariaDB , .





. KODI

, , . , - Elementum.





. , :

/mnt/kodi/library/Movies –

/mnt/kodi/library/Shows –





/mnt/kodi/library. samba





sudo mcedit /etc/samba/smb.conf
      
      



:





[library]
comment = library
path = /mnt/kodi/library/
browsable = yes
writable = yes
guest ok = yes
read only = no
force user = nobody
force group = nogroup
force create mode = 0777
force directory mode = 0777
      
      



samba





sudo /etc/init.d/smbd restart
      
      



.





! ! ().





«///» Movies Shows , « ». Kubuntu.





, KODI, .





KODI, . advancedsettings.xml (/home/_/.kodi/userdata/) :





<advancedsettings>
  <videodatabase>
    <type>mysql</type>
    <host>192.168.0.50</host>
    <port>3306</port>
    <user>kodi</user>
    <pass>kodi</pass>
  </videodatabase>
  <videolibrary>
    <importwatchedstate>true</importwatchedstate>
    <importresumepoint>true</importresumepoint>
  </videolibrary>
</advancedsettings>
      
      



advancedsettings.xml – . , :

Host – IP- MySQL-;

User – MariaDB;

Pass – MariaDB.





. . KODI , , - , KODI .





:

– 322

– 68

- 319

- 2254

- 380

(nfo strm) – 3826





10 . , . MySQL Workbench.





, KODI «MyVideos119» . , «Movie» - . , .





, . 100 . , , , .





, , :





  • advancedsettings – , ;





  • «///» , , ;





  • , Elementum – ( -). , () , . , .





:





/home/kodi/.kodi/userdata/advancedsettings.xml

/home/kodi/.kodi/userdata/sources.xml

/home/kodi/.kodi/userdata/addon_data/plugin.video.elementum/settings.xml

/home/kodi/.kodi/userdata/addon_data/script.elementum.burst/settings.xml





, KODI , , , , .





. , .





advancedsettings.xml musicdatabase





  <musicdatabase>
    <type>mysql</type>
    <host>192.168.0.50</host>
    <port>3306</port>
    <user>kodi</user>
    <pass>kodi</pass>
  </musicdatabase>
      
      



advancedsettings.xml , videolibrary . , - - .





, , , – . , - .





- - .





KODI!








All Articles