Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
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-03-2002, 12:01 PM
|
#1
|
LQ Newbie
Registered: Oct 2002
Location: New Windsor, NY
Distribution: Red Hat, Slackware, Smoothwall, Fedora, Mandrake, *BSD
Posts: 20
Rep:
|
This worked in RH 7.0, but NG in 8.0?
We're replacing some old PII boxes Running RH 7.0 with new P4 laptops, Running Win 2K/RH 8.0. dual boot)
The RH systems have one purpose in life -- to allow unfettered Web access (via cable modem/80211b -- which works GREAT in RH 8.0!) for the purpose of downloading IA tools to a zip drive, to be used in a Lab environment.
The old RH 7.0 systems were set up (via /etc/profile) to allow all but a selected few users access to NOTHING but their home directories (which was /mnt/zip, and Netscape (which launched upon login). After the user exited Netscape, the zip cartridge ejected and the user was logged out.
It seems I can make NONE of this happen in RH 8.0! I can't make /mnt/zip ANYONE's home dir, and trying to launch ANYTHING upon login results in gconf errors, xsession errors, or no keyboard response, should I actually get the browser to launch.
I've tried this in /etc/profile, ~/.bash_profile, xinitrc, Xresources, with default levels of both 3 and 5
I'm using GNOME as the default GUI, and Mozilla as the browser. (I've also tried this with Galeon, to no avail).
Any secrets/insights? 
|
|
|
11-03-2002, 03:45 PM
|
#2
|
Member
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538
Rep:
|
hmm.... the home directories are specified in /etc/passwd, see if you can do anything w/ that.
I think that you can tell gnome what to open when it starts... can't you?
if not, try putting a line like this in ~/.xinitrc :
exec netscape &
******************** before it calls gnome
Are any of the systems still running rh7? if yes, browse around and see how it is configured (groups, logon, whatever). I can't think of how to make it eject and logoff when you close netscape, but there must be a way to do it.
-Adam
|
|
|
11-03-2002, 05:08 PM
|
#3
|
LQ Newbie
Registered: Oct 2002
Location: New Windsor, NY
Distribution: Red Hat, Slackware, Smoothwall, Fedora, Mandrake, *BSD
Posts: 20
Original Poster
Rep:
|
Eject & logoff are/were the easy part -- just a couple of lines at the end of ~/.bash_profile.
Mounting the zip as home dir, I've just about given up on.
the old /etc/passwd file has nothing unusual in it . . . the home dir portion of each line simply says /mnt/zip . The app launch and logout commands are in /etc/profile, with an if/fi clause to determine whether to run the netscape/logout script, depending on who's logging in.
I figured using ~/.bash_profile would be cleaner.
I'd also discovered that the gnome desktop launches AFTER the
mozilla &
line.
If I can only get the browser to automatically launch SOMEHOW. I can work around the rest. Also, I've tried other GUI apps (just for comparison purposes -- Office Org apps, Galeon . . . no change).
So, what I need is a way to tell GNOME to launch an application automatically once it's up, and then to pass control back to ~/.bash_profile.
Or someting close enough to that.
What's REALLY frustrating is that having an app launch automatically is soooo easy in That-operating-system-which-shall remain-nameless -- howcum evidently not so anymore in RH?????
|
|
|
11-03-2002, 05:31 PM
|
#4
|
Member
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538
Rep:
|
that's right... the "exec mozilla &" should appear before the "exec gnome" in .xinitrc.
I don't use gnome, but I though that there was a "startup" folder in there just like that one other os :-)
If the home dir is /mnt/zip, you could put something like this in ~/.bash_profile
if [ -z $(mount | grep /mnt/zip) ]; then
mount /dev/zip /mnt/zip
endif
that'll check if /mnt/zip is in the output of mount, and if not... it'll mount it. (replace /dev/zip by whatever it's real device name is)
|
|
|
11-04-2002, 01:27 PM
|
#5
|
LQ Newbie
Registered: Oct 2002
Location: New Windsor, NY
Distribution: Red Hat, Slackware, Smoothwall, Fedora, Mandrake, *BSD
Posts: 20
Original Poster
Rep:
|
using ~/.xinitrc yields the same results -- the browser launches, but with no title bar or kybd response.
I can get app to launch via Start Here/preferences/extras/session
but then ~/.bash_profile loses control of the system and exiting the browser returns the user to the desktop.
And, here's an excerpt from the original RH 7.0 /etc/profile: (Default Run Level is 3)
if [ `id -u` -ne 0 ]; then
echo Starting Netscape ...
sleep 3
xinit -e netscape -geometry 1024x760-1+0
echo Deleting files in /tmp...
cd /tmp
\rm -r *
echo
echo Make sure you secure your Zip Drive...
sleep 3
eject zip
logout
fi
/bin/bash
This would launch the browser (In this case netscape vs mozilla), eject the Zip and log the user out
upon exiting the browser.
This would apply to any non-root user.
And, as above, trying this in /etc/profile or ~/.bash_profile results in a no-titlebar, keyboard-impaired application. But exiting (the mouse still works) causes the zip to eject and logout, just like we want it to.
Sorry If I seem to be saying the same thing over and over in a repetitively redundant fashion, but I'm getting a bit punch drunk from chasing this thing for about 10 days now . . . more threads, HOWTOs and man pages than I care to count.
|
|
|
11-04-2002, 02:30 PM
|
#6
|
Member
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538
Rep:
|
I don't know if this will still disreguard what's in ~/.bash_profile, but it's something to try:
In kde, there was an option to "save session" when you exited (I'm sure that there is something similar in gnome)
log in as the user, open up mozilla, and upon exit, save the session. Then go in as root and make the configuration file readable (maybe even executable) to the user, but not writable... that way, they will start up w/ mozilla every time and not be able to change it.
I'll get back if I can think of anything else
good luck
-Adam
|
|
|
All times are GMT -5. The time now is 05:47 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
|
|