* Sime Ramov <s...@ramov.com> [2011-10-29 13:58]: > * Tito Mari Francis Escaqo <titomarifran...@gmail.com> > [2011-10-29T17:50+0800]: > > My idea is for the whole system to run off a Live CD, but I'm quite > > lost how to start the X windowing system, then the web browser and > > then automatically shutdown the whole system after quitting web > > browser. > > As for the browser starting when X is started, this would do: > > echo exec firefox > ~/.xinitrc
and with sth like PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin/:/usr/local/bin \ sudo -u display -H /usr/X11R6/bin/startx >/var/log/Xdisplay 2>&1 </dev/null in rc.local you even get it automagically on bootup. > When you quit Firefox, X will terminate, too. Your other requirements > are a bit trickier though. not really - if you start X in rc.local and don't background it just poot halt -p as last command in rc.local. -- Henning Brauer, h...@bsws.de, henn...@openbsd.org BS Web Services, http://bsws.de, Full-Service ISP Secure Hosting, Mail and DNS Services. Dedicated Servers, Root to Fully Managed Henning Brauer Consulting, http://henningbrauer.com/