LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-09-2011, 02:09 AM   #1
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Rep: Reputation: 16
Could not open display. Exiting.


I want to install MATLAB 2009 on a ubuntu server 10.04 amd64 which has NOT any gui. The installation was successful however when it comes to activate, it says "Could not open display. Exiting.". Here is what I did:
1- ssh -X user@server
2- verified that I can see "xclock" and "xcalc". Yes I can see...
3- cd /mnt ; ./install
4- I can see the GUI wizard since the X11 forward is working. Installation done successfully.
5- cd /opt/Matlab/bin ; ./activate_matlab.sh

it says:
Could not open display. Exiting.

Any idea about that?
 
Old 02-09-2011, 05:13 AM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
I have run into trouble with remote X applications not running due to lack of the local display. This has happened to me primarily on OpenGL stuff, which I would guess Matlab might make heavy use of for graphing.
 
Old 02-09-2011, 05:21 AM   #3
prodev05
Member
 
Registered: Jul 2009
Location: Planet Earth
Distribution: Unix & Linux Variants
Posts: 304

Rep: Reputation: 20
Talking

Install cygwin to your local machine/desktop with Xserver package. Once you started the Xserver from cygwin, later connect the matlab machine with x11 forwarding option. Test xclock is working or not. Then try to start MATLAB.

I'm bit curious about Matlab, what simulation you are going to run?
 
Old 02-09-2011, 07:52 AM   #4
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Original Poster
Rep: Reputation: 16
As I said I the client is ubuntu desktop and the server is ubuntu server. So there is no need for cygwin.
Also I said I can see xclock, so I really want to know why it says can not open display!!!

What I want to do with matlab is normal computation. I will then transfer the results on my client to analyze and create graphs. I don't want to see the graphs in the server
 
Old 02-09-2011, 12:46 PM   #5
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
Check the script and see if it's setting the DISPLAY anywhere.

Adam
 
Old 02-09-2011, 01:11 PM   #6
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Original Poster
Rep: Reputation: 16
The only section about DISPLAY is:
Code:
   checkDisplay () {
    # Check if the display has been set.
    # Mac doesn't really need a display since it doesn't use X.
    # You would need a display on the mac if you are running the app
    # remotely through an xterm, but we won't bother checking for that.
    if [ "$DISPLAY" = "" ]; then
       if [ "$ARCH" != "mac" -a "$ARCH" != "maci" -a "$ARCH" != "maci64" ]; then
           echo "---------------------------------------------------------------------------"
           echo "Error: Activation cannot proceed. You may either: "
           echo "  1. Set an X11 display, and restart the activation process"
           echo "  2. Use the silent activation feature"
           echo "  3. Activate using the license center"
           echo "---------------------------------------------------------------------------"
           exit 1
       fi
    fi
    }
   ....
   ....
   
#   Check for an X display.
    checkDisplay
Using echo I found my ARCH is glnxa64

I also greped the message "Could not open display. Exiting." but found nothing....

Last edited by mahmoodn; 02-09-2011 at 01:13 PM.
 
Old 02-09-2011, 01:15 PM   #7
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
Hmmm... Try ssh'ing in with -Y instead of -X
 
Old 02-10-2011, 01:27 AM   #8
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Original Poster
Rep: Reputation: 16
Same error.... It is really strange for me... If anyone has run matlab under linux, I will be glad if he reinstall without GUI (for example through ctrl+f1) to see this is my problem or not
 
Old 02-23-2011, 10:35 AM   #9
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Original Poster
Rep: Reputation: 16
Well I found the solution by installing xserver-core and dependent packages
 
  


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
Exiting BASH function without exiting sourced environment SwingingSimian Programming 10 08-12-2009 01:59 AM
export display and Gtk-WARNING **: cannot open display: zimma Linux - Server 0 04-24-2009 03:51 AM
Exiting X back to console cause display corruption R@v3n Linux - General 1 12-14-2005 09:49 PM
Display Problem exiting X with Nvidia drivers installed basemodel Slackware 4 10-25-2003 11:48 AM
Flickering display after exiting from X (Nvidia driver problem) biosx Linux - General 2 01-11-2003 06:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:29 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
Open Source Consulting | Domain Registration