GNC Examples: Difference between revisions
Appearance
Content deleted Content added
imported>Chris No edit summary |
imported>Chris No edit summary |
||
| Line 13: | Line 13: | ||
== Examples == |
== Examples == |
||
=== Setting a custom homepage === |
=== Setting a custom homepage === |
||
Start by [http://wiki.groovix.org/index.php?title=GNC_Examples#Making_a_new_GNC_Script_using_the_gnc_template creating a new GNC template] and naming it with the date, followed by title, and a '-1' since this is the first of this type; this example uses the name 20120101-custom-homepage-1. In the directory 20120101-custom-homepage-1 edit the gnc file to include the following: |
|||
<pre class="dashed-box"> |
<pre class="dashed-box"> |
||
############################################################################################################### |
############################################################################################################### |
||
| Line 24: | Line 26: | ||
=== Setting a custom desktop background === |
=== Setting a custom desktop background === |
||
<pre class="dashed-box"> |
<pre class="dashed-box"> |
||
############################################################################################################### |
|||
GNC_PARAMETERS=' --runonce --skipinstall --skiplive --abort ' |
|||
############################################################################################################### |
|||
gncget --mod=644 /var/lib/groovix/pac/images/desktop_background.png |
|||
</pre> |
</pre> |
||
You will also need to place your desktop image file in the following folder structure var\lib\groovix\pac\images\, along with your GNC script located in the root directory. |
|||
=== Setting a custom screensaver === |
=== Setting a custom screensaver === |
||
| Line 41: | Line 37: | ||
=== Setting a custom welcome message on the login screen === |
=== Setting a custom welcome message on the login screen === |
||
<pre class="dashed-box"> |
<pre class="dashed-box"> |
||
############################################################################################################### |
|||
GNC_PARAMETERS=' --runonce --skipinstall --abort ' |
|||
############################################################################################################### |
|||
bashconfset.pl GDM_WELCOME_MESSAGE "Enter your welcome message here" /etc//groovix/pac.conf |
|||
</pre> |
</pre> |
||
=== Setting the Acceptable Use Policy page === |
=== Setting the Acceptable Use Policy page === |
||
<pre class="dashed-box"> |
<pre class="dashed-box"> |
||
############################################################################################################### |
|||
GNC_PARAMETERS=' --runonce --skipinstall --abort ' |
|||
############################################################################################################### |
|||
apt-get-dontask install groovix-accept |
|||
bashconfset.pl GK_ACCEPT_USE true /etc//groovix/pac.conf |
|||
pyconfset.pl mainurl '[ServerIP]/groovix/accept/acceptable-use.html' /etc//groovix/accept.conf |
|||
</pre> |
</pre> |
||
<nowiki>*</nowiki> where [ServerIP] is the IP address of your local [[Groovix Server]] |
|||
=== Enabling the web filter === |
=== Enabling the web filter === |
||
Revision as of 16:26, 24 April 2012
Introduction to GNC
Making a new GNC Script using the gnc template
Introduction to the gncget command
Introduction to the apt-get install and apt-get remove commands
Examples
Setting a custom homepage
Start by creating a new GNC template and naming it with the date, followed by title, and a '-1' since this is the first of this type; this example uses the name 20120101-custom-homepage-1. In the directory 20120101-custom-homepage-1 edit the gnc file to include the following:
############################################################################################################### GNC_PARAMETERS=' --runonce --skipinstall --abort ' ############################################################################################################### bashconfset.pl PAC_BROWSER_STARTUP_HOMEPAGE "http://www.google.com" /etc//groovix/pac.conf
Setting a custom desktop background
Setting a custom screensaver
Setting a custom welcome message on the login screen
Setting the Acceptable Use Policy page
Enabling the web filter
Whitelisting a website
Adding sites to the DansGuardian exception list
Configuring a Reservation Station machine
Catalog only/kiosk machine