Project

General

Profile

Ubuntu 20.04 - TvHeanded compilation to get the last version

Added by Issa Issa about 2 months ago

Hello there,

so i m looking to install TvHEandend with compilation and i can"t make it works :/

so

Prérequis :

sudo apt install build-essential git pkg-config libssl-dev bzip2 wget libavahi-client-dev zlib1g-dev libavcodec-dev libavutil-dev libavformat-dev libswscale-dev libavresample-dev
git clone https://github.com/tvheadend/tvheadend.git

[email protected]:/home/stagiaire/tvheadend# ./configure
Checking support/features
  checking for cc execinfo.h ...                    ok
  checking for cc -mmmx ...                         ok
  checking for cc -msse2 ...                        ok
  checking for cc -Wunused-result ...               ok
  checking for cc -fstack-protector ...             ok
  checking for cc -fstack-protector-strong ...      ok
  checking for cc -fstack-check ...                 ok
  checking for cc -fPIE ...                         ok
  checking for cc strlcat ...                       fail
  checking for cc strlcpy ...                       fail
  checking for cc fdatasync ...                     ok
  checking for cc getloadavg ...                    ok
  checking for cc atomic32 ...                      ok
  checking for cc atomic64 ...                      ok
  checking for cc atomic_time_t ...                 ok
  checking for cc atomic_ptr ...                    ok
  checking for cc bitops64 ...                      ok
  checking for cc lockowner ...                     ok
  checking for cc qsort_r ...                       ok
  checking for cc stime ...                         fail
  checking for cc gmtoff ...                        ok
  checking for cc recvmmsg ...                      ok
  checking for cc sendmmsg ...                      ok
  checking for cc libiconv ...                      fail
    ^ using build-in glibc iconv routines
  checking for cc ifnames ...                       ok
  checking for cc cclang_threadsan ...              fail
WARN: no python binary found
  checking for py module gzip ...                   fail
  checking for pkg-config ...                       ok
  checking for xgettext ...                         fail
ERROR: no gettext binaries found
[email protected]:/home/stagiaire/tvheadend# make
Makefile:755: /support/.mk: No such file or directory
make: *** No rule to make target '/support/.mk'.  Stop.

how to fix compilationplease


Replies (12)

RE: Ubuntu 20.04 - TvHeanded compilation to get the last version - Added by Issa Issa about 2 months ago

Hello

after hour and hour, i sucefull compiled :)

but is not finich :'(

- now how to make tvheadend as service ?
- How to connect, what is the defaut user and password ?
- how to add https acess ?

please help to finish

RE: Ubuntu 20.04 - TvHeanded compilation to get the last version - Added by saen acro about 2 months ago

Issa Issa wrote:

Hello

after hour and hour, i sucefull compiled :)

but is not finich :'(

- now how to make tvheadend as service ?
- How to connect, what is the defaut user and password ?
- how to add https acess ?

please help to finish

When install will get all information you ask

RE: Ubuntu 20.04 - TvHeanded compilation to get the last version - Added by Issa Issa about 2 months ago

when i compile, i got no information

so i found reponse to this question :

- now how to make tvheadend as service ? no found for now
- How to connect, what is the defaut user and password ? we have to start Tvheadend with tvheadend C to create user first time
how to add https acess ? no found for now

well well hope someon can help me to finish my install

RE: Ubuntu 20.04 - TvHeanded compilation to get the last version - Added by saen acro about 2 months ago

Whein install from DEB it's service,
also user and password created in install wizard.

https whay you need it admin access can be limited to specific ip or range of ip's
or install some proxy (nginx)

RE: Ubuntu 20.04 - TvHeanded compilation to get the last version - Added by Issa Issa about 2 months ago

Hello,
this is why i got and i can't install it :

[email protected]:~$ curl http://apt.tvheadend.org/repo.gpg.key | sudo apt-key add -
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   162    0   162    0     0    437      0 --:--:-- --:--:-- --:--:--   436
gpg: no valid OpenPGP data found.
[email protected]:~$ sudo apt-add-repository -r http://apt.tvheadend.org/stable
[email protected]:~$ sudo apt-add-repository http://apt.tvheadend.org/unstable
Hit:1 http://fr.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://fr.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 http://fr.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:4 http://fr.archive.ubuntu.com/ubuntu focal-security InRelease
Ign:5 http://apt.tvheadend.org/unstable focal InRelease
Err:6 http://apt.tvheadend.org/unstable focal Release
  404  Not Found [IP: 2606:4700:3030::ac43:cedf 80]
Reading package lists... Done
E: The repository 'http://apt.tvheadend.org/unstable focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
stagiai[email protected]:~$ sudo apt update
Hit:1 http://fr.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://fr.archive.ubuntu.com/ubuntu focal-updates InRelease
Ign:3 http://apt.tvheadend.org/unstable focal InRelease
Err:4 http://apt.tvheadend.org/unstable focal Release
  404  Not Found [IP: 2606:4700:3032::681f:5f49 80]
Hit:5 http://fr.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:6 http://fr.archive.ubuntu.com/ubuntu focal-security InRelease
Reading package lists... Done
E: The repository 'http://apt.tvheadend.org/unstable focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

[email protected]:~$ sudo apt install tvheadend
Reading package lists... Done
Building dependency tree
Reading state information... Done

No apt package "tvheadend", but there is a snap with that name.
Try "snap install tvheadend" 

E: Unable to locate package tvheadend

so how fix this please

so no choic to install via snap ?

RE: Ubuntu 20.04 - TvHeanded compilation to get the last version - Added by Issa Issa about 2 months ago

OK so i found a way :

https://lintut.com/install-tvheadend-on-ubuntu-18-04-server/

to resume :

sudo apt-get -y install coreutils wget apt-transport-https lsb-release ca-certificates
sudo wget -qO- https://doozer.io/keys/tvheadend/tvheadend/pgp | sudo apt-key add -

sudo add-apt-repository 'deb https://apt.tvheadend.org/stable focal main'
$ sudo apt-get update
$ sudo apt-get install tvheadend -y

still missing https acess :/

RE: Ubuntu 20.04 - TvHeanded compilation to get the last version - Added by saen acro about 2 months ago

Issa Issa wrote:

still missing https acess :/

There is SEARCH option, use it.
https://tvheadend.org/boards/5/topics/35239

RE: Ubuntu 20.04 - TvHeanded compilation to get the last version - Added by Issa Issa about 2 months ago

thanks for this response but it's not clear for me

i need a complete how to please

RE: Ubuntu 20.04 - TvHeanded compilation to get the last version - Added by Flole Systems about 2 months ago

If you need a complete howto then you should pay someone to provide support. You should be able to search and find basic information yourself, otherwise Tvheadend is not the right software for you.

RE: Ubuntu 20.04 - TvHeanded compilation to get the last version - Added by Issa Issa about 2 months ago

ooooooooooooooK, nice response :)

this my How to for free :

Install Nginx :

sudo apt-get isntall nginx

Install autosigned certificat :

sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/nginx-selfsigned.key -out /etc/ssl/certs/nginx-selfsigned.crt
sudo openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048

ok so now install u config files on nginx :

nano /etc/nginx/sites-available/default
server {
 listen 80;
# server_name tvheadend.domaine.fr;
 server_name 192.168.50.28;
 return 301 https://$server_name$request_uri;
}
server {
 listen 443 ssl http2; #Nginx > 1.9.5
# server_name tvheadend.domaine.fr;
 server_name 192.168.50.28;

 # Le reste de votre conf

 ## Certificates
ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt;
ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key;

 ## Protocol
 ssl_protocols TLSv1.2;

 ## Diffie-Hellman
 ssl_ecdh_curve secp384r1;

 ## Ciphers
 ssl_ciphers EECDH+CHACHA20:EECDH+AESGCM:EECDH+AES;
 ssl_prefer_server_ciphers on;

 # OCSP Stapling
 resolver 80.67.169.12 80.67.169.40 valid=300s;
 resolver_timeout 5s;
 ssl_stapling on;
 ssl_stapling_verify on;

 ## TLS parameters
 ssl_session_cache shared:SSL:10m;
 ssl_session_timeout 5m;
 ssl_session_tickets off;

 ## HSTS
 add_header Strict-Transport-Security "max-age=15552000; includeSubdomains; preload";

location / {
                proxy_pass http://192.168.50.28:9981;
                proxy_set_header Host $host;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
        }

}

Test de la config :

sudo nginx -t
[email protected]:/home/stagiaire# sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
sudo service nginx restart

Last way now is bloc the acess public in http://192.168.50.28:9981

next step LEt's encrypt acess :)

and it's will be OK for me

after i make my key workging in other post :)

thanks u all :)

Webologie :
https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/
https://angristan.fr/configurer-https-nginx/
https://tvheadend.org/boards/5/topics/35239
https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-nginx-in-ubuntu-16-04
https://github.com/tvheadend/tvheadend/blob/master/docs/markdown/faqs.md#q-access-tvheadend-through-http-proxy

RE: Ubuntu 20.04 - TvHeanded compilation to get the last version - Added by saen acro about 2 months ago

Flole Systems wrote:

If you need a complete howto then you should pay someone to provide support. You should be able to search and find basic information yourself, otherwise Tvheadend is not the right software for you.

Paid support 50/50 to support and TVH paypal account ;)
https://tvheadend.org/projects/tvheadend/wiki/Donate


by the way
not only NGINX can do job
https://www.stunnel.org
can do it also


p.s.
native nginx is not good choice, better nginx-full

For non layzy to read, manual build with some extra plugins for TS-HTTP streaming
https://github.com/young-I/nginx-ts-module
why not
https://github.com/pingostack/pingos

    (1-12/12)