Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hy everyone!
I want to use KDE under FreeBSD 5.3 but when I "startx" the default xterm window manager starts. I want KDE to be default but it seems I can't find the right file to make the change (probably add "startkde" instead of some line/lines in the script). Can anyone tell me where can I find this file and what is it's name?
Alex.

You can launch kde with startx the same as you would in Linux, except in FreeBSD you have to create the file that the startx script reads to launch your default desktop.
Most Linux distros, not all, create that file for you.The name of the file is .xinitrc, and should be created in your home file. Because it's not there by default, the startx script falls back on the xinitrc file, located in /usr/X11R6/lib/X11/xdm, which starts X with a couple of xterms.
To create the file in your home directory that will start your desktop preference, use an echo command with a redirect, from within your home directory (you will be located in your home directory by default when you login):
echo "{desktop/wm}" > .xinitrc
So, in your case:
echo "startkde" > .xinitrcor
echo "/usr/local/bin/startkde" > .xinitrc
-------------Remember to include the period before the file name.
You can also change the name of the file that the startx scripts seraches for in your home directory by editing this line in /usr/X11R6/bin/startx as root:
userclientrc=$HOME/.xinitrc
Just change .xinitrc to any file name you want, then create that file in your home directory.
Regards,
unixhead

I'm sorry. I meant to say that the startx script falls back on the xinitrc file, located
in "/usr/X11R6/lib/X11/xinit".

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |