Art

Teaching

Studies

Samfundsdebat

Diverse

Økologi


Pub


Internal Portal





edit



Printable View

Diverse.FullscreenFirefoxKiosk History

Hide minor edits - Show changes to markup

November 01, 2006, at 11:03 AM by 192.168.0.7 -
Changed lines 74-75 from:
  1. define Emptycursor_width 16
  2. define Emptycursor_height 16
to:
 #define Emptycursor_width 16
 #define Emptycursor_height 16
November 01, 2006, at 10:55 AM by 192.168.0.7 -
Added lines 1-2:

Fullscreen kiosk/sign display with Firefox

Changed line 36 from:
 # note `hostname` in backticks. This is not nesecarry, but useful
to:
 # note `hostname` in backticks. This is not necessary, but useful
Changed lines 41-42 from:

Getting rid of the mouse cursor in Firefox:

to:

Getting rid of the mouse cursor in Firefox:

Changed lines 64-65 from:

( If you want both belt and suspenders, or just to make sure other browsers visiting the page open a window filling the whole screen (although with title and navigation bars), use:

 onload="parent.resizeTo(screen.availWidth,screen.availHeight); moveTo(0,0);" onresize="parent.resizeTo (screen.availWidth,screen.availHeight)"
to:

( If you want both belt and suspenders, or just to make sure other browsers visiting the page open a window filling the whole screen (although with title and navigation bars), use: onload="parent.resizeTo(screen.availWidth,screen.availHeight); moveTo(0,0);" onresize="parent.resizeTo (screen.availWidth,screen.availHeight)"

Changed lines 70-71 from:

This will NOT get rid of it in Firefox or any othe program - just in raw X.

to:

This will NOT get rid of it in Firefox or any other program - just in raw X.

November 01, 2006, at 10:52 AM by 192.168.0.7 -
Changed lines 3-4 from:

1) Install Linux. I used Ubuntu, any distribution should be fine.

to:

1) Install Linux. I used Ubuntu, any distribution should be fine.

Changed lines 7-10 from:

3) Make following script:

 ff
 # -fullscreen requires the "autohide" extension from http://krickelkrackel.de/autohide
 firefox -fullscreen http://yourserver.org/showsign/?host=`hostname`
to:

3) Stop X and the window manager from starting automatically by removing the symlink S13gdm in /etc/rc2.d and /etc/rc3.d

4) Just run

 xinit -exec firefox -fullscreen http://yourserver.org/showsign

From a command prompt

5) If you want it to run automatically on startup: Edit /etc/X11/Xwrapper.conf. Change

 allowed_users=console

to

 allowed_users=anybody

This will enable us to start X from a startup script.

6) Add the following to /etc/rc.local

 su nicolasp - -c xinit /home/nicolasp/sign

7) Create the following script in /home/nicolasp/sign and chmod to executable:

 #!/bin/sh

 xset s off
 xset -dpms

 exec firefox -fullscreen http://signs.imagio.dk/show/?host=`hostname` 
Changed lines 39-47 from:

4) run

 xinit -exec ./ff

(This is equivalent to running

 xinit -exec firefox -fullscreen http://yourserver.org/showsign/?host=`hostname`

)

More examples:

to:

Getting rid of the mouse cursor in Firefox:

in the web pages CSS stylesheet, include:

 body {
    cursor: url("./cursor.gif"), auto;
 }

Where the file cursor.gif is a one pixel transparent gif.

More examples/info

Changed lines 56-81 from:

Method 2

Make file sign, chmod to executable

 #!/bin/sh

 xset s off
 xset -dpms

 #xsetroot -cursor /etc/X11/sign/EmptyCursor /etc/X11/sign/EmptyCursor

 exec firefox -fullscreen http://signs.imagio.dk/show/?host=`hostname`nicolasp@dim:~$

Make file dosign, chmod to executable:

  1. !/bin/sh

xinit /root/sign

Make a symlink to dosign in /etc/rc3.d : ln -s S13dosign /root/dosign

More tips:

to:

More tips:

Changed lines 66-75 from:

Getting rid of the mouse cursor:

http://www.linuxquestions.org/questions/showthread.php?t=306819

cursor:url() in FX

http://www.mozilla.org/support/firefox/tips

Getting rid of the cursor in X11:

to:

Getting rid of the cursor in X11:

This will NOT get rid of it in Firefox or any othe program - just in raw X.

Changed lines 81-104 from:

Inside /etc/X11/nologin, create an executable text file XServer with the following contents:

  1. !/bin/sh

  2. Allow X11 connections from remote processes on the local machine:

xhost +localhost

  1. Disable the screen saver:

xset s off xset -dpms

  1. Hide the mouse cursor:

xsetroot -cursor /etc/X11/nologin/EmptyCursor /etc/X11/nologin/EmptyCursor

  1. Run the X11 root application:

exec xlogo

This file will serve as replacement for a display manager and will be started whenever X11 is restarted. Using xlogo as the root application will display the X11 logo across the entire display while no application is running; this is only an example. It is possible to use almost any X11 program as the root application. The xhost +localhost line tells the X11 server to allow local connections from remotely started applications, which is a prerequisite for cluster rendering. The xset s off and xset -dpms lines tell the X11 server to disable the screen saver and screen suspend; since dedicated render nodes usually have neither keyboards nor mice, users would only see a black screen otherwise. Modify /etc/X11/prefdm to use the replacement display manager instead of the regular one. Right before the selection process starts in the file, usually before the language file is sourced, insert the following lines:

  1. Start replacement display manager to disable direct graphical login:

exec xinit /etc/X11/nologin/XServer

This ignores the rest of the file and always starts the replacement display manager.

to:
October 20, 2006, at 06:52 PM by 130.225.216.24 -
Added lines 29-52:

Method 2

Make file sign, chmod to executable

 #!/bin/sh

 xset s off
 xset -dpms

 #xsetroot -cursor /etc/X11/sign/EmptyCursor /etc/X11/sign/EmptyCursor

 exec firefox -fullscreen http://signs.imagio.dk/show/?host=`hostname`nicolasp@dim:~$

Make file dosign, chmod to executable:

  1. !/bin/sh

xinit /root/sign

Make a symlink to dosign in /etc/rc3.d : ln -s S13dosign /root/dosign

October 20, 2006, at 05:33 PM by 130.226.173.92 -
Added lines 46-82:

Getting rid of the cursor in X11:

Create a new directory /etc/X11/nologin. Inside /etc/X11/nologin, create a text file EmptyCursor with the following contents:

  1. define Emptycursor_width 16
  2. define Emptycursor_height 16

static unsigned char Emptycursor_bits[] = {

   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

This file defines an invisible mouse cursor to effectively hide the X11 default mouse cursor (yes, it's that difficult). Inside /etc/X11/nologin, create an executable text file XServer with the following contents:

  1. !/bin/sh

  2. Allow X11 connections from remote processes on the local machine:

xhost +localhost

  1. Disable the screen saver:

xset s off xset -dpms

  1. Hide the mouse cursor:

xsetroot -cursor /etc/X11/nologin/EmptyCursor /etc/X11/nologin/EmptyCursor

  1. Run the X11 root application:

exec xlogo

This file will serve as replacement for a display manager and will be started whenever X11 is restarted. Using xlogo as the root application will display the X11 logo across the entire display while no application is running; this is only an example. It is possible to use almost any X11 program as the root application. The xhost +localhost line tells the X11 server to allow local connections from remotely started applications, which is a prerequisite for cluster rendering. The xset s off and xset -dpms lines tell the X11 server to disable the screen saver and screen suspend; since dedicated render nodes usually have neither keyboards nor mice, users would only see a black screen otherwise. Modify /etc/X11/prefdm to use the replacement display manager instead of the regular one. Right before the selection process starts in the file, usually before the language file is sourced, insert the following lines:

  1. Start replacement display manager to disable direct graphical login:

exec xinit /etc/X11/nologin/XServer

This ignores the rest of the file and always starts the replacement display manager.

October 20, 2006, at 03:26 PM by 130.226.173.92 -
Changed lines 5-6 from:

2) Install X, Firefox and the "autohide" extension from krickelkrackel.de

to:

2) Install X, Firefox and the "autohide" extension from httpd://krickelkrackel.de/autohide

Changed line 9 from:
 # -fullscreen requires the "autohide" extension from krickelkrackel.de
to:
 # -fullscreen requires the "autohide" extension from http://krickelkrackel.de/autohide
October 18, 2006, at 04:36 PM by 130.226.173.92 -
Changed lines 37-45 from:

)

to:

)

Getting rid of the mouse cursor:

http://www.linuxquestions.org/questions/showthread.php?t=306819

cursor:url() in FX

http://www.mozilla.org/support/firefox/tips

October 18, 2006, at 11:08 AM by 172.16.10.209 -
Changed lines 5-6 from:

2) INstall X, Firefox and the "autohide" extension from krickelkrackel.de

to:

2) Install X, Firefox and the "autohide" extension from krickelkrackel.de

Changed lines 11-12 from:
 #note backticks. This will give the output of the "hostname" program, so your server can differentiate between many different signs and give them each a different web page
to:
 # note `hostname` in backticks. This is not nesecarry, but useful
 # as it will give the output of the "hostname" program,
 # so your server can differentiate between many different signs and
 # give them each a different web page
October 17, 2006, at 04:17 PM by 130.226.173.92 -
Added lines 25-34:

More tips:

Use a http-header-equiv or javascript in the web page to reload the page at certain intervals.

Use javascript in the web page to prevent horizontal and vertical scroll bars.

( If you want both belt and suspenders, or just to make sure other browsers visiting the page open a window filling the whole screen (although with title and navigation bars), use:

 onload="parent.resizeTo(screen.availWidth,screen.availHeight); moveTo(0,0);" onresize="parent.resizeTo (screen.availWidth,screen.availHeight)"

)

October 17, 2006, at 04:13 PM by 130.226.173.92 -
Changed lines 22-23 from:

Run Firefox, using a specific profile, in fullscreen, on the secondary display of a system with two graphics cards:

to:

Run Firefox, specifying the full path, using a specific profile, in fullscreen, on the secondary display of a system with two graphics cards:

October 17, 2006, at 04:12 PM by 130.226.173.92 -
Changed lines 14-24 from:
 xinit -exec ./ff
to:
 xinit -exec ./ff

(This is equivalent to running

 xinit -exec firefox -fullscreen http://yourserver.org/showsign/?host=`hostname`

)

More examples:

Run Firefox, using a specific profile, in fullscreen, on the secondary display of a system with two graphics cards:

 /usr/bin/firefox -P profilename -fullscreen --display=:0.1
October 17, 2006, at 04:05 PM by 130.226.173.92 -
Added lines 1-14:

So... you want a computer to boot, and automatically start Firefox, running completely fullscreen, with no title bar, navigation bar or anything. You just want it to display a particular web page - maybe for a sign, train times, or todays message/schedule. Here is how to do it:

1) Install Linux. I used Ubuntu, any distribution should be fine.

2) INstall X, Firefox and the "autohide" extension from krickelkrackel.de

3) Make following script:

 ff
 # -fullscreen requires the "autohide" extension from krickelkrackel.de
 firefox -fullscreen http://yourserver.org/showsign/?host=`hostname`
 #note backticks. This will give the output of the "hostname" program, so your server can differentiate between many different signs and give them each a different web page

4) run

 xinit -exec ./ff
Page last modified on November 01, 2006, at 11:03 AM