LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   anyway to start xterm instead of gnome-desktop in ubuntu 12.04? (http://www.linuxquestions.org/questions/linux-desktop-74/anyway-to-start-xterm-instead-of-gnome-desktop-in-ubuntu-12-04-a-4175476418/)

arnold.kang 09-08-2013 10:50 PM

anyway to start xterm instead of gnome-desktop in ubuntu 12.04?
 
hi ,
all. i don't need the desktop on my ubuntu 12.04. i only want to go to xterm when system start up . i've tried a long time . can some one help me?

Keith Hedger 09-09-2013 10:31 AM

If you mean you don't want to run an X server then no xterm is an X windows app and needs to be run in an X server session, if you want to run an X session but without running a full desktop have a look at the various docs on xinitrc, this is a very basic xinitrc and just starts twm some xterms and a clock:
Code:

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/app-defaults/.Xresources
sysmodmap=/etc/X11/app-defaults/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then
    xrdb -merge "$userresources"
fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs


if [ -d /etc/X11/app-defaults/xinitrc.d ] ; then
        for f in /etc/X11/app-defaults/xinitrc.d/*.sh ; do
                [ -x "$f" ] && . "$f"
        done
        unset f
fi

twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login


jefro 09-09-2013 03:46 PM

If you have bash at startup then you could just use it couldn't you? What benefit would xterm provide?

frankbell 09-13-2013 10:06 PM

Jefro makes a sensible point.

If you want run X (maybe you want to be able to start GUI programs from the terminal) but just use xterm, install and use TWM, the simplest window manager of all. All it does is start xterms. I would expect it to be in the repos, though I have no way of easily checking.

If you want to boot directly to the command line, that will be another story. I set up my Debian box to do it but never attempted it with Ubuntu, though there most certainly should be a way.


All times are GMT -5. The time now is 01:35 AM.