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 08-07-2013, 07:44 PM   #1
sbauer72
Member
 
Registered: Mar 2011
Posts: 36

Rep: Reputation: 0
Cool redirecting display on CentOS 6.4 final


ALL,

I am using CentOS 6.4 final. The DISPLAY environment variable =:0.0

echo $DISPLAY
:0.0

my host name is MYLINUX I want to set my display to this
echo $DISPLAY
MYLINUX:0.0

when I do this and try to open a program such at gedit I get an
Gtk-WARNING **: cannot open display: MYLINUX:0.0

I have updated the /etc/hosts, resolv.conf. I just can't get this working.

I want this because I am going to have multiple displays on this machine and I want to have to ability to re-direct programs to other displays instead of the primary monitor.
 
Old 08-08-2013, 05:41 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,602

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
You are confusing things.

1. Your workstation is likely not configured to allow TCP connections.
2. Your remote system likely does not have the access keys to connect anyway.
3. Use of the term "displays" implies hardware... the rest of your "wants" describe windows.

Recommended solution: use ssh to establish proper keys, encrypted connections, and forwarded windows.

Requirements - sshd.conf on the remote system must allow forwarding. Read the sshd.conf file on the server - usually all the defaults are listed. If "X11Forwarding no" is set, change it to yes and be sure it is not commented out, restart the sshd service. Use the command "ssh -X <servername>". Most systems (not all) have the basic utility "xeyes" which is an easy test utility. One way to quick test is "ssh -X <servername> xeyes", though sometimes you have to use "/usr/bin/xeyes".

A longer test is "ssh -X <servername>" When the login is complete on the server, use the command "echo $DISPLAY", which should have a value like "localhost:10.0", which defines the TCP connection used by ssh for forwarding windows to the client. You can also see the access keys with a "xauth list", where there will be an entry "localhost:10.0 MIT-MAGIC-COOKIE xxxx" where the xxxx is a long string of hex digits (the key). Then try any X based utility.
 
Old 03-03-2014, 12:16 PM   #3
sbauer72
Member
 
Registered: Mar 2011
Posts: 36

Original Poster
Rep: Reputation: 0
Solution

ALL,

There were a couple of problems that I had to solve. The first problem was not being able to redirect video output to another display. OK. So what does that mean? Well, I have a system with two monitors and I wanted to open a terminal window in one monitor and have the program I am running output its display on the other monitor.

Very simple but I did not have the permission to re-direct the display. The other problem I had was the "other" monitor was a custom piece of hardware. So I needed the modeline settings from the manufacturer to set this up. They were not Linux savvy and did not know about the mods I needed to do in the xorg.conf file.

This is a file that is not normally manually setup because most modern pieces of hardware communicate to the OS and it is setup automatically. Well, I was not so lucky.

So changing the permissions in Linux and manually setting up the xorg.conf file helped me with everything I needed.

I feel that there is a need to have more example xorg.conf files out there because the standard documentation is pretty weak.
 
  


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
[SOLVED] Upgrade CentOS release 5.9 (Final) to CentOS 6.x yogesh_attarde Linux - Server 3 06-07-2013 02:42 AM
Redirecting program display to XRDP session ErikTheAngry Linux - Newbie 1 04-10-2013 05:08 PM
help centos here 4.8 final glemor123 Linux - Software 5 08-01-2012 09:21 PM
redirecting video output to OLED display ravi_chobey Linux - Embedded & Single-board computer 1 12-27-2009 11:06 AM
Redirecting(Stealing?) X11 Display debuser123 Linux - Desktop 2 12-12-2006 06:05 PM


All times are GMT -5. The time now is 04:49 AM.

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