LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-15-2011, 11:37 AM   #1
anumoses
LQ Newbie
 
Registered: Apr 2011
Posts: 3

Rep: Reputation: 0
Unable to start xclock in Linux for my oracle reports- for bar code printing


$DISPLAY=localhost:0.0
$ export DISPLAY
$ xclock

It hangs.
When I do xhost + also it hangs.

Without the xclock I am not able to run oracle reports in production for bar code printing as I am not able to start a standalone reports server. Help needed to start xclock and where to look for any help
 
Old 04-15-2011, 11:48 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,138

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
It's not hung, its running in foreground. If you want your shell prompt back you need to do:

xclock &
 
Old 04-15-2011, 12:09 PM   #3
anumoses
LQ Newbie
 
Registered: Apr 2011
Posts: 3

Original Poster
Rep: Reputation: 0
what about xhost +
 
Old 04-15-2011, 01:55 PM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by anumoses View Post
what about xhost +
Well, put "&" after it , too! "&" means "run in background".

And remember, the terminal is not "hung", it's just that keyboard input now goes to the running program until it exits, and then the shell returns.

To pause a foreground process, use Ctrl+Z. To start it again in the background, run "bg". To start it again in the foregraound, run "fg".
 
Old 04-15-2011, 06:25 PM   #5
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,138

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Quote:
Originally Posted by anumoses View Post
what about xhost +
You do not need xhost + unless authentication is being done wrong on your system.
If you own the display, then programs you launch can use it.
 
  


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
Unable to start xclock in Linux for my oracle reports- for bar code printing anumoses Linux - Newbie 2 05-09-2011 01:47 PM
Printing Bar-code Labels on Zebra Printer supanatral Linux - Software 2 05-20-2010 10:11 AM
xclock show time in window title bar (using bash?) jaybee Linux - Software 5 06-19-2006 01:27 PM
LXer: Tax Prep Open Source Code Effort Reports Promising Start LXer Syndicated Linux News 0 02-21-2006 06:16 PM
Oracle reports on Linux vressue Linux - General 0 02-28-2003 01:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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