You are not logged in.

#1 2010-07-08 02:06:40

Madbunny
Member
Registered: 2010-07-07
Posts: 19

TightVNC - Can't open programs on remote session

Hi All,

I'm a Linux newbie and have a problem I can't seem to solve. The other day I installed tightvnc and have a server which runs on startup. I have added the following line to /etc/inittab:

vn:35:once:sudo su - brian -c "vncserver :1 -name Brian  -depth 24 -geometry 1280x600"

I also have the following in my xstartup file

#!/bin/sh

#xrdb $HOME/.Xresources
#xsetroot -solid grey
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
xhost +localhost &
exec startxfce4 &

I am using UltraVNC on Windows 7 to remote into my arch box and I manage to get the XFCE4 desktop. The problem lies in trying to open programs on my remote session. If I click on the terminal shortcut, nothing happens. Same with Firefox etc.. I attempted to right click then execute and still no go.

However, I am able to click the filesystem icon and it will open. Also, I can click on logoff and shutdown no problems.

Any ideas?

Offline

#2 2010-07-08 08:02:21

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: TightVNC - Can't open programs on remote session

I use tightvnc as well, but I start it a bit differently (I don't think this is your problem).  Have you seen the tightvnc wiki article?  I updated it a while ago with the method that I use.

Anyway, I don't think the & mark is needed in your ~/.vnc/xstartup

$ cat ~/.vnc/xstartup 
#!/bin/sh
xrdb $HOME/.Xresources
export XKL_XMODMAP_DISABLE=1
#exec ck-launch-session startxfce4
exec ck-launch-session startlxde

I dunno why your mouse isn't working properly if it's not something in that file.

Last edited by graysky (2010-07-08 08:05:33)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2010-07-08 10:50:55

Madbunny
Member
Registered: 2010-07-07
Posts: 19

Re: TightVNC - Can't open programs on remote session

It's not my mouse that isn't working. As I said, I simply can't run programs. I can open other things though.

Below is the error I noticed in my vnc log file.

AUDIT: Thu Jul  8 18:22:00 2010: 1979 Xvnc: client 10 rejected from local host
Client is not authorized to connect to Serverexo-open: Cannot open display: .

Offline

#4 2010-07-08 20:36:13

Madbunny
Member
Registered: 2010-07-07
Posts: 19

Re: TightVNC - Can't open programs on remote session

Surely someone has a solution for this sad

Offline

#5 2010-08-15 17:43:20

DnF
Member
Registered: 2010-08-15
Posts: 19

Re: TightVNC - Can't open programs on remote session

Same problem here. I was trying everything found on google, but nothing helped. It was pain to get it work with xfce at all, but then I was completely stuck.
We have fixed it by adding our user to several groups like http, video, users, wheel, network ...
I'm not sure which one helped, I'm using it on local network only.

GL.

Offline

#6 2010-08-15 18:13:37

shedyed
Member
Registered: 2010-08-06
Posts: 3

Re: TightVNC - Can't open programs on remote session

Remove the very last ampersand where the exec line is, that way the window manager will start accepting input

Last edited by shedyed (2010-08-15 18:14:37)

Offline

#7 2010-08-16 14:43:03

hitsmaxft
Member
From: guangzhou
Registered: 2010-06-02
Posts: 13
Website

Re: TightVNC - Can't open programs on remote session

Try tigervnc in aur instead, it's better

Offline

Board footer

Powered by FluxBB