LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   vnc on FC5 want kde desktop - first question (https://www.linuxquestions.org/questions/linux-software-2/vnc-on-fc5-want-kde-desktop-first-question-464606/)

taylorkh 07-16-2006 02:17 PM

vnc on FC5 want kde desktop - first question
 
Just registered with this site today and was invite - "Why not make your first post today by introducing yourself in our LQ Member Intro forum or asking your first question." Nice touch. Thanks! I cannot find the "Member Intro forum" so I guess I will have to ask a question. And, yes I have searched for the answer, found the "answer" here and several other places, applied the answer and still have the issue...

I am connecting from an XP box to a newly installed Fedora Core 5 box (taylor9) with vnc. I have the Xvnc server installed and running on the FC5 box, vncpasswd set etc. The XP vnc client connects like a dream to the gnome desktop over my 100MB network. My default desktop at the FC5 console is kde. So, I have edited my .vnc/xstartup thusly:

#!/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 &
startkde &

restarted the vncserver successfully and connect to the gnome desktop!

I have tried commenting various combinations of lines in this file and have only managed to get an occasional gnome error message when I first connect.

The service vncserver restart command (as root) produces the following log results:

Sun Jul 16 15:07:09 2006
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!
SESSION_MANAGER=local/taylor9:/tmp/.ICE-unix/3732
Window manager warning: Log level 32: could not find XKB extension.

** (nm-applet:3787): WARNING **: <WARNING> nma_dbus_init (): nma_dbus_init() could not acquire its service. dbus_bus_acquire_service() says: 'Connection ":1.67" is not allowed to own the service "org.freedesktop.NetworkManagerInfo" due to security policies in the configuration file'

Despite the warning, gnome connects fine from the XP vnc client. So, I must be missing something. Any advice greatly appreciated.

Regards,

Ken Taylor

taylorkh 07-16-2006 06:17 PM

Well, looks like I solved my own problem. Not sure how/why... Found another related thread and based on the discussion did the following:

Installed switchdesk
Ran switchdesk kde
Restarted vncserver

Now I have kde!

I guess that switchdesk stored my preference some place that vnv could find and the session changer at FC5 logon did not.

randyding 07-16-2006 11:32 PM

I'm guessing the switchdesk program probably edits the file "~/.Xclients".
This is a file that looks like this...
Code:

#!/bin/sh

# To switch between KDE and Gnome
# uncomment one of the following
# and place this file in ~/.Xclients

# exec /usr/bin/startkde
# exec /usr/bin/gnome-session



All times are GMT -5. The time now is 11:41 PM.