Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Redirect Linux (X11) on Mac

All,

Is there anyway that I could

1. Click an icon and to have a Linux login screen? So that I could remotely run Linux application on Mac.

2. Redirect Linux terminal to Mac, so that I could run the application from console.

Thanks

MacPro 2G ATi X1900XT Bluetooth+ Airport Express, Mac OS X (10.4.7)

Posted on Sep 21, 2006 9:05 PM

Reply
10 replies

Sep 22, 2006 6:38 AM in response to Ito_lamma

What kind of applications do you want to run in Linux. If you do not need to do any processor intensive stuff in Linux and you have an Intel-based Mac, you could install Parallels, then install Linux in a virtual machine. See http://www.parallels.com for details.

If you need to do processor intensive computing with Linux, then your best option is to buy a cheap PC, then install Linux and your apps on it. You can easily access the PC from your Mac desktop.

Sep 22, 2006 8:56 AM in response to Stanley Horwitz

As Matlab has no Intel Mac version at this moment, I want to run it on my Linux machine through remote X.

Previously, I need to telnet into the Linux machine and then set Display to my Mac IP and run Matlib or other Linux application.

The procedure I did is not use friendly. Other than VNC, I want to run X application thru TCPIP, that is remote X.

Sep 22, 2006 9:17 AM in response to Ito_lamma

You cannot redirect remote X11 sessions to terminal in OS X (terminal is not X-capable). You can do that if you install Apple's X11.app, a package installer for which should be on the discs that came with your machine (i.e. the Options_install.mpkg). Once installed, X11.app will be in your Utilities folder - just double click it to start an xterm session.

The easiest thing to do then would be to ssh into the Matlab server:

ssh -X -l <Matlab serveruserid> matlabservername.xxx.xxx.xxx

The "-X" will enable X window forwarding from the remote machine to your local X11 session. The -l just tells ssh to login with the supplied userid (if that is different from the short name on you local Mac account).

Sep 22, 2006 12:16 PM in response to Ito_lamma

To get a double-clickable Linux shell, do the following:

On the Mac, in your .bash_profile (or whatever you use), set DISPLAY to 😮.0

Open Terminal, and choose File > New Command...
Enter "ssh -Y -l yourlinuxid my.linux.server.com"
This should open a session to your linux box.

"ssh -X" might not work. If you have trouble, use "ssh -Y". Ask in the Unix forum here for an explanation of the differences.

Choose Terminal > Window Settings...
Go through the panels and customize the settings you want to use for Linux sessions.

Choose File > Save As...
The file you save is a double-clickable document that will open an ssh session.

Be sure that X11 is running on your Mac before opening a linux session. X windows will be directed to your Mac.

Sep 23, 2006 6:18 AM in response to Jeffrey Jones2

I guess I just don't understand why you are using terminal at all. As you mentioned, X11.app needs to be running for that to work, so why even open terminal? Just fire up X11.app and do it all from an xterm session (I don't see the point of using two applications where one is all that is needed).

To make it easier, make an alias in your shell profile for the "ssh -X ..." command string. Then just double click on X11.app, and type the alias in xterm.

Sep 23, 2006 7:40 AM in response to Michael Black

Terminal is a much nicer environment than xterm -- it supports many OS X features, such as drag and drop. Plus, I can use the method outlined above to create double-clickable icons for various hosts that I access. The X11 applications I use are not terminals. The original poster wants to run Matlab, which puts up various graphic windows; I use IDL, which is similar to Matlab. Terminal is for running command-line shells. X11 is used for Unix/Linux GUI applications.

Redirect Linux (X11) on Mac

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.