LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-15-2009, 05:51 AM   #1
haochao
LQ Newbie
 
Registered: Mar 2009
Location: china
Posts: 28

Rep: Reputation: 15
Question how to start xterm from local X server?


Recently,i'm studying around X server and client. when i was logining on and typing "init 3" on gnome-terminal in order to terminate x server.

my purpose is x server starting through the command "xinit" only.and xterm to be first client for x server may be terminal.i'try typing "a bunch of commands" on tty1 (Ctrl + ALT + F1) to get through my testing .

when a short command "xinit" of those without any agruments was executing, xterm was just staying instantly and disappearing soon. others i try commands,alway coming up with errors:

Xterm Xt error: can't open display :%s
Xterm: Display is not set

how could i get through my testing?
 
Old 04-15-2009, 06:01 AM   #2
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Bullseye
Posts: 357

Rep: Reputation: 49
if i am understanding this right:
you want a fail-safe session with only xterm.

You can:
1. just choose the session as fail-safe session

OR

you can change /etc/inittab and set default runlevel as 3
and then issue these commands in a console prompt

# X :0 &
# export DISPLAY=:0.0
# xterm

warning: This will give you just a xterm - not even a window manger and so u cannot move the xterm app anywhere.
most lightweight window manager (wm) is AFAIK twm
run twm from the xterm in the X window session
 
Old 04-15-2009, 06:40 AM   #3
haochao
LQ Newbie
 
Registered: Mar 2009
Location: china
Posts: 28

Original Poster
Rep: Reputation: 15
When i was executing those above commands up to "xterm" on runlevel 3, then showing "X" located center at screen drawed black.

Last edited by haochao; 04-15-2009 at 06:57 AM.
 
Old 04-15-2009, 07:40 AM   #4
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Bullseye
Posts: 357

Rep: Reputation: 49
oh
sorry !
after executing the X :0 command
you have to press Ctrl + Alt + F1 to go back to one of the console screens
 
Old 04-15-2009, 07:57 AM   #5
haochao
LQ Newbie
 
Registered: Mar 2009
Location: china
Posts: 28

Original Poster
Rep: Reputation: 15
Hi,You are welcome.i have done all those commands over instead of you said that i don't press "Ctrl + Alt + F1".still show the cursor "X" located center at screen drawed black.

it is seem that "xterm "do not connect X server. WHY? thank you!

Last edited by haochao; 04-15-2009 at 08:08 AM.
 
Old 04-15-2009, 09:19 AM   #6
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Bullseye
Posts: 357

Rep: Reputation: 49
can you check it xlogo works ?
instead of xterm, just run xlogo
you must get a small white area with a big 'X' in that white space.
this is basic check if the X libraries are properly installed
it this works then we can find out why xterm does not work.
 
Old 04-15-2009, 11:01 AM   #7
haochao
LQ Newbie
 
Registered: Mar 2009
Location: china
Posts: 28

Original Poster
Rep: Reputation: 15
Yes,it can't work exactly,just give me an error prompt:

#xlogo
Error:can't open display

I display card dirvers is non-open nvidia, and 3D accelarated program wrok right!

Last edited by haochao; 04-15-2009 at 11:20 AM.
 
Old 04-15-2009, 11:51 AM   #8
haochao
LQ Newbie
 
Registered: Mar 2009
Location: china
Posts: 28

Original Poster
Rep: Reputation: 15
does't it have to authorize something about X server?i don't know how to do.but i'm in root identity!

Last edited by haochao; 04-15-2009 at 12:17 PM.
 
Old 04-16-2009, 02:46 AM   #9
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Bullseye
Posts: 357

Rep: Reputation: 49
Quote:
Originally Posted by haochao View Post
Yes,it can't work exactly,just give me an error prompt:

#xlogo
Error:can't open display

I display card dirvers is non-open nvidia, and 3D accelarated program wrok right!
it says cant't open display
so the DISPLAY environment variable is not set !
somehow it is getting unset or over-ridden in your profile files

usually it must say
can't open display <followed by the string of the DISPLAY variable>

just execute these commands to check

# DISPLAY=:0.0 xlogo

this must set the display and also run it ! cannot get reset
 
Old 04-16-2009, 05:16 AM   #10
haochao
LQ Newbie
 
Registered: Mar 2009
Location: china
Posts: 28

Original Poster
Rep: Reputation: 15
thank you for replies,without your help,i won't done this problem over finally。the problem out of the origin is mine in chinese environment.in order to get through my testing,I switch to english(USA) language environment,then my testing is right!

last one question:

how do i modify something instead of switching language environment and rebooting system?

Last edited by haochao; 04-16-2009 at 08:04 AM.
 
  


Reply


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
start xterm and run command? P-P Linux - Software 3 01-19-2007 06:35 PM
.desktop file to start xterm Eshindi Linux - Newbie 1 04-04-2006 10:02 AM
Xterm does not start in root directory mystique98ls Linux - Newbie 2 12-14-2004 05:45 PM
xterm start with sh instead of bash freeindy Linux - Software 4 04-25-2004 10:58 AM
Automatic Start of XTerm secprovider Linux - Newbie 1 03-30-2004 03:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 08:06 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
Open Source Consulting | Domain Registration