catalinii / minisatip

minisatip is an SATIP server for linux using local DVB-S2, DVB-C, DVB-T or ATSC cards
https://minisatip.org
327 stars 80 forks source link

how to install minisatip ??? #1010

Closed dnmnhat closed 1 year ago

dnmnhat commented 1 year ago

I can't find any instructions on how to install ubuntu or debian ?? Or can someone guide me to install it? Screenshot (1)

Jalle19 commented 1 year ago

You're right in that there's no easy guide on how to install it. I'll see if I can write something up in the wiki.

Geg0r commented 1 year ago

I have written a small script that will install always the latest git version

#!/bin/sh
##minisatip updater
#stop current minisatip instance
pkill -f minisatip
# move to /opt folder
cd /opt
#remove old folder
rm -rf minisatip*
#clone new folder
git clone https://github.com/catalinii/minisatip.git
# move to new folder
cd minisatip
# configure minisat
./configure make
# build minisatip
make
# start minisat with parameter
./minisatip -k

Just put this in a file e.g minisatip-update.sh and make it executable with chmod +x minisatip-update.sh Run the script using sudo ./minisatip-update.sh

CvH commented 1 year ago

@Jalle19 why not using Github Actions to compile all kind of versions for a release ? You could even use some .deb creation action (I never tried these) to create a deb file for easy installation.

Jalle19 commented 1 year ago

@CvH it's a good idea, just no one has gotten around to it yet

dnmnhat commented 1 year ago

i run bash

> #!/bin/sh
> cd /opt
> #clone new folder
> git clone https://github.com/catalinii/minisatip.git
> # move to new folder
> cd /opt/minisatip
> # configure minisatip
> ./configure make
> # build minisatip
> make
> # start minisat with parameter
> ./minisatip -k

and

> root@orangepizero2:/opt# sudo ./minisatip-update.sh
> Cloning into 'minisatip'...
> remote: Enumerating objects: 7721, done.
> remote: Counting objects: 100% (390/390), done.
> remote: Compressing objects: 100% (181/181), done.
> remote: Total 7721 (delta 246), reused 293 (delta 204), pack-reused 7331
> Receiving objects: 100% (7721/7721), 5.26 MiB | 5.64 MiB/s, done.
> Resolving deltas: 100% (5643/5643), done.
> configure: WARNING: you should use --build, --host, --target
> checking for make-gcc... no
> checking for gcc... gcc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> checking for main in -lrt... yes
> checking how to run the C preprocessor... gcc -E
> checking for grep that handles long lines and -e... /usr/bin/grep
> checking for egrep... /usr/bin/grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking arpa/inet.h usability... yes
> checking arpa/inet.h presence... yes
> checking for arpa/inet.h... yes
> checking fcntl.h usability... yes
> checking fcntl.h presence... yes
> checking for fcntl.h... yes
> checking netdb.h usability... yes
> checking netdb.h presence... yes
> checking for netdb.h... yes
> checking netinet/in.h usability... yes
> checking netinet/in.h presence... yes
> checking for netinet/in.h... yes
> checking for stdint.h... (cached) yes
> checking for stdlib.h... (cached) yes
> checking for string.h... (cached) yes
> checking sys/ioctl.h usability... yes
> checking sys/ioctl.h presence... yes
> checking for sys/ioctl.h... yes
> checking sys/socket.h usability... yes
> checking sys/socket.h presence... yes
> checking for sys/socket.h... yes
> checking sys/time.h usability... yes
> checking sys/time.h presence... yes
> checking for sys/time.h... yes
> checking syslog.h usability... yes
> checking syslog.h presence... yes
> checking for syslog.h... yes
> checking for unistd.h... (cached) yes
> checking for int16_t... yes
> checking for int64_t... yes
> checking for int8_t... yes
> checking for size_t... yes
> checking for uint16_t... yes
> checking for uint32_t... yes
> checking for uint64_t... yes
> checking for uint8_t... yes
> checking for stdlib.h... (cached) yes
> checking for GNU libc compatible malloc... yes
> checking for stdlib.h... (cached) yes
> checking for unistd.h... (cached) yes
> checking for sys/param.h... yes
> checking for getpagesize... yes
> checking for working mmap... yes
> checking for bzero... yes
> checking for clock_gettime... yes
> checking for dup2... yes
> checking for gethostbyname... yes
> checking for gettimeofday... yes
> checking for inet_ntoa... yes
> checking for memset... yes
> checking for munmap... yes
> checking for socket... yes
> checking for strchr... yes
> checking for strerror... yes
> checking for strncasecmp... yes
> checking for strstr... yes
> configure:  == Checking LINUX DVB ==
> checking linux/dvb/frontend.h usability... yes
> checking linux/dvb/frontend.h presence... yes
> checking for linux/dvb/frontend.h... yes
> configure:  == Checking OpenSSL ==
> checking openssl/aes.h usability... yes
> checking openssl/aes.h presence... yes
> checking for openssl/aes.h... yes
> configure:  == Checking Embedded ==
> checking for backtrace... yes
> configure:  == Checking DVBCSA ==
> checking dvbcsa/dvbcsa.h usability... yes
> checking dvbcsa/dvbcsa.h presence... yes
> checking for dvbcsa/dvbcsa.h... yes
> configure:  == Checking NETCVCLIENT ==
> checking netceiver.h usability... cat: confdefs.h: No such file or directory
> no
> checking netceiver.h presence... cat: confdefs.h: No such file or directory
> no
> checking for netceiver.h... no
> configure: creating ./config.status
> config.status: creating src/Makefile
> config.status: creating tests/Makefile
> config.status: creating Makefile
> 
> minisatip configuration
> 
> 
> Linux DVB:                                enabled
> Common Interface (CI)                     enabled
> Embedded system:                          disabled
> DVBCSA (needs libdvbcsa):                 enabled
> Netceiver support:                        disabled
> SatIP Client:                             enabled
> Static:                                   disabled
> dvbapi:                                   enabled
> axe:                                      disabled
> 
> make -C src
> make[1]: Entering directory '/opt/minisatip/src'
> gcc -Wall -Wno-switch -ggdb -fPIC -fno-common -I../src   -DMINOR=\"37\" -DDISABLE_NETCVCLIENT -DDISABLE_T2MI  -c minisatip.c -o ../build/minisatip.o
> gcc -Wall -Wno-switch -ggdb -fPIC -fno-common -I../src   -DMINOR=\"37\" -DDISABLE_NETCVCLIENT -DDISABLE_T2MI  -c socketworks.c -o ../build/socketworks.o
> gcc -Wall -Wno-switch -ggdb -fPIC -fno-common -I../src   -DMINOR=\"37\" -DDISABLE_NETCVCLIENT -DDISABLE_T2MI  -c stream.c -o ../build/stream.o
> gcc -Wall -Wno-switch -ggdb -fPIC -fno-common -I../src   -DMINOR=\"37\" -DDISABLE_NETCVCLIENT -DDISABLE_T2MI  -c adapter.c -o ../build/adapter.o
> gcc -Wall -Wno-switch -ggdb -fPIC -fno-common -I../src   -DMINOR=\"37\" -DDISABLE_NETCVCLIENT -DDISABLE_T2MI  -c httpc.c -o ../build/httpc.o
> gcc -Wall -Wno-switch -ggdb -fPIC -fno-common -I../src   -DMINOR=\"37\" -DDISABLE_NETCVCLIENT -DDISABLE_T2MI  -c utils.c -o ../build/utils.o
> gcc -Wall -Wno-switch -ggdb -fPIC -fno-common -I../src   -DMINOR=\"37\" -DDISABLE_NETCVCLIENT -DDISABLE_T2MI  -c api/symbols.c -o ../build/api/symbols.o
> gcc -Wall -Wno-switch -ggdb -fPIC -fno-common -I../src   -DMINOR=\"37\" -DDISABLE_NETCVCLIENT -DDISABLE_T2MI  -c api/variables.c -o ../build/api/variables.o
> gcc -Wall -Wno-switch -ggdb -fPIC -fno-common -I../src   -DMINOR=\"37\" -DDISABLE_NETCVCLIENT -DDISABLE_T2MI  -c utils/logging/logging.c -o ../build/utils/logging/logging.o
> gcc -Wall -Wno-switch -ggdb -fPIC -fno-common -I../src   -DMINOR=\"37\" -DDISABLE_NETCVCLIENT -DDISABLE_T2MI  -c utils/hash_table.c -o ../build/utils/hash_table.o
> gcc -Wall -Wno-switch -ggdb -fPIC -fno-common -I../src   -DMINOR=\"37\" -DDISABLE_NETCVCLIENT -DDISABLE_T2MI  -c utils/mutex.c -o ../build/utils/mutex.o
> gcc -Wall -Wno-switch -ggdb -fPIC -fno-common -I../src   -DMINOR=\"37\" -DDISABLE_NETCVCLIENT -DDISABLE_T2MI  -c utils/ticks.c -o ../build/utils/ticks.o
> gcc -Wall -Wno-switch -ggdb -fPIC -fno-common -I../src   -DMINOR=\"37\" -DDISABLE_NETCVCLIENT -DDISABLE_T2MI  -c csa.c -o ../build/csa.o
> gcc -Wall -Wno-switch -ggdb -fPIC -fno-common -I../src   -DMINOR=\"37\" -DDISABLE_NETCVCLIENT -DDISABLE_T2MI  -c dvbapi.c -o ../build/dvbapi.o
> gcc -Wall -Wno-switch -ggdb -fPIC -fno-common -I../src   -DMINOR=\"37\" -DDISABLE_NETCVCLIENT -DDISABLE_T2MI  -c ca.c -o ../build/ca.o
> ca.c: In function ‘generate_key_seed’:
> ca.c:982:5: warning: ‘SHA256_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   982 |     SHA256_Init(&sha);
>       |     ^~~~~~~~~~~
> In file included from /usr/include/openssl/x509.h:41,
>                  from /usr/include/openssl/pem.h:23,
>                  from aes.h:7,
>                  from ca.h:4,
>                  from ca.c:28:
> /usr/include/openssl/sha.h:73:27: note: declared here
>    73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c);
>       |                           ^~~~~~~~~~~
> ca.c:983:5: warning: ‘SHA256_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   983 |     SHA256_Update(&sha, &cc_data->dhsk[240], 16);
>       |     ^~~~~~~~~~~~~
> In file included from /usr/include/openssl/x509.h:41,
>                  from /usr/include/openssl/pem.h:23,
>                  from aes.h:7,
>                  from ca.h:4,
>                  from ca.c:28:
> /usr/include/openssl/sha.h:74:27: note: declared here
>    74 | OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c,
>       |                           ^~~~~~~~~~~~~
> ca.c:984:5: warning: ‘SHA256_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   984 |     SHA256_Update(&sha, element_get_ptr(cc_data, 22),
>       |     ^~~~~~~~~~~~~
> In file included from /usr/include/openssl/x509.h:41,
>                  from /usr/include/openssl/pem.h:23,
>                  from aes.h:7,
>                  from ca.h:4,
>                  from ca.c:28:
> /usr/include/openssl/sha.h:74:27: note: declared here
>    74 | OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c,
>       |                           ^~~~~~~~~~~~~
> ca.c:986:5: warning: ‘SHA256_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   986 |     SHA256_Update(&sha, element_get_ptr(cc_data, 20),
>       |     ^~~~~~~~~~~~~
> In file included from /usr/include/openssl/x509.h:41,
>                  from /usr/include/openssl/pem.h:23,
>                  from aes.h:7,
>                  from ca.h:4,
>                  from ca.c:28:
> /usr/include/openssl/sha.h:74:27: note: declared here
>    74 | OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c,
>       |                           ^~~~~~~~~~~~~
> ca.c:988:5: warning: ‘SHA256_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   988 |     SHA256_Update(&sha, element_get_ptr(cc_data, 21),
>       |     ^~~~~~~~~~~~~
> In file included from /usr/include/openssl/x509.h:41,
>                  from /usr/include/openssl/pem.h:23,
>                  from aes.h:7,
>                  from ca.h:4,
>                  from ca.c:28:
> /usr/include/openssl/sha.h:74:27: note: declared here
>    74 | OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c,
>       |                           ^~~~~~~~~~~~~
> ca.c:990:5: warning: ‘SHA256_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   990 |     SHA256_Final(cc_data->ks_host, &sha);
>       |     ^~~~~~~~~~~~
> In file included from /usr/include/openssl/x509.h:41,
>                  from /usr/include/openssl/pem.h:23,
>                  from aes.h:7,
>                  from ca.h:4,
>                  from ca.c:28:
> /usr/include/openssl/sha.h:76:27: note: declared here
>    76 | OSSL_DEPRECATEDIN_3_0 int SHA256_Final(unsigned char *md, SHA256_CTX *c);
>       |                           ^~~~~~~~~~~~
> ca.c: In function ‘generate_SAK_SEK’:
> ca.c:1013:5: warning: ‘AES_set_encrypt_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>  1013 |     AES_set_encrypt_key(key_data, 128, &key);
>       |     ^~~~~~~~~~~~~~~~~~~
> In file included from aes.h:3,
>                  from ca.h:4,
>                  from ca.c:28:
> /usr/include/openssl/aes.h:51:5: note: declared here
>    51 | int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
>       |     ^~~~~~~~~~~~~~~~~~~
> ca.c:1016:9: warning: ‘AES_ecb_encrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>  1016 |         AES_ecb_encrypt(&ks_host[16 * i], &dec[16 * i], &key, 1);
>       |         ^~~~~~~~~~~~~~~
> In file included from aes.h:3,
>                  from ca.h:4,
>                  from ca.c:28:
> /usr/include/openssl/aes.h:63:6: note: declared here
>    63 | void AES_ecb_encrypt(const unsigned char *in, unsigned char *out,
>       |      ^~~~~~~~~~~~~~~
> ca.c: In function ‘sac_crypt’:
> ca.c:1037:9: warning: ‘AES_set_encrypt_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>  1037 |         AES_set_encrypt_key(key_data, 128, &key);
>       |         ^~~~~~~~~~~~~~~~~~~
> In file included from aes.h:3,
>                  from ca.h:4,
>                  from ca.c:28:
> /usr/include/openssl/aes.h:51:5: note: declared here
>    51 | int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
>       |     ^~~~~~~~~~~~~~~~~~~
> ca.c:1039:9: warning: ‘AES_set_decrypt_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>  1039 |         AES_set_decrypt_key(key_data, 128, &key);
>       |         ^~~~~~~~~~~~~~~~~~~
> In file included from aes.h:3,
>                  from ca.h:4,
>                  from ca.c:28:
> /usr/include/openssl/aes.h:54:5: note: declared here
>    54 | int AES_set_decrypt_key(const unsigned char *userKey, const int bits,
>       |     ^~~~~~~~~~~~~~~~~~~
> ca.c:1041:5: warning: ‘AES_cbc_encrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>  1041 |     AES_cbc_encrypt(src, dst, len, &key, iv, encrypt);
>       |     ^~~~~~~~~~~~~~~
> In file included from aes.h:3,
>                  from ca.h:4,
>                  from ca.c:28:
> /usr/include/openssl/aes.h:66:6: note: declared here
>    66 | void AES_cbc_encrypt(const unsigned char *in, unsigned char *out,
>       |      ^~~~~~~~~~~~~~~
> ca.c: In function ‘generate_akh’:
> ca.c:1127:5: warning: ‘SHA256_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>  1127 |     SHA256_Init(&sha);
>       |     ^~~~~~~~~~~
> In file included from /usr/include/openssl/x509.h:41,
>                  from /usr/include/openssl/pem.h:23,
>                  from aes.h:7,
>                  from ca.h:4,
>                  from ca.c:28:
> /usr/include/openssl/sha.h:73:27: note: declared here
>    73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c);
>       |                           ^~~~~~~~~~~
> ca.c:1128:5: warning: ‘SHA256_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>  1128 |     SHA256_Update(&sha, element_get_ptr(cc_data, 6),
>       |     ^~~~~~~~~~~~~
> In file included from /usr/include/openssl/x509.h:41,
>                  from /usr/include/openssl/pem.h:23,
>                  from aes.h:7,
>                  from ca.h:4,
>                  from ca.c:28:
> /usr/include/openssl/sha.h:74:27: note: declared here
>    74 | OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c,
>       |                           ^~~~~~~~~~~~~
> ca.c:1130:5: warning: ‘SHA256_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>  1130 |     SHA256_Update(&sha, element_get_ptr(cc_data, 5),
>       |     ^~~~~~~~~~~~~
> In file included from /usr/include/openssl/x509.h:41,
>                  from /usr/include/openssl/pem.h:23,
>                  from aes.h:7,
>                  from ca.h:4,
>                  from ca.c:28:
> /usr/include/openssl/sha.h:74:27: note: declared here
>    74 | OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c,
>       |                           ^~~~~~~~~~~~~
> ca.c:1132:5: warning: ‘SHA256_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>  1132 |     SHA256_Update(&sha, cc_data->dhsk, 256);
>       |     ^~~~~~~~~~~~~
> In file included from /usr/include/openssl/x509.h:41,
>                  from /usr/include/openssl/pem.h:23,
>                  from aes.h:7,
>                  from ca.h:4,
>                  from ca.c:28:
> /usr/include/openssl/sha.h:74:27: note: declared here
>    74 | OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c,
>       |                           ^~~~~~~~~~~~~
> ca.c:1133:5: warning: ‘SHA256_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>  1133 |     SHA256_Final(akh, &sha);
>       |     ^~~~~~~~~~~~
> In file included from /usr/include/openssl/x509.h:41,
>                  from /usr/include/openssl/pem.h:23,
>                  from aes.h:7,
>                  from ca.h:4,
>                  from ca.c:28:
> /usr/include/openssl/sha.h:76:27: note: declared here
>    76 | OSSL_DEPRECATEDIN_3_0 int SHA256_Final(unsigned char *md, SHA256_CTX *c);
>       |                           ^~~~~~~~~~~~
> ca.c: In function ‘generate_uri_confirm’:
> ca.c:1260:5: warning: ‘SHA256_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>  1260 |     SHA256_Init(&sha);
>       |     ^~~~~~~~~~~
> In file included from /usr/include/openssl/x509.h:41,
>                  from /usr/include/openssl/pem.h:23,
>                  from aes.h:7,
>                  from ca.h:4,
>                  from ca.c:28:
> /usr/include/openssl/sha.h:73:27: note: declared here
>    73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c);
>       |                           ^~~~~~~~~~~
> ca.c:1261:5: warning: ‘SHA256_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>  1261 |     SHA256_Update(&sha, sak, 16);
>       |     ^~~~~~~~~~~~~
> In file included from /usr/include/openssl/x509.h:41,
>                  from /usr/include/openssl/pem.h:23,
>                  from aes.h:7,
>                  from ca.h:4,
>                  from ca.c:28:
> /usr/include/openssl/sha.h:74:27: note: declared here
>    74 | OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c,
>       |                           ^~~~~~~~~~~~~
> ca.c:1262:5: warning: ‘SHA256_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>  1262 |     SHA256_Final(uck, &sha);
>       |     ^~~~~~~~~~~~
> In file included from /usr/include/openssl/x509.h:41,
>                  from /usr/include/openssl/pem.h:23,
>                  from aes.h:7,
>                  from ca.h:4,
>                  from ca.c:28:
> /usr/include/openssl/sha.h:76:27: note: declared here
>    76 | OSSL_DEPRECATEDIN_3_0 int SHA256_Final(unsigned char *md, SHA256_CTX *c);
>       |                           ^~~~~~~~~~~~
> ca.c:1265:5: warning: ‘SHA256_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>  1265 |     SHA256_Init(&sha);
>       |     ^~~~~~~~~~~
> In file included from /usr/include/openssl/x509.h:41,
>                  from /usr/include/openssl/pem.h:23,
>                  from aes.h:7,
>                  from ca.h:4,
>                  from ca.c:28:
> /usr/include/openssl/sha.h:73:27: note: declared here
>    73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c);
>       |                           ^~~~~~~~~~~
> ca.c:1266:5: warning: ‘SHA256_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>  1266 |     SHA256_Update(&sha, element_get_ptr(cc_data, 25),
>       |     ^~~~~~~~~~~~~
> In file included from /usr/include/openssl/x509.h:41,
>                  from /usr/include/openssl/pem.h:23,
>                  from aes.h:7,
>                  from ca.h:4,
>                  from ca.c:28:
> /usr/include/openssl/sha.h:74:27: note: declared here
>    74 | OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c,
>       |                           ^~~~~~~~~~~~~
> ca.c:1268:5: warning: ‘SHA256_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>  1268 |     SHA256_Update(&sha, uck, 32);
>       |     ^~~~~~~~~~~~~
> In file included from /usr/include/openssl/x509.h:41,
>                  from /usr/include/openssl/pem.h:23,
>                  from aes.h:7,
>                  from ca.h:4,
>                  from ca.c:28:
> /usr/include/openssl/sha.h:74:27: note: declared here
>    74 | OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c,
>       |                           ^~~~~~~~~~~~~
> ca.c:1269:5: warning: ‘SHA256_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>  1269 |     SHA256_Final(uri_confirm, &sha);
>       |     ^~~~~~~~~~~~
> In file included from /usr/include/openssl/x509.h:41,
>                  from /usr/include/openssl/pem.h:23,
>                  from aes.h:7,
>                  from ca.h:4,
>                  from ca.c:28:
> /usr/include/openssl/sha.h:76:27: note: declared here
>    76 | OSSL_DEPRECATEDIN_3_0 int SHA256_Final(unsigned char *md, SHA256_CTX *c);
>       |                           ^~~~~~~~~~~~
> ca.c: In function ‘check_new_key’:
> ca.c:1300:5: warning: ‘AES_set_encrypt_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>  1300 |     AES_set_encrypt_key(s_key, 128, &aes_ctx);
>       |     ^~~~~~~~~~~~~~~~~~~
> In file included from aes.h:3,
>                  from ca.h:4,
>                  from ca.c:28:
> /usr/include/openssl/aes.h:51:5: note: declared here
>    51 | int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
>       |     ^~~~~~~~~~~~~~~~~~~
> ca.c:1302:9: warning: ‘AES_ecb_encrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>  1302 |         AES_ecb_encrypt(&kp[i], &dec[i], &aes_ctx, 1);
>       |         ^~~~~~~~~~~~~~~
> In file included from aes.h:3,
>                  from ca.h:4,
>                  from ca.c:28:
> /usr/include/openssl/aes.h:63:6: note: declared here
>    63 | void AES_ecb_encrypt(const unsigned char *in, unsigned char *out,
>       |      ^~~~~~~~~~~~~~~
> gcc -Wall -Wno-switch -ggdb -fPIC -fno-common -I../src   -DMINOR=\"37\" -DDISABLE_NETCVCLIENT -DDISABLE_T2MI  -c aes.c -o ../build/aes.o
> aes.c: In function ‘dvbaes_set_cw’:
> aes.c:59:5: warning: ‘AES_set_decrypt_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>    59 |     AES_set_decrypt_key(cw->cw, 128, (AES_KEY *)cw->key);
>       |     ^~~~~~~~~~~~~~~~~~~
> In file included from aes.c:21:
> /usr/include/openssl/aes.h:54:5: note: declared here
>    54 | int AES_set_decrypt_key(const unsigned char *userKey, const int bits,
>       |     ^~~~~~~~~~~~~~~~~~~
> aes.c: In function ‘dvbaes_decrypt_stream’:
> aes.c:67:13: warning: ‘AES_ecb_encrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>    67 |             AES_ecb_encrypt(batch[i].data + j, batch[i].data + j,
>       |             ^~~~~~~~~~~~~~~
> In file included from aes.c:21:
> /usr/include/openssl/aes.h:63:6: note: declared here
>    63 | void AES_ecb_encrypt(const unsigned char *in, unsigned char *out,
>       |      ^~~~~~~~~~~~~~~
> aes.c: In function ‘aes_xcbc_mac_init’:
> aes.c:202:5: warning: ‘AES_set_encrypt_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   202 |     AES_set_encrypt_key(key, 128, &aes_key);
>       |     ^~~~~~~~~~~~~~~~~~~
> In file included from aes.c:21:
> /usr/include/openssl/aes.h:51:5: note: declared here
>    51 | int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
>       |     ^~~~~~~~~~~~~~~~~~~
> aes.c:207:9: warning: ‘AES_ecb_encrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   207 |         AES_ecb_encrypt(ctx->K[y], ctx->K[y], &aes_key, 1);
>       |         ^~~~~~~~~~~~~~~
> In file included from aes.c:21:
> /usr/include/openssl/aes.h:63:6: note: declared here
>    63 | void AES_ecb_encrypt(const unsigned char *in, unsigned char *out,
>       |      ^~~~~~~~~~~~~~~
> aes.c:211:5: warning: ‘AES_set_encrypt_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   211 |     AES_set_encrypt_key(ctx->K[0], 128, &ctx->key);
>       |     ^~~~~~~~~~~~~~~~~~~
> In file included from aes.c:21:
> /usr/include/openssl/aes.h:51:5: note: declared here
>    51 | int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
>       |     ^~~~~~~~~~~~~~~~~~~
> aes.c: In function ‘aes_xcbc_mac_process’:
> aes.c:223:13: warning: ‘AES_ecb_encrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   223 |             AES_ecb_encrypt(ctx->IV, ctx->IV, &ctx->key, 1);
>       |             ^~~~~~~~~~~~~~~
> In file included from aes.c:21:
> /usr/include/openssl/aes.h:63:6: note: declared here
>    63 | void AES_ecb_encrypt(const unsigned char *in, unsigned char *out,
>       |      ^~~~~~~~~~~~~~~
> aes.c: In function ‘aes_xcbc_mac_done’:
> aes.c:247:5: warning: ‘AES_ecb_encrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   247 |     AES_ecb_encrypt(ctx->IV, ctx->IV, &ctx->key, 1);
>       |     ^~~~~~~~~~~~~~~
> In file included from aes.c:21:
> /usr/include/openssl/aes.h:63:6: note: declared here
>    63 | void AES_ecb_encrypt(const unsigned char *in, unsigned char *out,
>       |      ^~~~~~~~~~~~~~~
> aes.c: In function ‘dh_gen_exp’:
> aes.c:395:5: warning: ‘DH_new’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   395 |     dh = DH_new();
>       |     ^~
> In file included from /usr/include/openssl/dsa.h:51,
>                  from /usr/include/openssl/x509.h:37,
>                  from /usr/include/openssl/pem.h:23,
>                  from aes.h:7,
>                  from aes.c:23:
> /usr/include/openssl/dh.h:199:27: note: declared here
>   199 | OSSL_DEPRECATEDIN_3_0 DH *DH_new(void);
>       |                           ^~~~~~
> aes.c:399:5: warning: ‘DH_set0_pqg’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   399 |     DH_set0_pqg(dh, p, NULL, g);
>       |     ^~~~~~~~~~~
> In file included from /usr/include/openssl/dsa.h:51,
>                  from /usr/include/openssl/x509.h:37,
>                  from /usr/include/openssl/pem.h:23,
>                  from aes.h:7,
>                  from aes.c:23:
> /usr/include/openssl/dh.h:255:27: note: declared here
>   255 | OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);
>       |                           ^~~~~~~~~~~
> aes.c:400:5: warning: ‘DH_set_flags’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   400 |     DH_set_flags(dh, DH_FLAG_NO_EXP_CONSTTIME);
>       |     ^~~~~~~~~~~~
> In file included from /usr/include/openssl/dsa.h:51,
>                  from /usr/include/openssl/x509.h:37,
>                  from /usr/include/openssl/pem.h:23,
>                  from aes.h:7,
>                  from aes.c:23:
> /usr/include/openssl/dh.h:266:28: note: declared here
>   266 | OSSL_DEPRECATEDIN_3_0 void DH_set_flags(DH *dh, int flags);
>       |                            ^~~~~~~~~~~~
> aes.c:402:5: warning: ‘DH_generate_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   402 |     DH_generate_key(dh);
>       |     ^~~~~~~~~~~~~~~
> In file included from /usr/include/openssl/dsa.h:51,
>                  from /usr/include/openssl/x509.h:37,
>                  from /usr/include/openssl/pem.h:23,
>                  from aes.h:7,
>                  from aes.c:23:
> /usr/include/openssl/dh.h:223:27: note: declared here
>   223 | OSSL_DEPRECATEDIN_3_0 int DH_generate_key(DH *dh);
>       |                           ^~~~~~~~~~~~~~~
> aes.c:404:5: warning: ‘DH_get0_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   404 |     DH_get0_key(dh, NULL, &priv_key);
>       |     ^~~~~~~~~~~
> In file included from /usr/include/openssl/dsa.h:51,
>                  from /usr/include/openssl/x509.h:37,
>                  from /usr/include/openssl/pem.h:23,
>                  from aes.h:7,
>                  from aes.c:23:
> /usr/include/openssl/dh.h:256:28: note: declared here
>   256 | OSSL_DEPRECATEDIN_3_0 void DH_get0_key(const DH *dh, const BIGNUM **pub_key,
>       |                            ^~~~~~~~~~~
> aes.c:415:5: warning: ‘DH_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   415 |     DH_free(dh);
>       |     ^~~~~~~
> In file included from /usr/include/openssl/dsa.h:51,
>                  from /usr/include/openssl/x509.h:37,
>                  from /usr/include/openssl/pem.h:23,
>                  from aes.h:7,
>                  from aes.c:23:
> /usr/include/openssl/dh.h:200:28: note: declared here
>   200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
>       |                            ^~~~~~~
> aes.c: In function ‘dh_dhph_signature’:
> aes.c:487:5: warning: ‘RSA_private_encrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   487 |     RSA_private_encrypt(sizeof(dbuf), dbuf, out, r, RSA_NO_PADDING);
>       |     ^~~~~~~~~~~~~~~~~~~
> In file included from /usr/include/openssl/x509.h:36,
>                  from /usr/include/openssl/pem.h:23,
>                  from aes.h:7,
>                  from aes.c:23:
> /usr/include/openssl/rsa.h:285:5: note: declared here
>   285 | int RSA_private_encrypt(int flen, const unsigned char *from, unsigned char *to,
>       |     ^~~~~~~~~~~~~~~~~~~
> aes.c: In function ‘rsa_privatekey_open’:
> aes.c:517:5: warning: ‘PEM_read_RSAPrivateKey’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   517 |     PEM_read_RSAPrivateKey(fp, &r, NULL, NULL);
>       |     ^~~~~~~~~~~~~~~~~~~~~~
> In file included from aes.h:7,
>                  from aes.c:23:
> /usr/include/openssl/pem.h:447:1: note: declared here
>   447 | DECLARE_PEM_rw_cb_attr(OSSL_DEPRECATEDIN_3_0, RSAPrivateKey, RSA)
>       | ^~~~~~~~~~~~~~~~~~~~~~
> gcc -Wall -Wno-switch -ggdb -fPIC -fno-common -I../src   -DMINOR=\"37\" -DDISABLE_NETCVCLIENT -DDISABLE_T2MI  -c pmt.c -o ../build/pmt.o
> pmt.c: In function ‘pmt_pid_add’:
> pmt.c:2221:11: warning: unused variable ‘pmt’ [-Wunused-variable]
>  2221 |     SPMT *pmt = NULL;
>       |           ^~~
> gcc -Wall -Wno-switch -ggdb -fPIC -fno-common -I../src   -DMINOR=\"37\" -DDISABLE_NETCVCLIENT -DDISABLE_T2MI  -c tables.c -o ../build/tables.o
> gcc -Wall -Wno-switch -ggdb -fPIC -fno-common -I../src   -DMINOR=\"37\" -DDISABLE_NETCVCLIENT -DDISABLE_T2MI  -c satipc.c -o ../build/satipc.o
> gcc -Wall -Wno-switch -ggdb -fPIC -fno-common -I../src   -DMINOR=\"37\" -DDISABLE_NETCVCLIENT -DDISABLE_T2MI  -c dvb.c -o ../build/dvb.o
> gcc -Wall -Wno-switch -ggdb -fPIC -fno-common -I../src   -DMINOR=\"37\" -DDISABLE_NETCVCLIENT -DDISABLE_T2MI  -c ddci.c -o ../build/ddci.o
> gcc -Wall -Wno-switch -ggdb -fPIC -fno-common -I../src   -DMINOR=\"37\" -DDISABLE_NETCVCLIENT -DDISABLE_T2MI  -o ../minisatip  ../build/minisatip.o  ../build/socketworks.o  ../build/stream.o  ../build/adapter.o  ../build/httpc.o  ../build/utils.o  ../build/api/symbols.o  ../build/api/variables.o  ../build/utils/logging/logging.o  ../build/utils/hash_table.o  ../build/utils/mutex.o  ../build/utils/ticks.o  ../build/csa.o  ../build/dvbapi.o  ../build/ca.o  ../build/aes.o  ../build/pmt.o  ../build/tables.o  ../build/satipc.o  ../build/dvb.o  ../build/ddci.o -lpthread -lrt -ldl -ldvbcsa -lcrypto
> make[1]: Leaving directory '/opt/minisatip/src'
> root@orangepizero2:/opt#
dnmnhat commented 1 year ago

I can't access ip:8875 ?

Update minisatip run with ip:8080 And how to connect Minisatip <-> Tvheadend , my tvheadend not search minisatip ??

Minisatip ( computer A : 192.168.0.52 ) Tvheadend ( computer B :192.168.0.111 ( tvheadnend run in Synology DSM 7.1.0 ))

Update TVHeadend search minisatip ( change defaut gateway 192.168.0.1 )

lars18th commented 1 year ago

Hi,

IMHO if one user doesn't know how to compile minisatip, then it's preferable to use the distribution package manager. Therefore, I suggest that someone works on provide regular (Debian, Ubuntu, etc.) receipts to create native packages. Then it will be easy to share these receipts with the distribution mantainers to include minisatip in their repositories. After that regular users could do something like apt-get install minisatip to install it in his computer.

I hope this helps.

Jalle19 commented 1 year ago

Closing this, we should continue improving the release process and the Debian packaging