LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-08-2016, 03:28 AM   #1
Navina
LQ Newbie
 
Registered: Dec 2016
Posts: 1

Rep: Reputation: Disabled
Question XCLOCK Display error


Hi experts,

when we tried to run xclock from home directory we are getting an error as

./x
xauth: (argv):1: bad display name ":" in "nextract" command
No matches found, authority file "-" not written
xauth nmerge /home/x.v-navija
setenv DISPLAY localhost:
export DISPLAY=localhost:


How to resolve this error. we want to get the xdisplay run
 
Old 12-08-2016, 09:53 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
What is in your "x" script?
 
Old 12-08-2016, 07:50 PM   #3
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 774

Rep: Reputation: 243Reputation: 243Reputation: 243
You need an X Server running before you can display xclock on it. Try 'startx' from the command line. It starts the server itself and uses ~/.xinit, usually to run a window manager or whatever you choose in there. Once that's up, you can display X programs there.
 
Old 12-11-2016, 12:26 PM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Don't do that.

If you are logging with ssh and X forwarding is enabled, so is the necessary display environment variable set.

Doing that in the script or in the profile is wrong. The environment will almost ALWAYS be wrong and you will get this error.

What are you actually trying to do?
 
Old 12-11-2016, 12:59 PM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Code:
userx@voided1.what~>> sudo xbps-install -Suy xclock
[*] Updating `https://lug.utdallas.edu/mirror/void/current//x86_64-repodata' ...
[*] Updating `https://repo.voidlinux.eu/current/nonfree/x86_64-repodata' ...


Name   Action    Version           New version            Download size
libXaw install   -                 1.0.13_1               212KB 
xclock install   -                 1.0.7_3                24KB
Code:
userx@voided1.what~>> xclock
Warning: Missing charsets in String to FontSet conversion
^C
did you try just typing xclock in the cli?
my xclock worked.


as @jpollard asked, what exactly are you doing, and what environment are you in while trying to do it?

Last edited by BW-userx; 12-11-2016 at 01:02 PM.
 
  


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] try to open xclock and get Error: Can't open display thohogan Linux - Newbie 3 10-07-2013 04:19 PM
"Error: Can't open display" for xclock or gvim on kubuntu root shell konsole 1.6.6 TsanChung Linux - General 3 05-12-2012 01:48 AM
xclock Error: Can't open display: - after upgrading to openSSH 5.2p1 abrarpasha.syed Linux - General 3 01-03-2011 07:55 AM
[SOLVED] xclock Error: Can't open display: <unknown ip>:0.0 fareast87 Red Hat 4 12-30-2010 10:51 AM
cannot display xclock Kitana AIX 5 04-07-2008 08:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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