[email protected] (Tito Mari Francis Escaqo), 2011.10.29 (Sat) 11:50 (CEST): > My task is to design a kiosk that will only display a web browser, Firefox > for now (I'd also appreciate guide on other graphical web browser) when > OpenBSD boots up. When the browser quits, the whole system should shutdown > as well. Can you please point me to guides how to do this? 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. I hope you can help me. > Thank you very much. see also: http://marc.info/?l=openbsd-misc&m=108366855830141 http://marc.info/?l=openbsd-misc&m=105658656000695 my task was to connect to a rdp server; tried all of the various approaches and this is how it finally worked:
$ grep autologin /etc/ttys ttyC1 "/usr/local/sbin/autologin.getty" vt220 on secure $ cat autologin.getty #!/bin/sh -e TERM=vt220 /usr/local/sbin/autologin < /dev/$1 > /dev/$1 $ cat autologin #!/bin/sh -e exec su -l autologin $ grep autologin /etc/passwd autologin:<bla>:1001:1001::0:0:AUTOMATIC Login:/home/autologin:/bin/ksh $ cat autologin/.profile PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games:. export PATH HOME TERM rm ~/.serverauth.* && print -n "" sleep 3 # more important than you think /usr/X11R6/bin/startx -- -nolisten tcp && shutdown -hp now exit $ cat autologin/.xinitrc /usr/X11R6/bin/xset -dpms & /usr/X11R6/bin/xset s off & /usr/X11R6/bin/xsetroot -solid black & /usr/X11R6/bin/fvwm || /usr/X11R6/bin/xterm $ cat autologin/.fvwmrc AddToFunc InitFunction + "I" Exec exec run-your-app-and-than-shutdown.sh $ grep autologin /etc/sudoers autologin ALL= NOPASSWD: /sbin/shutdown -hp now autologin ALL= NOPASSWD: /sbin/reboot Bye, Marcus

