<div dir="ltr">Great! Thanks for reporting back.<br><br><div>Utkarsh</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, May 22, 2015 at 11:09 PM Di Cheng <<a href="mailto:chengdi@imech.ac.cn">chengdi@imech.ac.cn</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Utkarsh<br>
<br>
I think I just figured out what is the problem. According to the "ps aux|grep X" command, the Xserver is started. But the Ubuntu OS is a desktop OS. There is a bug/feature that the ~/.Xauthority file does not contain necessary magic cookie to connect the xserver. So here is a solution:<br>
$ sudo xauth -i list #check if there is xserver :0 authentication information<br>
$ sudo xauth merge <path to the xauth file><br>
<br>
And the location of authority file can be found using "ps aux|grep X"<br>
A little problem is the ~/.Xauthority becomes owned by "root". So chown and chgrp should be called to change the owner and group<br>
<br>
Then "xhost +local:" can be called<br>
$<br>
-----Original Message-----<br>
From: Utkarsh Ayachit [mailto:<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>]<br>
Sent: Thursday, May 21, 2015 11:37 PM<br>
To: Di Cheng<br>
Cc: ParaView Developers<br>
Subject: Re: [Paraview-developers] Remote rendering requirement of account privilege?<br>
<br>
Di,<br>
<br>
Try running "xhost +" with sudo.<br>
<br>
<br>
<br>
Utkarsh<br>
<br>
On Wed, May 20, 2015 at 9:42 PM, Di Cheng <<a href="mailto:chengdi@imech.ac.cn" target="_blank">chengdi@imech.ac.cn</a>> wrote:<br>
> Utkarsh<br>
><br>
> Thanks for your reply.<br>
> I tried to use "xhost +", but did not succeed. I also tried to " export XAUTHORITY=~/.Xauthority ", it did not work either.<br>
><br>
> here is some detail of my system.<br>
> ----------------------------------------------------------------------<br>
> ---------------------------------------------<br>
> catdog@wei-H8QG6:~$ export DISPLAY=:0.0 catdog@wei-H8QG6:~$ xhost + No<br>
> protocol specified No protocol specified<br>
> xhost: unable to open display ":0.0"<br>
> catdog@wei-H8QG6:~$ ps aux|grep X<br>
> catdog 15983 0.0 0.0 13588 920 pts/12 S+ 23:34 0:00 grep --color=auto X<br>
> root 31779 0.3 0.0 156600 48244 tty7 Ss+ May13 36:32 /usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch<br>
> catdog@wei-H8QG6:~$ uname -a<br>
> Linux wei-H8QG6 3.13.0-46-generic #79~precise1-Ubuntu SMP Tue Mar 10<br>
> 20:25:33 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux catdog@wei-H8QG6:~$<br>
> xeyes -display :0.0 No protocol specified No protocol specified<br>
> Error: Can't open display: :0.0<br>
> catdog@wei-H8QG6:~$ xauth list<br>
> wei-H8QG6/unix:15 MIT-MAGIC-COOKIE-1<br>
> 936664cd6304286ff79270c271ed3189<br>
> wei-H8QG6/unix:13 MIT-MAGIC-COOKIE-1<br>
> b11a44d6fb0786b816c73adf6bb0d361<br>
> wei-H8QG6/unix:14 MIT-MAGIC-COOKIE-1<br>
> b11a44d6fb0786b816c73adf6bb0d361<br>
> wei-H8QG6/unix:11 MIT-MAGIC-COOKIE-1<br>
> b77e756d05b97bdbade08e384c144a73<br>
> ----------------------------------------------------------------------<br>
> ---------------------------------------------<br>
><br>
> -----Original Message-----<br>
> From: Utkarsh Ayachit [mailto:<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>]<br>
> Sent: Wednesday, May 20, 2015 11:16 PM<br>
> To: Di Cheng<br>
> Cc: ParaView Developers<br>
> Subject: Re: [Paraview-developers] Remote rendering requirement of account privilege?<br>
><br>
> You may want to check this (and related documentation) out:<br>
> <a href="http://www.x.org/archive/X11R6.8.0/doc/xhost.1.html" target="_blank">http://www.x.org/archive/X11R6.8.0/doc/xhost.1.html</a><br>
><br>
> Utkarsh<br>
><br>
> On Mon, May 4, 2015 at 2:07 PM, Di Cheng <<a href="mailto:chengdi@imech.ac.cn" target="_blank">chengdi@imech.ac.cn</a>> wrote:<br>
>> Hi, All<br>
>><br>
>> I am running a remote pvserver on the Ubuntu server 12.04, when I was using old account, it can be run in remote rendering mode with option: "-display localhost:0". When I login as another user, I cannot. And when I connect it from windows, it pops up a window with some information to tell me I cannot do remote rendering.<br>
>><br>
>> I do not know how remote rendering works, but it seems it requires some account privileges. How can I solve this problem? I have compared those two account, new account belongs to more groups. What can I do to deal with this problem? Using sudo?<br>
>><br>
>> Di CHENG (Ph.D. candidate)<br>
>> Supersonic Combustion Group<br>
>> State Key Laboratory of High Temperature Gas Dynamics Institute of<br>
>> Mechanics, Chinese Academy of Sciences<br>
>> ADDRESS: No.15 Beisihuanxi Road, Beijing (100190) P. R. China<br>
>> E-mail: <a href="mailto:chengdi@imech.ac.cn" target="_blank">chengdi@imech.ac.cn</a><br>
>> Phone: +86-10-82544053<br>
>> Fax: +86-10-82544034<br>
>><br>
>> 程迪 博士生<br>
>> 超声速燃烧课题组<br>
>> 高温气体动力学国家重点实验室<br>
>> 中国科学院力学研究所<br>
>> 地址:北京市海淀区北四环西路15号<br>
>> 邮编:100190<br>
>> 电子邮件:<a href="mailto:chengdi@imech.ac.cn" target="_blank">chengdi@imech.ac.cn</a><br>
>> 电话:+86-10-82544053<br>
>> 传真:+86-10-82544034<br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Search the list archives at:<br>
>> <a href="http://markmail.org/search/?q=Paraview-developers" target="_blank">http://markmail.org/search/?q=Paraview-developers</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://public.kitware.com/mailman/listinfo/paraview-developers" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
><br>
><br>
<br>
<br>
</blockquote></div>