GNC Examples: Difference between revisions
imported>Chris No edit summary |
imported>Chris No edit summary |
||
| Line 10: | Line 10: | ||
=== Introduction to the gncget command === |
=== Introduction to the gncget command === |
||
The directory structure inside each GNC update |
The directory structure inside each GNC update should be treated as if it is the / (root) directory. When the gncget command is used, it copies and replaces files in the GNC update directory in the same directories as the actual / (root) directory. For example, to replace the <font class="code">/etc/network/interfaces</font> file on a machine, create the interfaces file in a <font class="code">etc/network/</font> directory under your update directory and use the gncget command <font class="code">gncget /etc/network/interfaces</font>. |
||
Revision as of 04:26, 25 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 should be treated as if it is the / (root) directory. When the gncget command is used, it copies and replaces files in the GNC update directory in the same directories as the actual / (root) directory. For example, to replace the /etc/network/interfaces file on a machine, create the interfaces file in a etc/network/ directory under your update directory and use the gncget command gncget /etc/network/interfaces.
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