tazlito rev 132
Update and improve tazlitobox
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Jan 22 23:28:53 2010 +0100 (2010-01-22) |
parents | 8db6f5f382ce |
children | 1cc96a18d594 |
files | tazlitobox |
line diff
1.1 --- a/tazlitobox Fri Jan 22 17:58:40 2010 +0100 1.2 +++ b/tazlitobox Fri Jan 22 23:28:53 2010 +0100 1.3 @@ -15,11 +15,11 @@ 1.4 fi 1.5 } 1.6 1.7 -# By default we go in the flavors dir to download or gen flavors. 1.8 +# By default we go in /home/slitaz to download or gen flavors. 1.9 cd_flavors() 1.10 { 1.11 mkdir -p /home/slitaz/flavors 1.12 - cd /home/slitaz/flavors 1.13 + cd /home/slitaz 1.14 } 1.15 1.16 export HELP=' 1.17 @@ -70,42 +70,91 @@ 1.18 ' 1.19 1.20 # Execute tazlito commands in a XTerm. 1.21 -# 1.22 +# tab-pos="GTK_POS_LEFT" 1.23 export MAIN_DIALOG=' 1.24 <window title="Tazlito Box" icon-name="media-cdrom"> 1.25 <vbox> 1.26 1.27 + <hbox> 1.28 <text use-markup="true"> 1.29 - <label> 1.30 -" 1.31 -<b>SliTaz Live Tool Box</b>" 1.32 - </label> 1.33 + <label>"<b>SliTaz Live Tool</b>"</label> 1.34 + 1.35 </text> 1.36 - <text wrap="true" width-chars="54" use-markup="true"> 1.37 - <label> 1.38 -" 1.39 -Generate a LiveCD flavor with Tazlito. 1.40 -" 1.41 - </label> 1.42 - </text> 1.43 + <pixmap> 1.44 + <input file>/usr/share/pixmaps/tazlito.png</input> 1.45 +</pixmap> 1.46 + 1.47 +</hbox> 1.48 + 1.49 + <notebook labels="Writeiso|Live flavor|Flavors list|Gen flavor|Configuration files"> 1.50 1.51 - <notebook labels="System|Gen Flavor|Flavors|Configuration files"> 1.52 + <frame Filesystem to ISO> 1.53 1.54 - <frame Current packages selection> 1.55 - 1.56 - <text use-markup="true"> 1.57 + <text wrap="true" width-chars="60" use-markup="true"> 1.58 <label> 1.59 " 1.60 -Gen distro will create a LiveCD based on all the currently installed packages. 1.61 +Writeiso will generate an ISO image of the current filesystem as 1.62 +it, including the /home direcory. It is an easy way to remaster 1.63 +SliTaz Live system, you just have to: boot, modify, writeiso. 1.64 " 1.65 </label> 1.66 </text> 1.67 + 1.68 + <hbox> 1.69 + <text use-markup="true"> 1.70 + <label>"<b>Compression :</b> (gzip,lzma,none)"</label> 1.71 + </text> 1.72 + <entry> 1.73 + <default>gzip</default> 1.74 + <variable>COMPRESSION</variable> 1.75 + </entry> 1.76 + </hbox> 1.77 + 1.78 + <hbox> 1.79 + <text use-markup="true"> 1.80 + <label>"<b>ISO image name :</b> "</label> 1.81 + </text> 1.82 + <entry> 1.83 + <default>slitaz</default> 1.84 + <variable>WRITEISO_NAME</variable> 1.85 + </entry> 1.86 + </hbox> 1.87 + <hbox> 1.88 + <button> 1.89 + <label>Writeiso</label> 1.90 + <input file icon="forward"></input> 1.91 + <action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x16 -title "writeiso" -e "tazlito writeiso $COMPRESSION $WRITEISO_NAME"</action> 1.92 + </button> 1.93 + </hbox> 1.94 + </frame> 1.95 + 1.96 + <frame Current packages selection> 1.97 + <text wrap="true" width-chars="60" use-markup="true"> 1.98 + <label> 1.99 +" 1.100 +Gen Live flavor will create a LiveCD based on all the currently 1.101 +installed packages. To build the rootfs and ISO image it will use 1.102 +original SliTaz packages. 1.103 +" 1.104 + </label> 1.105 + </text> 1.106 + 1.107 + <hbox> 1.108 + <text use-markup="true"> 1.109 + <label>"<b>Flavor name :</b>"</label> 1.110 + </text> 1.111 + <entry> 1.112 + <default>slitaz</default> 1.113 + <variable>GEN_LIVEFLAVOR_NAME</variable> 1.114 + </entry> 1.115 + </hbox> 1.116 1.117 <hbox> 1.118 <button> 1.119 <label>Gen distro</label> 1.120 <input file icon="forward"></input> 1.121 <action>cd /home/slitaz</action> 1.122 + <action>sed -i "s/ISO_NAME=.*/ISO_NAME=\"slitaz-$GEN_LIVEFLAVOR_NAME\"/" /etc/tazlito/tazlito.conf</action> 1.123 <action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x16 -title "gen-liveflavor" -e "tazlito gen-liveflavor $GEN_LIVEFLAVOR_NAME && echo -e \"----\nENTER to continue...\" && read close"</action> 1.124 </button> 1.125 <button> 1.126 @@ -115,51 +164,15 @@ 1.127 <action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x16 -title "clean-distro" -e "tazlito clean-distro && sleep 1"</action> 1.128 </button> 1.129 </hbox> 1.130 - <hbox> 1.131 - <text use-markup="true"> 1.132 - <label>"<b>Name :</b>"</label> 1.133 - </text> 1.134 - <entry> 1.135 - <default>slitaz</default> 1.136 - <variable>GEN_LIVEFLAVOR_NAME</variable> 1.137 - </entry> 1.138 - </hbox> 1.139 + 1.140 </frame> 1.141 1.142 - <frame Gen Flavor> 1.143 - 1.144 - <text use-markup="true"> 1.145 + <frame Community and personal flavors> 1.146 + <text wrap="true" width-chars="60" use-markup="true"> 1.147 <label> 1.148 " 1.149 -Gen Flavor will generate a new flavor file based on rootfs in 1.150 -home/slitaz/distro. 1.151 -" 1.152 - </label> 1.153 - </text> 1.154 - 1.155 - <hbox> 1.156 - <text use-markup="true"> 1.157 - <label>"<b>New flavor :</b>"</label> 1.158 - </text> 1.159 - <entry> 1.160 - <default>slitaz</default> 1.161 - <variable>GEN_FLAVOR_NAME</variable> 1.162 - </entry> 1.163 - </hbox> 1.164 - <hbox> 1.165 - <button> 1.166 - <label>Gen new flavor</label> 1.167 - <input file icon="forward"></input> 1.168 - <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.169 - </button> 1.170 - </hbox> 1.171 - </frame> 1.172 - 1.173 - <frame Community and personal flavors> 1.174 - <text wrap="true" use-markup="true"> 1.175 - <label> 1.176 -" 1.177 -Flavors list can be recharged from SliTaz mirror. 1.178 +Get and build preconfigured flavors from the community. Flavors 1.179 +list can be recharged from SliTaz mirror. 1.180 " 1.181 </label> 1.182 </text> 1.183 @@ -205,9 +218,38 @@ 1.184 </button> 1.185 </hbox> 1.186 </frame> 1.187 + 1.188 + <frame Generate a flavor> 1.189 + 1.190 + <text wrap="true" width-chars="60" use-markup="true"> 1.191 + <label> 1.192 +" 1.193 +Gen Flavor will generate a new flavor file based on rootfs in 1.194 +home/slitaz/distro. 1.195 +" 1.196 + </label> 1.197 + </text> 1.198 + 1.199 + <hbox> 1.200 + <text use-markup="true"> 1.201 + <label>"<b>New flavor :</b>"</label> 1.202 + </text> 1.203 + <entry> 1.204 + <default>slitaz</default> 1.205 + <variable>GEN_FLAVOR_NAME</variable> 1.206 + </entry> 1.207 + </hbox> 1.208 + <hbox> 1.209 + <button> 1.210 + <label>Gen new flavor</label> 1.211 + <input file icon="forward"></input> 1.212 + <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.213 + </button> 1.214 + </hbox> 1.215 + </frame> 1.216 1.217 <frame Flavor config and packages list> 1.218 - <text wrap="true" use-markup="true"> 1.219 + <text wrap="true" width-chars="60" use-markup="true"> 1.220 <label> 1.221 " 1.222 Before editing files you must have a flavor description. 1.223 @@ -253,6 +295,7 @@ 1.224 <action type="launch">HELP</action> 1.225 </button> 1.226 <button> 1.227 + <label>Exit</label> 1.228 <input file icon="exit"></input> 1.229 <action type="exit">Exit</action> 1.230 </button>