LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Containers (https://www.linuxquestions.org/questions/linux-containers-122/)
-   -   Do you know how to connect the desktop of this Docker container as a Singularity container through Remote Desktop? (https://www.linuxquestions.org/questions/linux-containers-122/do-you-know-how-to-connect-the-desktop-of-this-docker-container-as-a-singularity-container-through-remote-desktop-4175732900/)

zzzhhh 01-18-2024 06:58 AM

Do you know how to connect the desktop of this Docker container as a Singularity container through Remote Desktop?
 
The original Docker container is here: https://quay.io/repository/cosmosclo...gnome?tab=info

We can download this Docker container as a Singularity container using this command: `singularity pull docker://quay.io/cosmoscloud/ubuntu-gnome:rdp`.

If I shell into the container without sudo, I don't know how to start the xrdp service because I don't have sudo permission. So, I shell into the container with sudo and change the port to 3390 in file `/etc/xrdp/xrdp.ini` because 3389 is already occupied. Then I run `sudo systemctl restart xrdp`, and I receive the following output:
Quote:

Running in chroot, ignoring request: restart
If I run `systemctl enable xrdp`, I'll receive the following output:
Quote:

Synchronizing state of xrdp.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable xrdp
I don't know whether these messages indicate that the Remote Desktop service is started successfully, but I cannot connect it. Can you help me by showing how to connect through the Remote Desktop? PS, this container also installed TigerVNC, but I can't connect either.

pan64 01-18-2024 07:39 AM

I don't really understand how do you "shell into the container*with sudo". What does it mean?
If you are already root you do not need to use sudo before systemctl (or any other command).

zzzhhh 01-18-2024 03:23 PM

Quote:

Originally Posted by pan64 (Post 6477645)
I don't really understand how do you "shell into the container*with sudo". What does it mean?
If you are already root you do not need to use sudo before systemctl (or any other command).

Let's not worry about the technical details of sudo thing. Let's assume your boss asked you to connect the GUI desktop of this container using singularity through RDP or VNC. What will you do?

sundialsvcs 01-19-2024 12:07 PM

This sounds like an “XY problem.” Please tell us exactly what your boss wants you to do, not how you propose to do it.

“Containers,” actually, are “an illusion.” You are actually operating as a non-privileged (I hope!) process. Therefore, you cannot execute commands which affect “the environment,” even though you might believe the illusion and therefore expect to do so.

By “illusion,” I’m being very specific: the “containerized” process doesn’t realize that he is, in fact, “an ordinary, non-privileged process,” running on some host somewhere, whose actual topology he has no concept of. (And, if “the illusion” is complete – as it is – he doesn’t care.)

The illusion necessarily falters when you attempt to do something, “within the container [illusion …],” which might actually affect the environment.

zzzhhh 01-19-2024 04:27 PM

Quote:

Originally Posted by sundialsvcs (Post 6477925)
This sounds like an “XY problem.” Please tell us exactly what your boss wants you to do, not how you propose to do it.

“Containers,” actually, are “an illusion.” You are actually operating as a non-privileged (I hope!) process. Therefore, you cannot execute commands which affect “the environment,” even though you might believe the illusion and therefore expect to do so.

By “illusion,” I’m being very specific: the “containerized” process doesn’t realize that he is, in fact, “an ordinary, non-privileged process,” running on some host somewhere, whose actual topology he has no concept of. (And, if “the illusion” is complete – as it is – he doesn’t care.)

The illusion necessarily falters when you attempt to do something, “within the container [illusion …],” which might actually affect the environment.

I have no idea what you mean by “XY problem.” But maybe you should've labelled a previous reply as "XY answer".

I believe I have said everything very clearly in my question. If anyone has difficulty understanding English, please simply leave my question instead of making deviated reply.

From your answer, it is obvious that you do not know what a container and in particular what a Singularity container is and how to work with it. I have no interest in wasting time explaining those basic concepts to you. Please leave my question to others who are technically competent to answer my question. Thanks.

再加两句,我是来问问题的,不是来跟你们这些饭桶吵架的。吵架对我真的没什么意思,如果你们不想帮我回答问题,无所谓,你们尽管走,我不乞求你们的帮助。你们这些人,本事不大,脾气不小,说实话我根本也没指望你们 能帮到我什么东西,尤其是到了Guru级别,就像丐帮的九袋长老一样,大多数的本事是怎么整人,真正的武艺倒是稀疏平常。说这么多,就这样吧。

pan64 01-20-2024 02:44 AM

this is the direct translation of that last part (by google):
Quote:

Let me add a few words, I'm here to ask questions, not to argue with you idiots. Quarreling really doesn't mean anything to me. If you don't want to help me answer the question, it doesn't matter. You can just go. I won't beg for your help. You guys are not very capable and have a bad temper. To be honest, I don’t expect you to be able to help me with anything at all, especially when you reach the Guru level, just like the Nine-Pocket Elder of the Beggar Clan, how can most of your abilities be improved? People, real martial arts are rare and ordinary. So much for that.


All times are GMT -5. The time now is 07:29 PM.