PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > vncserver and wrong xinitrc permissions
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

vncserver and wrong xinitrc permissions

Réponse
 
LinkBack Outils de la discussion
Vieux 10/03/2007, 16h50   #1
Marco De Vitis
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut vncserver and wrong xinitrc permissions

Hi,
I installed the vnc4server package on Etch. When launching vncserver, I
want to get a "normal" desktop environment, so I uncommented the two
lines in the ~/.vnc/xstartup file which is automatically created:

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

But anyway, all I got was the typical grey screen with the X mouse pointer.
I looked at the vncserver log, and the error reported was:

/username/.vnc/xstartup: line 5: /etc/X11/xinit/xinitrc: Permission denied
/username/.vnc/xstartup: line 5: exec: /etc/X11/xinit/xinitrc: cannot
execute: Success

Indeed, the /etc/X11/xinit/xinitrc file did not have any executable bit
set by default. I did a "chmod +x" on it, and now vncserver works fine.

What I'm wondering now is:

1. How is it that I also have a Sarge machine where the same file is NOT
executable, and vncserver works fine anyway? The xinitrc file is called
from ~/.vnc/xstartup exactly like in Etch, but of course vncserver is
version 3 instead of 4.

2. is it a bad thing having an executable xinitrc?

Any ideas?
Thanks.

--
Ciao,
Marco.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 10/03/2007, 21h00   #2
Liam O'Toole
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: vncserver and wrong xinitrc permissions

On Sat, 10 Mar 2007 16:21:48 GMT
Marco De Vitis <starless@spin.it> wrote:

> Hi,
> I installed the vnc4server package on Etch. When launching vncserver,
> I want to get a "normal" desktop environment, so I uncommented the
> two lines in the ~/.vnc/xstartup file which is automatically created:
>
> # Uncomment the following two lines for normal desktop:
> unset SESSION_MANAGER
> exec /etc/X11/xinit/xinitrc
>
> But anyway, all I got was the typical grey screen with the X mouse
> pointer. I looked at the vncserver log, and the error reported was:
>
> /username/.vnc/xstartup: line 5: /etc/X11/xinit/xinitrc: Permission
> denied /username/.vnc/xstartup: line 5: exec: /etc/X11/xinit/xinitrc:
> cannot execute: Success
>
> Indeed, the /etc/X11/xinit/xinitrc file did not have any executable
> bit set by default. I did a "chmod +x" on it, and now vncserver works
> fine.
>
> What I'm wondering now is:
>
> 1. How is it that I also have a Sarge machine where the same file is
> NOT executable, and vncserver works fine anyway? The xinitrc file is
> called from ~/.vnc/xstartup exactly like in Etch, but of course
> vncserver is version 3 instead of 4.
>
> 2. is it a bad thing having an executable xinitrc?
>
> Any ideas?
> Thanks.
>


In my ~/.vnc/xstartup file I put the line

exec sh /etc/X11/xinit/xinitrc

Thus I avoided the need to change the permissions of a system file.

--

Liam


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 11/03/2007, 07h50   #3
Kamaraju S Kusumanchi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: vncserver and wrong xinitrc permissions

Marco De Vitis wrote:

> Hi,
> I installed the vnc4server package on Etch. When launching vncserver, I
> want to get a "normal" desktop environment, so I uncommented the two
> lines in the ~/.vnc/xstartup file which is automatically created:
>


I use kde. To get the usual KDE session inside a vnc session, I have

$cat /home/rajulocal/.vnc/xstartup
#!/bin/sh

startkde &

$ls -al /home/rajulocal/.vnc/xstartup
-rwxr-xr-x 1 rajulocal rajulocal 385 2007-03-08
13:44 /home/rajulocal/.vnc/xstartup

hth
raju

--
Kamaraju S Kusumanchi
http://www.people.cornell.edu/pages/kk288/
http://malayamaarutham.blogspot.com/


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 23h52.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10921 seconds with 11 queries