LinuxQuestions.org
Social Bookmarking all things Linux and Open Source
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Thread Tools
Old 09-13-2007, 06:06 PM   #1
lrolstad
LQ Newbie
 
Registered: Sep 2006
Posts: 17
Thanked: 0
VNC Grey screen


[Log in to get rid of this advertisement]
Hi,

I have googled for several hours now. I find many articles about the same problem but none of them can help me. Getting really tired of looking at that lame google banner :P

Anyway im hoping that someone her can help me in my never ending search to remote desktop to my linux computer.

When i log in to my linux computer from XP, i get this beutiful grey screen without terminal.

I have edited my .vnc/xstartup file, i have added startkde & at the bottom,
Most of the articles i read said that this would fix it.

Code:
#!/bin/sh

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

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
startkde &
This is my the code in my xstartup file.

I really hope some one her can help me, as far as i can understand many people have been having the same problem before me.

Thx.
LRolstad
lrolstad is offline     Reply With Quote
Old 09-13-2007, 07:50 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware 12.1, Slackware 13.0
Posts: 3,788
Thanked: 20
The only times I've seen that problem, either the ~/.vnc/xstartup file didn't have the execute bit set (e.g. permissions 0750) or the /home partition was mounted noexec. Can you manually execute xstartup?

Apart from that, how are you starting the VNC server? Are there any errors in the log (usually in ~/.vnc/*log)?
gilead is offline     Reply With Quote
Old 09-14-2007, 01:02 AM   #3
lrolstad
LQ Newbie
 
Registered: Sep 2006
Posts: 17
Thanked: 0

Original Poster
I am going to test a bit later to day, when i come back from work.

Could the problem be that i installed my Box from a live cd? My computer dosent have a dvd-rom so i had to do it by cd.

Last edited by lrolstad; 09-14-2007 at 01:04 AM..
lrolstad is offline     Reply With Quote
Old 09-14-2007, 09:39 AM   #4
lrolstad
LQ Newbie
 
Registered: Sep 2006
Posts: 17
Thanked: 0

Original Poster
I think my motherboard just died, thats how far i got with my linux server :P
lrolstad is offline     Reply With Quote
Old 09-14-2007, 02:59 PM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware 12.1, Slackware 13.0
Posts: 3,788
Thanked: 20
Ouch! Good luck with that - but please let us know how you go with VNC once you get the box up again.
gilead is offline     Reply With Quote
Old 02-29-2008, 02:35 PM   #6
khalil_noura
LQ Newbie
 
Registered: Feb 2008
Posts: 7
Thanked: 0
Hello,

I am having the same problem. This is what I am getting in the log:


SSH Secure Shell 3.2.9 (Build 283)
Copyright (c) 2000-2003 SSH Communications Security Corp - http://www.ssh.com/

This copy of SSH Secure Shell is a non-commercial version.
This version does not include PKI and PKCS #11 functionality.


Last login: Fri Feb 29 11:27:28 2008 from training10.currynet.local
[root@LinuxTest ~]# ls -a
. .dmrc .ICEauthority .tcshrc
.. .eggcups install.log .Trash
anaconda-ks.cfg .gconf install.log.syslog .twmGWdkLm
.bash_history .gconfd .metacity .viminfo
.bash_logout .gnome .mozilla .vnc
.bash_profile .gnome2 .nautilus .Xauthority
.bashrc .gnome2_private .recently-used.xbel .xsession-errors
.cshrc .gstreamer-0.10 .redhat
Desktop .gtkrc-1.2-gnome2 .systemtap
[root@LinuxTest ~]# cd .vnc
[root@LinuxTest .vnc]# vi xstartup
#!/bin/sh

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

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
~
~
~
~
~
~
~
~
~
~
~
[root@LinuxTest .vnc]# ls -a
. LinuxTest:1.log LinuxTest:2.log passwd
.. LinuxTest:1.pid LinuxTest:2.pid xstartup
[root@LinuxTest .vnc]# vi Linextest:2.log

~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
[root@LinuxTest .vnc]# ls
LinuxTest:1.log LinuxTest:2.log passwd
LinuxTest:1.pid LinuxTest:2.pid xstartup
[root@LinuxTest .vnc]# vi LinuxTest:2.log

Xvnc Free Edition 4.1.2
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Underlying X server release 70101000, The X.Org Foundation


Fri Feb 29 10:23:33 2008
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5902
vncext: Listening for HTTP connections on port 5802
vncext: created VNC server for screen 0
Could not init font path element /usr/share/X11/fonts/OTF, removing from list!
Could not init font path element /usr/share/X11/fonts/CID/, removing from list!

Fri Feb 29 10:50:22 2008
HTTPServer: getting / for 192.168.1.95
HTTPServer: completed HTTP request

Fri Feb 29 10:50:23 2008
HTTPServer: getting /favicon.ico for 192.168.1.95
HTTPServer: completed HTTP request

"LinuxTest:2.log" 60L, 2055C
khalil_noura is offline     Reply With Quote
Old 09-20-2009, 02:07 AM   #7
Augusst
LQ Newbie
 
Registered: Sep 2009
Posts: 2
Thanked: 0
I had the same issue with VNC running on an VPS and I fixed by simply changing the .vnc/xstartup file from (without the quotes):

"#!/bin/sh

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

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &"

To simply:

"#!/bin/sh

startkde &"

At first I tried leaving the initial code and adding this last one under the last line (x-window-manager &) although it was taking much longer to start and after a few restarts it would even start again.

With this short code it starts fast and smooth.

Hope this helps
macos Augusst is offline     Reply With Quote
Old 09-21-2009, 07:50 AM   #8
khalil_noura
LQ Newbie
 
Registered: Feb 2008
Posts: 7
Thanked: 0
After you edit your xstartup file. stop/restart vnc services.
Sorry I am not at work today otherwise I would have sent you a link to a documnetated method that fixed my problem.

Last edited by khalil_noura; 09-21-2009 at 07:52 AM..
windows_xp_2003 khalil_noura is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting to VNC server gives me grey screen Micro420 Ubuntu 0 08-18-2006 09:56 PM
VNC - the screen is a grey checked color rwtreke Linux - Newbie 1 02-01-2005 05:16 PM
Grey desktop connecting to VNC server paulsh2k4 Linux - Software 12 01-28-2005 05:12 AM
xstartup configured, Vnc still only loads grey screen on boot. DeTHZiT Linux - Software 8 09-05-2004 12:45 PM
Grey screen when trying to VNC to Gnome In2Deep General 7 02-05-2004 06:01 AM


All times are GMT -5. The time now is 05:03 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration