Generating xorg.conf file

Issues related to applications and software problems
Post Reply
Micahl1025
Posts: 2
Joined: 2021/03/07 14:06:11

Generating xorg.conf file

Post by Micahl1025 » 2021/03/07 14:21:55

Hello,

I am fairly new to running CentOS 7. For work we use this with a psql database and I really only know "our" system.

I am running:

Linux Enterprise (minimal install) 3.10.0-1160.e17.x86_64
centos-release-7-9.2009.0.e17.centos.x86_64

I choose CentOS 7 over 8 because this is what we run where I work and want to learn commands and software that run with this version.

I do not have a GUI installed as we do everything by command line.

I am trying to start firefox but get an error, "failed to open connection to "session" message bus: unable to autolaunch a dbus-daemon without a $DISPLAY for X11 Running without a11y support!

when I checked /etc/X11/xorg.conf.d/ the only thing listed is "00-keyboard.conf"

how do I generate a xorg.conf file without installing a desktop GUI?

Thanks

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Generating xorg.conf file

Post by TrevorH » 2021/03/07 15:00:14

You can't really get firefox to display anything if there is no GUI unless you're aiming to use ssh X11 forwarding to display the window on a different machine. Is there some reason why you need to run firefox on this machine locally instead of remotely and connecting to it like that?

Also, from your kernel version, I can see that you've never updated the system so you're about 6 months out of date and need to `yum update`
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Generating xorg.conf file

Post by jlehtone » 2021/03/07 19:45:02

TrevorH wrote:
2021/03/07 15:00:14
to use ssh X11 forwarding to display the window on a different machine.
... in which case the X11 server must run on the different machine.

For example:

Code: Select all

[desktop]$ ssh -X remote
[remote]$ firefox
You sit at desktop. Desktop has X11 server; GUI.
The firefox process runs in remote. The window is shown on the display of desktop.
The remote needs package xorg-x11-xauth for the X11 forwarding.

If the issue is that there is a webserver that remote is allowed to access, but desktop isn't, ssh offers additional forwards (e.g. -L and -D) which allow you to run (and display) firefox in the desktop, but the connection to webserver appears to originate from the remote.

Micahl1025
Posts: 2
Joined: 2021/03/07 14:06:11

Re: Generating xorg.conf file

Post by Micahl1025 » 2021/03/10 20:57:52

TrevorH wrote:
2021/03/07 15:00:14
You can't really get firefox to display anything if there is no GUI unless you're aiming to use ssh X11 forwarding to display the window on a different machine. Is there some reason why you need to run firefox on this machine locally instead of remotely and connecting to it like that?

Also, from your kernel version, I can see that you've never updated the system so you're about 6 months out of date and need to `yum update`
thanks for the information. Mostly I am just trying to learn linux and the "does and don'ts". Just wanted a browser so I could research on how to do different things without having a GUI interface.
I have ran yum update and hopefully got everything needed to bring the system current without going to CentOS 8. Only want to use 7 as that is what we are using at work and want to compare apples to apples.

thanks
Micah

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Generating xorg.conf file

Post by TrevorH » 2021/03/10 21:29:50

CentOS 7 is good, it lasts 3 more years than CentOS 8 which expires at the end of this year.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply