PROXY  WHOIS  RQUOTE  TEXTS  SOFT  FOREX  BBOARD
 Music  Philosophy  Code  Literature  Russian

= ROOT|Technical|LinuxGazette|issue101.txt =

page 9 of 36




     Dynamic libararies are the most popular -- much smaller, but it does mean
     that it is up to the user to ensure that these libraries are installed.
     'ldd' goes a long way to checking and ensuring that is the case. But at
     compilation time, the user is often told what libraries (if any) are
     needed.

     The querent then reported back that all was right with the world and that
     he found what he was after. I suppose we call all learn a lesson here in
     that being precise is important when asking questions, otherwise your
     question may never get the correct answer! -- Thomas Adam

   (?) Anyway, another helpful soul came up with the answer on usenet: 
make prefix=/tmp/foo install.

   That is exactly what I'm looking for. With this I can drop everything in an
   empty dir, gzip it, move it to another machine and unpack it & run it. Never
   thought  it  would  be  this  simple,  I  tried  this  with  configure
   --prefix=/tmp/foo, but that's where /tmp/foo gets into the compiled files. 
            ____________________________________________________

(?) Dedicated Linux application

   From Jon Aldrich 

         Answered By: Thomas Adam, Kapil Hari Paranjape, Jay R. Ashworth 

   I am in the process of developing a linux app (for gaming). I want the final
   product to reside on a linux box that, after booting, automatically runs the
   application. What is the preferred method for doing this? 

   1) An 'auto login' for a special user on one of the system consoles, who's
   user profile starts the application. 

     (!) [Thomas] You could add something like this to the user's ~/.bashrc

[ "$(tac ~/.xsession | sed -n '2p')" = "the_name_of_my_game" ] && {
   startx &
}

     (!) [Thomas] which says that if the penultimate line starts with your game
     program name then launch X, otherwise don't bother. Why the penultimate
     line? Because the last line in ~/.xsession should ALWAYS an "exec call" to
     your window manager. Of course, should you add anything to that file, the
     number passed to sed will have to be changed.

   (?) 2) Start the app with an inittab entry. 

     (!) [Thomas] No. Doing this is deprecated and will cause all kinds of
     weird errors. What happens say, if X crashes? Each time X tries to start
     (based on the run-level X starts in) the game will also try to load, and
     so you get a feedback loop. In the case of [119]Debian, X is started
     throughout runlevels 2-5.

   (?) 3) Something else? 

   The app will produce graphics output and get user input, so it can't run as
   just a backgroud type daemon. It will run on a secure, dedicated network 

   Is there an info source or HOWTO for this sort of "bringing to market,
   implementation" kind of topic? 

     (!)  [Thomas]  I would just have it launched from within the user's
     ~/.xsession file (see above).

     (!) [Kapil] One of the lesser known methods. An "@reboot" entry in the
     crontab. This will start a program just after "crond" is started.

     (!) [Thomas] Not unless you have read: 'man 5 crontab', it isn't!!

   (?) One other small question. Is it possible to display a flash screen of
   some  sort  during the boot sequence and pipe the boot data to the bit
   bucket? Sort of a "boot -quiet" option. 

     (!) [Kapil] I think there is a "bootsplash" patch to the kernel that does
     this.

     (!)  [Thomas]  I think Jon was referring specifically to his game's
     flashscreen.

     (!) [Jay] You'll get lots of opinions, I suspect, but mine is 'put it in
     inittab'. That and (optionally) an sshd should be about it: you should
     know everything that's running in a ps, in this kind of environment.

     Make sure the bios boots the HD (/flash image) and nothing else, and is
     passworded. Yes, even if there isn't a hardware keyboard.
            ____________________________________________________

(?) Diagnosing a Linux crash

   From Tom Brown 

                           Answered By: Thomas Adam, Karl-Heinz Herrmann 

   OK guys, here's a n00b question for you that probably crosses over into Sys
   Admin territory. 

   What steps should someone follow after Linux crashes to figure out what went
   wrong? 

=9=

1|2|3|4|5|6|7|8| < PREV = PAGE 9 = NEXT > |10|11|12|13|14|15|16|17|18.36

UP TO ROOT | UP TO DIR | TO FIRST PAGE

Google
 


E-mail Facebook Google Digg del.icio.us BlinkList Fark Furl Ma.gnolia Netscape NewsVine Reddit Slashdot Spurl StumbleUpon Technorati YahooMyWeb LiveJournal Blogmarks TwitThis Live News2.ru BobrDobr.ru Memori.ru MoeMesto.ru

0.0144629 wallclock secs ( 0.01 usr + 0.00 sys = 0.01 CPU)