LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   About x program and x server (https://www.linuxquestions.org/questions/linux-newbie-8/about-x-program-and-x-server-4175456564/)

thiyagusham 04-02-2013 01:38 PM

About x program and x server
 
Good Morning Experts ;

I need some information about x program and x server. Already i discussed with unix team but few things are not clear.


what's the logic behind setting display variable 0.0 ?


Thanks in Advance ..:newbie:

acid_kewpie 04-02-2013 01:46 PM

":0.0" refers to screen zero, on server 0 on the current system, "anothermachine:3.1" would be screen 1 on server three on system "anothermachine".

thiyagusham 04-02-2013 01:49 PM

x program and x server How it works with display variable ?

Thanks acid_kewpie .

acid_kewpie 04-02-2013 01:57 PM

how what works??

thiyagusham 04-02-2013 02:14 PM

Today i (Oracle guy from Chennai) spoke with unix team about remote n/w connectivity !

I got information like X server is a program and created for X Window System that runs on local machines (typically a keyboard and mouse) on the computers.

For ex : work station is SOUTH INDIA and DATABASE SERVER is out of ASIA ..

Here i am asking , If i want to connect my server , What is the need to use x program and x server for remote DB connectivity ?

Thanks ..

jefro 04-02-2013 02:36 PM

X or some form of X is not as common as it used to be. Normally you would not transmit an X application to your local X server over the internet. X is a pretty old system and not easy to secure. There are better and faster ways to remote desktop.


Note that this is one of the few exceptions to how one uses the terms server and client. Your display is the server in X.

theNbomr 04-02-2013 05:31 PM

Quote:

Originally Posted by jefro (Post 4923706)
X or some form of X is not as common as it used to be. Normally you would not transmit an X application to your local X server over the internet. X is a pretty old system and not easy to secure. There are better and faster ways to remote desktop.

Well then call me abnormal. I use X to run GUI applications on remote hosts all the time. It is done routinely in many, many situations. If the X traffic is transmitted between hosts via a SSL tunnel, it is as secure as virtually any other traffic on a network. It just happens that doing so also simplifies the process of connecting remote X clients to the local X server.

A server, generically, is some long-running process that can be accessed by a client, and which performs some specified service to that client. In the case of X, the server provides the service of creating and maintaining windows, and drawing graphics and text on the windows, and serving keyboard and pointer activity back to the client. The clients that request it to do so are graphical X applications. In order for an X client application to find an X server, it uses the content of the $DISPLAY environment variable. By documented standard, $DISPLAY contains a hostname (optional), server number, and screen identifiers. The X client adds the number 6000 to the server number, and makes a TCP connection to the port identified by that sum. X traffic is conveyed between client and server on that TCP connection.

I think jefro is trying to explain that in most scenarios, the server is on a host that is remote, and your local workstation hosts the client side of a client-server application. Mail servers, and web servers are good examples of this arrangement. In the case of X, the server is generally at your local workstation, while the X clients are applications that may run on remote hosts. Some people find this confusing, probably due to lack of clear understanding of the client-server relationship.

--- rod.


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