2019-03-01, 18:45
Hi all,
I have a UDOO X86 Advanced Plus, running openSUSE Leap 15 with MariaDB/mysql
Done the following to setup KODI and mysql on it:
add packman repo.
zypper dup --from packman
sudo pkill mysql
systemctl stop mariadb
Next, started the service with --skip-grant-tables:
sudo systemctl set-environment MYSQLD_OPTS="--skip-grant-tables"
systemctl start mariadb
systemctl status mariadb
This will allow you to connect to the database server as root without a password (openSUSE comes with mariaDB installed,so I don't know the password.
mysql -u root
USE mysql;
UPDATE user SET password=PASSWORD('NewPasswordHere') WHERE User='root' AND Host = 'localhost';
FLUSH PRIVILEGES;
\q
Stop the service, unset the environment variable and start the service once again:
systemctl stop mariadb
sudo systemctl unset-environment MYSQLD_OPTS
systemctl start mariadb
Enable the service so it starts at startup:
systemctl enable mariadb
Above taken from: https://www.tecmint.com/reset-mysql-or-m...-password/
mysql -u root -p
CREATE USER 'udoo'@'%' IDENTIFIED BY 'udoo';
CREATE USER 'udoo'@localhost IDENTIFIED BY 'udoo';
GRANT ALL PRIVILEGES on *.* TO 'udoo'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;
\q
sudo nano /etc/my.cnf
change the bind-address to:
bind-address = 0.0.0.0
sudo service mysql restart
sudo smbpasswd -a simorgh
sudo nano /etc/samba/smb.conf
-> add these lines at the end of smb.conf
[media]
path = /home/simorgh/media
valid users = simorgh
read only = no
Restart samba:
sudo systemctl restart nmb smb
In firewall application under YaST : options > 'change default zone' > Home
open 8080 port for tcp and udp
open samba and mysql ports
Install KODI first and start it for at least once!
IMPORTANT!!! IMPORTANT!!! IMPORTANT!
Start KODI on server side at least once and let it populate the database without mysql or advancedsettings.xml (just celan KODI)
in Kodi : Service Settings > Control > port: 8080 , username: udoo , password: udoo
and turn on: "Allow remote control from applications on other systems"
nano ~/.kodi/userdata/advancedsettings.xml
...
<!-- MySQL Library -->
<videodatabase>
<type>mysql</type>
<host>127.0.0.1</host>
<port>3306</port>
<user>udoo</user>
<pass>udoo</pass>
</videodatabase>
...
This is my setup.
Now when I go to KODI and want to add videos > Browse> Add network location >Protocol SMB > server name : 10.0.1.130 > username : simorgh > password : 'MyPass' > OK
It says connection refused.
in mysql:
Has anyone have an idea what I am missing?
Appreciate any help.
Regards
I have a UDOO X86 Advanced Plus, running openSUSE Leap 15 with MariaDB/mysql
Done the following to setup KODI and mysql on it:
add packman repo.
zypper dup --from packman
sudo pkill mysql
systemctl stop mariadb
Next, started the service with --skip-grant-tables:
sudo systemctl set-environment MYSQLD_OPTS="--skip-grant-tables"
systemctl start mariadb
systemctl status mariadb
This will allow you to connect to the database server as root without a password (openSUSE comes with mariaDB installed,so I don't know the password.
mysql -u root
USE mysql;
UPDATE user SET password=PASSWORD('NewPasswordHere') WHERE User='root' AND Host = 'localhost';
FLUSH PRIVILEGES;
\q
Stop the service, unset the environment variable and start the service once again:
systemctl stop mariadb
sudo systemctl unset-environment MYSQLD_OPTS
systemctl start mariadb
Enable the service so it starts at startup:
systemctl enable mariadb
Above taken from: https://www.tecmint.com/reset-mysql-or-m...-password/
mysql -u root -p
CREATE USER 'udoo'@'%' IDENTIFIED BY 'udoo';
CREATE USER 'udoo'@localhost IDENTIFIED BY 'udoo';
GRANT ALL PRIVILEGES on *.* TO 'udoo'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;
\q
sudo nano /etc/my.cnf
change the bind-address to:
bind-address = 0.0.0.0
sudo service mysql restart
sudo smbpasswd -a simorgh
sudo nano /etc/samba/smb.conf
-> add these lines at the end of smb.conf
[media]
path = /home/simorgh/media
valid users = simorgh
read only = no
Restart samba:
sudo systemctl restart nmb smb
In firewall application under YaST : options > 'change default zone' > Home
open 8080 port for tcp and udp
open samba and mysql ports
Install KODI first and start it for at least once!
IMPORTANT!!! IMPORTANT!!! IMPORTANT!
Start KODI on server side at least once and let it populate the database without mysql or advancedsettings.xml (just celan KODI)
in Kodi : Service Settings > Control > port: 8080 , username: udoo , password: udoo
and turn on: "Allow remote control from applications on other systems"
nano ~/.kodi/userdata/advancedsettings.xml
...
<!-- MySQL Library -->
<videodatabase>
<type>mysql</type>
<host>127.0.0.1</host>
<port>3306</port>
<user>udoo</user>
<pass>udoo</pass>
</videodatabase>
...
This is my setup.
Now when I go to KODI and want to add videos > Browse> Add network location >Protocol SMB > server name : 10.0.1.130 > username : simorgh > password : 'MyPass' > OK
It says connection refused.
in mysql:
Quote:MariaDB [(none)]> select User, host, password FROM mysql.user;
+------+-------------+-------------------------------------------+
| User | host | password |
+------+-------------+-------------------------------------------+
| root | localhost | *B81F0458ACE8C3A656116352C9A33B62EC67692C |
| root | simorghudoo | |
| root | 127.0.0.1 | |
| root | ::1 | |
| | localhost | |
| | simorghudoo | |
| udoo | localhost | *9292B681E5729F5581650DC8C1B44F400B4114D8 |
| udoo | % | *9292B681E5729F5581650DC8C1B44F400B4114D8 |
+------+-------------+-------------------------------------------+
8 rows in set (0.00 sec)
Has anyone have an idea what I am missing?
Appreciate any help.
Regards