-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing on debian setup #32
Comments
The repo currently does not come with a Debian package or a way to generate such a package. So you have a few options here: 1) to start pixelserv-tls from /etc/rc.local or 2) write your own systemd unit file. #2 is preferred and you can borrow and adapt the 'pixelserv-tls.service' from Arch Linux here: https://aur.archlinux.org/packages/pixelserv-tls/ |
Kvic-z, I successfully built a debian version for RPI4 by backwards building from the debian version made for the edge router. I broke apart the .deb package and replaced the proper parts with parts provided by the folder that I originally attempted to build from |
https://github.com/jumpsmm7/pixelserv-tls2.30.deb OLD NEWS LINK IS DEAD NEW LINK BELOW |
Good to hear you got it working already. v2.3.1 was released yesterday. Regarding root CA cert, 1024-bit still works for me in macOS Catalina. Chrome & Firefox don't complain either. I mention it in my release post here. Btw, do you plan to publish the Debian binary package for Raspbian on an on-going basis? I could link to your package in README on the front page. |
I am in process of moving updated binaries from your new branch and building it with new DEBIAN updated info and new changes from your new branch i will inform you about it when i am finished should be rather soon as I have to navigate through moving things around and testing it after build DPKG-repack will make this rather simple. |
https://github.com/jumpsmm7/pixelserv-tls_2.3.1-1_armhf.deb/raw/master/pixelserv-tls_2.3.1-1_armhf.deb cd /tmp dpkg -i pixelserv-tls_2.3.1-1_armhf.deb` during install it gives a list of detailed instructions similar to the ones supplied by your web site about generating CA and binding pixelserv-tls to a specific IP I plan on staying active on keeping it up-to-date. |
Cool and thanks. I added to the front page. |
when installing dpkg -i pixelserv-tls_2.3.1-1_armhf.deb i get |
What version of debian are you using ? Also are you running as root? |
Okay redownloaded it but I used wget https://github.com/jumpsmm7/pixelserv-tls_2.3.1-1_armhf.deb/raw/master/pixelserv-tls_2.3.1-1_armhf.deb instead of curl -o New dpkg -i pixelserv-tls_2.3.1-1_armhf.deb |
"curl -O" (note the capital letter O) is different from "curl -o" (small letter O). curl has both options. Small letter O and stdio redirection to file will certainly cause corruption to binary data. |
I believe the issue lies with Github. I've updated the URL to make it consistent with ER-X e.g. Now should work with "curl -O" |
Thanks! But i get new issue:
... I made a batch file with the command Now its work with Adguard Home |
yes I have no propblem with mine adding as service. and running after reboot. Dec 16 03:17:24 raspberrypi systemd[1]: Starting LSB: pixelserv-tls webserver fo |
Hello, I'm trying to compile it for arm64 on my RPi4 with ubuntu 19.10. It compiles without any errors, but doesn't start after, just exits with code 0, and I can't find any logs. Am I missing some package or ...?
It outputs Any suggestions? :( |
Unfortunately I have not compiled for ubuntu setup as I have only run Raspbian and Arch Linux. Alot of the pathways are similar. maybe reference Raspbian methods or Archlinux methods to see how to properly compile it. |
I cloned the repo and installed on debian. In order to get pixelserv to start automatically on boot I'm using the following systemd script:
I didn't realize there was an arch example already, I wrote this based on https://wiki.debian.org/systemd/Services and found out that This is for Debian 10.4 (buster/stable) on linux 4.19, pixelserv version 2.3.1:
|
Nice, the fork I maintain runs on Raspbian(buster/stable). Glad to see you managed to work it out for another debian system.
|
I managed to get mine to work on boot using the using systemctl enable pixelserv-tls the file /etc/init.d/pixelserv-tls is used to launch the daemon arguments which get stored in
The method you used is just another method that works as well. |
I will be adding support shortly for your updated version. |
@kvic-z |
Failed to restart pixelserv-tls.service: Unit pixelserv-tls.service not found.
root@raspberrypi:~# git clone https://github.com/kvic-z/pixelserv-tls Cloning into 'pixelserv-tls'... remote: Enumerating objects: 1097, done. remote: Total 1097 (delta 0), reused 0 (delta 0), pack-reused 1097 Receiving objects: 100% (1097/1097), 505.03 KiB | 3.53 MiB/s, done. Resolving deltas: 100% (744/744), done. root@raspberrypi:~# cd pixelserv-tls root@raspberrypi:~/pixelserv-tls# autoreconf -i configure.ac:4: installing './compile' configure.ac:3: installing './config.guess' configure.ac:3: installing './config.sub' configure.ac:2: installing './install-sh' configure.ac:2: installing './missing' Makefile.am: installing './depcomp' root@raspberrypi:~/pixelserv-tls# ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking build system type... armv7l-unknown-linux-gnueabihf checking host system type... armv7l-unknown-linux-gnueabihf 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 whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... gcc3 checking for dlopen in -ldl... yes checking for clock_gettime in -lrt... yes checking for main in -lpthread... yes checking for EVP_EncryptInit in -lcrypto... yes checking for SSL_CTX_new in -lssl... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: executing depfiles commands root@raspberrypi:~/pixelserv-tls# make make all-am make[1]: Entering directory '/root/pixelserv-tls' gcc -DHAVE_CONFIG_H -I. -DDROP_ROOT -DIF_MODE -DDEFAULT_PEM_PATH=\"/var/cache/pixelserv\" -O3 -Wall -ffunction-sections -fdata-sections -fno-strict-aliasing -g -O2 -MT pixelserv_tls-pixelserv.o -MD -MP -MF .deps/pixelserv_tls-pixelserv.Tpo -c -o pixelserv_tls-pixelserv.o
test -f 'pixelserv.c' || echo './'pixelserv.c mv -f .deps/pixelserv_tls-pixelserv.Tpo .deps/pixelserv_tls-pixelserv.Po gcc -DHAVE_CONFIG_H -I. -DDROP_ROOT -DIF_MODE -DDEFAULT_PEM_PATH=\"/var/cache/pixelserv\" -O3 -Wall -ffunction-sections -fdata-sections -fno-strict-aliasing -g -O2 -MT pixelserv_tls-socket_handler.o -MD -MP -MF .deps/pixelserv_tls-socket_handler.Tpo -c -o pixelserv_tls-socket_handler.o
test -f 'socket_handler.c' || echo './'socket_handler.c mv -f .deps/pixelserv_tls-socket_handler.Tpo .deps/pixelserv_tls-socket_handler.Po gcc -DHAVE_CONFIG_H -I. -DDROP_ROOT -DIF_MODE -DDEFAULT_PEM_PATH=\"/var/cache/pixelserv\" -O3 -Wall -ffunction-sections -fdata-sections -fno-strict-aliasing -g -O2 -MT pixelserv_tls-certs.o -MD -MP -MF .deps/pixelserv_tls-certs.Tpo -c -o pixelserv_tls-certs.o
test -f 'certs.c' || echo './'certs.c mv -f .deps/pixelserv_tls-certs.Tpo .deps/pixelserv_tls-certs.Po gcc -DHAVE_CONFIG_H -I. -DDROP_ROOT -DIF_MODE -DDEFAULT_PEM_PATH=\"/var/cache/pixelserv\" -O3 -Wall -ffunction-sections -fdata-sections -fno-strict-aliasing -g -O2 -MT pixelserv_tls-util.o -MD -MP -MF .deps/pixelserv_tls-util.Tpo -c -o pixelserv_tls-util.o
test -f 'util.c' || echo './'util.c mv -f .deps/pixelserv_tls-util.Tpo .deps/pixelserv_tls-util.Po gcc -DHAVE_CONFIG_H -I. -DDROP_ROOT -DIF_MODE -DDEFAULT_PEM_PATH=\"/var/cache/pixelserv\" -O3 -Wall -ffunction-sections -fdata-sections -fno-strict-aliasing -g -O2 -MT pixelserv_tls-logger.o -MD -MP -MF .deps/pixelserv_tls-logger.Tpo -c -o pixelserv_tls-logger.o
test -f 'logger.c' || echo './'`logger.cmv -f .deps/pixelserv_tls-logger.Tpo .deps/pixelserv_tls-logger.Po
gcc -DDROP_ROOT -DIF_MODE -DDEFAULT_PEM_PATH="/var/cache/pixelserv" -O3 -Wall -ffunction-sections -fdata-sections -fno-strict-aliasing -g -O2 -Wl,--gc-sections -s -o pixelserv-tls pixelserv_tls-pixelserv.o pixelserv_tls-socket_handler.o pixelserv_tls-certs.o pixelserv_tls-util.o pixelserv_tls-logger.o -lssl -lcrypto -lpthread -lrt -ldl
make[1]: Leaving directory '/root/pixelserv-tls'
root@raspberrypi:
/pixelserv-tls# make install/pixelserv-tls# lsmake[1]: Entering directory '/root/pixelserv-tls'
/bin/mkdir -p '/usr/local/bin'
/usr/bin/install -c pixelserv-tls '/usr/local/bin'
/bin/mkdir -p '/usr/local/share/man/man1'
/usr/bin/install -c -m 644 pixelserv-tls.1 '/usr/local/share/man/man1'
make[1]: Leaving directory '/root/pixelserv-tls'
root@raspberrypi:
aclocal.m4 depcomp pixelserv-tls.1
autom4te.cache INSTALL pixelserv_tls-certs.o
certs.c install-sh pixelserv_tls-logger.o
certs.h LICENSE pixelserv_tls-pixelserv.o
ChangeLog logger.c pixelserv_tls-socket_handler.o
compile logger.h pixelserv_tls-util.o
config.guess Makefile README.md
config.h Makefile.am socket_handler.c
config.h.in Makefile.in socket_handler.h
config.log Makefile-XC stamp-h1
config.status missing util.c
config.sub openssl util.h
configure pixelserv.c
configure.ac pixelserv-tls
root@raspberrypi:~/pixelserv-tls# ls
aclocal.m4 depcomp pixelserv-tls.1
autom4te.cache INSTALL pixelserv_tls-certs.o
certs.c install-sh pixelserv_tls-logger.o
certs.h LICENSE pixelserv_tls-pixelserv.o
ChangeLog logger.c pixelserv_tls-socket_handler.o
compile logger.h pixelserv_tls-util.o
config.guess Makefile README.md
config.h Makefile.am socket_handler.c
config.h.in Makefile.in socket_handler.h
config.log Makefile-XC stamp-h1
config.status missing util.c
config.sub openssl util.h
configure pixelserv.c
configure.ac pixelserv-tls
root@raspberrypi:
/pixelserv-tls# cd tmp/pixelserv-tls# cd /tmproot@raspberrypi:
root@raspberrypi:/tmp# nano /etc/default/pixelserv-tls
root@raspberrypi:/tmp# service pixelserv-tls restart
Failed to restart pixelserv-tls.service: Unit pixelserv-tls.service not found.`
unable to compile on a debian based setup.
The text was updated successfully, but these errors were encountered: