Runing on Linux under WINE

Yeah, I know. But I think there are still some genuine business advantages in there too.

But we have PoC solution of web client. So you can run it in a Linux Box.

If we release :slight_smile:

1 Like

Hi !
@mjb2000 could you please share the version of wine you used or even the steps to achieve what you achieved. I am trying to run sambapos in a docker image with wine so we could easily share it but it’s really tough, I only managed to get the sambapos blue screen and then it crashes.
I was a windows user during too many years, I switched to ubuntu based ZorinOs when the windows 10 monster came out, I feel it’s just the way to go … (who still wants viruses and antiviruses, buggy and slow updates, closed source code etc etc ) so if we can tackle this one and make it run on linux it would be fantastic imho. There is a sql server docker image by the way that could help too (https://hub.docker.com/_/microsoft-mssql-server) .

I don’t really remember everything I did now. But looking back at the notes I shared…

I remember dotNET and fonts being a real issue, I think particularly making sure the UI font that Samba installs is available to the application.

I read a lot about being able to leave font files in a bunch of different directories and that WINE would automagically find them and make them available to apps running under WINE, but that didn’t work as well as I hope and I do recall a lot of fiddling with fonts.

The issue you describe about getting to the blue loading screen but then failing I think was related to fonts, but I confess I am not 100% sure.

Printers may also be a big issue for you. I never got far enough along to have to look in to that.

1 Like

Viruses and malware etc really shouldnt be an issue unless you let people surf porn or something on the restaurant terminal.

Windows 8 was horrible but honestly windows 10 has been solid. That would be cool if you made it work on Linux but I don’t have high hopes for getting printers to work.

Well what else am I supposed to do at work?

5 Likes

Thank you very much for your efforts to remember. I’ll try my best.

I’ve actually been able to successfully run sambapos using wine with printers working too!!

Unfortunately I don’t remember how I did it, but I can potentially try again and share my experience

4 Likes

So finally I got this SambaPOS docker image running and published it on docker hub : https://hub.docker.com/r/devloic/sambapos .
You’ll need to run this image on linux ( tested on ubuntu 18.04 ) . This is a kind of proof of concept, of course you could also install SambaPOS straight on your linux host without docker but that requires quite a few steps so I would need to publish a guide for that. For testing purpose this image is far more easier to use, just install docker ( https://docs.docker.com/get-docker/ ) , run the ‘docker run’ command provided here https://hub.docker.com/r/devloic/sambapos and then you can access SambaPOS with VNC. Printers needs to be configured with CUPS on your linux host so that SambaPOS can see them inside the container. The image needs testing to check if the problems encountered by @mjb2000 remain.

4 Likes

Unfortunately for now the action constraint problem mentioned by @mjb2000 still exists.

It’s strange isn’t. How it can work so well, but that one random aspect of conditional logic is completely ignored by the WINE version of .NET

yes, it’s a pity. If we only could have a look at the source code …

Hi Loic,

I got an error in docker hub when trying to pull your image.

root@dockersambapos:/# docker pull devloic/sambapos
Using default tag: latest
Error response from daemon: manifest for devloic/sambapos:latest not found: manifest unknown: manifest unknown

Is it still available?

Marc

try
docker pull devloic/sambapos:v1.4