tiny-slitaz annotate index.php @ rev 35

helper: fix /etc/packages.conf
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 13 15:37:38 2021 +0000 (2021-07-13)
parents d968049fa2bd
children
rev   line source
pascal@35 1 <?php // needs 'www ALL=NOPASSWD: /path/to/helper' in /etc/sudoers
pascal@0 2 include "download.php";
pascal@6 3 $static = "http://mirror1.slitaz.org/static/";
pascal@0 4 ?>
pascal@6 5 <!DOCTYPE html>
pascal@6 6 <html lang="en">
pascal@0 7 <head>
pascal@6 8 <meta charset="UTF-8">
pascal@0 9 <title>Tiny SliTaz - Builder</title>
pascal@6 10 <meta name="description" content="Tiny SliTaz Linux">
pascal@28 11 <meta name="keywords" lang="en" content="tiny slitaz, uclibc, tcc">
pascal@6 12 <meta name="robots" content="index, follow, all">
pascal@6 13 <meta name="revisit-after" content="7 days">
pascal@6 14 <meta name="expires" content="never">
pascal@6 15 <meta name="modified" content="<?php echo (date( "Y-m-d H:i:s", getlastmod())); ?>">
pascal@6 16 <meta name="viewport" content="width=device-width, initial-scale=1">
pascal@6 17 <meta name="author" content="SliTaz Contributors">
pascal@6 18 <meta name="publisher" content="www.slitaz.org">
pascal@7 19 <link rel="shortcut icon" href="favicon.ico">
pascal@7 20 <link rel="stylesheet" href="slitaz.min.css">
pascal@6 21 <link rel="stylesheet" href="tiny.css">
pascal@6 22 <style>pre, tt, code { font-size: 0.9rem; }</style>
pascal@0 23 </head>
pascal@0 24 <body>
pascal@0 25
pascal@6 26 <script>de=document.documentElement;de.className+=(("ontouchstart" in de)?' touch':' no-touch');</script>
pascal@6 27
pascal@6 28 <header>
pascal@6 29 <h1 id="top"><a href="http://tiny.slitaz.org/">Tiny SliTaz</a></h1>
pascal@6 30 <div class="network">
pascal@6 31 <a href="http://www.slitaz.org/" class="home"></a>
pascal@0 32 <!-- Get static files from Mirror Files vhost -->
pascal@0 33 <!-- <img src="http://mf.slitaz.org/images/people.png" alt="[ Group ]" /> -->
pascal@0 34 Tiny:
pascal@6 35 <!-- a href="http://scn.slitaz.org/groups/tiny">Group</a -->
pascal@0 36 <a href="http://forum.slitaz.org/forum/tiny">Forum</a>
pascal@0 37 Screenshots:
pascal@0 38 <a href="tinyslitaz.png" title="Tiny SliTaz Manager">main</a>
pascal@0 39 <a href="tinyslitaz-boot.png" title="Tiny SliTaz Manager: boot.log">boot log</a>
pascal@0 40 <a href="tinyslitaz-httpinfo.png" title="Tiny SliTaz Manager: httpd info">httpd info</a>
pascal@0 41 </div>
pascal@6 42 </header>
pascal@0 43
pascal@0 44
pascal@0 45 <!-- Content -->
pascal@6 46 <main>
pascal@0 47
pascal@5 48 <?php if (!empty($error)) echo "
pascal@0 49 <div class=\"nav_box\">
pascal@6 50 <h4>Error:</h4>
pascal@0 51 <p>$error</p>
pascal@0 52 </div>
pascal@0 53 "; ?>
pascal@0 54
pascal@0 55 <h2>Build your configuration from binary packages</h2>
pascal@0 56
pascal@0 57 <?php
pascal@1 58 proc_nice(10);
pascal@0 59 include "step1.php";
pascal@0 60 include "step2.php";
pascal@0 61 include "step3.php";
pascal@0 62 include "step4.php";
pascal@0 63 include "step5.php";
pascal@0 64 ?>
pascal@0 65
pascal@6 66 <h3>Tiny SliTaz goals</h3>
pascal@0 67
pascal@6 68 <p>Useful software, expansible, easy to configure, runs fully in RAM, simple,
paul@17 69 light and fast for minimum hardware resources, i.e. fits on one floppy disk (IDE
pascal@6 70 disk optional), runs on a 386SX processor and needs as little memory as possible
pascal@6 71 (currently 4MB with a 2.6.14 Kernel).
pascal@6 72 <a href="http://doc.slitaz.org/en:guides:pxe#why-use-pxe-the-vnc-example">Example</a>
pascal@0 73 </p>
pascal@0 74
pascal@6 75
pascal@6 76 <h3>Why this builder?</h3>
pascal@6 77
pascal@6 78 <p>Tiny SliTaz should be as small as possible. Only the necessary software is
pascal@6 79 kept. The package manager is run using this website.</p>
pascal@6 80
pascal@6 81
pascal@6 82 <h3>How is it built?</h3>
pascal@6 83
pascal@6 84 <p>The initramfs is based on <a href="http://uclibc.org/"
pascal@6 85 title="Instead of glibc">uClibc</a> and busybox with its <a
pascal@6 86 href="dist/busybox.config.txt">config</a> files and this <a
pascal@6 87 href="http://hg.slitaz.org/wok-tiny/file/tip/base-tiny/stuff">filesystem tree</a>.
pascal@34 88 The selected packages, modules and configuration files are stored in this
pascal@34 89 initramfs.
pascal@0 90 </p>
pascal@0 91
pascal@0 92
pascal@0 93 <!-- End of content -->
pascal@6 94 </main>
pascal@0 95
pascal@6 96 <script>
pascal@5 97 function QRCodePNG(str, obj) {
pascal@5 98 try {
pascal@6 99 obj.height = obj.width += 300;
pascal@5 100 return QRCode.generatePNG(str, {ecclevel: 'H'});
pascal@5 101 }
pascal@5 102 catch (any) {
pascal@5 103 var element = document.createElement("script");
pascal@7 104 element.src = "qrcode.min.js";
pascal@6 105 element.type = "text/javascript";
pascal@5 106 element.onload = function() {
pascal@5 107 obj.src = QRCode.generatePNG(str, {ecclevel: 'H'});
pascal@5 108 };
pascal@5 109 document.body.appendChild(element);
pascal@5 110 }
pascal@5 111 }
pascal@6 112 </script>
pascal@6 113
pascal@6 114 <footer>
pascal@6 115 <div>
pascal@9 116 Copyright © <?php echo date ('Y') ?> <a href="http://www.slitaz.org/">SliTaz</a>
pascal@6 117 </div>
pascal@6 118 <div>
pascal@6 119 Network:
pascal@6 120 <a href="http://scn.slitaz.org/">Community</a> ·
pascal@6 121 <a href="http://doc.slitaz.org/">Doc</a> ·
pascal@6 122 <a href="http://forum.slitaz.org/">Forum</a> ·
pascal@6 123 <a href="http://pkgs.slitaz.org/">Packages</a> ·
pascal@6 124 <a href="http://bugs.slitaz.org">Bugs</a> ·
pascal@6 125 <a href="http://hg.slitaz.org/?sort=lastchange">Hg</a>
pascal@6 126 </div>
pascal@6 127 <div>
pascal@6 128 SliTaz @
pascal@6 129 <a href="http://twitter.com/slitaz">Twitter</a> ·
pascal@6 130 <a href="http://www.facebook.com/slitaz">Facebook</a> ·
pascal@6 131 <a href="http://distrowatch.com/slitaz">Distrowatch</a> ·
pascal@6 132 <a href="http://en.wikipedia.org/wiki/SliTaz">Wikipedia</a> ·
pascal@6 133 <a href="http://flattr.com/profile/slitaz">Flattr</a>
pascal@6 134 </div>
pascal@7 135 <img src="qr.png" alt="#" onmouseover="this.title = location.href"
pascal@6 136 onclick="this.src = QRCodePNG(location.href, this)"/>
pascal@6 137 </footer>
pascal@0 138
pascal@0 139 </body>
pascal@0 140 </html>