LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-11-2011, 05:15 AM   #1
ethereal1m
Member
 
Registered: Jan 2010
Distribution: Ubuntu
Posts: 312

Rep: Reputation: 31
Question Set display on a terminal and run an Xwindow from it


Dear all,
I'm trying to run an Xwindow application from terminal but I'm unable to do it.

What I did:
Code:
oracle@firefly:/usr/local/temp/database$ export DISPLAY=:0.0  

oracle@firefly:/usr/local/temp/database$ xhost +
No protocol specified
xhost:  unable to open display ":0.0"

oracle@firefly:/usr/local/temp/database$ xterm
No protocol specified
xterm Xt error: Can't open display: :0.0
Did I miss anything?

Best regards,
ethereal1m
 
Old 01-11-2011, 05:22 AM   #2
DonnieP
Member
 
Registered: Jan 2008
Location: Richmond, VA USA
Distribution: Slackware
Posts: 144

Rep: Reputation: 29
Is an X server running? Consider this googling result:
http://forums.oracle.com/forums/thre...hreadID=569326
 
Old 01-11-2011, 05:52 AM   #3
ethereal1m
Member
 
Registered: Jan 2010
Distribution: Ubuntu
Posts: 312

Original Poster
Rep: Reputation: 31
Hi Donnie,
when I do ps:
Code:
oracle@firefly:/usr/local/temp/database$ ps -ef|grep X
root      3736  3724  0 14:23 tty7     00:01:56 /usr/bin/X -br -novtswitch -quiet -nolisten tcp :0 vt7 -auth /var/run/xauth/A:0-LvVpK5
but when I do xset:
Code:
oracle@firefly:/usr/local/temp/database$ xset -q
No protocol specified
xset:  unable to open display ":0.0"
not sure what's going on. Do you?
 
Old 01-11-2011, 01:54 PM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
If you are on a virtual console just type
Code:
startx -- :1
to start a new X session and then run your x application
 
Old 01-11-2011, 09:09 PM   #5
ethereal1m
Member
 
Registered: Jan 2010
Distribution: Ubuntu
Posts: 312

Original Poster
Rep: Reputation: 31
hi Keith,
is this what you meant?
Code:
[oracle@firefly]$ startx xterm:1
xauth:  creating new authority file /home/oracle/.serverauth.5652
xauth:  creating new authority file /home/oracle/.Xauthority
xauth:  creating new authority file /home/oracle/.Xauthority


Fatal server error:
Server is already active for display 0
	If this server is no longer running, remove /tmp/.X0-lock
	and start again.


Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 



Invalid MIT-MAGIC-COOKIE-1 keygiving up.
xinit:  Interrupted system call (errno 4):  unable to connect to X server
xinit:  No such process (errno 3):  Server error.
for some reason the shell cannot connect to X server. Any ideas?
 
Old 01-11-2011, 09:22 PM   #6
ethereal1m
Member
 
Registered: Jan 2010
Distribution: Ubuntu
Posts: 312

Original Poster
Rep: Reputation: 31
Oh, I forgot to mention that the terminal runs on KDE if that makes any difference...
 
Old 01-11-2011, 09:41 PM   #7
ethereal1m
Member
 
Registered: Jan 2010
Distribution: Ubuntu
Posts: 312

Original Poster
Rep: Reputation: 31
I solved the problem by doing xhost + in the original shell. Turns out that the fact I did su [username_whatever] from a terminal and tried to do xhost+ there is causing a problem. I must do xhost + from the original shell instead.
 
  


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
[SOLVED] How to set display to run Firefox from tty ethereal1m Linux - Newbie 4 04-02-2010 12:00 AM
can't display xwindow on remote machine using Debian 3.1 linian Linux - Software 3 07-20-2006 09:40 AM
Creating a new Xwindow terminal emulator PaperCut Linux - Newbie 1 11-14-2005 06:52 PM
Set Display Frequency Outside XWindow. carboncopy Slackware 1 03-20-2004 01:13 PM
Xwindow display problem Sixpax Linux - General 4 03-11-2002 04:32 PM

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

All times are GMT -5. The time now is 02:01 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