This forum has been archived. All content is frozen. Please use KDE Discuss instead.
The Discussions and Opinions forum is a place for open discussion regarding everything related to KDE, within the boundaries of KDE Code of Conduct. If you have a question or need a solution for a KDE problem, please post in the apppropriate forum instead.

Can't get KDE to auto start w/ VNC Viewer

Tags: None
(comma "," separated)
mikee293
Registered Member
Posts
4
Karma
0
OS
For work I use VNC Viewer to remote login into a Solaris machine. I have been using CDE for some time before some other guys in my working group introduced me to KDE, which I really like.

The problem is that I can only get KDE to start by manually typing "startkde" from the unix command line, in which case it simply is "on top of" CDE (like another window) and so when I use alt+tab to toggle between windows I have to cycle through CDE and several annoying background dummy KDE windows. What I want is KDE to automatically start up instead of CDE when I launch my VNC viewer session.

In my /.vnc/xstartup file I have the line "startkde &" but it clearly isn't working since CDE launches by default. I've been trying to get kde to auto launch for a while now and I've been trying different things, including messing around with my ~/.DCOP* and ~/.ICEauthority files. I think the problem may be related to that, but the problem is that I don't know how to fix it.

There's another guy in my working group, and he has the same .vnc/xstartup and .vnc/config file, and it works perfectly for him. So there has to be some setting or file difference somewhere, but I'm just too much of a Unix noob to figure out what it is.

Any help?

Thanks a ton!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Having you tried changing the ~/.xinitrc file, or checking what the selection is currently for your user in the X Desktop Manager? (usually the login screen)


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
mikee293
Registered Member
Posts
4
Karma
0
OS
I currently don't have a ~/.xinitrc file in my home directory. I can't seem to find the system default one either. Where might I find it? Also, what should I put in there?

Thanks
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Simply placing the following in it should be enough:
Code: Select all
#!/bin/bash
startkde


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
mikee293
Registered Member
Posts
4
Karma
0
OS
That
bcooksley wrote:Simply placing the following in it should be enough:
Code: Select all
#!/bin/bash
startkde



That didn't work.

How do I attach a file? I have a log file from when I started my vnc server session that might be useful.

I also have a log file when I start kde manually. I have no problem starting kde manually, as long as I could get it to no appear as just another window on top of CDE. I want KDE to actually be my window manager, not just some application running in the foreground. That could also solve my problem indirectly.
mikee293
Registered Member
Posts
4
Karma
0
OS
Figured it out.

Turns out my "xstartup" file wasn't an executable, just a text file.

Did a "chmod +x xstartup" and problem solved.

That's frustrating but glas it's solved!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
For future reference, we normally ask that log files be posted on sites such as paste.kde.org then links to the paste posted here.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]