Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6101

Installing wkhtmltopdf to hosting

$
0
0

I want to run my bot on hosting; for the bot to work, I need wkhtmltopdf. I don't have root and cannot use sudo.

by command uname -a:Linux de47dd89-827f-4271-9cad-0cbf6b95d4e6 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64 GNU/Linux.

But cat /etc/os-release:

PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"NAME="Debian GNU/Linux"VERSION_ID="12"VERSION="12 (bookworm)"VERSION_CODENAME=bookwormID=debianHOME_URL="https://www.debian.org/"SUPPORT_URL="https://www.debian.org/support"BUG_REPORT_URL="https://bugs.debian.org/"

I didn’t understand the architecture, so I tried to install amd and arm, but I don’t have root and cannot install deb files... Old versions were published in .tar.bz2.

When I do tar xvjf wkhtmltopdf-0.9.9-static-i386.tar.bz2 mv wkhtmltopdf-i386 /usr/local/bin/wkhtmltopdf chmod +x /usr/local/bin/wkhtmltopdf from How to install wkhtmltopdf on a linux based (shared hosting) web server I get this:

tar (child): Error is not recoverable: exiting nowtar: Child returned status 2tar: Error is not recoverable: exiting now```I installed package, unpacked it on my Windows with Winrar, sent it to the hosting, tried to run: ```./wkhtmltopdf -i386 http://www.example.com example.pdf``` and got an error:```/bin/sh: 1: ./wkhtmltopdf-i386: Permission denied```If I overlooked an already existing question with my problem - sorry, I'm at 0:46 am...And, please, don't swear too much about the design, that's my first question...

Viewing all articles
Browse latest Browse all 6101

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>