home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- if [ "`which gtkdialog`" = "" ];then
- xmessage -center -title "ERROR" "This distribution of Puppy is lacking the application gtkdialog,
- which in turn requires the gtk2 libraries package.
- Gtkdialog is needed to run this Wizard.
-
- Press OK button to quit..."
- exit
- fi
-
- ##!/usr/sbin/gtkdialog -f
-
- # <pixmap>
- # <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
- # </pixmap>
-
-
- export InternetWizardWizard="
- <vbox>
- <text>
- <label>Choose how you want to connect to the Internet.</label>
- </text>
- <text>
- <label>Basically, it is a 2-step process. Step-1 is to configure the modem</label>
- </text>
- <text>
- <label>or ethernet interface, step-2 is to make the actual connection.</label>
- </text>
-
- <hbox>
- <text>
- <label>Connect by dialup analog modem...</label>
- </text>
- <button>
- <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
- <action>/usr/sbin/modem-wizard &</action>
- </button>
- </hbox>
- <hbox>
- <text>
- <label>Connect by ethernet interface...</label>
- </text>
- <button>
- <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
- <action>/usr/sbin/net-setup.sh</action>
- </button>
- </hbox>
- <button cancel>
- <action>closewindow:InternetWizardWizard</action>
- </button>
- </vbox>
- "
-
- # <hbox>
- # <text>
- # <label>Connect to the Internet...</label>
- # </text>
- # <button>
- # <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
- # <action launchwindow>InternetWizardWizard</action>
- # </button>
- # </hbox>
-
-
- export WizardWizard="
- <vbox>
- <hbox>
- <text>
- <label>This Wizard Wizard is a guide to using the Wizards in Puppy</label>
- </text>
- </hbox>
- <hbox>
- <text>
- <label>Change the mouse and keyboard...</label>
- </text>
- <button>
- <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
- <action>/usr/sbin/input-wizard &</action>
- <action>exit</action>
- </button>
- </hbox>
- <hbox>
- <text>
- <label>Setup ALSA sound...</label>
- </text>
- <button>
- <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
- <action>/usr/sbin/alsawizard &</action>
- <action>exit</action>
- </button>
- </hbox>
- <hbox>
- <text>
- <label>Setup the X video...</label>
- </text>
- <button>
- <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
- <action>/usr/sbin/xserverwizard &</action>
- <action>exit</action>
- </button>
- </hbox>
- <hbox>
- <text>
- <label>Connect to Internet by dialup analog modem...</label>
- </text>
- <button>
- <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
- <action>/usr/sbin/modem-wizard &</action>
- <action>exit</action>
- </button>
- </hbox>
- <hbox>
- <text>
- <label>Connect to Internet by cable ethernet interface...</label>
- </text>
- <button>
- <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
- <action>/usr/sbin/net-setup.sh &</action>
- <action>exit</action>
- </button>
- </hbox>
- <hbox>
- <text>
- <label>Connect to Internet by wireless interface...</label>
- </text>
- <button>
- <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
- <action>/usr/sbin/wirelesswizard &</action>
- <action>exit</action>
- </button>
- </hbox>
- <hbox>
- <text>
- <label>Setup printing...</label>
- </text>
- <button>
- <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
- <action>/usr/sbin/printerwizard.sh &</action>
- <action>exit</action>
- </button>
- </hbox>
- <hbox>
- <text>
- <label>Setup scanning...</label>
- </text>
- <button>
- <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
- <action>/usr/local/bin/xsaneshell &</action>
- <action>exit</action>
- </button>
- </hbox>
- <hbox>
- <text>
- <label>Setup CD and DVD reader and burner drives...</label>
- </text>
- <button>
- <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
- <action>/usr/sbin/cdburner-wizard &</action>
- <action>exit</action>
- </button>
- </hbox>
- <hbox>
- <text>
- <label>Setup a firewall...</label>
- </text>
- <button>
- <input file>/usr/local/lib/X11/mini-icons/wizard16.xpm</input>
- <action>rxvt -e /usr/sbin/firewallinstallshell &</action>
- <action>exit</action>
- </button>
- </hbox>
-
-
- <hbox>
- <button cancel></button>
- </hbox>
- </vbox>
- "
-
- #echo "$WizardWizard" | gtkdialog --stdin
- gtkdialog --program=WizardWizard
-
- unset WizardWizard
-