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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-23-2003, 02:11 PM
|
#1
|
Member
Registered: Jul 2003
Distribution: Fedora Core 5
Posts: 126
Rep:
|
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.
|
|
|
11-23-2003, 02:55 PM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Are you using kdm, gdm or xdm as your
graphical login manager?
Cheers,
Tink
|
|
|
11-23-2003, 02:58 PM
|
#3
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
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).
|
|
|
11-23-2003, 03:32 PM
|
#4
|
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:
|
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.
|
|
|
11-23-2003, 03:55 PM
|
#5
|
Member
Registered: Jul 2003
Distribution: Fedora Core 5
Posts: 126
Original Poster
Rep:
|
ok i created a .xinitrc in my home directory but how what do i enter into that file? Thanks
|
|
|
11-23-2003, 03:56 PM
|
#6
|
Member
Registered: Jul 2003
Distribution: Fedora Core 5
Posts: 126
Original Poster
Rep:
|
i have the default session manager that red hat uses. I could change it if i knew how :-p
|
|
|
11-23-2003, 10:06 PM
|
#7
|
Member
Registered: Jul 2003
Distribution: Fedora Core 5
Posts: 126
Original Poster
Rep:
|
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.
|
|
|
11-24-2003, 05:19 AM
|
#8
|
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:
|
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.
|
|
|
11-24-2003, 06:19 AM
|
#9
|
LQ Newbie
Registered: Nov 2003
Distribution: Mandrake 9.2
Posts: 8
Rep:
|
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
|
|
|
11-24-2003, 11:21 AM
|
#10
|
Member
Registered: Jul 2003
Distribution: Fedora Core 5
Posts: 126
Original Poster
Rep:
|
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 03:49 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|