Difference between revisions of "GNC Examples"

From GroovixWiki
Jump to: navigation, search
Line 2: Line 2:
  
 
== Introduction to GNC ==
 
== Introduction to GNC ==
=== Making a new GNC Script using the gnc template ===
+
''Note: this page assumes knowledge of the GNC script process and it's commands and parameters. Please have a full understanding of the [[Groovix NetCustomization]] page before continuing.''
Start by [http://wiki2.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.
+
 
 +
 
 +
=== Starting a new GNC Script using the GNC template ===
 +
When you are ready to make your own GNC update, run the following command in an [[xterm]] window to create a copy of the gnc template: <font class="code">cp -rp var/www/groovix/gnc/doc/template/[updatename]</font> where [updatename] is the name of your update.
 +
 
  
 
=== Introduction to the gncget command ===
 
=== Introduction to the gncget command ===
<br />
+
The directory structure inside each GNC update acts as if it is the / (root) directory. The gncget command will grab a file in your u
<br />
+
 
 +
 
 
=== Introduction to the apt-get install and apt-get remove commands ===
 
=== Introduction to the apt-get install and apt-get remove commands ===
<br />
+
<br /><br />
<br />
+
 
 
== Examples ==
 
== Examples ==
 
=== Setting a custom homepage ===
 
=== Setting a custom homepage ===

Revision as of 23:06, 24 April 2012

Introduction to GNC

Note: this page assumes knowledge of the GNC script process and it's commands and parameters. Please have a full understanding of the Groovix NetCustomization page before continuing.


Starting a new GNC Script using the GNC template

When you are ready to make your own GNC update, run the following command in an xterm window to create a copy of the gnc template: cp -rp var/www/groovix/gnc/doc/template/[updatename] where [updatename] is the name of your update.


Introduction to the gncget command

The directory structure inside each GNC update acts as if it is the / (root) directory. The gncget command will grab a file in your u


Introduction to the apt-get install and apt-get remove commands



Examples

Setting a custom homepage

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 "[homepage]" /etc//groovix/pac.conf

*Change [homepage] to the desired website you want to use. For example, to use Google, enter http://www.google.com inbetween the quotes.


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



Setting a custom user profile


Downloading large files with a random delay


Setting up or changing printers


Setting custom shutdown delays and shutdown times