Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- # Run epson-printer-utility from epson-printer-utility_1.0.2-1lsb3.2_amd64.deb
- # using downloaded libqt4 libraries from previous Ubuntu version (not provided
- # in Ubuntu 20.04 "focal fossa"
- #
- # This downloads the deb files and extracts them in a libs directory in the
- # current directory, and then runs the utility
- #
- # Fix for:
- # epson-printer-utility: error while loading shared libraries: libQtCore.so.4: cannot open shared object file: No such file or directory
- # Originalmente este scri https://gist.github.com/derde/025a1cdbfadc3e56dc6a46093d922c32
- # Foi modificado por mim porque alguns links estavam desatualizados
- DEBS='
- http://archive.ubuntu.com/ubuntu/pool/universe/q/qt4-x11/libqtgui4_4.8.7+dfsg-7ubuntu1_amd64.deb
- http://archive.ubuntu.com/ubuntu/pool/universe/q/qt4-x11/libqtcore4_4.8.7+dfsg-7ubuntu1_amd64.deb
- http://archive.ubuntu.com/ubuntu/pool/universe/n/nas/libaudio2_1.9.4-6build1_amd64.deb
- '
- cd `dirname $0`
- mkdir -p libs
- cd libs
- echo "## `pwd`"
- if ! [ -f data.tar.zx ] ; then
- for DEB in $DEBS; do
- FILE="${DEB/*\/}"
- [ -f "$FILE" ] && continue
- echo "## download $DEB"
- wget $DEB
- echo "## extract $FILE"
- ar x $FILE
- tar -xJf data.tar.xz
- rm control.tar.xz data.tar.xz debian-binary
- done
- fi
- echo "## run epson-printer-utility with `pwd`"
- LD_LIBRARY_PATH=`pwd`/./usr/lib/x86_64-linux-gnu epson-printer-utility
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement