Closed richardsonoge closed 1 week ago
Why wouldn't you try the normal portable binary for this task?
Why wouldn't you try the normal portable binary for this task?
Thank you so much for your reply. But How can i do that?
I tried to install it this way:
wget https://github.com/ungoogled-software/ungoogled-chromium-portablelinux/releases/download/130.0.6723.116-1/ungoogled-chromium_130.0.6723.116-1_linux.tar.xz
tar -xvf ungoogled-chromium_130.0.6723.116-1_linux.tar.xz
cd ungoogled-chromium
./chrome
./chrome --headless --disable-gpu --remote-debugging-port=9222
But it doesn't work. So, what should I do in this case?
Worksforme:
~ $ chromium --headless --disable-gpu --print-to-pdf=qwe.pdf https://github.com/ungoogled-software/ungoogled-chromium/issues/3096
Warning: disabling flag --expose_wasm due to conflicting flags
[30161:30172:1114/200736.240880:ERROR:ev_root_ca_metadata.cc(162)] Failed to decode OID: 0
181255 bytes written to file qwe.pdf
~ $ head qwe.pdf
%PDF-1.4
Worksforme:
~ $ chromium --headless --disable-gpu --print-to-pdf=qwe.pdf https://github.com/ungoogled-software/ungoogled-chromium/issues/3096 Warning: disabling flag --expose_wasm due to conflicting flags [30161:30172:1114/200736.240880:ERROR:ev_root_ca_metadata.cc(162)] Failed to decode OID: 0 181255 bytes written to file qwe.pdf ~ $ head qwe.pdf %PDF-1.4
So, did you use the same procedure as me to install it please?
It is portable, you don't need to install it, unpacking should suffice.
@clickot I assume your builds should work in Debian (I cannot test it in Debian) and derivatives immediately after unpacking, right?
It is portable, you don't need to install it, unpacking should suffice.
@clickot I assume your builds should work in Debian (I cannot test it in Debian) and derivatives immediately after unpacking, right?
So who, I just have to download it like this wget https://github.com/ungoogled-software/ungoogled-chromium-portablelinux/releases/download/130.0.6723.116-1/ungoogled-chromium_130.0.6723.116-1_linux.tar.xz tar -xvf ungoogled-chromium_130.0.6723.116-1_linux.tar.xz
and then do what?
and then do what?
Read the fine documentation.
and then do what?
Read the fine documentation.
I read your link. It just showed me how to use the headless but it didn't show me how to install the ".tar.xy" file. So, how do I install it please?
chromium --headless --disable-gpu --print-to-pdf=qwe.pdf https://github.com/ungoogled-software/ungoogled-chromium/issues/3096
Okay, now I've done it and it's giving me this error. So, what should I do?
richardson@goshareit:/var/www/ungoogled-chromium$ chromium --headless --disable-gpu --print-to-pdf=qwe.pdf https://github.com/ungoogled-software/ungoogled-chromium/issues/3096
[335974:336139:1114/221005.052570:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.ListActivatableNames: object_path= /org/freedesktop/DBus: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.508" (uid=1000 pid=335974 comm="/snap/chromium/2995/usr/lib/chromium-browser/chrom" label="snap.chromium.chromium (enforce)") interface="org.freedesktop.DBus" member="ListActivatableNames" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (bus)
[335974:336139:1114/221005.108504:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.ListActivatableNames: object_path= /org/freedesktop/DBus: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.510" (uid=1000 pid=335974 comm="/snap/chromium/2995/usr/lib/chromium-browser/chrom" label="snap.chromium.chromium (enforce)") interface="org.freedesktop.DBus" member="ListActivatableNames" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (bus)
[335974:336136:1114/221008.227830:ERROR:headless_command_handler.cc(265)] Failed to write file qwe.pdf: Permission denied (13)
richardson@goshareit:/var/www/ungoogled-chromium$
It doesn't give me the same thing as you, the portable version. So, what should I do?
So, what should I do?
I'll close this issue as it has nothing to do with ungoogled-chromium and we have nothing to fix here. In case you can identify an issue in ungoogled-chromium feel free to add new information.
OS/Platform
Debian, Ubuntu, and derivatives
Installed
https://ungoogled-software.github.io/ungoogled-chromium-binaries/
Version
Chromium 130.0.6723.116 snap
Have you tested that this is not an upstream issue or an issue with your configuration?
--user-data-dir
command line argument and it could not be reproduced thereDescription
Chromium Headless snap.chromium.chromium (enforce)
How to Reproduce?
I've tried everything and done a lot of research to fix this problem, but nothing works. My goal was to convert my HTML file to PDF with Chromium Headless, but I got this error:
I couldn't use Google Chrome Headless, because my server is an ARM64 server and Google Chrome Headless doesn't support ARM64 but rather AMD64.
and after these errors that it has been converted. I could try to leave it like that but when I try to use it directly in my site nothing with PHP code works.
Here's my PHP code: