PDA

Click to See Complete Forum and Search --> : OpenBSD trick


sweet_angel
February 8th, 2003, 09:09 PM
Hi guys/gals,

I was playing with command in shell terminal last night for OpenBSD and I found this trick (by myself I don't know if you can find that in google) "How to change KDE/GNOME/BLACKBOX,etc for your OpenBSD as your default desktop"

1.Yes...you need to install KDE/GNOME/BLACKBOX,etc.
2. login as root and then type "whereis startkde" or "whereis gnome-session" or "whereis blackbox" ,etc..
In my OpenBSD box came up like this:
# whereis startkde
#/usr/local/bin/startkde

2. And then edit your ".profile", you will find something like this :
PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH
HOME=/root
Look in your "PATH" section and then add /usr/local/bin/startkde (you can do same thing to gnome,blackbox,etc)
3.The last thing is.. I've done this one:
# echo "/usr/local/bin/startkde" > ~/.xinitrc (you can do samething for gnome,etc..)

And then reboot, after that type startx and you will find KDE/GNOME,etc as your default desktop..

I hope this helps


ps: If I posted this one in wrong forum somebody please tell me, I will delete it ASAP and BTW I am not really sure if this one tutorial...cause only short one)

phishphreek
February 8th, 2003, 09:30 PM
Sweet! Its phun finding stuff out for yourself, huh?

I'm not sure if it works in OpenBSD, but in Red Hat, you can just type

switchdesk
or
switchdesk kde
or
switchdesk gnome
from any console. If you are in X at the time, you have to logout of X then back in, if not, then the next time you login, it will change for you.

sweet_angel
February 8th, 2003, 09:38 PM
code:switchdesk


or

code:switchdesk kde


or

code:switchdesk gnome


from any console

Yupe that one working only for Linux and not working for OpenBSD (this one works only for OpenBSD and for FreeBSD different too) but thanks phis I copied that command

Cheerss

bludgeon
February 8th, 2003, 10:05 PM
I always skip the whole echo command and just edit .xinitrc to say startkde etc..

ammo
February 8th, 2003, 10:52 PM
Yeah, that works. I believe I've seen it documented somewhere but I don't have a reference at hand...

BTW, you only needed to edit your path because you were running as root... (the # and the HOME=root give it up ;) ) normal users (non root) already have /usr/local/bin in their path...


Ammo