Difference between revisions of "GNC Examples"

From GroovixWiki
Jump to: navigation, search
Line 16: Line 16:
 
== Examples ==
 
== Examples ==
 
=== Setting a custom homepage ===
 
=== Setting a custom homepage ===
<div class="dashed-box"><br /><br /><br /><br /></div>
+
<pre class="dashed-box">
 +
###############################################################################################################
 +
GNC_PARAMETERS=' --runonce --skipinstall --abort '
 +
###############################################################################################################
 +
 
 +
 
 +
bashconfset.pl PAC_BROWSER_STARTUP_HOMEPAGE "http://www.google.com" /etc//groovix/pac.conf
 +
</pre>
  
  
 
=== Setting a custom desktop background ===
 
=== Setting a custom desktop background ===
<div class="dashed-box"><br /><br /><br /><br /></div>
+
<pre class="dashed-box">
 +
###############################################################################################################
 +
GNC_PARAMETERS=' --runonce --skipinstall --skiplive --abort '
 +
###############################################################################################################
 +
 
 +
gncget --mod=644 /var/lib/groovix/pac/images/desktop_background.png
 +
</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.
  
  
Line 28: Line 42:
  
 
=== Setting a custom welcome message on the login screen ===
 
=== Setting a custom welcome message on the login screen ===
<div class="dashed-box"><br /><br /><br /><br /></div>
+
<pre class="dashed-box">
 +
###############################################################################################################
 +
GNC_PARAMETERS=' --runonce --skipinstall --abort '
 +
###############################################################################################################
 +
 
 +
bashconfset.pl GDM_WELCOME_MESSAGE "Enter your welcome message here" /etc//groovix/pac.conf
 +
</pre>
  
  
 
=== Setting the Acceptable Use Policy page ===
 
=== Setting the Acceptable Use Policy page ===
<div class="dashed-box"><br /><br /><br /><br /></div>
+
<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>
 +
<nowiki>*</nowiki> where [ServerIP] is the IP address of your local [[Groovix Server]]
  
  

Revision as of 11:11, 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

###############################################################################################################
GNC_PARAMETERS=' --runonce --skipinstall --abort '
###############################################################################################################


bashconfset.pl PAC_BROWSER_STARTUP_HOMEPAGE "http://www.google.com" /etc//groovix/pac.conf


Setting a custom desktop background

###############################################################################################################
GNC_PARAMETERS=' --runonce --skipinstall --skiplive --abort '
###############################################################################################################

gncget --mod=644 /var/lib/groovix/pac/images/desktop_background.png

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 welcome message on the login screen

###############################################################################################################
GNC_PARAMETERS=' --runonce --skipinstall --abort '
###############################################################################################################

bashconfset.pl GDM_WELCOME_MESSAGE "Enter your welcome message here" /etc//groovix/pac.conf


Setting the Acceptable Use Policy page

###############################################################################################################
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 

* where [ServerIP] is the IP address of your local Groovix Server


Enabling the web filter






Whitelisting a website






Adding sites to the DansGuardian exception list






Advanced Examples

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