website annotate en/doc/handbook/install.html @ rev 107
fixed typos in system-admin pages : tick.greyware.com is the right URL
for the time server, tick.grayware.com doesn't work
for the time server, tick.grayware.com doesn't work
author | tux@HarimaKenji |
---|---|
date | Mon Jul 14 22:22:15 2008 +0200 (2008-07-14) |
parents | f22b7b3db0f1 |
children | 9e30e64c8198 |
rev | line source |
---|---|
pankso@16 | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
pankso@16 | 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
pankso@16 | 3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
pankso@16 | 4 <head> |
pankso@16 | 5 <title>SliTaz - HD Installation</title> |
pankso@16 | 6 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> |
pankso@16 | 7 <meta name="description" content="slitaz English handbook installation" /> |
pankso@16 | 8 <meta name="expires" content="never" /> |
pankso@16 | 9 <meta name="modified" content="2008-04-07 11:30:00" /> |
pankso@16 | 10 <meta name="publisher" content="www.slitaz.org" /> |
pankso@16 | 11 <meta name="author" content="Christophe Lincoln"/> |
pankso@16 | 12 <link rel="shortcut icon" href="favicon.ico" /> |
pankso@16 | 13 <link rel="stylesheet" type="text/css" href="book.css" /> |
pankso@16 | 14 </head> |
pankso@16 | 15 <body bgcolor="#ffffff"> |
pankso@16 | 16 |
pankso@16 | 17 <!-- Header and quick navigation --> |
pankso@16 | 18 <div id="header"> |
pankso@16 | 19 <div align="right" id="quicknav"> |
pankso@16 | 20 <a name="top"></a> |
paul@68 | 21 <a href="utilities.html">Utilities</a> | |
pankso@16 | 22 <a href="index.html">Table of contents</a> |
pankso@16 | 23 </div> |
pankso@16 | 24 <h1><font color="#3E1220">SliTaz Handbook (en)</font></h1> |
pankso@16 | 25 </div> |
pankso@16 | 26 |
pankso@16 | 27 <!-- Content. --> |
pankso@16 | 28 <div id="content"> |
pankso@16 | 29 <div class="content-right"></div> |
pankso@16 | 30 |
pankso@16 | 31 <h2><font color="#DF8F06">HD Installation</font></h2> |
pankso@16 | 32 |
pankso@16 | 33 <ul> |
pankso@16 | 34 <li><a href="#intro">Introduction.</a></li> |
pankso@16 | 35 <li><a href="#installer">SliTaz Installer.</a></li> |
pankso@16 | 36 <li><a href="#byhand">Installation by hand.</a></li> |
pankso@16 | 37 <li><a href="#grub">GRUB bootloader.</a></li> |
pankso@16 | 38 </ul> |
pankso@16 | 39 |
pankso@16 | 40 <a name="intro"></a> |
pankso@16 | 41 <h3>Introduction</h3> |
pankso@16 | 42 <p> |
pankso@17 | 43 This document gives information and necessary instructions on how to |
pankso@17 | 44 install SliTaz on a hard disk. This should take about 10 minutes, SliTaz core |
pankso@17 | 45 LiveCD expands to 80 Mb, so we suggest a minimum of 120 Mb of free space. |
pankso@17 | 46 That way you will be able to install a few more packages. If you can |
pankso@16 | 47 <a href="livecd.html">use the LiveCD</a>, you should be able to install SliTaz. |
pankso@16 | 48 </p> |
pankso@16 | 49 |
pankso@16 | 50 <a name="installer"></a> |
pankso@16 | 51 <h3>SliTaz Installer</h3> |
pankso@16 | 52 <p> |
pankso@17 | 53 SliTaz provides a simple to use Installer which can be launched from the |
pankso@17 | 54 "System Tools" menu. SliTaz 1.0 Installer messages are only available in French |
pankso@17 | 55 and can be considered as an errata, but English speakers should be able to |
pankso@17 | 56 manage to use it with these complimentary instructions. |
pankso@16 | 57 </p> |
pankso@16 | 58 <h4>Install type</h4> |
pankso@16 | 59 <p> |
pankso@17 | 60 The first step lets you choose the type of installation: new install or system |
paul@18 | 61 upgrade. In most cases you will want a new and clean installation. On confirming this |
pankso@16 | 62 the installer will mount the master cdrom device and search for the compressed |
pankso@17 | 63 filesystem (<code>rootfs.gz</code>). If any filesystem was found, then installation |
pankso@16 | 64 will abort. |
pankso@16 | 65 </p> |
pankso@16 | 66 <p> |
pankso@16 | 67 If you get into trouble because the compressed filesystem is not found, please |
pankso@17 | 68 check that SliTaz is in the master CD/DVD device. If the problem persists you |
pankso@16 | 69 can use a downloaded ISO image and mount it on <code>/media/cdrom</code> where |
pankso@17 | 70 the HD Installer expects to find it: |
pankso@16 | 71 </p> |
pankso@16 | 72 <pre> |
pankso@16 | 73 # mount -o loop slitaz-1.0.iso /media/cdrom |
pankso@16 | 74 </pre> |
pankso@16 | 75 <h4>Target partition</h4> |
pankso@16 | 76 <p> |
pankso@16 | 77 Second step is the partition configuration. If you have already a free partition |
pankso@17 | 78 you can directly use it, if not you will have to create one graphically with |
pankso@16 | 79 Gparted or from the command line with fdisk. For example if you want to install |
pankso@16 | 80 SliTaz on the first partition of the first disk recognized as <code>hda</code>: |
pankso@16 | 81 </p> |
pankso@17 | 82 <pre class="script">/dev/hda1 |
pankso@16 | 83 </pre> |
pankso@16 | 84 <h4>Formating</h4> |
pankso@16 | 85 <p> |
pankso@17 | 86 The next step lets you format the target partition into <code>ext3</code>. Ext3 |
pankso@16 | 87 is a robust, stable and journalised filesystem. If the partition is already |
paul@35 | 88 formated you can skip this step, if not just accept. <em>Warning</em> formating a |
pankso@16 | 89 partition will destroy all current data. |
pankso@16 | 90 </p> |
pankso@16 | 91 <h4>Hostname</h4> |
pankso@16 | 92 <p> |
pankso@17 | 93 Hostname configuration lets you set the machine name. The hostname is used |
paul@18 | 94 internally to identify the host on the network. This value can be |
pankso@16 | 95 changed when the system is installed. |
pankso@16 | 96 </p> |
pankso@16 | 97 <h4>Bootloader - GRUB</h4> |
pankso@16 | 98 <p> |
pankso@17 | 99 When the installation process is finished you have the option to install the GRUB |
pankso@17 | 100 bootloader which is capable of booting almost any kind of operating system. If |
pankso@16 | 101 you want to use an existing GRUB installation, skip this step and add the |
pankso@16 | 102 correct lines to your GRUB configuration file (<code>menu.lst</code>). Note |
pankso@17 | 103 that the SliTaz Installer creates a configuration file on the target which can be |
pankso@17 | 104 used as an example (/mnt/target/boot/grub/menu.lst). |
pankso@16 | 105 </p> |
pankso@16 | 106 <h4>End of installation</h4> |
pankso@16 | 107 <p> |
pankso@17 | 108 When the Installer has finally done it's job you have the option to exit or |
pankso@17 | 109 directly reboot your new SliTaz GNU/Linux operating system. First boot is like |
pankso@17 | 110 the LiveCD, you will be prompted for locale, keyboard, sound card and screen |
pankso@17 | 111 selection. Future reboots will not prompt you anymore for configuration details, |
pankso@17 | 112 but all the values can be changed either manually or with the project tools |
pankso@17 | 113 such as <code>tazlocale</code> or <code>tazx</code>. |
pankso@16 | 114 </p> |
pankso@16 | 115 |
pankso@16 | 116 <a name="byhand"></a> |
pankso@16 | 117 <h3>Installation by hand</h3> |
pankso@16 | 118 <p> |
pankso@16 | 119 SliTaz can also be installed by hand from the command line. To install SliTaz |
paul@18 | 120 by hand you can use a cdrom or an ISO image. The following commands can be |
pankso@17 | 121 copied/pasted from Firefox to Xterm. |
pankso@16 | 122 </p> |
pankso@16 | 123 <p> |
pankso@16 | 124 The first thing you have to do is prepare a target partition and mount it. |
pankso@16 | 125 Example using partition <code>/dev/hda1</code>: |
pankso@16 | 126 </p> |
pankso@16 | 127 <pre> |
pankso@16 | 128 # mkdir /mnt/target |
pankso@16 | 129 # mount /dev/hda1 /mnt/target |
pankso@16 | 130 </pre> |
pankso@16 | 131 <h4>Mount cdrom or ISO image</h4> |
pankso@16 | 132 <p> |
pankso@16 | 133 Now you have to mount the cdrom: |
pankso@16 | 134 </p> |
pankso@16 | 135 <pre> |
pankso@16 | 136 # mount /dev/cdrom /media/cdrom |
pankso@16 | 137 </pre> |
pankso@16 | 138 <p> |
pankso@17 | 139 Or an ISO image: |
pankso@16 | 140 </p> |
pankso@16 | 141 <pre> |
pankso@16 | 142 # mount -o loop slitaz-1.0.iso /media/cdrom |
pankso@16 | 143 </pre> |
pankso@16 | 144 <h4>Install and extract</h4> |
pankso@16 | 145 <p> |
pankso@17 | 146 The goal now is to copy needed files from the media into the target partition |
pankso@17 | 147 and then extract the compressed filesystem (<code>rootfs.gz</code>). Create a |
pankso@16 | 148 boot directory and install the Linux Kernel: |
pankso@16 | 149 </p> |
pankso@16 | 150 <pre> |
pankso@16 | 151 # mkdir /mnt/target/boot |
pankso@16 | 152 # cp -a /media/cdrom/boot/vmlinuz-* /mnt/target/boot |
pankso@16 | 153 </pre> |
pankso@16 | 154 <p> |
pankso@16 | 155 Copy the rootfs: |
pankso@16 | 156 </p> |
pankso@16 | 157 <pre> |
pankso@16 | 158 # cp /media/cdrom/boot/rootfs.gz /mnt/target |
pankso@16 | 159 </pre> |
pankso@16 | 160 <p> |
pankso@16 | 161 Now the necessary files are present so you can change directory (<code>cd</code>) |
pankso@17 | 162 to the target and uncompress the filesystem with <code>lzma</code> and |
pankso@16 | 163 <code>cpio</code>: |
pankso@16 | 164 </p> |
pankso@16 | 165 <pre> |
pankso@16 | 166 # cd /mnt/target |
pankso@16 | 167 # lzma d rootfs.gz -so | cpio -id |
pankso@16 | 168 # rm rootfs.gz init |
pankso@16 | 169 </pre> |
pankso@16 | 170 <p> |
pankso@17 | 171 That's all, SliTaz is installed. Before rebooting on your new SliTaz GNU/Linux |
pankso@16 | 172 installation please check that you have a bootloader (GRUB or Lilo) and add |
pankso@16 | 173 the necessary lines to boot SliTaz. |
pankso@16 | 174 </p> |
pankso@16 | 175 |
pankso@16 | 176 <a name="grub"></a> |
pankso@16 | 177 <h3>GRUB bootloader</h3> |
pankso@16 | 178 <p> |
pankso@17 | 179 GRUB is an universal bootloader capable of booting almost any operating system |
pankso@17 | 180 such as Linux, BSD or Windows. GRUB uses a single configuration file named |
pankso@17 | 181 <code>menu.lst</code>, if you used the <a href="#installer">SliTaz Installer</a> |
pankso@17 | 182 and installed GRUB you dont need to manually install GRUB, just reboot. |
pankso@16 | 183 </p> |
pankso@16 | 184 <p> |
pankso@17 | 185 Installation of GRUB onto the mbr, using root directory <code>/mnt/target</code> |
pankso@17 | 186 (the target mounted partition) and the disk named <code>hda</code>: |
pankso@16 | 187 </p> |
pankso@16 | 188 <pre> |
pankso@16 | 189 # grub-install --root-directory=/mnt/target /dev/hda |
pankso@16 | 190 </pre> |
pankso@16 | 191 <p> |
pankso@17 | 192 You can now create a GRUB configuration file and add the lines which will boot |
pankso@16 | 193 SliTaz. Menu.lst can be edited with your favorite text editor such as Nano or |
pankso@16 | 194 Leafpad: |
pankso@16 | 195 </p> |
pankso@16 | 196 <pre> |
pankso@16 | 197 # leafpad /mnt/target/boot/grub/menu.lst |
pankso@16 | 198 </pre> |
pankso@16 | 199 <h4>/boot/grub/menu.lst - Example</h4> |
pankso@16 | 200 <pre class="script"> |
pankso@16 | 201 title SliTaz GNU/Linux 1.0 (Kernel 2.6.24.2-slitaz) |
pankso@16 | 202 root(hd0,0) |
pankso@16 | 203 kernel /boot/vmlinuz-2.6.24.2-slitaz root=/dev/hda1 vga=normal |
pankso@16 | 204 </pre> |
pankso@16 | 205 <p> |
pankso@16 | 206 Verify again that everything is in place before rebooting: |
pankso@16 | 207 </p> |
pankso@16 | 208 <pre> |
pankso@16 | 209 # reboot |
pankso@16 | 210 </pre> |
pankso@16 | 211 |
pankso@16 | 212 <!-- End of content --> |
pankso@16 | 213 </div> |
pankso@16 | 214 |
pankso@16 | 215 <!-- Footer. --> |
pankso@16 | 216 <div id="footer"> |
pankso@16 | 217 <div class="footer-right"></div> |
pankso@16 | 218 <a href="#top">Top of the page</a> | |
pankso@16 | 219 <a href="index.html">Table of contents</a> |
pankso@16 | 220 </div> |
pankso@16 | 221 |
pankso@16 | 222 <div id="copy"> |
pankso@16 | 223 Copyright © 2008 <a href="http://www.slitaz.org/en/">SliTaz</a> - |
pankso@16 | 224 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>;<br /> |
pankso@16 | 225 Documentation is under |
pankso@16 | 226 <a href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License</a> |
pankso@16 | 227 and code is <a href="http://validator.w3.org/">valid xHTML 1.0</a>. |
pankso@16 | 228 </div> |
pankso@16 | 229 |
pankso@16 | 230 </body> |
pankso@16 | 231 </html> |