Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25

Thread: Start Lubuntu GUI from command line

  1. #21
    Join Date
    Apr 2012
    Beans
    7,256

    Re: Start Lubuntu GUI from command line

    You don't really need the extra step of "touch"ing the file - just *create* it using your favorite text editor and type the lxsession command into it, or directly by echoing the desired command string to an empty file using

    Code:
    echo 'lxsession -s Lubuntu -e LXDE' > ~/.xsession
    or alternatively

    Code:
    cat > ~/.xsession
    lxsession -s Lubuntu -e LXDE
    and then hitting Ctrl-d to quit

  2. #22
    Join Date
    Jul 2014
    Beans
    79

    Re: Start Lubuntu GUI from command line

    Quote Originally Posted by steeldriver View Post
    You don't really need the extra step of "touch"ing the file - just *create* it using your favorite text editor and type the lxsession command into it, or directly by echoing the desired command string to an empty file using

    Code:
    echo 'lxsession -s Lubuntu -e LXDE' > ~/.xsession
    or alternatively

    Code:
    cat > ~/.xsession
    lxsession -s Lubuntu -e LXDE
    and then hitting Ctrl-d to quit
    steeldriver,

    Thank you for your comments, but i am afraid that i didn't do something correctly. Here are my steps that i took from the start:
    1. installed a fresh copy of Ubuntu 14.04 trusty onto my machine
    2. ran in command line - sudo apt-get update && sudo apt-get upgrade
    3. ran in command line - sudo reboot
    4. login as the user that i created when i set up the machine
    5. ran in command line - sudo apt-get install lxde-common --no-install-recommends
    6. ran in command line - sudo apt-get install lubuntu-core --no-install-recommends
    7. ran in command line - echo 'lxsession -s Lubuntu -e LXDE' > ~/.xsession
    8. ran in command line - sudo reboot
    9. login as the user that i created when i set up the machine
    10. ran in command line - startx


    Here is where i get an error. It appears that it is trying to start up Lubuntu but cannot. I get a 30 or so "Initializing built-in" lines then "loading extension GLX". This looks like it is probably correct, but then i get some lines that start off (EE) and the last few are as follows:

    Code:
    Fatal server error:
    (EE) Caught signal 11 (Segmentation fault). Server aborting
    (EE)
    (EE)
    Please consult the The X.Org Foundation support at http://wiki.x.org
    (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information
    (EE)
    (EE) Server terminated with error (1). Closing log file.
    xinit: giving up
    xinit: unable to connect to X server: connection refused
    xinit: server error
    I am very new to this but "giving up" never sounds good

    I looked around for the fatal service error and maybe i don't have a graphics chip or something to support Lubuntu?? I am not sure what any of this means.

    If you know why this is not working, let me know, or if you need the log information, i think i could probably figure out how to open that file and view it.

    Thank again for your help
    Last edited by aaron50; February 4th, 2015 at 05:32 PM. Reason: added the fatal service error to my problem

  3. #23
    Join Date
    Apr 2012
    Beans
    7,256

    Re: Start Lubuntu GUI from command line

    That sounds like a lower-level graphics driver issue to me - my advice (and I know some board members may disagree) would be to start a new thread since (a) it's not directly related to the issue of starting a Lubuntu session specifically; and (b) this thread being marked as [SOLVED] may mean it doesn't get as many eyeballs on it

    If possible give information about your particular graphics hardware e.g. the output of

    Code:
    sudo lshw -C display

  4. #24
    Join Date
    Jul 2014
    Beans
    79

    Re: Start Lubuntu GUI from command line

    Thank you, i took your advice and posted a new thread in the general information section, not sure this is where it needs to be, but i figure someone will move it if need be. In that thread i showed my graphics hardware for your reference. The thread is located here: http://ubuntuforums.org/showthread.p...9#post13221849

  5. #25
    Join Date
    Feb 2015
    Beans
    5

    Question Re: Start Lubuntu GUI from command line

    Quote Originally Posted by hgurol View Post
    @steeldriver and all, thank you soooooo much.

    Here is the wrap up....
    After installing the server 14.04
    Code:
    apt-get install lxde-common --no-install-recommends
    apt-get install lubuntu-core --no-install-recommends
    Create the file ~/.xsession
    Code:
    touch ~/.xsession
    with the only content of this command.
    Code:
    lxsession -s Lubuntu -e LXDE
    Change run level to text mode and reboot.

    Now,
    startx - takes me to Lubuntu environment, already logged in.
    Logout - back to the command line.

    Works great.
    Thank you guys, appreciated...
    Perhaps you can help me! I've done exactly as you describe and it seems to work. But I have noticed that my permissions / policies are different when logging in to the desktop this way. Is that the same for you? I've made a thread about it here: http://ubuntuforums.org/showthread.php?t=2267297. For example, I can't mount usb drives ar reboot without entering my password. Whereas I can do that just fine with the same user account when booting straight to the desktop interface.... strange.

Page 3 of 3 FirstFirst 123

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •