-   Linux - Desktop (
-   -   anyway to start xterm instead of gnome-desktop in ubuntu 12.04? (

arnold.kang 09-08-2013 09: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 09: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:



# merge in defaults and keymaps

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

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

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

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

# 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"
        unset f

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 02: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 09: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 11:43 AM.