VNC with GNOME? RHEnterprise3
Ive been chucked in at the deepend and Ive been given a box and an install for Red Hat Enterprise 3. I am a Windows man primarily, but need to get some hands on linux experience.
To make things easier for me, I ideally want to be able to use Linux on my Windows box, and Windows on my Linux box (I do not want to dual boot - for lots of reasons I wont go into). The easiest way I thought would be to use VNC. I have setup a VNC server on my Windows PC - and can access it from Linux no problem. The problem comes from trying to do the opposite. I start a VNC server on my linux box like this: vncserver -rfbport 5900 (the two boxes are on different networks, and our firewall only passes default VNC port [not had time to investigate SSH tunnelling yet!]) On my windows box when I vnc - i get TWM not GNOME. I have edited my $HOME/.vnc/xstartup file to the following: #!/bin/sh # Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER # exec /etc/X11/xinit/xinitrc [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources #xsetroot -solid grey #vncconfig -iconic & #xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & gnome-start & Now i just get a black screen on starting a VNC session from the Windows box. Anyone have any ideas where Im going wrong? Cheers Ben |
I had problems like this when I set up my Red Hat for VNC. The answer is staring you in the face. At least, it was the answer for me:
Quote:
Code:
#!/bin/sh |
Thanks for replying,
I made the changes as you suggested just left the two lines uncommented - but unforunately it gets me no further. Upon restarting the vncserver, I still just get a black screen. Cheers Ben |
I have tried editing the xstartup file with various combinations - just commenting out the top two lines does result in getting a VNC connection, but using TWM. As soon as the top two lines are added however, I just get a black screen.
When my box boots, it boots into Gnome as default. Cheers Ben |
Ok, what's your xinitrc like. What are the permissions for it?
Code:
$ ls -l /etc/X11/xinit/xinitrc If that doesn't fix it, I can post the contents of mine for comparison. |
Thanks for taking the time dark.
Im away from work now until possibly friday - and with the linux box being behind the firewall, I don't think I can ssh to it from here! Ill post the details as soon as I get them! Cheers Ben |
Any luck?
|
Sorry for late update - only just got access to my box again today - got awful windows exchange problems happening in the background too! - Quite eager to escape into Linux at the moment =)
-r--r--r-- 1 root root 2189 May 25 09:27 /etc/X11/xinit/xinitrc I haven't really had any experience on Linux side with permissions yet - i understand, the first column is root permissions - the 2nd my account permissions? - whats the third? Is this likely to cause problems being read only? Anyway, heres my xinitrc file. Code:
#!/bin/sh |
Hi!
Had the same problem! You should change the mod on ../.vnc/xstartup ! do: # chmod a+x xstartup ;) storole |
Thanks very much that has solved my problem!
Cheers Ben |
Just wanted to put in my thanks. This thread fixed my problems also!!!!
|
Its a great place to get some friendly advice!
|
sorry to bring up an old subject but I'm experiencing the same problem on RHEL3 and this seemed like the best thread to add to, although ive seen various similar ones all over the place, none of which have completely helped solve my problem with this blasted black screen.
After installing vnc for linux, run vncserver for the first time as the chosen user who I want allow vnc connections to the machine. This allows me to choose a password as well as create the default settings for that user. I then did the following: Code:
chmod a+x ~/.vnc/xstartup Code:
#!/bin/sh Somewhere else i saw advice to create a local ~/.xinitrc as something like this: Code:
echo "/usr/X11R6/bin/startx" >> ~/.xinitrc I noticed that somewhere along the way it appears like my ~/.Xclients file is being called, which then tries to call a specific client file, and if not found, it will default to use the file ~/.Xclients-default which I had to generate (I dont know why it wasnt already there) so i did this: Code:
echo "exec /usr/X11R6/bin/startx" > .Xclients-default Quote:
|
so I just stumbled upon my own solution. I changed ~/.Xclients-default file like this:
Code:
rm -f ~/.Xclients-* |
All times are GMT -5. The time now is 05:23 AM. |