LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-31-2004, 05:49 PM   #1
wogga
Member
 
Registered: Apr 2004
Posts: 82

Rep: Reputation: 15
xterm


i tried to get xterm to work
i got the following message instead

[root@localhost tigger]# xterm
Xlib: connection to "0.0" refused by server
Xlib: No protocol specified

Warning: This program is an suid-root program or is being run by the root user. The full text os the error or warning messafe cannot be safely formatted in this environment. You may get a more descriptive message by rinning the programas a non-root user or by removing the suid bit on the executable.
xterm Xt error:Can't open display: %s


how can i also go back to normal user mode, at the moment i kill the terminal and open a new terminal

also previously i could copy paste text on the terminal, not now, why is that?

ah
i tried xterm when i am in normal mode, and it allows me to do it.
soon as i go into su mode, it gives me this error this time

and this time around, i can copy it
[root@localhost tigger]# xterm
Warning: Tried to connect to session manager, Authentication Rejected, reason :
None of the authentication protocols specified are supported and host-based authentication failed
 
Old 05-31-2004, 05:51 PM   #2
wogga
Member
 
Registered: Apr 2004
Posts: 82

Original Poster
Rep: Reputation: 15
also what is the difference between xterm and my normal terminal window
 
Old 05-31-2004, 06:45 PM   #3
Zoko
Member
 
Registered: May 2004
Location: Morgantown, West Virginia
Distribution: Gentoo 2007.0, Straw Hat Linux
Posts: 31

Rep: Reputation: 15
Quote:
[root@localhost tigger]# xterm
Xlib: connection to "0.0" refused by server
When you do that (run xterm) are you in a tty or in an xwindows enviornment? A tty is black with just you and a blinking line. An x env is alll graphical.


What it looks like you aro doing is trying to run xterm from a TTY and you either have an X open already or you dont. how are you running this? Sometimes also is you

Are in a terminal an X and su - then try atd run a command that would launch a window you will get an error like that. For example (this in in an X term)

Code:
<tim>[~]<06:33 PM>:su -
Password: 
<root>[~]<06:33 PM>:aterm
Xlib: connection to ":0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
aterm: can't open display :0
Thats what happens when you run an x application as su'd into root
 
Old 06-01-2004, 02:41 AM   #4
wogga
Member
 
Registered: Apr 2004
Posts: 82

Original Poster
Rep: Reputation: 15
i think i am in an xwindows environment, since the screen is white and there is no blinking line. but it does not look all graphical to me.

how can i find out for sure what mode i am in?
the code that you provided, are you trying to go from tty to an xterm?

i also tried to run startx and i got the following message
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.


If you encounter a server crash, please report the problem by filing a bug
report in the XFree86.org bugzilla at http://bugs.xfree86.org and/or Red Hat
bugzilla at http://bugzilla.redhat.com/bugzilla. When filing your report, it
is very important that you explain your problem in as much detail as possible,
and include a complete description on how to reproduce the problem. After
submitting the bug report, attach the following files as uncompressed
individual file attachments using the bugzilla file attachment feature:
- Kernel log file: /var/log/messages
 
Old 06-01-2004, 03:33 AM   #5
dan_slack
Member
 
Registered: May 2004
Location: Bucharest - Romania
Distribution: Slackware 12
Posts: 57

Rep: Reputation: 15
Hi Wogga,

What linux distribution do you use? (mandrake, fedora, slackware or what?)
The message you've got is from a console terminal.
In order to start xterm it is mandatory to run X first. This is normaly done with startx command from console.

Note: Mandrake, by default, will not allow you to get X if root :-(
Pls don't ask me why, I'm just a newbie slackware user ;-)

There are 6 virtual terminals where you can login as different users. One can switch between these terminals from console by pressing Alt-F1, Alt-F2 ... and so on till Alt-F6.
By pressing Alt-F7 you get the first X window display (if one is already active!), Alt-F8 the second.
If you are within a windows session, you can switch back to console by pressing Ctrl-Alt-F1, or 2,3...

Now, you first login on tty1, virtual terminal 1, and get user@localhost tigger. Press startx and you're on x.

I presume that your system boots directly to X.
Switch to the terminal no.2 (Ctrl-Alt-F2), login as root and type:

Code:
startx -- :2
type exactly as above, with blank space before and after --
You'll be on the second X session. Switch back to the first one by pressing Ctrl-Alt-F7 and again back with Ctrl-Alt-F8

Next: please read some linux docs and tutorials... :-)


Good luck!

Dan

Last edited by dan_slack; 06-01-2004 at 04:00 AM.
 
Old 06-01-2004, 08:45 AM   #6
wogga
Member
 
Registered: Apr 2004
Posts: 82

Original Poster
Rep: Reputation: 15
I am using redhat 9.0
please advise me on a good tutorial

at the moment i am going through a book "linux for idiots" or something like that.
but it is not well explained that is why i keep on posting questions on this forum.
 
Old 06-02-2004, 06:14 AM   #7
dan_slack
Member
 
Registered: May 2004
Location: Bucharest - Romania
Distribution: Slackware 12
Posts: 57

Rep: Reputation: 15
Please search the web...
Look at /usr/doc on your computer

Dan
 
Old 06-02-2004, 07:27 AM   #8
zeropash
Member
 
Registered: Apr 2003
Location: Bangalore,India
Distribution: FC2, RHES, RH9, FC3, FC1, Slackware 3.0
Posts: 208

Rep: Reputation: 30
try http://www.tldp.org/ for some docs.
 
  


Reply



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
xterm - howto lauch an xterm into a specific directory jobano Linux - Software 11 01-30-2023 04:45 AM
xterm peter1 Linux - General 1 02-26-2005 07:47 AM
how is black xterm background in IceWM when issue a xterm command? BRAHmS Linux - Software 1 02-14-2005 03:51 AM
xterm newbiejon Linux - Software 3 12-28-2004 11:00 PM
xterm basiaco Linux - Software 4 02-25-2004 11:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:52 AM.

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