LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Installing blackbox (https://www.linuxquestions.org/questions/linux-software-2/installing-blackbox-119227/)

Flak Pyro 11-23-2003 02:11 PM

Installing blackbox
 
I have Red hat 8 and I have downloaded Blackbox and am trying to figure out how to use it. I extracted the tar.gz to the root directory (I'm a real n00bs here so if it shouldn't go there let me know) then i went:
./configure
make
make install

That all went smoothly but now how do i use it? I think i am supposed to edit a file in the etc/X11/something (im at another PC right now so i cant check the exact path) anyway i found the file i was supposed to edit but i have no idea how do edit it (Where to enter the text) and i don't want Black box to be my default GUI anyway. I know i know next to nothing about linux but i can navigate the basic command line. Thanks for anyones help if i left any important info out let me know.

Tinkster 11-23-2003 02:55 PM

Are you using kdm, gdm or xdm as your
graphical login manager?


Cheers,
Tink

Mara 11-23-2003 02:58 PM

Do you boot to GUI or text mode? In both cases you may try the small trick:
1) Switch to console mode (ctrl+alt+f1), log in.
2) Edit your .xinitrc (in your home dir) and put 'blackbox' inside. Edit the file or use
echo blackbox >.xinitrc
3) Start X using 'startx' if you boot to text mode or 'startx -- :1' if you start in GUI. The difference is that the second command starts X using second display (ctrl+alt+f8, default is ctrl+alt+f7, you can switch between them).

J_Szucs 11-23-2003 03:32 PM

If you use kde, and kdm is your session manager, you can do this:

Find a line beginning like this in /opt/kde3/share/config/kdm/kdmrc:

SessionTypes=

Insert blackbox among other session types listed on that line.

If you use kde, but you do not know if you use kdm, you can still do as above; only it will not work if it turns out that xdm is your session manager.

Flak Pyro 11-23-2003 03:55 PM

ok i created a .xinitrc in my home directory but how what do i enter into that file? Thanks

Flak Pyro 11-23-2003 03:56 PM

i have the default session manager that red hat uses. I could change it if i knew how :-p

Flak Pyro 11-23-2003 10:06 PM

does it matter that i untared it to / ? I didnt think it mattered it compiled and make and make installed with no problems. I dont seem to have that file in my home directory so i made on but i dont know what to enter into it.

J_Szucs 11-24-2003 05:19 AM

It does not matter where you untared the tarball. I myself prefer to untar such files into /usr/local/, but this is only a matter of preference: I like to keep the / directory clean.

The 'make install' command must have taken care to copy (or symlink?) the blackbox binary to the right place.
The following command shows you where the blackbox binary has actually been installed:
which blackbox

I do not know what is the default session manager of Red Hat, since I use SuSe.
Anyway, it wont hurt if you do what I suggested before.
It is simply editing a specific file, which can be easily undone if you backup the original file previously.

valroth 11-24-2003 06:19 AM

I believe that Red Hat uses gdm as the default picker for your windows session.
The paths used below may not exactly match your system but should be real close.

First you'll need to edit /etc/X11/gdm/Xsession to include a case for blackbox. This is what will call blackbox. (note: it may be xdm, gdm, or kdm depending on your system)

There should be a section that looks like this:
Code:


case $# in
1)
    case $1 in
    failsafe)
        exec xterm -geometry 80x24-0-0
        ;;
    gnome)
        exec gnome-session
        ;;
    kde)
        exec startkde
        ;; 
    anotherlevel)
        # we assume that switchdesk is installed.
        exec /usr/share/apps/switchdesk/Xclients.anotherlevel
        ;;
    esac
esac

You'll want to add a case for blackbox.
Code:


case $# in
1)
    case $1 in
    failsafe)
        exec xterm -geometry 80x24-0-0
        ;;
    gnome)
        exec gnome-session
        ;;
    kde)
        exec startkde
        ;; 

    blackbox)       
        exec blackbox
        ;; 
[
    anotherlevel)
        # we assume that switchdesk is installed.
        exec /usr/share/apps/switchdesk/Xclients.anotherlevel
        ;;
    esac
esac

Once that's done you'll need to add blackbox to the actual drop down menu, this is done by placing a file in the /etc/X11/gdm/Sessions directory called Blackbox. That file will need to run Xsession with an argument for blackbox, you can copy the format of the other files in this directory and just change the argument to blackbox.

Should look something like:
$cat /etc/X11/gdm/Sessions/blackbox

#!/bin/sh
#
exec /etc/X11/gdm/Xsession blackbox


Hope this helps

Flak Pyro 11-24-2003 11:21 AM

i will give that a shot tonight when i get home. (at school now) let you know what happens


All times are GMT -5. The time now is 10:27 AM.