Solved

x11  from Mac to Linux

Posted on 2013-02-01
13
234 Views
Last Modified: 2014-07-25
Hello,
I am trying to open a GUI on linux such as xclock from a Mac machine.
I tried various ways but no success. Can some one clearly explained what needs to be done?
The linux OS is OEL 5.5. (RedHat).
Regards,
Tamir
0
Comment
Question by:tamirmilo
  • 6
  • 3
  • 3
  • +1
13 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 38846285
Mac's modern GUI is far too stupid to handle well known usable plain old X, unfortunately
however, there exist an X port for Mac OS X, you can install it using macports (or similar), then a X server ist started on Mac and mainly operates flawless with any other X as we are used to since ages ;-)
but keep in mind that it is not possible to start Mac GUIs in X, obviously
0
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 38847686
You don't actually need an X server on the Mac. You run a client there, such as xclock. In order to see the output from that xclock on your system, there are essentially 2 things you have to do

1. Tell xclock to use the display on your Linux system

Like most X programs, xclock accepts the -display argument, so for example if your Linux system is called linux.local.net then you can put xclock -display linux.local.net. Alternatively set the DISPLAY environment variable in one of the various possible ways e.g. export DISPLAY=linux.local.net; xclock or DISPLAY=linux.local.net xclock

2. Tell the Linux X server to accept connections from clients on the Mac

Normally, X only accepts connections from authorized clients. Adding a new client is complicated enough that I won't go into details right now, but I do it and if you post that you'd like the details then I'll provide them.
However as a quick test all you need do on linux.local.net is enter the command xhost +. Your X server will then allow any host to connect. After your test, you can revert to normal X authorization by the command xhost -
0
 
LVL 36

Expert Comment

by:ArneLovius
ID: 38850760
install xquartz on the mac
start xquartz
connect to the linux machine with X forwarding over ssh
start the application
0
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 38852614
My bad I got the DISPLAY variable wrong in http:#a38847686:
xclock -display linux.local.net:0
DISPLAY=linux.local.net:0; xclock
DISPLAY=linux.local.net:0 xclock

I.e. in ever case, append :0 (colon zero) to the system name. Please try it and post back
0
 
LVL 36

Expert Comment

by:ArneLovius
ID: 38854376
rather than set the display, I tend to just use "ssh -x user@host" and then launch the application...
0
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 38857070
Will that actually show xclock running on the Mac? I read that to be the requirement - or am I wrong?
0
Free camera licenses with purchase of My Cloud NAS

Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.

 
LVL 51

Expert Comment

by:ahoffmann
ID: 38857114
> Will that actually show xclock running on the Mac?
as already explained: you need an xserver on MAc for that (see previous comments)
0
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 38858446
ahoffman: I disagree. There is no need to have an X server on a system in order for X clients (such as xclock) to run. I regularly run an xterm on my router which has no X server: I just need to set its DISPLAY (and I set up authorization rather than use xhost +)
0
 
LVL 36

Expert Comment

by:ArneLovius
ID: 38858632
the computer with the display is the x server, the application running is the x client

xquartz is an x server, that allows you run an application such as xclock on a remote computer but displaying on the local computer.
0
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 38859290
Yes that is quite true. He wants to see xclock on the Linux system. He wants to run xclock on the Mac.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 38866184
> I am trying to open a GUI on linux such as xclock from a Mac machine.
that's the question, is it?

"from a Mac" tells me, that the GUI is the Mac, so you  need a xserver there (xquartz, X.org, whatever)
tamirmilo, please correct me if I'm wrong
0
 
LVL 34

Accepted Solution

by:
Duncan Roe earned 500 total points
ID: 38867393
tamirmilo, please confirm whether http:#a38859290 describes what you want to do
0
 

Author Comment

by:tamirmilo
ID: 40220428
fdfdfdfd
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now