LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-20-2014, 05:27 PM   #1
cyberdome
Member
 
Registered: Mar 2014
Distribution: Fedora 23 - MariaDB 10.1 -
Posts: 130
Blog Entries: 2

Rep: Reputation: 8
VNC viewer showing black screen. unable to connect VNC server remotely on the server?


Hello everyone,


I am running Fedora 20. On my windows 8.1 machine when I run VNC client to connnect to my Fedora server. All I am getting is a black screen with the small sqare for the mouse cursor. Tried looking online for a solution. unable to get solution.

I did run the command yum groupinstall basic desktop.

still getting blank screen. started vncserver in fedora, I am running GNOME and KDE. I installed vnc-server using YUM. I installed KDE later. Also, it was working perfectly before. And now just getting a black screen.

vncserver:1 not working. below is my xstartup file.

Code:
#!/bin/sh

unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
OS=`uname -s`
if [ $OS = 'Linux' ]; then
  case "$WINDOWMANAGER" in
    *gnome*)
      if [ -e /etc/SuSE-release ]; then
        PATH=$PATH:/opt/gnome/bin
        export PATH
      fi
      ;;
  esac
fi
if [ -x /etc/X11/xinit/xinitrc ]; then
  exec /etc/X11/xinit/xinitrc
fi
if [ -f /etc/X11/xinit/xinitrc ]; then
  exec sh /etc/X11/xinit/xinitrc
fi
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
startkde &

I am not sure as to what I am doing wrong?

any help is greatly appreciated.

Last edited by cyberdome; 04-20-2014 at 07:05 PM.
 
Old 08-01-2014, 09:21 AM   #2
devdol
Member
 
Registered: Dec 2005
Distribution: debian (testing/unstable)
Posts: 68

Rep: Reputation: 17
Well now, any help: I had somewhat similar problems for a long time - a tiny twm desktop via vnc, but any KDE application would only start with long delays an lot of errors if started from the commandline;
Code:
 Error: Can not contact kdeinit4!
being one of the significant hints.

It turned out that my xstartup file, where I spent a long time to searching for improvements, was not the issue at all. Instead, the way you start your vncserver is relevant:

As KDE4 is designed to run only as single instance on a given PC and for a given user, any KDE application needs contact to that first instance (on the local desktop). They will only reach it if you start your vncserver process by "dbus-launch vncserver"!

Good luck, as it may help in your case, too.

Last edited by devdol; 08-01-2014 at 09:23 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
vnc viewer showing only grey screen with 3 checkboxes texasj Linux - Newbie 10 04-20-2020 01:20 PM
Unable to connect Vnc server. robinselvam Linux - Software 1 01-08-2014 09:39 AM
VNC Viewer shows me a black screen when i am connected. morrison71 Red Hat 1 11-07-2013 10:27 AM
unable to connect to server thru vnc... marvc Linux - Software 0 05-25-2003 07:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:04 AM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration