Xterm display is not set

Я понятия не имею, как установить дисплей. Я продолжаю получать следующую ошибку

xterm: xt error can’t open display xterm display is not set

Я искал онлайн, но не нашел никакого решения. Пожалуйста, кто-нибудь может мне помочь?

2 ответа

Вероятно, это связано с ошибкой в ​​настройке или с несколькими дисплеями. Как видно из xterm manpage ( man xterm ) вы можете настроить отображение с помощью -display флаг:

Если вы посмотрите в X(7) где это указывает посмотреть ( man X ) вы увидите, что нужно поставить после флага:

Чтобы получить значение вашего дисплея, вы должны просто запустить:

В bash-скрипте один из способов найти отображение, связанное с пользователем, — запустить команду who , Полезными битами в этом случае будут имя для входа и отображение X.

В однопользовательской системе вы обычно можете с уверенностью предположить, что в систему войдет только один пользователь. Для многопользовательского сервера может потребоваться некоторая логика для выбора правильного отображения.

Welcome to LinuxQuestions.org, a friendly and active Linux Community.

You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!

Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.

Are you new to LinuxQuestions.org? Visit the following links:
Site Howto | Site FAQ | Sitemap | Register Now

If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.

Читайте также:  Joomla ссылка на материал без меню

Having a problem logging in? Please visit this page to clear all LQ-related cookies.

Introduction to Linux — A Hands on Guide

This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author’s experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.

Вот мои настройки:

3 ответа

В моем случае мне не хватало программу xauth на целевой машине

Как отлаживать следующие ситуации:

На целевом узле запустите еще один демон sshd для отладки на другом порту : На исходном хосте:

Rate this post

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *