clock command gives error response in root

Asked by Jagadeesh

Hi all,
I'm getting error response for"clock" command....

root@ubuntu:~# clock
XView warning: Cannot load font '-b&h-lucida-medium-r-*-*-*-120-*-*-*-*-*-*' (Font package)
XView warning: Cannot load font '-b&h-lucida-medium-r-normal-sans-*-120-*-*-*-*-*-*' (Font package)
XView error: Cannot open connection to window server: :0 (Server package)

help me to fix this........

and one more thing ...
in my code i have one header file ..
#include<sys/ioctl.h>

when I'm trying to make the file
the response is as below....

/home/jag/Desktop/cCodes/ddex/part4/chr_drv_ioctl.c:12:23: fatal error: sys/ioctl.h: No such file or directory
compilation terminated.
make[2]: *** [/home/jag/Desktop/cCodes/ddex/part4/chr_drv_ioctl.o] Error 1
make[1]: *** [_module_/home/jag/Desktop/cCodes/ddex/part4] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.0.0-12-generic'
make: *** [all] Error 2

please help me to fix this........
thank you ..................

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu xview Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

what if you run clock as user?

Revision history for this message
Jagadeesh (v-jagadeesh89) said :
#2

In user mode also i'm getting same response
as below.......

jag@ubuntu:~$ clock
XView warning: Cannot load font '-b&h-lucida-medium-r-*-*-*-120-*-*-*-*-*-*' (Font package)
XView warning: Cannot load font '-b&h-lucida-medium-r-normal-sans-*-120-*-*-*-*-*-*' (Font package)
XView error: Cannot open connection to window server: :0 (Server package)

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

What does clock do?

Revision history for this message
Jagadeesh (v-jagadeesh89) said :
#4

clock command read date & time directly from RTC and displays..............

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#5

Please install

sudo apt-get install xview-clients

then type

clock

Revision history for this message
Jagadeesh (v-jagadeesh89) said :
#6

Yes, i did that ...........
after that it showing like this.............

Revision history for this message
Jeet (gour-jitendrasingh) said :
#7

Hey you pasted nothing ...

if your question solved please mark as solved

thanks

Revision history for this message
Jagadeesh (v-jagadeesh89) said :
#8

still I need an answer....

Revision history for this message
Jeet (gour-jitendrasingh) said :
#9

ok you must configure your firewall it may blocking connection

thanks

Revision history for this message
Jagadeesh (v-jagadeesh89) said :
#10

how to configure the firewall in ubutu.......?????

thanks....

Revision history for this message
Jeet (gour-jitendrasingh) said :
#11
Revision history for this message
Lean Wang (leanwang) said :
#12

I encounter the same error msg:
XView warning: Cannot load font '-b&h-lucida-medium-r-*-*-*-120-*-*-*-*-*-*' (Font package)
 XView warning: Cannot load font '-b&h-lucida-medium-r-normal-sans-*-120-*-*-*-*-*-*' (Font package)

I am trying to run WAVE (using XView) on a Ubuntu Desktop 10.13 (32-bit).

It seems that your problem is gone. Do you still remember how to fix this problem?

Million thanks in advance!

Revision history for this message
Grahamjones139 (grahamjones139) said :
#13

A temporary work around is probably to start the program with a -fn "*iso8859*" command line argument (it works for the application I am working on), but I am still looking for a way of fixing it properly
....But as the last comment was 4 months ago, I guess you have fixed it, so I'd be interested to know how you cured it.

Revision history for this message
aml (aml.v) said :
#14

Hi all,
I am experiencing the same error when I am trying to run WAVE (using XView) on a Ubuntu Desktop 14.04 (32-bit).

XView warning: Cannot load font '-b&h-lucida-medium-r-*-*-*-120-*-*-*-*-*-*' (Font package)
XView warning: Cannot load font '-b&h-lucida-medium-r-normal-sans-*-120-*-*-*-*-*-*' (Font package)
XView error: Cannot open connection to window server: :0 (Server package)

If you fixed this problem, please help me to solve this.

Thanks in advance.

Revision history for this message
John (jvinkemu) said :
#15

I am experiencing this issue, running WAVE on a Ubuntu 16.04, 32 bit

Example waveform:
$ wave -r 100s -a atr
Resulted in:
XView error: Cannot open connection to window server: :0 (Server package)

Using tip from Grahamjones139:
$ wave -r 100s -a atr -fn *iso8859*
Resulted in: success, wave window displaying

Can you help with this problem?

Provide an answer of your own, or ask Jagadeesh for more information if necessary.

To post a message you must log in.