LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 09-08-2013, 10:50 PM   #1
arnold.kang
LQ Newbie
 
Registered: Mar 2013
Location: Chengdu.China
Distribution: fedora
Posts: 29

Rep: Reputation: Disabled
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?
 
Old 09-09-2013, 10:31 AM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 1,000

Rep: Reputation: 218Reputation: 218Reputation: 218
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
 
Old 09-09-2013, 03:46 PM   #3
jefro
Guru
 
Registered: Mar 2008
Posts: 12,087

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
If you have bash at startup then you could just use it couldn't you? What benefit would xterm provide?
 
Old 09-13-2013, 10:06 PM   #4
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 8,247

Rep: Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557
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.

Last edited by frankbell; 09-13-2013 at 10:08 PM.
 
  


Reply

Tags
ubuntu 12.04, xterm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gnome-terminal is starting up in / konsole and xterm start up in ~ as desired dasy2k1 Linux - General 2 08-02-2010 09:43 PM
[SOLVED] X takes 1.5 minutes to start xterm and 3.5 minutes to start GNOME gregorian Linux - Newbie 16 12-25-2009 06:56 AM
xterm to gnome/gui desktop sanjeevkurra Fedora 2 01-04-2007 09:58 AM
new users start in xterm rather then gnome? dansawyer Linux - Software 3 07-23-2006 02:59 PM
.desktop file to start xterm Eshindi Linux - Newbie 1 04-04-2006 11:02 AM


All times are GMT -5. The time now is 12:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration