home *** CD-ROM | disk | FTP | other *** search
/ PCNET 2006 September - Disc 1 / PCNET_CD_2006_09.iso / linux / puppy-barebones-2.01r2.iso / pup_201.sfs / usr / sbin / wizardwizard < prev    next >
Encoding:
Text File  |  2006-02-05  |  4.3 KB  |  185 lines

  1. #!/bin/sh
  2.  
  3. if [ "`which gtkdialog`" = "" ];then
  4.  xmessage -center -title "ERROR" "This distribution of Puppy is lacking the application gtkdialog,
  5. which in turn requires the gtk2 libraries package.
  6. Gtkdialog is needed to run this Wizard.
  7.  
  8. Press OK button to quit..."
  9.  exit
  10. fi
  11.  
  12. ##!/usr/sbin/gtkdialog -f
  13.  
  14. #   <pixmap>
  15. #    <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
  16. #   </pixmap>
  17.  
  18.  
  19. export InternetWizardWizard="
  20.  <vbox>
  21.   <text>
  22.    <label>Choose how you want to connect to the Internet.</label>
  23.   </text>
  24.   <text>
  25.    <label>Basically, it is a 2-step process. Step-1 is to configure the modem</label>
  26.   </text>
  27.   <text>
  28.    <label>or ethernet interface, step-2 is to make the actual connection.</label>
  29.   </text>
  30.  
  31.   <hbox>
  32.    <text>
  33.     <label>Connect by dialup analog modem...</label>
  34.    </text>
  35.    <button>
  36.     <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
  37.     <action>/usr/sbin/modem-wizard &</action>
  38.    </button>
  39.   </hbox>
  40.   <hbox>
  41.    <text>
  42.     <label>Connect by ethernet interface...</label>
  43.    </text>
  44.    <button>
  45.     <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
  46.     <action>/usr/sbin/net-setup.sh</action>
  47.    </button>
  48.   </hbox>
  49.   <button cancel>
  50.    <action>closewindow:InternetWizardWizard</action>
  51.   </button>
  52.  </vbox>
  53. "
  54.  
  55. #  <hbox>
  56. #   <text>
  57. #    <label>Connect to the Internet...</label>
  58. #   </text>
  59. #   <button>
  60. #    <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
  61. #    <action launchwindow>InternetWizardWizard</action>
  62. #   </button>
  63. #  </hbox>
  64.  
  65.  
  66. export WizardWizard="
  67.  <vbox>
  68.   <hbox>
  69.    <text>
  70.     <label>This Wizard Wizard is a guide to using the Wizards in Puppy</label>
  71.    </text>
  72.   </hbox>
  73.   <hbox>
  74.    <text>
  75.     <label>Change the mouse and keyboard...</label>
  76.    </text>
  77.    <button>
  78.     <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
  79.     <action>/usr/sbin/input-wizard &</action>
  80.     <action>exit</action>
  81.    </button>
  82.   </hbox>
  83.   <hbox>
  84.    <text>
  85.     <label>Setup ALSA sound...</label>
  86.    </text>
  87.    <button>
  88.     <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
  89.     <action>/usr/sbin/alsawizard &</action>
  90.     <action>exit</action>
  91.    </button>
  92.   </hbox>
  93.   <hbox>
  94.    <text>
  95.     <label>Setup the X video...</label>
  96.    </text>
  97.    <button>
  98.     <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
  99.     <action>/usr/sbin/xserverwizard &</action>
  100.     <action>exit</action>
  101.    </button>
  102.   </hbox>
  103.   <hbox>
  104.    <text>
  105.     <label>Connect to Internet by dialup analog modem...</label>
  106.    </text>
  107.    <button>
  108.     <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
  109.     <action>/usr/sbin/modem-wizard &</action>
  110.     <action>exit</action>
  111.    </button>
  112.   </hbox>
  113.   <hbox>
  114.    <text>
  115.     <label>Connect to Internet by cable ethernet interface...</label>
  116.    </text>
  117.    <button>
  118.     <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
  119.     <action>/usr/sbin/net-setup.sh &</action>
  120.     <action>exit</action>
  121.    </button>
  122.   </hbox>
  123.   <hbox>
  124.    <text>
  125.     <label>Connect to Internet by wireless interface...</label>
  126.    </text>
  127.    <button>
  128.     <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
  129.     <action>/usr/sbin/wirelesswizard &</action>
  130.     <action>exit</action>
  131.    </button>
  132.   </hbox>
  133.   <hbox>
  134.    <text>
  135.     <label>Setup printing...</label>
  136.    </text>
  137.    <button>
  138.     <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
  139.     <action>/usr/sbin/printerwizard.sh &</action>
  140.     <action>exit</action>
  141.    </button>
  142.   </hbox>
  143.   <hbox>
  144.    <text>
  145.     <label>Setup scanning...</label>
  146.    </text>
  147.    <button>
  148.     <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
  149.     <action>/usr/local/bin/xsaneshell &</action>
  150.     <action>exit</action>
  151.    </button>
  152.   </hbox>
  153.   <hbox>
  154.    <text>
  155.     <label>Setup CD and DVD reader and burner drives...</label>
  156.    </text>
  157.    <button>
  158.     <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
  159.     <action>/usr/sbin/cdburner-wizard &</action>
  160.     <action>exit</action>
  161.    </button>
  162.   </hbox>
  163.   <hbox>
  164.    <text>
  165.     <label>Setup a firewall...</label>
  166.    </text>
  167.    <button>
  168.     <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
  169.     <action>rxvt -e /usr/sbin/firewallinstallshell &</action>
  170.     <action>exit</action>
  171.    </button>
  172.   </hbox>
  173.  
  174.  
  175.   <hbox>
  176.    <button cancel></button>
  177.   </hbox>
  178.  </vbox>
  179. "
  180.  
  181. #echo "$WizardWizard" | gtkdialog --stdin
  182. gtkdialog --program=WizardWizard
  183.  
  184. unset WizardWizard
  185.