SliTaz GNU/Linux official and community documentation wiki.
.png

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:scratchbook:base-system [2011/04/21 23:10]
domcox tiny edit
en:scratchbook:base-system [2023/05/07 08:43] (current)
hgt [Wget src] updated URIs
Line 19: Line 19:
    # cd src    # cd src
  
-  * Linux Kernel 2.6.20 (http://​www.kernel.org/​). ​  # wget ftp://ftp.kernel.org/​pub/​linux/​kernel/​v2.6/​linux-2.6.20.tar.bz2 +  * Linux Kernel 2.6.20 (https://​www.kernel.org/​). 
-  * Busybox 1.2.2 (http://​www.busybox.net/​). ​  # wget http://​www.busybox.net/​downloads/​busybox-1.2.2.tar.bz2 + 
-  * Syslinux 3.35 (http://​syslinux.zytor.com/).   # wget ftp://ftp.kernel.org/​pub/​linux/​boot/​syslinux/​syslinux-3.35.tar.gz +   # wget https://mirrors.edge.kernel.org/​pub/​linux/​kernel/​v2.6/​linux-2.6.20.tar.bz2 
-  * SliTaz tools 1.1. Download SliTaz tools, unpack, save the file in src/ and that's it:    # wget http://​download.tuxfamily.org/​slitaz/​sources/​tools/​slitaz-tools-1.1.tar.gz+ 
 +  * Busybox 1.2.2 (https://​www.busybox.net/​). 
 + 
 +   # wget http://​www.busybox.net/​downloads/​busybox-1.2.2.tar.bz2 
 + 
 +  * Syslinux 3.35 (https://wiki.syslinux.org/). 
 + 
 +   # wget https://mirrors.edge.kernel.org/​pub/​linux/utils/​boot/​syslinux/3.xx/​syslinux-3.35.tar.gz 
 + 
 +  * SliTaz tools 1.1. Download SliTaz tools, unpack, save the file in src/ and that's it: 
 + 
 +     # wget http://​download.tuxfamily.org/​slitaz/​sources/​tools/​slitaz-tools-1.1.tar.gz
      # tar xzf slitaz-tools-1.1.tar.gz      # tar xzf slitaz-tools-1.1.tar.gz
  
Line 133: Line 144:
    # cp ../​src/​slitaz-tools-1.1/​utils/​mktazdevs.sh bin    # cp ../​src/​slitaz-tools-1.1/​utils/​mktazdevs.sh bin
    # ./​bin/​mktazdevs.sh dev    # ./​bin/​mktazdevs.sh dev
-  ​or:+ 
 +or: 
    # cp ../​src/​busybox-1.2.2/​examples/​bootfloppy/​mkdevs.sh bin    # cp ../​src/​busybox-1.2.2/​examples/​bootfloppy/​mkdevs.sh bin
    # ./​bin/​mkdevs.sh dev    # ./​bin/​mkdevs.sh dev
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/​nsswitch.conf    # nano etc/​nsswitch.conf
 +<​file>​
   # /​etc/​nsswitch.conf:​ GNU Name Service Switch config.   # /​etc/​nsswitch.conf:​ GNU Name Service Switch config.
   #   #
Line 177: Line 190:
   hosts: ​     files dns   hosts: ​     files dns
   networks: ​  files   networks: ​  files
 +</​file>​
 ==== /​etc/​securetty ==== ==== /​etc/​securetty ====
  
Line 183: Line 196:
  
    # nano etc/​securetty    # nano etc/​securetty
 +<​file>​
   # /​etc/​securetty:​ List of terminals on which root is allowed to login.   # /​etc/​securetty:​ List of terminals on which root is allowed to login.
   #   #
Line 199: Line 212:
   tty6   tty6
   tty7   tty7
 +</​file>​
 ==== /etc/shells ==== ==== /etc/shells ====
  
Line 205: Line 218:
  
    # nano etc/shells    # nano etc/shells
 +<​file>​
   # /​etc/​shells:​ valid login shells.   # /​etc/​shells:​ valid login shells.
   /bin/sh   /bin/sh
   /bin/ash   /bin/ash
   /bin/hush   /bin/hush
 +</​file>​
 ==== /etc/issue and /etc/motd ==== ==== /etc/issue and /etc/motd ====
  
Line 218: Line 231:
    # echo ""​ >> etc/issue    # echo ""​ >> etc/issue
    # nano etc/motd    # nano etc/motd
- +<​file>​ 
-   (-  { Get documentation in: /​usr/​share/​doc.+   (°-  { Get documentation in: /​usr/​share/​doc.
    //​\ ​   Use: '​less'​ or '​more'​ to read files, '​su'​ to be root. }    //​\ ​   Use: '​less'​ or '​more'​ to read files, '​su'​ to be root. }
    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.
 +</​file>​
 ==== /​etc/​busybox.conf ==== ==== /​etc/​busybox.conf ====
  
Line 231: Line 244:
  
    # nano etc/​busybox.conf    # nano etc/​busybox.conf
 +<​file>​
   # /​etc/​busybox.conf:​ SliTaz GNU/linux Busybox configuration.   # /​etc/​busybox.conf:​ SliTaz GNU/linux Busybox configuration.
   #   #
Line 243: Line 256:
   reboot = ssx root.root   reboot = ssx root.root
   halt = ssx root.root   halt = ssx root.root
 +</​file>​
 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
 +<​file>​
   # /​etc/​inittab:​ init configuration for SliTaz GNU/Linux.   # /​etc/​inittab:​ init configuration for SliTaz GNU/Linux.
  
Line 261: Line 274:
   ::​ctrlaltdel:/​bin/​umount -a -r   ::​ctrlaltdel:/​bin/​umount -a -r
   ::​ctrlaltdel:/​sbin/​reboot   ::​ctrlaltdel:/​sbin/​reboot
 +</​file>​
 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
 +<​file>​
   # /​etc/​profile:​ system-wide .profile file for the Bourne shells   # /​etc/​profile:​ system-wide .profile file for the Bourne shells
  
Line 285: Line 298:
   export PATH LD_LIBRARY_PATH PS1 DISPLAY ignoreeof   export PATH LD_LIBRARY_PATH PS1 DISPLAY ignoreeof
   umask 022   umask 022
 +</​file>​
 ==== Users, groups and passwords ==== ==== Users, groups and passwords ====
  
Line 304: Line 317:
  
    # nano etc/fstab    # nano etc/fstab
 +<​file>​
   # /etc/fstab: information about static file system.   # /etc/fstab: information about static file system.
   #   #
Line 311: Line 324:
   devpts ​         /​dev/​pts ​    ​devpts ​ defaults ​         0       0   devpts ​         /​dev/​pts ​    ​devpts ​ defaults ​         0       0
   tmpfs           /​dev/​shm ​    ​tmpfs ​  ​defaults ​         0       0   tmpfs           /​dev/​shm ​    ​tmpfs ​  ​defaults ​         0       0
 +</​file>​
 /etc/mtab is used by other mkfs*, for listing the mounted partitions. It needs /proc because there is a link on /​proc/​mounts:​ /etc/mtab is used by other mkfs*, for listing the mounted partitions. It needs /proc because there is a link on /​proc/​mounts:​
  
Line 348: Line 361:
    # mkdir etc/init.d    # mkdir etc/init.d
    # nano etc/​init.d/​rcS    # nano etc/​init.d/​rcS
 +<​file>​
   #! /bin/sh   #! /bin/sh
   # /​etc/​init.d/​rcS:​ rcS initial script.   # /​etc/​init.d/​rcS:​ rcS initial script.
Line 364: Line 377:
  
    # chmod +x etc/​init.d/​rcS    # chmod +x etc/​init.d/​rcS
 +</​file>​
 ==== Note ==== ==== Note ====
  
Line 418: Line 431:
  
    # nano rootcd/​boot/​isolinux/​isolinux.cfg    # nano rootcd/​boot/​isolinux/​isolinux.cfg
 +<​file>​
   display display.txt   display display.txt
   default slitaz   default slitaz
Line 427: Line 440:
   prompt 1   prompt 1
   timeout 80   timeout 80
 +</​file>​
 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/​boot/​isolinux/​display.txt    # nano rootcd/​boot/​isolinux/​display.txt
 +<​file>​
   /*       _\|/_   /*       _\|/_
            (o o)            (o o)
Line 454: Line 467:
  
                                                                      */                                                                      */
 +</​file>​
 ===== Create an ISO image with genisoimage or mkisofs ===== ===== Create an ISO image with genisoimage or mkisofs =====
  
 
en/scratchbook/base-system.1303420251.txt.gz · Last modified: 2011/04/21 23:10 by domcox