zoukankan      html  css  js  c++  java
  • SSH登录之后运行命令报错的解决办法-- Failed to connect to Mir: Failed to connect to server socket: No such file or directory

    问题描述:

    Failed to connect to Mir: Failed to connect to server socket: No such file or directory

    解决方案:

    在 ssh localhost命令上加参数-X

    即:

     ssh -X localhost

    -----------------------------------------------

    it"s linux but i solved the problem thanks anyway , it"s bec of wireshark graphical display on the remote computer i had to add a command for it to work !

    I asked not just about Linux, but specifically about Ubuntu Linux, because "Mir" is the name of a display server for Linux, being developed for Ubuntu, as a replacement for X11.
    The error probably means you're running it on an Ubuntu machine, but not from a GUI session on that machine, and it's therefore failing to connect to the Mir server on that machine. Presumably the command you added was one to try to get it to connect via X11 to the machine on which you had the GUI session.
    i just added -X to my ssh labpc1 /directory/wiresharkScript.sh and it worked ..is that correct or it's not the best solution ?

    I.e, you did ssh -X labpc1 /directory/wiresharkScript.sh?
    If so, my guess is that the -X flag, by enabling X11 forwarding, causes the DISPLAY environment variable to be set, so that it refers to the machine from which you're doing the ssh, when wiresharkScript.sh is run, causing Wireshark to be run with the DISPLAY environment set.
    This probably means that the Mir/X11 client libraries that Wireshark uses - or, rather, that GTK+, the GUI toolkit Wireshark is using, uses - will, instead of trying to contact the local Mir server (which fails in the fashion you reported), try to contact the X11 server on the machine from which you did the ssh, so that it opens windows on that machine.

       
       
  • 相关阅读:
    企业IT管理员IE11升级指南【1】—— Internet Explorer 11增强保护模式 (EPM) 介绍
    探讨 : Host在IIS上的WCF Service的执行方式
    JavaScript性能优化
    canvas圆形进度条(逆时针)
    微信二次分享无标题无图片问题参考
    Promise学习
    好用的jq复制插件clipboard.js
    掘金好文链接
    js冒泡排序
    基于JQ的记忆翻牌游戏
  • 原文地址:https://www.cnblogs.com/sddai/p/5648167.html
Copyright © 2011-2022 走看看