The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    How to get back into 12.04 desktop for terminal

    Discussion in 'Linux Compatibility and Software' started by JOSEA, Jun 27, 2012.

  1. JOSEA

    JOSEA NONE

    Reputations:
    4,013
    Messages:
    3,521
    Likes Received:
    170
    Trophy Points:
    131
    Does anyone know how to get back to the desktop from the command prompt?
    My system randomly freezes and one work around I saw was to
    CTL-ALT-F1 then login
    sudo pkill compiz-decorator
    pkill -9 compiz
    (I have tried CTL-ALT-F1 but not the above commands yet)
    ?????? Thank You, J
     
  2. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
    Your X session is usually on 7 or 8th virtual terminal, so it would be ALT+F7 or F8. You only need CTRL + ALT + Fx to break out of an X session, to go the other way into X, CTRL isn't needed.

    If your desktop is freezing, check out your ~/.xsession-errors log file. An easy way to look at the end of the file is:
    Code:
    less +G ~/.xsession-errors
    The +G tells it to start at the end of the file as opposed to the beginning. So you scroll up to go backwards in the log, it's useful for looking at the end of files like logs. Hit the q key to close less.

    If your desktop session is crashing hard, not just your window manager, you can relaunch your session with:
    Code:
    sudo invoke-rc.d gdm3 restart
     
  3. JOSEA

    JOSEA NONE

    Reputations:
    4,013
    Messages:
    3,521
    Likes Received:
    170
    Trophy Points:
    131
    Thanks a lot Allur, I did not want to do stuff as root and destroy my install! + 1 of course.
    As an aside it seems that I am not alone with 12.04 freezes,
    Now I am going to try the suggestion in post 328 here, it will be good learning if nothing else. https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/993187
    I guess I better create an image first ! When you create images is there any need to include the swap partition? I can post my present disk manager screen shot if needed (I am dual booting Vista/ 12.04.
     
  4. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
    You don't need to make an image if you are only installing a new kernel.

    As long as you don't uninstall the old kernel, it will be right in your boot menu if you need to go back to it, there is no real risk involved.

    But no, don't bother with imaging a swap partition.
     
  5. itoffshore

    itoffshore Notebook Guru

    Reputations:
    26
    Messages:
    52
    Likes Received:
    6
    Trophy Points:
    16
    After you CTRL ALT F1 & login:
    Code:
    sudo /etc/init.d/lightdm stop
    sudo /etc/init.d/lightdm start
    This will close your previous x session & should bring you back to your default desktop as you are already logged in (it does for me on Debian Testing) - this is also useful for updating xorg or video drivers.
     
  6. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
    Oh, right. 12.04 uses lightdm by default, not gdm. You can replace the two commands with just one using restart instead of stop and start.
     
  7. JOSEA

    JOSEA NONE

    Reputations:
    4,013
    Messages:
    3,521
    Likes Received:
    170
    Trophy Points:
    131
    Thanks itoffshore and ALLUR, lucky the kernel rollback had made my system ROCK stable. so I have not needed to login from terminal.
    Other than a problem after I installed Jupiter (fixed by a system restore with REDO - excellent simple imaging program BTW) I am ready to upgrade my ASUS to Ubuntu next!