x11-forwarding

how can I enable x-11 forwarding in pycharm? when connecting to vagrant or a remote ssh?

前提是你 提交于 2019-12-03 07:14:41
I am using pycharm in windows but the python backend need to be running on unix so I host the python app/code in ubuntu with vagrant, however I need to do some plotting as well, is there a way I can enable matplotlab plotting in pycharm with vagrant? thanks Try to set DISPLAY environment variable in PyCharm run configuration like this: DISPLAY=localhost:10.0 I got my display value from vagrant ssh connection vagrant@vagrant:$ echo $DISPLAY localhost:10.0 In case anyone stumbles upon the same issue.. There are several ways for you to enable X11 through PyCharm. The solution for me was to create

X11 forwarding of a GUI app running in docker

隐身守侯 提交于 2019-11-30 16:13:05
First off: I have read the answers to similar questions on SO, but none of them worked. The situation: App with GUI is running in a docker container (CentOS 7.1) under Arch Linux. (machine A) Machine A has a monitor connected to it. I want to access this GUI via X11 forwarding on my Arch Linux client machine. (machine B) What works: GUI works locally on machine A (with /tmp/.X11-unix being mounted in the Docker container). X11 forwarding of any app running outside of docker (X11 forwarding is set up and running properly for non-docker usage). I can even switch the user while remotely logged in

x11 forwarding with paramiko

最后都变了- 提交于 2019-11-30 06:54:04
I'm trying to run a command with paramiko that should be able to open an X window. The script I'm using would something as follows: import paramiko ssh_client = paramiko.SSHClient() ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh_client.connect('192.168.122.55', username='user', password='password') transport = ssh_client.get_transport() session = transport.open_session() session.request_x11() stdin = session.makefile('wb') stdout = session.makefile('rb') stderr = session.makefile_stderr('rb') session.exec_command('env; xterm') transport.accept() print 'Exit status:',

ssh X11 forwarding won't work

牧云@^-^@ 提交于 2019-11-30 04:59:47
I have been trying to get X11 port forwarding to work from my laptop. I can't figure out why it won't work. I get this message when I try to run xterm: X11 connection rejected because of wrong authentication. xterm Xt error: Can't open display: localhost:10.0 I don't know if this is related or not, but when I login, I get this message: /usr/bin/xauth: timeout in locking authority file /home/sphillips/.Xauthority I have wondered if the problem is that my local user on my laptop is skp and the username on this server is sphillips. I have been able to get X11 forwarding to work with my other

x11 forwarding with paramiko

对着背影说爱祢 提交于 2019-11-29 06:25:28
问题 I'm trying to run a command with paramiko that should be able to open an X window. The script I'm using would something as follows: import paramiko ssh_client = paramiko.SSHClient() ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh_client.connect('192.168.122.55', username='user', password='password') transport = ssh_client.get_transport() session = transport.open_session() session.request_x11() stdin = session.makefile('wb') stdout = session.makefile('rb') stderr = session

ssh X11 forwarding won't work

邮差的信 提交于 2019-11-29 02:44:12
问题 I have been trying to get X11 port forwarding to work from my laptop. I can't figure out why it won't work. I get this message when I try to run xterm: X11 connection rejected because of wrong authentication. xterm Xt error: Can't open display: localhost:10.0 I don't know if this is related or not, but when I login, I get this message: /usr/bin/xauth: timeout in locking authority file /home/sphillips/.Xauthority I have wondered if the problem is that my local user on my laptop is skp and the

How to enable X11 forwarding in PyCharm SSH session?

萝らか妹 提交于 2019-11-28 19:07:51
问题 The Question I'm trying to enable X11 forwarding through the PyCharm SSH Terminal which can be executed via "Tools -> Start SSH session..." Unfortunately, It seems there is no way of specifying the flags like I would do in my shell for enabling the X11 Forwarding: ssh -X user@remotehost Do you know some clever way of achieving this? Current dirty solution The only dirty hack I found is to open an external ssh connection with X11 forwarding and than manually update the environment variable

Run X application in a Docker container reliably on a server connected via SSH without “--net host”

社会主义新天地 提交于 2019-11-28 07:36:33
Without a Docker container, it is straightforward to run an X11 program on a remote server using the SSH X11 forwarding ( ssh -X ). I have tried to get the same thing working when the application runs inside a Docker container on a server. When SSH-ing into a server with the -X option, an X11 tunnel is set up and the environment variable "$DISPLAY" is automatically set to typically "localhost:10.0" or similar. If I simply try to run an X application in a Docker, I get this error: Error: GDK_BACKEND does not match available displays My first idea was to actually pass the $DISPLAY into the

Run X application in a Docker container reliably on a server connected via SSH without “--net host”

纵饮孤独 提交于 2019-11-27 01:20:39
问题 Without a Docker container, it is straightforward to run an X11 program on a remote server using the SSH X11 forwarding ( ssh -X ). I have tried to get the same thing working when the application runs inside a Docker container on a server. When SSH-ing into a server with the -X option, an X11 tunnel is set up and the environment variable "$DISPLAY" is automatically set to typically "localhost:10.0" or similar. If I simply try to run an X application in a Docker, I get this error: Error: GDK