Chris Green <c...@isbd.net> writes:

> I have an OKI scanner which has a neat little linux app for running it
> from a linux desktop. However it hasn't been updated from python 2.7
> days and I'm looking at ways I might get it to run on my recently
> upgraded Debian 12 system.
>
> I managed for a while to keep it running on systems which no longer
> have python 2.7 by building a cxfreeze environment but this is no
> longer viable.
>
> The scanner applet builds and runs successfully on an old system I
> have which runs xubuntu 18.04.
>
> So my options seem to be:-
>
>     Keep the xubuntu 18.04 system and run the app there via Remmina or
>     something similar.  The downsides are the extra power consumption
>     and the slightly clumsy interface via Remmina.
>
>     As above but simply use X to run the app on my desktop. If this
>     works it is a bit 'tidier' but still has the extra power
>     consumption.
>
>     Try the cxfreeze build again.  This may work but I think it's
>     becoming less viable.
>
>     Build the app into something like an appimage.  I've looked into
>     this a bit but it feels a bit complicated and again I'm not sure
>     about its long term viability.
>
>     Run xubuntu 18.04 (or similar) in a virtual machine, I used to use
>     virtualbox for running Windows XP but I haven't for a while.  It
>     does rather seem overkill for just one app though.
>
>     Is there any sort of 'ready made' python 2.7 virtual environment
>     available?
>
>     Anything else?
>
> The ideal would be some sort of mini virtualbox type of environment
> that supports python 2.7.
>
> -- 
> Chris Green
> ยท
>

Using Docker/Podman to run a container with an old version of Linux
distribution that support Python 2.7 could be the most power-saving
option (e.g. Debian Bullseye a.k.a. oldstable.)  Using a Docker means no
hypervisor required and application running in a container runs at
near-bear-metal speed thanks to kernel support.  Additionally you got
some level of isolation from your host so that some of the unsupported
old Python 2 vulnerabilities are under control within your container
(not bullet-proof, but still something.)

-- 
Regards,
Xiyue Deng

Attachment: signature.asc
Description: PGP signature

Reply via email to