Marcus Lee
Marcus Lee
UBUniversal Blue
Created by Marcus Lee on 4/28/2025 in #🛟bazzite-help
hplip-plugin compatibility
Hmm, if that's possible... I wonder if we can set up a ujust script for that
23 replies
UBUniversal Blue
Created by Marcus Lee on 4/28/2025 in #🛟bazzite-help
hplip-plugin compatibility
Some lines are commented because I don't use them anymore
23 replies
UBUniversal Blue
Created by Marcus Lee on 4/28/2025 in #🛟bazzite-help
hplip-plugin compatibility
It's very scuffed but it works
23 replies
UBUniversal Blue
Created by Marcus Lee on 4/28/2025 in #🛟bazzite-help
hplip-plugin compatibility
Here's a snippet from my containerfile if anyone's curious
23 replies
UBUniversal Blue
Created by Marcus Lee on 4/28/2025 in #🛟bazzite-help
hplip-plugin compatibility
# Build HP plugin
FROM fedora-minimal:38 as builder

# Install build tools
RUN dnf5 install -y git rpmdevtools crudini

# Prepare build directory
RUN rpmdev-setuptree && \

# Download the .spec for building an RPM
git clone 'https://gitlab.com/greysector/rpms/hplip-plugin.git' && \
mv hplip-plugin/hplip-plugin.spec /root/rpmbuild/SPECS/ && \
mv hplip-plugin/* /root/rpmbuild/SOURCES/ && \

# Download HP's plugins and move it to SOURCES
HPLIP_VERSION=`grep -Eo '[0-9]\.[0-9].\.[0-9]' /root/rpmbuild/SPECS/hplip-plugin.spec | head -1` && \
curl -Lo hplip-${HPLIP_VERSION}-plugin.run https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-${HPLIP_VERSION}-plugin.run && \
curl -Lo hplip-${HPLIP_VERSION}-plugin.run.asc https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-${HPLIP_VERSION}-plugin.run.asc && \
mv hplip-${HPLIP_VERSION}-plugin.* /root/rpmbuild/SOURCES/

RUN echo "Building hplip-plugin RPM" && \
cd /root/rpmbuild && \

# Confirm that the file exists
ls -lh /root/rpmbuild/SPECS/hplip-plugin.spec && \
rpmbuild -bb /root/rpmbuild/SPECS/hplip-plugin.spec

RUN ls /root/rpmbuild/RPMS/x86_64/hplip-plugin-*-1.x86_64.rpm && \
HPLIP_VERSION=`ls /root/rpmbuild/RPMS/x86_64/hplip-plugin-*-1.x86_64.rpm | grep -Eo '[0-9]\.[0-9].\.[0-9]'` && \
mv /root/rpmbuild/RPMS/x86_64/hplip-plugin-${HPLIP_VERSION}-1.x86_64.rpm /root/rpmbuild/RPMS/x86_64/hplip-plugin-latest-1.x86_64.rpm

### 2. SOURCE IMAGE
## this is a standard Containerfile FROM using the build ARGs above to select the right upstream image
FROM ghcr.io/ublue-os/${SOURCE_IMAGE}${SOURCE_SUFFIX}:${SOURCE_TAG}
ENV OS_VERSION=41

# Copy build artifact
# ARG HPLIP_VERSION="3.24.4" # HPLIP version that's used
COPY --from=builder /root/rpmbuild/RPMS/x86_64/hplip-plugin-latest-1.x86_64.rpm /tmp

### 3. MODIFICATIONS
## make modifications desired in your image and install packages by modifying the build.sh script
## the following RUN directive does all the things required to run "build.sh" as recommended.

COPY build.sh /root/build.sh

RUN mkdir -p /var/lib/alternatives && \
/root/build.sh && \
ostree container commit
# Build HP plugin
FROM fedora-minimal:38 as builder

# Install build tools
RUN dnf5 install -y git rpmdevtools crudini

# Prepare build directory
RUN rpmdev-setuptree && \

# Download the .spec for building an RPM
git clone 'https://gitlab.com/greysector/rpms/hplip-plugin.git' && \
mv hplip-plugin/hplip-plugin.spec /root/rpmbuild/SPECS/ && \
mv hplip-plugin/* /root/rpmbuild/SOURCES/ && \

# Download HP's plugins and move it to SOURCES
HPLIP_VERSION=`grep -Eo '[0-9]\.[0-9].\.[0-9]' /root/rpmbuild/SPECS/hplip-plugin.spec | head -1` && \
curl -Lo hplip-${HPLIP_VERSION}-plugin.run https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-${HPLIP_VERSION}-plugin.run && \
curl -Lo hplip-${HPLIP_VERSION}-plugin.run.asc https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-${HPLIP_VERSION}-plugin.run.asc && \
mv hplip-${HPLIP_VERSION}-plugin.* /root/rpmbuild/SOURCES/

RUN echo "Building hplip-plugin RPM" && \
cd /root/rpmbuild && \

# Confirm that the file exists
ls -lh /root/rpmbuild/SPECS/hplip-plugin.spec && \
rpmbuild -bb /root/rpmbuild/SPECS/hplip-plugin.spec

RUN ls /root/rpmbuild/RPMS/x86_64/hplip-plugin-*-1.x86_64.rpm && \
HPLIP_VERSION=`ls /root/rpmbuild/RPMS/x86_64/hplip-plugin-*-1.x86_64.rpm | grep -Eo '[0-9]\.[0-9].\.[0-9]'` && \
mv /root/rpmbuild/RPMS/x86_64/hplip-plugin-${HPLIP_VERSION}-1.x86_64.rpm /root/rpmbuild/RPMS/x86_64/hplip-plugin-latest-1.x86_64.rpm

### 2. SOURCE IMAGE
## this is a standard Containerfile FROM using the build ARGs above to select the right upstream image
FROM ghcr.io/ublue-os/${SOURCE_IMAGE}${SOURCE_SUFFIX}:${SOURCE_TAG}
ENV OS_VERSION=41

# Copy build artifact
# ARG HPLIP_VERSION="3.24.4" # HPLIP version that's used
COPY --from=builder /root/rpmbuild/RPMS/x86_64/hplip-plugin-latest-1.x86_64.rpm /tmp

### 3. MODIFICATIONS
## make modifications desired in your image and install packages by modifying the build.sh script
## the following RUN directive does all the things required to run "build.sh" as recommended.

COPY build.sh /root/build.sh

RUN mkdir -p /var/lib/alternatives && \
/root/build.sh && \
ostree container commit
23 replies
UBUniversal Blue
Created by Marcus Lee on 4/28/2025 in #🛟bazzite-help
hplip-plugin compatibility
yeah
23 replies
UBUniversal Blue
Created by Marcus Lee on 4/28/2025 in #🛟bazzite-help
hplip-plugin compatibility
No clue lol, I'm not a lawyer
23 replies
UBUniversal Blue
Created by Marcus Lee on 4/28/2025 in #🛟bazzite-help
hplip-plugin compatibility
23 replies
UBUniversal Blue
Created by Marcus Lee on 4/28/2025 in #🛟bazzite-help
hplip-plugin compatibility
and I automate it by making my own custom image, build the RPM there, then install the ostree
23 replies
UBUniversal Blue
Created by Marcus Lee on 4/28/2025 in #🛟bazzite-help
hplip-plugin compatibility
then install it via ostree
23 replies
UBUniversal Blue
Created by Marcus Lee on 4/28/2025 in #🛟bazzite-help
hplip-plugin compatibility
I have to rely on someone's gitlab which builds an RPM of hplip-plugin
23 replies
UBUniversal Blue
Created by Marcus Lee on 4/28/2025 in #🛟bazzite-help
hplip-plugin compatibility
It's very wack
23 replies
UBUniversal Blue
Created by Prinny on 5/5/2024 in #🛟bazzite-help
Safe to install RPMs? No flatpak for mullvad VPN
I see
116 replies
UBUniversal Blue
Created by Prinny on 5/5/2024 in #🛟bazzite-help
Safe to install RPMs? No flatpak for mullvad VPN
I did read that rebasing to a different DE is not recommended, what happens now?
116 replies
UBUniversal Blue
Created by Prinny on 5/5/2024 in #🛟bazzite-help
Safe to install RPMs? No flatpak for mullvad VPN
My custom image builds! Problem is uh, I rebased to it but I didn't realize that I was using the KDE image instead of GNOME after I had already booted
116 replies
UBUniversal Blue
Created by Prinny on 5/5/2024 in #🛟bazzite-help
Safe to install RPMs? No flatpak for mullvad VPN
Alright
116 replies
UBUniversal Blue
Created by Prinny on 5/5/2024 in #🛟bazzite-help
Safe to install RPMs? No flatpak for mullvad VPN
Yeah, I've read something about optfix
116 replies
UBUniversal Blue
Created by Prinny on 5/5/2024 in #🛟bazzite-help
Safe to install RPMs? No flatpak for mullvad VPN
Oh I thought the images explicitly needs a repo to work, neat
116 replies
UBUniversal Blue
Created by Prinny on 5/5/2024 in #🛟bazzite-help
Safe to install RPMs? No flatpak for mullvad VPN
The problem I have with Windscribe currently is that they don't have a repo
116 replies
UBUniversal Blue
Created by Prinny on 5/5/2024 in #🛟bazzite-help
Safe to install RPMs? No flatpak for mullvad VPN
Hmm, these stuff is still a bit confusing to me
116 replies