Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to add a terminal Xsession to the log in drop down screen. Can anyone let me know how to do this? No desktop, load only terminal with network support.

Booting in recovering from grub lets me do this but I would rather do it from the login screen.

My system is Ubuntu 12.04 with standard install

Please note I have and am in the process of searching for the answer with little luck.

share|improve this question
1  
Not a proper answer, but you could try to copy one of the existing session files in /usr/share/xsessions and alter it to launch xterm, gnome-terminal etc –  Egil May 5 '12 at 20:10
    
Egil, please rewrite your comment as an anwser because it did the trick as follows: New file named terminal.desktop with the following code:[Desktop Entry] Name=Terminal Comment=This session logs you into Terminal Exec=gnome-terminal TryExec=gnome-terminal Icon= Type=Application –  p37307 May 5 '12 at 20:58

2 Answers 2

up vote 4 down vote accepted

Create a file called terminal in /usr/share/xsessions with the following content:

[Desktop Entry]
Name=Terminal
Comment=This session logs you into Terminal
Exec=gnome-terminal
TryExec=gnome-terminal
Icon=
Type=Application
share|improve this answer

If you mean launching only terminal with no desktop, I don't know how to add this to login screen, but you just could switch to the terminal by Ctrl-Alt-F1 to Ctrl-Alt-F6

share|improve this answer
    
Thank you LiquidPL. That is what I want to do. Launch a terminal with no desktop (with network). I would prefer to choose the option at boot login though instead of booting into the desktop then shutting it down to terminal only. –  p37307 May 5 '12 at 19:43
1  
It does not shut down, it just switches to another terminal. Press Ctrl-Alt-F7 to return to the graphical one. –  Egil May 5 '12 at 19:46
    
Thanks Egil. The recent issues with NVIDIA and other issues makes it necessary for me to want to have an option to log directly into a terminal session instead of loading the desktop as a backup. This feature is available through the recovery bootup but still would like to have it in the login session options. –  p37307 May 5 '12 at 19:49
    
Yup - I don't remember how to shutdown the graphical session in Ubuntu. In others init 3 should do the work, but Ubuntu uses Upstart and I don't know how to do it here. –  LiquidPL May 5 '12 at 19:50
    
About shutting down the graphical session - check if sudo stop lightdm would do it. –  LiquidPL May 5 '12 at 19:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.