"Gtk-WARNING **: cannot open display"

Posted on 2007-10-10
Last Modified: 2013-12-16
I am trying to get gnome-session working on Debian Edgy kernel version 2.6

When I try to start a gnome-session from the terminal at the actual computer I get this error after running the command 'gnome-session':

"Gtk-WARNING **: cannot open display"

I assume no display has been set-up, how do I go about setting up the display for use by gnome-session?
Question by:gpabst
    LVL 45

    Accepted Solution

    Hi gpabst,

    echo $DISPLAY

    It will probably be 0.0.

    If not, export DISPLAY=0.0

    That is, assuming your on the local machine.   :)

    Good Luck,
    LVL 3

    Assisted Solution

    You need to have the X server running. So the easiest way to start the session is by adding the line
    exec gnome-session
    to the file ~/.xinitrc (for all the users you intend to have)

    Then run it whole with:
    LVL 10

    Assisted Solution

    Try starting X windows first.
    X will start gnome (if configured to do so).

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Suggested Solutions

    Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
    Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    761 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

    7 Experts available now in Live!

    Get 1:1 Help Now