tazlito diff tazlitobox @ rev 75
Desktop file for tazlito manual
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Jun 10 01:22:59 2008 +0200 (2008-06-10) |
parents | |
children | 42a1f0b032ee |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tazlitobox Tue Jun 10 01:22:59 2008 +0200 1.3 @@ -0,0 +1,249 @@ 1.4 +#! /bin/sh 1.5 +# 1.6 +# Gtkdialog box for Tazlito - SliTaz Live Tool. 1.7 +# 1.8 +VERSION=20080306 1.9 + 1.10 +# Check if user is root. 1.11 +check_root() 1.12 +{ 1.13 + if test $(id -u) != 0 ; then 1.14 + echo -e " 1.15 +You must be root to run `basename $0`. Please type 'su' and 1.16 +root password to become super-user.\n" 1.17 + exit 0 1.18 + fi 1.19 +} 1.20 + 1.21 +# By default we go in the flavors dir to download or gen flavors. 1.22 +cd_flavors() 1.23 +{ 1.24 + mkdir -p /home/slitaz/flavors 1.25 + cd /home/slitaz/flavors 1.26 +} 1.27 + 1.28 +export HELP=' 1.29 +<window title="Tazlito Box - Help" icon-name="media-cdrom"> 1.30 + <vbox> 1.31 + <text use-markup="true"> 1.32 + <label>" 1.33 +<b>Tazlito Box - Help</b>" 1.34 + </label> 1.35 + </text> 1.36 + 1.37 + <frame Overview> 1.38 + <text wrap="true" width-chars="52" use-markup="true"> 1.39 + <label> 1.40 +" 1.41 +Tazlito Box is a tiny interface to SliTaz Live Tool aka Tazlito. 1.42 +You can simply generate a LiveCD in a few minutes, using your 1.43 +own flavor or one from the SliTaz community. Tazlito can also 1.44 +generate a LiveCD flavor using all the current installed packages 1.45 +selection. Tazlito commads are executed in a XTerm, you can 1.46 +then press ENTER or the mouse to close the window. 1.47 +" 1.48 + </label> 1.49 + </text> 1.50 + </frame> 1.51 + 1.52 + <frame Default paths> 1.53 + <text wrap="true" width-chars="50" use-markup="true"> 1.54 + <label> 1.55 +" 1.56 +Distro : /home/slitaz/distro 1.57 +Flavors : /home/slitaz/flavors 1.58 +Packages : /home/slitaz/packages 1.59 +" 1.60 + </label> 1.61 + </text> 1.62 + </frame> 1.63 + 1.64 + <hbox> 1.65 + <button> 1.66 + <input file icon="exit"></input> 1.67 + <action type="closewindow">HELP</action> 1.68 + </button> 1.69 + </hbox> 1.70 + 1.71 + </vbox> 1.72 +</window> 1.73 +' 1.74 + 1.75 +# Execute tazlito commands in a XTerm. 1.76 +# 1.77 +export MAIN_DIALOG=' 1.78 +<window title="Tazlito Box" icon-name="media-cdrom"> 1.79 + <vbox> 1.80 + 1.81 + <text use-markup="true"> 1.82 + <label> 1.83 +" 1.84 +<b>SliTaz Live Tool Box</b>" 1.85 + </label> 1.86 + </text> 1.87 + <text wrap="true" width-chars="54" use-markup="true"> 1.88 + <label> 1.89 +" 1.90 +Generate a LiveCD flavor with Tazlito. 1.91 +" 1.92 + </label> 1.93 + </text> 1.94 + 1.95 + <notebook labels="System|Flavors|Configuration files"> 1.96 + 1.97 + <frame Current packages selection> 1.98 + 1.99 + <text use-markup="true"> 1.100 + <label> 1.101 +" 1.102 +Gen distro will creat a LiveCD with all installed packages. 1.103 +" 1.104 + </label> 1.105 + </text> 1.106 + 1.107 + <hbox> 1.108 + <button> 1.109 + <label>Gen running distro</label> 1.110 + <input file icon="forward"></input> 1.111 + <action>cd /home/slitaz</action> 1.112 + <action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x16 -title "gen-distro" -e "tazlito gen-distro && echo -e \"----\nENTER to continue...\" && read close"</action> 1.113 + </button> 1.114 + <button> 1.115 + <label>Clean distro</label> 1.116 + <input file icon="edit-clear"></input> 1.117 + <action>cd /home/slitaz</action> 1.118 + <action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x16 -title "clean-distro" -e "tazlito clean-distro && sleep 1"</action> 1.119 + </button> 1.120 + </hbox> 1.121 + 1.122 + <hbox> 1.123 + <text use-markup="true"> 1.124 + <label>"<b>New flavor :</b>"</label> 1.125 + </text> 1.126 + <entry> 1.127 + <default>home-made</default> 1.128 + <variable>GEN_FLAVOR_NAME</variable> 1.129 + </entry> 1.130 + </hbox> 1.131 + <hbox> 1.132 + <button> 1.133 + <label>Gen flavor</label> 1.134 + <input file icon="forward"></input> 1.135 + <action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x16 -title "gen-flavor $GEN_FLAVOR_NAME" -e "tazlito gen-flavor $GEN_FLAVOR_NAME && echo -e \"----\nENTER to continue...\" && read close"</action> 1.136 + </button> 1.137 + </hbox> 1.138 + </frame> 1.139 + 1.140 + <frame Community and personnal flavors> 1.141 + <text wrap="true" use-markup="true"> 1.142 + <label> 1.143 +" 1.144 +Flavors list can be recharged from SliTaz mirror. 1.145 +" 1.146 + </label> 1.147 + </text> 1.148 + 1.149 + <hbox> 1.150 + <text use-markup="true"> 1.151 + <label>"<b>Flavor :</b>"</label> 1.152 + </text> 1.153 + <entry> 1.154 + <default>core</default> 1.155 + <variable>COMMUNITY_FLAVOR</variable> 1.156 + </entry> 1.157 + </hbox> 1.158 + 1.159 + <hbox> 1.160 + <button> 1.161 + <label>List flavors</label> 1.162 + <input file icon="media-cdrom"></input> 1.163 + <action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x16 -title "list-flavors" -e "tazlito list-flavors && echo -e \"----\nENTER to continue...\" && read close"</action> 1.164 + </button> 1.165 + <button> 1.166 + <label>Recharge list</label> 1.167 + <input file icon="reload"></input> 1.168 + <action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x16 -title "list-flavors --recharge" -e "tazlito list-flavors --recharge && echo -e \"----\nENTER to continue...\" && read close"</action> 1.169 + </button> 1.170 + </hbox> 1.171 + 1.172 + <hbox> 1.173 + <button> 1.174 + <label>Get flavor</label> 1.175 + <input file icon="forward"></input> 1.176 + <action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x16 -title "get-flavor $COMMUNITY_FLAVOR" -e "tazlito get-flavor $COMMUNITY_FLAVOR && echo -e \"----\nENTER to continue...\" && read close"</action> 1.177 + </button> 1.178 + <button> 1.179 + <label>Gen flavor distro</label> 1.180 + <input file icon="forward"></input> 1.181 + <action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x16 -title "gen-distro" -e "tazlito gen-distro && echo -e \"----\nENTER to continue...\" && read close"</action> 1.182 + </button> 1.183 + <button> 1.184 + <label>Clean distro</label> 1.185 + <input file icon="edit-clear"></input> 1.186 + <action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x16 -title "clean-distro" -e "tazlito clean-distro && sleep 1"</action> 1.187 + </button> 1.188 + </hbox> 1.189 + </frame> 1.190 + 1.191 + <frame Flavor config and packages list> 1.192 + <text wrap="true" use-markup="true"> 1.193 + <label> 1.194 +" 1.195 +Before editing files you must have a flavor description. 1.196 +" 1.197 + </label> 1.198 + </text> 1.199 + 1.200 + <hbox> 1.201 + <text use-markup="true"> 1.202 + <label>"<b>Flavor config :</b>"</label> 1.203 + </text> 1.204 + <entry> 1.205 + <default>/home/slitaz/flavors/tazlito.conf</default> 1.206 + <variable>CONFIG_FILE</variable> 1.207 + </entry> 1.208 + <button> 1.209 + <input file icon="accessories-text-editor"></input> 1.210 + <action>leafpad $CONFIG_FILE</action> 1.211 + </button> 1.212 + </hbox> 1.213 + 1.214 + <hbox> 1.215 + <text use-markup="true"> 1.216 + <label>"<b>Packages list :</b>"</label> 1.217 + </text> 1.218 + <entry> 1.219 + <default>/home/slitaz/flavors/distro-packages.list</default> 1.220 + <variable>PKGS_LIST</variable> 1.221 + </entry> 1.222 + <button> 1.223 + <input file icon="accessories-text-editor"></input> 1.224 + <action>leafpad $PKGS_LIST</action> 1.225 + </button> 1.226 + </hbox> 1.227 + 1.228 + </frame> 1.229 + 1.230 + </notebook> 1.231 + 1.232 + <hbox> 1.233 + <button help> 1.234 + <input file icon="help-browser"></input> 1.235 + <action type="launch">HELP</action> 1.236 + </button> 1.237 + <button> 1.238 + <input file icon="exit"></input> 1.239 + <action type="exit">Exit</action> 1.240 + </button> 1.241 + </hbox> 1.242 + 1.243 + </vbox> 1.244 +</window> 1.245 +' 1.246 + 1.247 +# Tazlitobox action 1.248 +check_root 1.249 +cd_flavors 1.250 +gtkdialog --center --program=MAIN_DIALOG 1.251 + 1.252 +exit 0