LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-08-2017, 07:12 PM   #1
nvicknai
LQ Newbie
 
Registered: Feb 2017
Posts: 1

Rep: Reputation: Disabled
Thumbs up Setting the DISPLAY


I am trying to set a DISPLAY for oclock and everything I try does not work.
I am on Red Hat 7.0 using bash
Any thoughts??
 
Old 04-08-2017, 07:16 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,328

Rep: Reputation: 6026Reputation: 6026Reputation: 6026Reputation: 6026Reputation: 6026Reputation: 6026Reputation: 6026Reputation: 6026Reputation: 6026Reputation: 6026Reputation: 6026
Quote:
Originally Posted by nvicknai View Post
I am trying to set a DISPLAY for oclock and everything I try does not work.
I am on Red Hat 7.0 using bash Any thoughts??
If you really mean Red Hat 7.0, the first thought would be you need to upgrade...RH 7 is ANCIENT. But chances are you mean Red Hat ENTERPRISE Linux 7.0, right?

You don't actually tell us what, exactly, you've done/tried, where you tried it, and what you mean by "does not work"...read the "Question Guidelines" link in my posting signature. Without details, we can't even begin to help you. Tell us what you did, what the results were, and what your actual goal is. Also, why are you using Red Hat Enterprise 7.0?? That's designed for servers, and it's a commercial, pay-for distro. Are you paying for RHEL?
 
Old 04-08-2017, 10:20 PM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,844

Rep: Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478
Quote:
Originally Posted by nvicknai View Post
I am trying to set a DISPLAY for oclock and everything I try does not work.
I am on Red Hat 7.0 using bash
Any thoughts??
You shouldn't need to set it.

With a GUI login, the GUI sets it. If you force it (via .profile or such initialization) then you will likely set the wrong value.

By default, the display for the FIRST login is :0.0. A second concurrent login will get :1.0

A remote login via ssh with X forwarding enabled on the server (and either set on the client, or requested by the client) will get a unix:10.0, or localhost:10.0, depending on various configurations of the server.

In any of these cases, setting the DISPLAY to something else will cause failures.

By default, X is configured to be as secure as possible. Thus the GUI disables the use of TCP for window connections. Instead it uses domain sockets, controlled by access permissions, and authorization keys. In this mode, remote X connections will fail. The preference is to use ssh with forwarded X connections.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
display setting jupiter3437 Linux - General 1 08-07-2005 03:18 AM
Display setting DanielTan Linux - General 13 02-11-2005 04:38 AM
xlsfonts is dependant on DISPLAY setting not working on one display with Redhat iainsear Linux - General 0 12-21-2004 07:24 AM
xlsfonts is dependant on DISPLAY setting not working on one display with Redhat iainsear Linux - General 0 12-21-2004 07:19 AM
Display setting sanjay2004 Linux - Software 2 12-12-2004 09:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration