|
From: Kurt on 14 Jan 2006 20:53 Running FC4. I would like to configure a local "logon script" for standalone workstations (not domain members). Simple things like start up firefox so users can hit the company web based app automagically when they log in. Can this be done? ....kurt
From: Kurt on 16 Jan 2006 23:18 Bit Twister wrote: > On Sat, 14 Jan 2006 17:53:47 -0800, Kurt wrote: > >>Running FC4. I would like to configure a local "logon script" for >>standalone workstations (not domain members). > > > To me a standalone is a system not connected to a network. > > >>Simple things like start >>up firefox so users can hit the company web based app automagically when >>they log in. Can this be done? > > > Please read http://www.catb.org/~esr/faqs/smart-questions.html > Yes, depending on default runlevel and user's desktop manager. To me (coming from primarily a windows background) there are 4 basic types of units: 1) Domain Controller 2) "Member" server or workstation - a member of a domain 3) "Standalone" workstation or server - networked but not a domain member 4) Non-networked unit - no particular designation. Obviously to run a web browser interactively (as opposed to remotely) we must be in runlevel 5. Please read http://since-you-understood-the question-maybe-you-could-find-a-smart-way-to answer-it-instead-of-trying-to-belittle-the-posters.com Let me rephrase: Running FC4 workstations on a TCP/IP network in a primarily windows environment with samba, but not members of the local Windows AD domain. I would like to be able to run something like a logon script, which is simple to do in Windows, to do various chores dependiing on which User logs on. In Windows, I'd just put a link to a batch file in the user's "startup" folder. Is there a simple way to accomplish the same thing with FC4, X, RL5 and Gnome? Nothing fancy, just get a shell script to run. ....kurt
From: Kurt on 17 Jan 2006 15:21 Bit Twister wrote: > On Mon, 16 Jan 2006 20:18:12 -0800, Kurt wrote: > >>Obviously to run a web browser interactively (as opposed to remotely) we >>must be in runlevel 5. > > > Obviously Not. > My default is runlevel 3. > I run startx for whatever window manager I want, kde, fvmw, gnome,... > then interactively start the browser of choice. > > >>Please read http://since-you-understood-the >>question-maybe-you-could-find-a-smart-way-to >>answer-it-instead-of-trying-to-belittle-the-posters.com > > > Hmmm, that link is not valid. > Sorry you did not read and understand the provided smart-questions link. > You need to drop your attitude, take a break, and realy read the link. > Trust me, ok. > > The standalone comment was just to show you a definition of standalone box, > not to belittle the poster. > > Best answer dependends on information not provided in your request. > o runlevel, > o window manager used, there are several and each managed differently > o how you want to manage the user. > > If nothing else, go back and read > http://www.catb.org/~esr/faqs/smart-questions.html#not_losing > > > >>Let me rephrase: >> >>Running FC4 workstations on a TCP/IP network in a primarily windows >>environment with samba, but not members of the local Windows AD domain. > > > Hope you have a firewall running on this server to protect it from the > doze boxes. > > >>I would like to be able to run something like a logon script, > > > Two places to do that, globally or each user. > > >>which is simple to do in Windows, > > > and simple to do in linux > > >>to do various chores dependiing on which User logs on. > > > $USER and $LOGNAME will help with that. To see variable contents, > click up a terminal and do a > echo $USER and $LOGNAME > > >>In Windows, I'd just put a link to a batch file in the user's >>"startup" folder. Is there a simple way to accomplish the same thing >>with FC4, X, RL5 and Gnome? Nothing fancy, just get a shell script to run. > > > Hmmm, a bit more requirements creep seems to have showed up. > At least we now know which window manager. > > Please bookmark the following, very large, > Frequently Asked Questions (faq) Search engine URL: > > A start for your batch file question: > > http://groups.google.com/advanced_group_search > path env search_tag in the first box > *linux* in Newsgroup box. You need to use the two > asterisks around linux, pick English > > To help you with you script writing > ! bash script introduction documentation > http://tldp.org/LDP/intro-linux/html/index.html > > ! bash script advanced documentation > http://tldp.org/LDP/abs/html/index.html > > Then maybe the answer to your initial question > http://gnome.org/learn/users-guide/2.10/user-guide.html#goscustsession-TBL-19 > and search for Configuring Startup Applications > Thanks for the links. I've looked at the gnome documentation before and been disappointed in the indexing and context descriptions. It's very disjointed and I find the weirdest things included in seemingly unrelated areas. I suppose that'd be the price of open source. Don't get me wrong, I'm not complaining - I'm beginning (as a relative newbie) to foster a good deal of affection for Linux. But available, cohesive documentation suitable for anyone other than seasoned pros is hard to come by, or located on somebody's web page who is obviously not an English Lit major. I had hoped there was a simple one-line solution, i.e. "put a shortcut in the startup folder for the users", but if such a solution does not exist I'll muddle through the muck on my own until I figure it out. ....kurt
From: Some Other Somebody Else on 17 Jan 2006 18:17 On Tue, 17 Jan 2006 12:21:53 -0800, Kurt <kurtl(a)nospam.olypen.com> wrote: > >[...] I've looked at the gnome documentation before and >been disappointed in the indexing and context descriptions. It's very >disjointed and I find the weirdest things included in seemingly >unrelated areas. I suppose that'd be the price of open source. Don't get >me wrong, I'm not complaining - I'm beginning (as a relative newbie) to >foster a good deal of affection for Linux. But available, cohesive >documentation suitable for anyone other than seasoned pros is hard to >come by, or located on somebody's web page who is obviously not an >English Lit major. I had hoped there was a simple one-line solution, >i.e. "put a shortcut in the startup folder for the users", but if such a >solution does not exist I'll muddle through the muck on my own until I >figure it out. > >...kurt I think I know what you mean about the documentation - I doubt it's immutably inherent in open source, though - some people may just be bad writers, and I kind of wonder if some are deliberately being opaque just to "guard the doors to the clubhouse", just like I wonder that about the way some people pitch fits over arcane "netiquette" bugbears.... But anyway, although I mostly use KDE, and there might be a more "official" way or something, this is what I did to get gnome to automatically run shell commands on login: (1) Create or edit ~/.gnome2/session-manual to contain something analogous to the following: [Default] num_clients=1 0,RestartStyleHint=3 0,Priority=50 0,RestartCommand=./startup-programs.sh (2) Put something analogous to the following in ~/startup-programs.sh after creating that file and making it executable: #!/bin/bash mozilla & konsole & wine "w:\program files\agent\agent.exe" & The name of the script is arbitrary; I just had the gnome startup file set to run a script, and then ran other commands from that script, so that I wouldn't have to deal too much with the gnome session handler's file format and idiosyncrasies.
From: Kurt on 18 Jan 2006 00:32 > I think I know what you mean about the documentation - I doubt it's > immutably inherent in open source, though - some people may just be > bad writers, and I kind of wonder if some are deliberately being > opaque just to "guard the doors to the clubhouse", just like I wonder > that about the way some people pitch fits over arcane "netiquette" > bugbears.... > > But anyway, although I mostly use KDE, and there might be a more > "official" way or something, this is what I did to get gnome to > automatically run shell commands on login: > > (1) Create or edit ~/.gnome2/session-manual to contain something > analogous to the following: > > [Default] > num_clients=1 > 0,RestartStyleHint=3 > 0,Priority=50 > 0,RestartCommand=./startup-programs.sh > > (2) Put something analogous to the following in ~/startup-programs.sh > after creating that file and making it executable: > > #!/bin/bash > > mozilla & > konsole & > wine "w:\program files\agent\agent.exe" & > > The name of the script is arbitrary; I just had the gnome startup file > set to run a script, and then ran other commands from that script, so > that I wouldn't have to deal too much with the gnome session handler's > file format and idiosyncrasies. Thanks! There is, in fact, a Gnome gui tool that pretty much lets you build exactly what you described, and I really appreciate the input on how to do it by editing manually. On the documentation side, I fully understand that Linux and all of the available components are built by committed individuals, often working for no monetary gain, and that there's no central source for putting it all together - even within the realms of the well-known distros. On the other hand, I haven't been this challenged since I first uncrated my Atari 400 back in 1979. Whatever it was that inspired me to read all those Compute! books and magazines has been re-kindled in trying to pick my way through Linux, Samba, BIND and all of the things that Linux does so well! As far as the netiquette thing goes, I've been posting in NGs for years so I'm not as thin-skinned as it may have appeared. It just seems that the regulars in the Linux groups - especially the "good ole' boys" types, want to flame for everything. You know - You can't post from a Windows box. You can't use a Windows newsreader, yada yada. On one hand, everybody claims to want new disciples while on the other hand they seem to go out of their way to discourage. Kind of a paradox. But - the links bittwister finally posted gave me exactly what I was looking for - so at least the general concept of providing information still works! :) Cheers, ....kurt
|
Pages: 1 Prev: MP3 player on USB Next: How to add build-in command into sudoers Cmnd_Alias? |