View previous topic :: View next topic |
Author |
Message |
lekto Apprentice
Joined: 20 Sep 2014 Posts: 170 Location: Ancient Rome
|
Posted: Sat Jun 18, 2022 8:56 am Post subject: Graphics support for headless machines. |
|
|
Hi, I have headless machine with installed xorg-server only because I need to access some programs through ssh's X11Forwarding. Do I really need kernel support (amdgpu), and also INPUT_DEVICES and VIDEO_CARDS set in my case? |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3137
|
Posted: Sat Jun 18, 2022 9:13 am Post subject: |
|
|
Not really.
X11-forwarded programs will connect to xorg on your ssh client and use it's video card and input device instead. |
|
Back to top |
|
|
lekto Apprentice
Joined: 20 Sep 2014 Posts: 170 Location: Ancient Rome
|
Posted: Sat Jun 18, 2022 9:28 am Post subject: |
|
|
I thought the same, but I also wondering if not loading amdgpu can cause increased power draw, because card is not in a low power mode or something. Unfortunately I don't have power meter to measure that. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Sat Jun 18, 2022 12:16 pm Post subject: |
|
|
lekto,
xorg-server is the part that draws the images on the local system where they will be displayed.
It's not required on the remote system as it won't be used there.
Few people use Xorg this way any more. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
lekto Apprentice
Joined: 20 Sep 2014 Posts: 170 Location: Ancient Rome
|
Posted: Thu Jun 23, 2022 6:07 pm Post subject: |
|
|
I just deselected xorg-server, run emerge --depclean and lost ability to use X11Forwarding.
Code: | lekto@blaszak ~ $ ssh -YC dedyk wireshark
X11 forwarding request failed on channel 0
** (wireshark:31718) 19:53:12.597808 [GUI WARNING] -- could not connect to display
** (wireshark:31718) 19:53:12.598159 [GUI ERROR] -- This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: minimal, offscreen, xcb.
lekto@blaszak ~ $ ssh -YC dedyk qdirstat
X11 forwarding request failed on channel 0
Logging to /tmp/qdirstat-lekto/qdirstat.log
FATAL: Could not connect to the display. |
After emerging x11-apps/xauth it works again, missing dependencies in some ebuild? |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21633
|
Posted: Thu Jun 23, 2022 6:10 pm Post subject: |
|
|
What ebuild were you expecting would protect xauth from depclean? It looks to me like USE=X on openssh would introduce an RDEPEND on xauth. |
|
Back to top |
|
|
lekto Apprentice
Joined: 20 Sep 2014 Posts: 170 Location: Ancient Rome
|
Posted: Thu Jun 23, 2022 6:25 pm Post subject: |
|
|
You are right, I set X flag in OpenSSH and now xauth stays after emerge --depclean, thanks for help. |
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3267 Location: Canada
|
Posted: Thu Jun 23, 2022 9:56 pm Post subject: |
|
|
NeddySeagoon wrote: | lekto,
xorg-server is the part that draws the images on the local system where they will be displayed.
It's not required on the remote system as it won't be used there.
Few people use Xorg this way any more. |
I do from time to time. There was a period again when this was more efficient than doing vnc like remote destops nfor some tasks.
For instance, vizualizing 3D sims stored on a remote server. When the images of data cubes were rotated locally, on local accelerated card, that was much better than
try to render them remotely and then pass the pixmaps |
|
Back to top |
|
|
pa4wdh l33t
Joined: 16 Dec 2005 Posts: 812
|
Posted: Fri Jun 24, 2022 4:54 am Post subject: |
|
|
I also use X11's network transparency on a regular basis, for example for a machine that simply doesn't have a GPU .
It's also a nice way to ensure that the actual data you are processing stays at the machine where the application is running and not on the machine that is viewing the application. _________________ The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse @world
My shared code repository: https://code.pa4wdh.nl.eu.org
Music, Free as in Freedom: https://www.jamendo.com |
|
Back to top |
|
|
|