Firefox error cannot open display

Проблема с display и firefox Приветствую жителей форума, я со своего компьютера захожу на другую машину дабы с неё запустить FF у себя, но проблема в

Проблема с display и firefox

Приветствую жителей форума, я со своего компьютера захожу на другую машину дабы с неё запустить FF у себя,
но проблема в том, что в консоли у меня пишется, что display не указан

Почитай хоть что-нибудь про Х-ы и роль переменной DISPLAY

Я читал, попробовал вот как здесь написано — ноль результатов (читал не только там, но всё равно не работает).

Показывай команды которые даешь на обеих системах.

И возможно ssh -X решит твои проблемы без понимания сути процессов.

со своего компьютера захожу на другую машину

Приветствую жителей форума, я со своего компьютера захожу на другую машину дабы с неё запустить FF у себя, но проблема в том, что в консоли у меня пишется, что display не указан

дык укажи. И пробросить его не забудь, дабы иксы с одной машины, работали на другой.

-X Enables X11 forwarding. This can also be specified on a per-host basis in a configuration file.

X11 forwarding should be enabled with caution. Users with the ability to bypass file permissions on the remote host (for the user’s X authorization database) can access the local X11 display through the forwarded connection. An attacker may then be able to perform activities such as keystroke monitoring.

For this reason, X11 forwarding is subjected to X11 SECURITY extension restrictions by default. Please refer to the ssh -Y option and the ForwardX11Trusted directive in ssh_config(5) for more information.

И пробросить его не забудь, дабы иксы с одной машины, работали на другой.

Источник

node-firefox often fails with «Error: cannot open display: :99» #772

Comments

anto-ac commented Aug 23, 2018

Docker-Selenium Image Version(s):
3.14.0-arsenic and previous versions

Docker Version:
17.06.2-ce

OS:
Debian 3.16.43-2 (2017-04-30)

Setup:
wdio + grid with a hub, 8 chrome nodes and 8 firefox nodes.
Tests run on a Jenkins slave

Expected Behavior —

All nodes work as expected throughout the duration of the test run.

Actual Behavior —

Sporadically, one (sometimes more) firefox nodes fail to have a session initiated, leading to the spec assigned to that session not being executed and the whole . The error is:

The text was updated successfully, but these errors were encountered:

diemol commented Aug 23, 2018

Is it possible for you to provide have a test that can help us to replicate the issue? Even if it only happens every now and then, we can just run it several times and wait until it happens.

anto-ac commented Aug 23, 2018

I guess I could put something together. Something like

  • a few specs
  • a wdio config
  • a docker compose file

Or did you have something else in mind?

anto-ac commented Aug 23, 2018

I was wondering, though, if you had any ideas already. There were some issues with this reported in the past, some of which where addressed. For example: #184

diemol commented Aug 23, 2018

Yeah, but in theory that was resolved.

So, yes, a project that help us replicate it would be really helpful, thanks.

anto-ac commented Aug 23, 2018

Also, just to clarify, I have never seen it when running the tests on a local machine (admittedly different version of docker, different host os), but only when the tests run in Jenkins.

anto-ac commented Aug 23, 2018

anto-ac commented Aug 27, 2018

Issue is not “awaiting answer” anymore I don’t think.

diemol commented Aug 27, 2018

I tried to reproduce the issue within a new VM with Jenkins and using the repo you provided (by the way, thanks for that, I wish all issues provided something like that). But I could not, I ran the Jenkins job over 50 times and I could not see the error.

Nevertheless, maybe there is some context missing? Are there more jobs running at the same time with the same images?

I did some googling and I saw reports of the same issue for Firefox even without docker, always with display :99. So maybe we need to research more in that direction.

anto-ac commented Aug 27, 2018 •

Unfortunately it happens very sporadically. We’ve tried to reproduce it consistently, but failed to do so. I thought that perhaps it would happen more often if more than one job was running on the same Jenkins slave at the same time, but failed to find any correlation.

Our original code adds a unique prefix to all containers when created (in order to avoid different jobs using the same containers). I’ve removed that bit from the example for convenience.

Источник

Ошибка: не удается открыть дисплей: localhost: 0.0 — пытаюсь открыть Firefox из CentOS 6.2 64bit и отобразить на Win7

Я нахожусь на машине с Windows7, и я пытаюсь открыть firefox на машине с CentOS, но он будет отображаться на моем текущем экране. При вводе firefox в терминал я получаю следующую ошибку:

Для настройки дисплея я использовал команду

Некоторые сайты предлагали использовать следующее, но это тоже не сработало:

Я использую PuTTY, у меня установлен Enable X11 forwarding флажок, и XMing работает в Windows. Кроме того, похоже, что файл sshd_config в файле CentOS также настроен правильно:

Я просмотрел множество страниц и искал в StackOverflow, но ни одна из них не смогла мне каким-либо образом помочь. Заранее спасибо.

Итак, оказывается, что X11 на самом деле не был установлен на CentOS. Похоже, нигде не было никаких указаний на то, что он не установлен. Я выполнил следующую команду, и теперь открывается firefox:

Надеюсь, этот ответ поможет другим, кто сбит с толку 🙂

Я столкнулся с этой проблемой один раз и смог решить ее, исправив / etc / hosts. Просто не удалось разрешить имя localhost . Подробности здесь: http://itvictories.com/node/6

Фактически, 99% ошибок связаны с файлом / etc / hosts.

X-сервер просто не может разрешить localhost, и все последующие действия просто не работают.

Пожалуйста, убедитесь, что у вас есть запись вроде

в вашем файле / etc / hosts.

У меня было это сообщение об ошибке:

Это исправило это для меня:

Вы тоже можете использовать это:

перед запуском убедитесь в установке:

  1. начать xming или cygwin
  2. установить соединение с перенаправлением X11 (в замазке не забудьте установить localhost: 0.0 для местоположения отображения X)
  3. отредактируйте sshd.cong и перезапустите
  1. Без пересылки X11 вы подвергаетесь БЕЗОПАСНОСТИ X11, а затем вы должны: разрешить удаленному серверу установить соединение с локальным X-сервером с помощью метода (например, команды xhost) установить переменную среды отображения для перенаправления вывода на X-сервер вашего локального компьютера. В этом примере: 192.168.2.223 — это IP-адрес сервера. 192.168.2.2 — это IP-адрес локального компьютера, на котором установлен x-сервер. localhost также можно использовать.

Затем должно запуститься приложение xclock.

Проверьте это на putty или mobaxterm и не проверяйте в программном обеспечении Remote Desktop Manager. Будьте осторожны с пользователем, у которого sudo в.

Источник

  • Печать

Страницы: [1] 2 3 4  Все   Вниз

Тема: Не удалось открыть дисплей (Could not open X display)  (Прочитано 34039 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн
Salvador21

Проблема такая:

root@fp-anykey:/home/salvador# gedit /etc/apt/sources.list
No protocol specified

** (gedit:15651): WARNING **: Could not open X display
Не удалось открыть дисплей:
Запустите «gedit --help» для получения полного списка поддерживаемых ключей.


если запускать не от рута все граффические приложения через консоль, отлично работают( только вот если, что-то нужно изменить, все файлы конечно же будут только для чтения)

root@fp-anykey:/home/salvador# firefox
Error: no display specified

root@fp-anykey:/home/salvador# abiword /etc/apt/sources.list
No protocol specified

** (abiword:16292): WARNING **: Could not open X display
No DISPLAY: this may not be what you want.


ТС не появлялся на Форуме более полугода по состоянию на 14/07/2019 (последняя явка: 06/11/2014). Модератором раздела принято решение закрыть тему.
—zg_nico

« Последнее редактирование: 14 Июля 2019, 01:34:41 от zg_nico »

-Доктор, что это у меня?
-Аааа, что это у вас?


Оффлайн
victor00000


Оффлайн
Salvador21

root@fp-anykey:/home/salvador# echo $DISPLAY
Там пустая строка. Пробывал:

export DISPLAY=:0

-Доктор, что это у меня?
-Аааа, что это у вас?


Оффлайн
victor00000


Оффлайн
Salvador21

root@fp-anykey:/home/salvador# ps aux | grep X
root      1181  1.2  0.6  29724 19468 tty7     Ss+  марта12  17:24 /usr/bin/X :0 -background none -verbose -auth /run/gdm/auth-for-gdm-fJOXKM/database -nolisten tcp vt7
root     17275  0.0  0.0   5640   816 pts/0    S+   11:17   0:00 grep --color=auto X

-Доктор, что это у меня?
-Аааа, что это у вас?


Оффлайн
victor00000


Оффлайн
Salvador21

root@fp-anykey:/home/salvador# DISPLAY=:0.0 firefox
No protocol specified
No protocol specified
Error: cannot open display: :0.0

-Доктор, что это у меня?
-Аааа, что это у вас?


Оффлайн
victor00000

DISPLAY=:0.0 bash -c firefox?


Оффлайн
Salvador21

root@fp-anykey:/home/salvador# DISPLAY=:0.0 bash -c firefox
No protocol specified
No protocol specified
Error: cannot open display: :0.0

-Доктор, что это у меня?
-Аааа, что это у вас?


Оффлайн
victor00000

bash -c "DISPLAY=:0.0 firefox"?


Оффлайн
Salvador21

root@fp-anykey:/home/salvador# bash -c "DISPLAY=:0.0 firefox"
No protocol specified
No protocol specified
Error: cannot open display: :0.0

-Доктор, что это у меня?
-Аааа, что это у вас?


Оффлайн
victor00000

bash -c "DISPLAY=:0 firefox"?


Оффлайн
Salvador21

root@fp-anykey:/home/salvador# bash -c "DISPLAY=:0 firefox"
No protocol specified
No protocol specified
Error: cannot open display: :0

-Доктор, что это у меня?
-Аааа, что это у вас?


Pilot6

Salvador21,
После чего это началось?


Оффлайн
Salvador21

Честно говоря, не помню) С месяц назад ковырял, пытался сделать пароль 4-х значным, судя по всему сбилось шифрование, потому сейчас не не работает su с любыми параметрами, пишет

salvador@fp-anykey:~$ su
Пароль:
su: Сбой при проверке подлинности
а sudo su собственно работает.
Самое обидное, что от обычного пользователя граф. приложения запускаются.


Пользователь решил продолжить мысль 13 Марта 2013, 12:11:53:


root@fp-anykey:/home/salvador# xterm
xterm: Xt error: Can't open display: %s
xterm: DISPLAY is not set

« Последнее редактирование: 13 Марта 2013, 12:11:53 от Salvador21 »

-Доктор, что это у меня?
-Аааа, что это у вас?


  • Печать

Страницы: [1] 2 3 4  Все   Вверх

I’ve got minimal CentOS 6 running on an Oracle VirtualBox on a Mac. I’m trying to get Firefox up and running so I can download some web files into the VM.

I installed Firefox (yum --enablerepo=remi install firefox). I also installed Xserver (yum install xorg-x11-server-Xvfb) as I wasn’t sure if it was included in the minimal OS install.

I then export DISPLAY=10.0.5.52 and then tried to start firefox but it said:

Error: can’t open display: 10.0.5.52.

What do I need to do to get firefox to display?

slm's user avatar

slm

356k112 gold badges753 silver badges860 bronze badges

asked Jun 28, 2014 at 23:52

Jazzmine's user avatar

3

Try doing this:

$ export DISPLAY=10.0.5.52:0

Then run Firefox again. Also be sure to run xhost + on the host 10.0.5.52 so that it’s able to accept X applications being «sent» to it from other servers. This method is considered poor from a security stand point but is perfectly fine to use to confirm things are working properly. With that working, spend a bit more time considering your security posture in this use case and do something a bit more explicit using xhost +someremoteserver instead.

Also you could use ssh to tunnel the X application instead of using xhost. There’s typically a bit of a performance hit but it’s often tolerable and worth it in my opinion.

$ ssh -X someremoteserver firefox

excerpt from ssh man page

 -X     Enables X11 forwarding.  This can also be specified on a per-host 
        basis in a configuration file.

answered Jun 29, 2014 at 0:13

slm's user avatar

slmslm

356k112 gold badges753 silver badges860 bronze badges

5

Setup:
wdio + grid with a hub, 8 chrome nodes and 8 firefox nodes.
Tests run on a Jenkins slave

All nodes work as expected throughout the duration of the test run.

Sporadically, one (sometimes more) firefox nodes fail to have a session initiated, leading to the spec assigned to that session not being executed and the whole . The error is:

[33mselenium-firefox-1_1  |[0m Failed to connect to Mir: Failed to connect to server socket: No such file or directory
[33mselenium-firefox-1_1  |[0m Unable to init server: Could not connect: Connection refused
[33mselenium-firefox-1_1  |[0m Error: cannot open display: :99
[32;1mui-test_1             |[0m ERROR: Process unexpectedly closed with status 1
[32;1mui-test_1             |[0m Build info: version: '3.13.0', revision: '2f0d292', time: '2018-06-25T15:32:19.891Z'
[32;1mui-test_1             |[0m System info: host: '2eb130e13a7b', ip: '172.19.0.4', os.name: 'Linux', os.arch: 'amd64', os.version: '3.16.0-4-amd64', java.version: '1.8.0_171'
[32;1mui-test_1             |[0m Driver info: driver.version: unknown
[32;1mui-test_1             |[0m remote stacktrace: 
[32;1mui-test_1             |[0m firefox
[32;1mui-test_1             |[0m     at new RuntimeError (/home/xxx/node_modules/webdriverio/build/lib/utils/ErrorHandler.js:143:12)
[32;1mui-test_1             |[0m     at Request._callback (/home/xxx/node_modules/webdriverio/build/lib/utils/RequestHandler.js:316:39)
[32;1mui-test_1             |[0m     at Request.self.callback (/home/xxx/node_modules/webdriverio/node_modules/request/request.js:186:22)
[32;1mui-test_1             |[0m     at emitTwo (events.js:126:13)
[32;1mui-test_1             |[0m     at Request.emit (events.js:214:7)
[32;1mui-test_1             |[0m     at Request.<anonymous> (/home/xxx/node_modules/webdriverio/node_modules/request/request.js:1163:10)
[32;1mui-test_1             |[0m     at emitOne (events.js:116:13)
[32;1mui-test_1             |[0m     at Request.emit (events.js:211:7)
[32;1mui-test_1             |[0m     at IncomingMessage.<anonymous> (/home/xxx/node_modules/webdriverio/node_modules/request/request.js:1085:12)
[32;1mui-test_1             |[0m     at Object.onceWrapper (events.js:313:30)

Понравилась статья? Поделить с друзьями:
  • Firefox cors error
  • Flask 404 ошибка
  • Flashtool ошибка brom error 0x1
  • Flashtool ошибка 5007
  • Flashtool ошибка 3152