Score:0

Ubuntu-frame on Ubuntu Server

hk flag

I installed ubuntu-frame on Ubuntu server, but when I tried to run a gtk GUI app (gnome-mastermind) then I got this error:

gtk cannot open display:  

I followed these tutorials:

  1. https://discourse.ubuntu.com/t/run-ubuntu-frame-on-your-device/29377
  2. https://mir-server.io/docs/run-ubuntu-frame-on-your-desktop

I was setting display:0 and WAYLAND_DISPLAY=wayland-0 but nothing helped.

Because the display was gray (ubuntu-frame default screen), I connected to it over ssh.

Why do I use Ubuntu server instead of Ubuntu core? Because I need to host my web app on apache but I need gui apps on the server.

And why not Ubuntu desktop? Because I want to save resources.

Artur Meinild avatar
vn flag
Well, the main difference between server and desktop is ... the lack of a "desktop" environment (GUI) on server. You should probably define your usecase more clearly, and research which tools you need. With the right tools, you can do *a lot* of things with Ubuntu server, without ever needing a GUI.
Artur Meinild avatar
vn flag
It seems you're backtracking from your previous question. Why don't you go forward with Ubuntu Frame on Ubuntu Core instead?
Grabowsky avatar
hk flag
@ArturMeinild I am looking for the solutions paralell. if i got a solution then i will share it on both questions.
waltinator avatar
it flag
Telling us which remote procedure (RP) you "followed" doesn't help us help you for N reasons: 1) It's remote. Will the link exist tomorrow? 2) Reading the RP doesn't tell us how accurately you "followed" it. Did you suffer typos or missed lines? We have. 3) Reading the RP omits the error messages **you** got on **your system**. These error messages (and the commands that caused them) are key elements in any diagnosis.
Grabowsky avatar
hk flag
@ArturMeinild Yes you are right, but there is a minimal installation of ubuntu server and the ubuntu-frame need more less resources like the desktop. I tested the ubuntu core and the ubuntu server with minimal installation with ubuntu-frame and the ubuntu serever needed a bit less memory. that's what the difference, but on ubuntu server i can use apt package manager.
Score:0
cn flag

Is your GTK app packaged for use with Ubuntu Frame?

https://mir-server.io/docs/packaging-a-gtk3-application-as-an-iot-gui

If not, then maybe you need frame-it?

https://github.com/AlanGriffiths/frame-it

Score:0
hk flag

I found a solution. What did I do? I followed the tutorials in the question post.

ssh userName@[serverIpAddress]
sudo snap install ubuntu-frame
sudo snap set ubuntu-frame daemon=true
sudo snap run [gtkApp]

The 3rd step was the key to running a program (nowhere explains it)

[gtkApp] -> I tested it with sudo snap install gnome-mines. It has to be snap.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.