You are not logged in.
Pages: 1
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
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
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
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
What does your .xinitrc say?
I have i3 as well and it says
exec i3
Offline
"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
"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
@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
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
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
Pages: 1