setup VNC session for windows domain account

461 views
Skip to first unread message

appma...@gmail.com

unread,
Mar 18, 2015, 10:58:35 AM3/18/15
to tigervn...@googlegroups.com
Hello, VNC user friends

I ran into this issue and just wondering if anyone can help me out.

I used winbind to integrate my centos 6.5 machine to our WIN active directory.

By doing so, I am able to use windows ad account to log into my linux box.

Right now, I am also able to ssh into the linux box with my win ad account.

However when I tried to setup the VNC session for my windows ad account, it failed.

Please see error message below

[Domain\XXX@CRI-13-64 ~]$ sudo service vncserver start
Starting VNC server: 2:Domain\XXX -bash: line 0: cd: ~DomainXXX: No such file or directory
[FAILED]


I think the problem can be fixed by tweak the script that vncserver is using. But I am not sure where and how.

I am able to modify the /etc/sysconfig/vncserver config file to make it take my domain account. Please see below:


VNCSERVERS="2:Domain\\XXX"
VNCSERVERARGS[2]="-geometry 1024x768"


I think I just need to do the same thing to the script that vncserver is using.

Thank you for your time and help in advance.

Best,

Pierre Ossman

unread,
Mar 19, 2015, 5:03:46 AM3/19/15
to appma...@gmail.com, tigervn...@googlegroups.com
On Wed, 18 Mar 2015 07:58:35 -0700 (PDT)
appma...@gmail.com wrote:

> Please see error message below
>
> [Domain\XXX@CRI-13-64 ~]$ sudo service vncserver start
> Starting VNC server: 2:Domain\XXX -bash: line 0: cd: ~DomainXXX: No
> such file or directory [FAILED]
>

Try changing:

runuser -l ${USER} -c \
"cd ~${USER} && vncserver :${DISP} ${VNCUSERARGS}"

to

runuser -l ${USER} -c \
"cd ~ && vncserver :${DISP} ${VNCUSERARGS}"

Rgds
--
Pierre Ossman Software Development
Cendio AB http://cendio.com
Teknikringen 8 http://twitter.com/ThinLinc
583 30 Linköping http://facebook.com/ThinLinc
Phone: +46-13-214600 http://plus.google.com/+CendioThinLinc

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
Reply all
Reply to author
Forward
0 new messages