Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 11-16-2004, 04:38 PM   #1
Registered: Nov 2004
Location: London, UK
Distribution: CentOS, RHEL, Debian, IPCop, PS2Linux
Posts: 95

Rep: Reputation: 23
xvnc - make it default to kde not twm


I'm running a PS2 linux box and I'mvery new to linux.

I've got xvnc installed somehow and can connect to a remote desktop using my windows machine but the desktop always defaults to twm.

I'd like to change this to kde.

I understand that to do this I need to edit the file /root/.vnc/xstartup and replace the twm command on the last line with 'startkde'


xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & 
twm &
I do this and save the file. Kill that vnc server session and start it up again.
But when I login to the desktop from my windows machine I don't even get the twm menu anymore.
Just the grey background with a white terminal window.

Not KDE as I expected.

Looking at the xvnc server log for that session...

16/11/04 20:23:52 Xvnc version 3.3.3r2
16/11/04 20:23:52 Copyright (C) AT&T Laboratories Cambridge.
16/11/04 20:23:52 All Rights Reserved.
16/11/04 20:23:52 See for information on VNC
16/11/04 20:23:52 Desktop name 'X' (PS2:1)
16/11/04 20:23:52 Protocol version supported 3.3
16/11/04 20:23:52 Listening for VNC connections on TCP port 5901
16/11/04 20:23:52 Listening for HTTP connections on TCP port 5801
16/11/04 20:23:52   URL h t t p ://PS2:5801
xrdb: No such file or directory
xrdb: can't open file '/root/.Xresources'
/root/.vnc/xstartup: startkde: command not found
So it appears the startkde command isn't being found.

Anyone know what's going wrong?
I'm very new to linux so more detailed instructions would be greatly appreciated.

Thanks in advance

Old 11-18-2004, 04:53 PM   #2
Registered: Nov 2004
Location: London, UK
Distribution: CentOS, RHEL, Debian, IPCop, PS2Linux
Posts: 95

Original Poster
Rep: Reputation: 23

Ok I've sorted it now.

And made it so KDE is the default.

I had to add the path to startkde to my PATH whatever that means.

That's why the command startkde couldn't be found.

Here's what I did...
I added the following line underneath the #!/bin/sh

export PATH=$PATH:/usr/kde/bin

saved it, restarted and it works fine.

You will need to search for startkde first and replace the above path with whatever folder location the startkde file is in.




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
How to make KDE my default on CentOS kencl Linux - Newbie 4 11-13-2005 11:18 AM
QUERY: default wm fvwm replaced by twm? kevingpo Fedora 1 07-26-2005 07:45 PM
Why does my SUSE9.3 choose twm as default WINDOWMANGER? seawolf Linux - Newbie 3 05-03-2005 08:46 AM
How do I make KDE the default DM in FC3? GlennsPref Fedora 4 11-15-2004 06:12 PM
9.2 make KDE default?? c_olin3404 Mandriva 7 01-08-2004 07:10 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:46 PM.

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