Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Graphics support for headless machines.
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
lekto
Apprentice
Apprentice


Joined: 20 Sep 2014
Posts: 170
Location: Ancient Rome

PostPosted: Sat Jun 18, 2022 8:56 am    Post subject: Graphics support for headless machines. Reply with quote

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
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3137

PostPosted: Sat Jun 18, 2022 9:13 am    Post subject: Reply with quote

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
View user's profile Send private message
lekto
Apprentice
Apprentice


Joined: 20 Sep 2014
Posts: 170
Location: Ancient Rome

PostPosted: Sat Jun 18, 2022 9:28 am    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Sat Jun 18, 2022 12:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
lekto
Apprentice
Apprentice


Joined: 20 Sep 2014
Posts: 170
Location: Ancient Rome

PostPosted: Thu Jun 23, 2022 6:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Thu Jun 23, 2022 6:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
lekto
Apprentice
Apprentice


Joined: 20 Sep 2014
Posts: 170
Location: Ancient Rome

PostPosted: Thu Jun 23, 2022 6:25 pm    Post subject: Reply with quote

You are right, I set X flag in OpenSSH and now xauth stays after emerge --depclean, thanks for help.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3267
Location: Canada

PostPosted: Thu Jun 23, 2022 9:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
pa4wdh
l33t
l33t


Joined: 16 Dec 2005
Posts: 812

PostPosted: Fri Jun 24, 2022 4:54 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum