Skip to content

Xquartz not starting #329

Description

@enkl7

Machine: Macbook Air (m1)
OS: Monterey 12.2.1

I installed modular-xorg and modular-xorg-quartz from https://pkgsrc.joyent.com/packages/Darwin/11.0/arm64/All/ which seems to automatically pull down all the dependencies to run a X server.

Launching startx warns that /opt/pkg/bin/X no such file or directory - and suggests to make a script or link to the appropriate X server (xquartz in this case). I then make a link in /opt/pkg/bin ln -s /opt/pkg/bin/Xquartz X.

However startx gives me this error:

/opt/pkg/bin/xinit: giving up
/opt/pkg/bin/xinit: unable to connect to X server: Connection refused
/opt/pkg/bin/xinit: server error

Xorg doesn't leave any log files so I don't know how to debug this.

Am I missing something here?
Would really appreciate any help to get a working X server.

Activity

  1. self-assigned this
    on Apr 7, 2022
  2. jperkin commented on Apr 7, 2022

    @jperkin
    Collaborator

    Note the message that is printed when installing modular-xorg-xquartz:

    $ pkg_info -D modular-xorg-xquartz
    Information for modular-xorg-xquartz-1.17.2nb6:
    
    Install notice:
    ===========================================================================
    $NetBSD: MESSAGE,v 1.1 2015/10/01 12:55:09 tnn Exp $
    
    To finish the installation of pkgsrc X11 on your Mac:
    
    $ sudo mv /Applications/Utilities/X11.app /Applications/Utilities/X11.app.bak
    $ sudo ln -s /opt/pkg/Applications/Utilities/X11.app /Applications/Utilities
    
    $ echo "/opt/pkg/bin/xterm &" > ~/.xinitrc
    $ echo /opt/pkg/bin/quartz-wm >> ~/.xinitrc
    $ /opt/pkg/bin/startx -- /opt/pkg/bin/Xquartz
    
    You can also launch X11.app from finder instead of the last step.
    
    ===========================================================================
    

    Note that the first two commands aren't actually required (I should fix the message file). An easier way to launch it is, after making the necessary ~/.xinitrc changes, to run:

    $ open /opt/pkg/Applications/Utilities/X11.app
    

    This works for me on Intel. If you're still unable to launch using these instructions then it may be an Arm issue, and I'll try to reproduce on my M1 at some point.

  3. enkl7 commented on Apr 9, 2022

    @enkl7
    Author

    Thanks for the input @jperkin , unfortunately though the error still remains and X refuses to start.

  4. added a commit that references this issue on Nov 28, 2022
  5. added a commit that references this issue on Jan 4, 2023
  6. added a commit that references this issue on Jan 28, 2023
  7. added a commit that references this issue on Mar 20, 2023
  8. added a commit that references this issue on Aug 14, 2023
  9. added a commit that references this issue on Nov 2, 2023
  10. added a commit that references this issue on Jan 25, 2024
  11. added a commit that references this issue on Mar 4, 2024
  12. added a commit that references this issue on Apr 9, 2024
  13. added a commit that references this issue on Jul 31, 2024
    ec1079f
  14. 21 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions