LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   blackbox help (https://www.linuxquestions.org/questions/linux-newbie-8/blackbox-help-79228/)

usman 08-05-2003 11:55 AM

blackbox help
 
i new to linux .. and i am using RH 8.0 .. now i installed blackbox window manager successfully .. eveything went ok .. now that its installed .. how do i shift from kde to blackbox ??? or whtever .. wht do i do now to use blackbox ?

redhax8 08-05-2003 04:46 PM

Try editing .xinitrc (notice the dot in front of it) in your home directory.

If there is a line
startkde
then comment it out by putting a # in front of it.
Then add
exec blackbox
as the last line.

Hope this helps

usman 08-06-2003 09:55 AM

i cant seem to find that dir in my root .. ???

killi 08-06-2003 10:28 AM

go to /etc/X11/xinit/
and edit xinitrc or xinitrc.kde and change from startkde to exec blackbox

usman 08-06-2003 11:05 AM

ok .. i am sorry i am pasting the whole thing here .i already habe gnome and kde installed .. so i think i'll making changes in Xclients file
so here is my file and made a few changes take a look at it and please help me out here .


[root@localhost xinit]# cat Xclients
#!/bin/bash
# Copyright 1999 - 2001 Red Hat, Inc.
# License: GNU General Public License v2

# check to see if the user has a preferred desktop
PREFERRED=
if [ -f /etc/sysconfig/desktop ]; then
. /etc/sysconfig/desktop
if [ "$DESKTOP" = "GNOME" ]; then
PREFERRED=gnome-session
elif [ "$DESKTOP" = "KDE" ]; then
# PREFERRED=startkde
exec blackbox
elif [ "$DESKTOP" = "WINDOWMAKER" ]; then
PREFERRED=wmaker
fi
fi

if [ -n "$PREFERRED" ] && which $PREFERRED >/dev/null 2>&1; then
PREFERRED=`which $PREFERRED`
exec $PREFERRED
fi

# now if we can reach here, either no desktop file was present,
# or the desktop requested is not installed.

if [ -z "$PREFERRED" ]; then

GSESSION=gnome-session
# STARTKDE=startkde
STARTKDE = blackbox
# by default, we run GNOME.
if which $GSESSION >/dev/null 2>&1; then
exec `which $GSESSION`
fi

# if GNOME isn't installed, try KDE.
if which $STARTKDE >/dev/null 2>&1; then
exec `which $STARTKDE`
fi
fi

# Failsafe.

# these files are left sitting around by TheNextLevel.
rm -f $HOME/Xrootenv.0
rm -f /tmp/fvwmrc* 2>/dev/null

# First thing - check the user preferences
if [ -f $HOME/.wm_style ] ; then
WMSTYLE=`cat $HOME/.wm_style |tr A-Z a-z`
case "$WMSTYLE" in
afterstep|windowmaker|mmaker)
exec /usr/X11R6/bin/RunWM --WindowMaker
;;
fvwm95|fvwm|fvwm2)
exec /usr/X11R6/bin/RunWM --Fvwm95
;;
mwm|lesstif)
exec /usr/X11R6/bin/RunWM --FvwmMWM
;;
esac
fi

# Argh! Nothing good is installed. Fall back to fvwm2 (win95-style) or twm
/usr/X11R6/bin/RunWM --Fvwm95 || {
# gosh, neither fvwm95 nor fvwm2 is available;
# fall back to failsafe settings
xclock -geometry 100x100-5+5 &
xterm -geometry 80x50-50+150 &
if [ -f /usr/bin/mozilla -a -f /usr/share/doc/HTML/index.html ]; then
mozilla /usr/share/doc/HTML/index.html &
fi
if [ -f /usr/X11R6/bin/fvwm ]; then
exec fvwm
else
exec twm
fi
}

killi 08-06-2003 11:54 AM

there is a prog in red hat dont remember the prog
havent tried red hat

redhax8 08-07-2003 11:10 AM

In your home directory create a file named
.xinitrc
The only line that has to be there is
exec blackbox


All times are GMT -5. The time now is 01:38 AM.