You are not logged in.

#1 2019-10-15 07:33:59

LORDTEK
Member
Registered: 2019-10-15
Posts: 4

How to startX (xorg) on SSH

I use i3-wm on front of computer (console). No problem. But when I want to start i3-wm via "startx" over SSH, it is written as below:

/usr/lib/Xorg.wrap: Only console users are allowed to run the X server
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
Couldn't get a file descriptor referring to the console


Any solution?

Last edited by LORDTEK (2019-10-15 07:38:28)

Offline

#2 2019-10-15 08:54:38

LORDTEK
Member
Registered: 2019-10-15
Posts: 4

Re: How to startX (xorg) on SSH

Update: I added the below line to /etc/X11/Xwrapper.config:
allowed_users=anybody

So now "sudo startx" startx i3-wm but not on ssh, it is on computer screen. I need to perform "startx i3-wm" on SSH.

Offline

#3 2019-10-15 13:24:41

seth
Member
Registered: 2012-09-03
Posts: 51,046

Re: How to startX (xorg) on SSH

Drop the idea of putting "sudo" in front of "startx". Now.
Then see https://bbs.archlinux.org/viewtopic.php … 0#p1811790

On a techincal note: please don't bump. Just edit your post unless somebody has responded.

Online

#4 2019-10-17 09:36:11

LORDTEK
Member
Registered: 2019-10-15
Posts: 4

Re: How to startX (xorg) on SSH

The problem is not putting sudo. Because either way (with sudo AND without sudo) make same result.
"startx i3-wm but not on ssh, it is on computer screen." i3-wm starts on computer's screen, not on ssh. But I want to use i3-wm on ssh.

Last edited by LORDTEK (2019-10-17 09:37:16)

Offline

#5 2019-10-17 09:50:53

TheStroyer
Member
Registered: 2018-08-28
Posts: 54

Re: How to startX (xorg) on SSH

What does your .xinitrc say?
I have i3 as well and it says

exec i3

Offline

#6 2019-10-17 11:47:15

seth
Member
Registered: 2012-09-03
Posts: 51,046

Re: How to startX (xorg) on SSH

"sudo" is not related to the problem, but just in general a terrible idea. Just don't do that.
Your problem is addressed in the link I posted. So rtfw.

Online

#7 2019-10-17 12:16:59

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: How to startX (xorg) on SSH

"startx on SSH" is also an ill-defined goal.  X is a client and server.  Do you have an X11 server on the ssh client?  Which machine (ssh client or server) do you want the windows to appear on?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#8 2019-10-21 06:12:46

LORDTEK
Member
Registered: 2019-10-15
Posts: 4

Re: How to startX (xorg) on SSH

@Trilby thank you illuminate me. I use osx and connect my archlinux server over ssh. i3 has convince so I want to have i3 pluses while using ssh connection. But it is OK, I understand it is not possible. Thank you all.

Offline

#9 2019-10-21 06:27:28

seth
Member
Registered: 2012-09-03
Posts: 51,046

Re: How to startX (xorg) on SSH

I understand it is not possible.

No you don't because no, it's not not possible. Read the fucking wiki link I posted.

Also to use a graphical session remotely you'll need an X11 server on the local system (I think Apple dropped it from the default installation) - or a VNC server on the remote and client on the local system.

Edit: though it's not necessarily a good idea to keep a GUI installation on a "server™" to begin with (and it's also not really clear to me why/how one would use one depending on the nature of the "server™")

Last edited by seth (2019-10-21 06:30:21)

Online

#10 2019-10-21 12:30:53

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: How to startX (xorg) on SSH

Indeed, it is possible.  I was asking for details as it is possible in several different ways and it is not at all clear yet which way you want to do it.  An "ill-defined problem" as I called it, is not one that lacks any possible solution - rather it is one for which not enough information has been provided to know which solution is appropriate.

You ssh from your OSX machine to an arch linux Machine.  If you set up an X11 server on OSX you can run client programs from the arch machine via x11 forwarding.  But you would not be using i3: you would be using the OSX window manager to run client programs from the arch machine.

If instead you want to run an i3 session on your arch machine within a window on the OSX machine, then you may want to set up vnc (caveat: I have zero experience with this).

If you really just want a ssh session that can have tiling of terminal windows like in i3, then you should check out tmux, screen, or dvtm: my vote would go to tmux overall but if you really just want simple tiling, then dvtm is the most direct solution.

Last edited by Trilby (2019-10-21 12:38:52)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB