Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:scratchbook:base-system [2011/04/21 19:51] – typo edit domcox | en:scratchbook:base-system [2026/10/14 23:55] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 19: | Line 19: | ||
| # cd src | # cd src | ||
| - | * Linux Kernel 2.6.20 (http:// | + | * Linux Kernel 2.6.20 (https:// |
| - | * Busybox 1.2.2 (http:// | + | |
| - | * Syslinux 3.35 (http:// | + | # wget https://mirrors.edge.kernel.org/ |
| - | * SliTaz tools 1.1. Download SliTaz tools, unpack, save the file in src/ and that's it: # wget http:// | + | |
| + | * Busybox 1.2.2 (https:// | ||
| + | |||
| + | # wget http:// | ||
| + | |||
| + | * Syslinux 3.35 (https://wiki.syslinux.org/). | ||
| + | |||
| + | # wget https://mirrors.edge.kernel.org/ | ||
| + | |||
| + | * SliTaz tools 1.1. Download SliTaz tools, unpack, save the file in src/ and that's it: | ||
| + | |||
| + | # wget http:// | ||
| # tar xzf slitaz-tools-1.1.tar.gz | # tar xzf slitaz-tools-1.1.tar.gz | ||
| Line 31: | Line 42: | ||
| ==== Linux Kernel ==== | ==== Linux Kernel ==== | ||
| - | Your kernel must support the intramfs filesystem, otherwise the cdrom will not start. You can also install the modules in a directory so as not to touch the host system. The configuration of the Linux kernel sources is done by "make menuconfig" | + | Your kernel must support the intramfs filesystem, otherwise the cdrom will not start. You can also install the modules in a directory so as not to touch the host system. The configuration of the Linux kernel sources is done by "make menuconfig" |
| A feature of the 2.6 kernels is that if we make menuconfig, xconfig or config for the first time, the setup menu is displayed based on the configuration of our current kernel. | A feature of the 2.6 kernels is that if we make menuconfig, xconfig or config for the first time, the setup menu is displayed based on the configuration of our current kernel. | ||
| Line 133: | Line 144: | ||
| # cp ../ | # cp ../ | ||
| # ./ | # ./ | ||
| - | | + | |
| + | or: | ||
| # cp ../ | # cp ../ | ||
| # ./ | # ./ | ||
| Line 152: | Line 165: | ||
| Create the necessary files in /etc. For more info, just look at the contents of the files. We start by creating some files relevant to the core operating system. | Create the necessary files in /etc. For more info, just look at the contents of the files. We start by creating some files relevant to the core operating system. | ||
| - | ==== Network | + | ==== Configure network |
| Create basic files used to configure the network: | Create basic files used to configure the network: | ||
| Line 167: | Line 180: | ||
| # nano etc/ | # nano etc/ | ||
| + | < | ||
| # / | # / | ||
| # | # | ||
| Line 177: | Line 190: | ||
| hosts: | hosts: | ||
| networks: | networks: | ||
| + | </ | ||
| ==== / | ==== / | ||
| Line 183: | Line 196: | ||
| # nano etc/ | # nano etc/ | ||
| + | < | ||
| # / | # / | ||
| # | # | ||
| Line 199: | Line 212: | ||
| tty6 | tty6 | ||
| tty7 | tty7 | ||
| + | </ | ||
| ==== /etc/shells ==== | ==== /etc/shells ==== | ||
| Line 205: | Line 218: | ||
| # nano etc/shells | # nano etc/shells | ||
| + | < | ||
| # / | # / | ||
| /bin/sh | /bin/sh | ||
| /bin/ash | /bin/ash | ||
| /bin/hush | /bin/hush | ||
| + | </ | ||
| ==== /etc/issue and /etc/motd ==== | ==== /etc/issue and /etc/motd ==== | ||
| Line 218: | Line 231: | ||
| # echo "" | # echo "" | ||
| # nano etc/motd | # nano etc/motd | ||
| - | + | < | |
| - | (�- { Get documentation in: / | + | (°- { Get documentation in: / |
| // | // | ||
| v_/_ | v_/_ | ||
| Line 225: | Line 238: | ||
| SliTaz is distributed in the hope that it will be useful, but | SliTaz is distributed in the hope that it will be useful, but | ||
| with ABSOLUTELY NO WARRANTY. | with ABSOLUTELY NO WARRANTY. | ||
| + | </ | ||
| ==== / | ==== / | ||
| - | The configuration file for BusyBox, it can set duties on BusyBox applications. For more information, | + | The configuration file for BusyBox, it can set duties on BusyBox applications. For more information, |
| # nano etc/ | # nano etc/ | ||
| + | < | ||
| # / | # / | ||
| # | # | ||
| Line 243: | Line 256: | ||
| reboot = ssx root.root | reboot = ssx root.root | ||
| halt = ssx root.root | halt = ssx root.root | ||
| + | </ | ||
| For added security, change the permissions on the file: | For added security, change the permissions on the file: | ||
| Line 253: | Line 266: | ||
| # nano etc/inittab | # nano etc/inittab | ||
| + | < | ||
| # / | # / | ||
| Line 261: | Line 274: | ||
| :: | :: | ||
| :: | :: | ||
| + | </ | ||
| You will also find a wider example of an inittab file in the archive of BusyBox. | You will also find a wider example of an inittab file in the archive of BusyBox. | ||
| Line 269: | Line 282: | ||
| # nano etc/profile | # nano etc/profile | ||
| + | < | ||
| # / | # / | ||
| Line 285: | Line 298: | ||
| export PATH LD_LIBRARY_PATH PS1 DISPLAY ignoreeof | export PATH LD_LIBRARY_PATH PS1 DISPLAY ignoreeof | ||
| umask 022 | umask 022 | ||
| + | </ | ||
| ==== Users, groups and passwords ==== | ==== Users, groups and passwords ==== | ||
| Line 304: | Line 317: | ||
| # nano etc/fstab | # nano etc/fstab | ||
| + | < | ||
| # /etc/fstab: information about static file system. | # /etc/fstab: information about static file system. | ||
| # | # | ||
| Line 311: | Line 324: | ||
| devpts | devpts | ||
| tmpfs / | tmpfs / | ||
| + | </ | ||
| /etc/mtab is used by other mkfs*, for listing the mounted partitions. It needs /proc because there is a link on / | /etc/mtab is used by other mkfs*, for listing the mounted partitions. It needs /proc because there is a link on / | ||
| Line 344: | Line 357: | ||
| ==== / | ==== / | ||
| - | To finish off this draft, you must create the init script / | + | To finish off this draft, you must create the init script / |
| # mkdir etc/init.d | # mkdir etc/init.d | ||
| # nano etc/ | # nano etc/ | ||
| + | < | ||
| #! /bin/sh | #! /bin/sh | ||
| # / | # / | ||
| Line 364: | Line 377: | ||
| # chmod +x etc/ | # chmod +x etc/ | ||
| + | </ | ||
| ==== Note ==== | ==== Note ==== | ||
| Line 418: | Line 431: | ||
| # nano rootcd/ | # nano rootcd/ | ||
| + | < | ||
| display display.txt | display display.txt | ||
| default slitaz | default slitaz | ||
| Line 427: | Line 440: | ||
| prompt 1 | prompt 1 | ||
| timeout 80 | timeout 80 | ||
| + | </ | ||
| Here are some changes that you might like to make in isolinux.cfg: | Here are some changes that you might like to make in isolinux.cfg: | ||
| Line 439: | Line 452: | ||
| # nano rootcd/ | # nano rootcd/ | ||
| + | < | ||
| /* _\|/_ | /* _\|/_ | ||
| (o o) | (o o) | ||
| Line 454: | Line 467: | ||
| */ | */ | ||
| + | </ | ||
| ===== Create an ISO image with genisoimage or mkisofs ===== | ===== Create an ISO image with genisoimage or mkisofs ===== | ||
| Line 481: | Line 494: | ||
| The next chapter [[base-apps|Base applications]] provides all the instructions to install and configure the basic applications and libraries. | The next chapter [[base-apps|Base applications]] provides all the instructions to install and configure the basic applications and libraries. | ||
| - | Copyright © [[http:// | ||