LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-23-2003, 02:11 PM   #1
Flak Pyro
Member
 
Registered: Jul 2003
Distribution: Fedora Core 5
Posts: 126

Rep: Reputation: 15
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.
 
Old 11-23-2003, 02:55 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Are you using kdm, gdm or xdm as your
graphical login manager?


Cheers,
Tink
 
Old 11-23-2003, 02:58 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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).
 
Old 11-23-2003, 03:32 PM   #4
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
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.
 
Old 11-23-2003, 03:55 PM   #5
Flak Pyro
Member
 
Registered: Jul 2003
Distribution: Fedora Core 5
Posts: 126

Original Poster
Rep: Reputation: 15
ok i created a .xinitrc in my home directory but how what do i enter into that file? Thanks
 
Old 11-23-2003, 03:56 PM   #6
Flak Pyro
Member
 
Registered: Jul 2003
Distribution: Fedora Core 5
Posts: 126

Original Poster
Rep: Reputation: 15
i have the default session manager that red hat uses. I could change it if i knew how :-p
 
Old 11-23-2003, 10:06 PM   #7
Flak Pyro
Member
 
Registered: Jul 2003
Distribution: Fedora Core 5
Posts: 126

Original Poster
Rep: Reputation: 15
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.
 
Old 11-24-2003, 05:19 AM   #8
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
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.

Last edited by J_Szucs; 11-24-2003 at 05:23 AM.
 
Old 11-24-2003, 06:19 AM   #9
valroth
LQ Newbie
 
Registered: Nov 2003
Distribution: Mandrake 9.2
Posts: 8

Rep: Reputation: 0
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
 
Old 11-24-2003, 11:21 AM   #10
Flak Pyro
Member
 
Registered: Jul 2003
Distribution: Fedora Core 5
Posts: 126

Original Poster
Rep: Reputation: 15
i will give that a shot tonight when i get home. (at school now) let you know what happens
 
  


Reply


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
installing blackbox colonelbob Linux - Software 3 07-10-2004 10:15 PM
installing blackbox on cygwin acidbreez Linux - Software 1 12-22-2003 08:31 PM
installing a blackbox on redhat 8? sephilos Linux - Software 1 11-24-2002 10:37 PM
Installing BlackBox Eits0 Linux - General 28 06-28-2002 06:45 PM
Installing Blackbox on mandrake 8.1 Help. Joshman Linux - Distributions 2 04-04-2002 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:49 AM.

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