LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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, 06: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, 07:01 AM   #2
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Lenny
Posts: 351

Rep: Reputation: 47
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, 07: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 07:57 AM.
 
Old 04-15-2009, 08:40 AM   #4
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Lenny
Posts: 351

Rep: Reputation: 47
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, 08: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 09:08 AM.
 
Old 04-15-2009, 10:19 AM   #6
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Lenny
Posts: 351

Rep: Reputation: 47
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, 12:01 PM   #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 12:20 PM.
 
Old 04-15-2009, 12:51 PM   #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 01:17 PM.
 
Old 04-16-2009, 03:46 AM   #9
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Lenny
Posts: 351

Rep: Reputation: 47
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, 06: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 09: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 07:35 PM
.desktop file to start xterm Eshindi Linux - Newbie 1 04-04-2006 11:02 AM
Xterm does not start in root directory mystique98ls Linux - Newbie 2 12-14-2004 06:45 PM
xterm start with sh instead of bash freeindy Linux - Software 4 04-25-2004 11:58 AM
Automatic Start of XTerm secprovider Linux - Newbie 1 03-30-2004 04:00 AM


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

Main Menu
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