Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    xclock command not working

    My System Administrator said they have installed xserver
    I am trying to type 'xclock' command but get an error 'can't open display'

    what should I do?

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Are you trying to start it from a GUI interface? If from the command line, what is the output of "echo $DISPLAY"?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Linux Guru
    Join Date
    Dec 2013
    dwsupport, how have you installed, which distro have you installed, and to what hardware?

    your mention of "My System Administrator" implies, probably none of the above.

    do you see now that we really need more information to help you solve your problem?

  4. $spacer_open
  5. #4
    You could try:
    DISPLAY=:0 xclock
    and see if that brings up the clock. And if:
    echo $DISPLAY
    outputs another numeral other than 0, use that in the above command with xclock.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts