Sponsored Links

Ubuntu Natty, xrdp, gnome-session, “No valid session found.”

​Updated information for Ubuntu 11.10 at end of article.

One of my workstations I use as a general amusement/development station, and as such I usually move over to the development version of Ubuntu a few months after it has been initially released.

Ubunut Natty is now underway, and Ubuntu want to push its use of Unity desktop manager. I however wish to use the gnome-desktop without any fancy-schmancy features, because I remotely log in to that machine via xrdp.

Because of this, recently I’ve been puzzled as to why I get a single message window appear saying “No valid session found.”, when logging in via xrdp. A quick internet search revealed a change in the gnome-session package, and the solution quickly came after.

In my ~/.xsession file – which is what xrdp looks at to find what desktop session I require, I had;

gnome-session

This has been working fine up until the recent Natty release.

You need to change that entry to;

gnome-session --session=2d-gnome

This will start your classic gnome desktop.

Update 2011-11-28;

You might like to read the latest article here which has lots of updated and useful information;

X11rdp, Ubuntu 11.10, Gnome 3, xrdp customization – New Hotness!

 

UPDATE 2011-10-23;

For Ubuntu Server 11.10 / Ubuntu 11.10, change that to;

gnome-session --session=ubuntu-2d

​Thanks to Menno for the heads-up.

VN:F [1.9.22_1171]
Rate This Article
Rating: 8.3/10 (9 votes cast)
Ubuntu Natty, xrdp, gnome-session, "No valid session found.", 8.3 out of 10 based on 9 ratings
Share the knowledge :
Facebook Twitter Pinterest Linkedin Digg Delicious Reddit Stumbleupon Posterous Email Snailmail

12 comments to Ubuntu Natty, xrdp, gnome-session, “No valid session found.”

  • iRok

    emm, ..Please explain where can I find ~/.xsession file ? I tried to find, but it says No such file or directory

    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
    • admin

      In case you didn’t know already , “~/” is unix/linux terminology for your home directory, e.g. /home/username.

      So the file you’re wanting to edit is /home/username/.xsession .

      Lastly, if it doesn’t exist, create it :)

      Regards,

      KC.

      VN:F [1.9.22_1171]
      Rating: 0 (from 0 votes)
  • una2

    Thanks …

    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  • Julian

    Kevin, Toshiko if you need a room in Tokyo let me know.

    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  • Thanks! :)
    It works great!

    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  • 2ien

    I’ve tried this solution but I still have the error…
    Can someone hemp me, please ?

    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  • Kevin Cave

    2ien

    I’ve tried this solution but I still have the error…
    Can someone hemp me, please ?

    I don’t know about hemping you ;) but, can you post the contents of your /home//.xsession file?

    VN:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  • Menno

    I tried this on server 11.10 Things have changed a bit:

    gnome-session –session=2d-gnome

    must be

    gnome-session –session=ubuntu-2d

    But it works! thanks.

    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
    • Kevin Cave

       

      I tried this on server 11.10 Things have changed a bit:

      gnome-session –session=2d-gnome

      must be

      gnome-session –session=ubuntu-2d

      But it works! thanks.

       

      Thanks for the heads-up re server 11.10!

       

      I'll add an update :D

       

       

      VN:F [1.9.22_1171]
      Rating: 0 (from 0 votes)
    • @Menno

      i have Unity and on the RDP the issue is that no unity bar is visible – so how can i launch anything except for documents on desktop? :)

      VA:F [1.9.22_1171]
      Rating: 0 (from 0 votes)
      • Kevin Cave

        rangerek, I’ll see if I can replicate that behaviour… when I have time. You might need to alter your .xsessionrc file to say “unity-2d” for the session type – you may also have to install the unity-2d package – I’m not sure yet, as I say I’ll check this out once I have time.

        Regards,

        Kevin.

        VN:F [1.9.22_1171]
        Rating: 0 (from 0 votes)
  • 2fqwQ0 , [url=http://nagzhoqgicaj.com/]nagzhoqgicaj[/url], [link=http://fonvormpzeeq.com/]fonvormpzeeq[/link], http://oongeluqihcl.com/

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

  

  

  

This site uses Akismet to reduce spam. Learn how your comment data is processed.