Linux Security Debian Slax Tiny Core Health

Tiny Core

Install on a Hard Drive While Connected to the Internet

Install on a Hard Drive Without Being Connected to the Internet

Window Managers

Install Microcore

Install on a USB Drive

Additional Users

Install Programs

Root Terminal

Root File Manager

Root Text Editor

Mount a Drive or Partition

Backup

Iptables Firewall

Copy and Paste with the Mouse

Change the Screen Resolution

Background Image

Workspaces

Flash Player

Download Large Files

Printer

Update Tiny Core

Update Programs

Make a live CD with Programs

Dial Up Modems

Tiny Core Links


Previous Versions of Tiny Core

Tiny Core 1

Tiny Core 2.1-3


Other Links


Contact Details

Tiny Core

Install on a Hard Drive

Without Being Connected to the Internet

This method may be used to install Tiny Core on a computer not connected to the internet. It may be used by people who don't have an internet connection at home, and download Tiny Core at work, an internet cafe, or a friends house. It may also be used by people using wireless or dial up internet connections, which can't be connected to the internet until after Tiny Core is installed.

Another option is to Install on a Hard Drive While Connected to the Internet.


Modes of Operation

There are different modes of operation with Tiny Core. These can be seen from the menu (right click), if you select Help. They are also explained in Tiny Core Concepts.

Following is an explanation of how to install Tiny Core using Persistent Personal Repository (PPR), which is ideal for most people.


Things You Need

The Tiny Core CD.

The Parted Magic CD.

The grub-0.97-splash.tcz extension.

Optional: The Xfe extension, .dep file, and dependencies.


Download Tiny Core

Download the latest version of Tiny Core. Write it to a CD.

Tiny Core may be downloaded from various internet sites. Examples include:

The official Tiny Core host

North Carolina, U.S.A.

ftp://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/

Some other mirrors are:

Greece

http://ftp.cc.uoc.gr/mirrors/linux/tinycorelinux/

ftp://ftp.cc.uoc.gr/mirrors/linux/tinycorelinux/

Netherlands

http://ftp.nluug.nl/os/Linux/distr/tinycorelinux/

http://ftp.vim.org/os/Linux/distr/tinycorelinux/

Be aware, when something is added or updated on the official site, there may be some time before it appears on the other mirrors.


Verify md5sum

You can check if your download has been corrupted by verifying the md5sum. It must be exactly the same. If it is different, the download is corrupted, and it needs to be downloaded again.

To check the md5sum while running Linux, open the terminal and type:

cd path
md5sum name

For example if you had tinycore_2.6.iso in /home/username/Downloads, you would type:

cd /home/username/Downloads
md5sum tinycore_2.6.iso

Compare the md5sum generated, with the one on the site you downloaded Tiny Core from.


Download grub-0.97-splash.tcz

Download the grub-0.97-splash.tcz extension. This may be downloaded from any of the websites above, under 2.x. When Tiny Core 3.0 comes out, it will be under 3.x.

Optional: You may also download the Xfe extension, .dep file, and dependencies. If you plan to connect the computer to the internet in the future, also include the .md5.txt files for each extension.

Put these on a USB drive to transfer them. Another option is to put them on a CD.


Download Parted Magic

Download the .iso.zip file of the latest version of Parted Magic. It may be downloaded from http://www.digitalincursion.net/partedmagic/

Unzip it so you have the .iso file.

If you are using Linux, open the terminal and type:

cd path
unzip name

For example if you had pmagic-4.6.iso.zip in /home/username/Downloads, you would type:

cd /home/username/Downloads
unzip pmagic-4.6.iso.zip

Write the Parted Magic iso to a CD.

There is also a USB version of Parted Magic, which may be used by people with a computer which can boot from a USB drive.


Run Parted Magic

Put the Parted Magic CD in the drive, and start the computer, so it runs Parted Magic.

If the computer won't start from the CD, click here for more information.


Partition the Hard Drive

Before installing Tiny Core, the hard drive needs to be partitioned appropriately.

Before partitioning the hard drive, save a copy of all files you want to keep. All files on the hard drive will be lost.

Start the GParted Partition Editor.

Delete existing partitions.

If you plan to install only Tiny Core using the entire hard drive, make an Ext3 partition and a linux-swap partition (another option is to have separate partitions for different directories)(a swap partition is recommended. however, some people choose not to have a swap partition in a computer with a large amount of RAM).

If you plan to install more than one operating system, set up partitions appropriately.

For more information see Partitioning.


Copy Tiny Core to the Partition

Still running Parted Magic, put the Tiny Core CD in the drive. Open the file manager. Copy and paste Tiny Core (the directory "boot" and its contents) to the partition.


Create a tce Directory and Paste Extensions

Still using the file manager, create a new folder in the partition, and name it "tce."

Copy and paste the grub-0.97-splash.tcz extension to the tce directory.

If you downloaded the Xfe extension, dependencies, and .dep file. Copy and paste them to the tce directory.

If you copied extensions from another computer running Tiny Core, and there is a file named tcz2ram.lst or tcz2ram.flg, do not copy it to the tce directory.


If you use a partition other than sda1, change all of the following commands

In this example, Tiny Core is in sda1, which is the same as (hd0,0) in Grub. sda1 and (hd0,0) will be used in all of the following examples. If Tiny Core is in a different partition in your computer, replace sda1 and (hd0,0) with the appropriate partition in all of the following. Following are examples.

SATA hard drives in newer computers.

sda1 = (hd0,0)

sda2 = (hd0,1)

sda3 = (hd0,2)

sdb1 = (hd1,0)

sdb2 = (hd1,1)

IDE hard drives in older computers.

hda1 = (hd0,0)

hda2 = (hd0,1)

hda3 = (hd0,2)

hdb1 = (hd1,0)

hdb2 = (hd1,1)

Notice Grub numbers start with 0, and are always one less than the actual number.

If you are not sure which partition you are using, still using the file manager in Parted Magic, click on the partition, and you will see /media/ followed by the partition.

Be aware, Tiny Core may not run in a partition with a higher number than sda9, sdb9, hda9 or hdb9.

For more information, see Grub.


Run Tiny Core from the CD

Turn the computer off and restart it, running Tiny Core from the CD.


Set Up Grub

If you also have another Linux distribution on the computer, you can skip this step, and just add the Tiny Core start commands to the existing Grub.

If you pasted the Xfe extension, .dep file and dependencies, to the tce directory, start Xfe file manager as root. Open the terminal and type:

sudo xfe

Copy the directory /tmp/tcloop/grub-0.97-splash/usr/lib/grub/i386-pc, including all of the files in it, to /mnt/sda1/boot. Rename "i386-pc" in /mnt/sda1/boot to "grub."


Alternate Method: Using the Root Terminal

If you did not copy Xfe to the tce directory, you can use the root terminal.

To start a root terminal, open the terminal and type:

sudo su

To create a directory for Grub, type:

mkdir -p /mnt/sda1/boot/grub

To copy files to grub, type:

cp -p /tmp/tcloop/grub-0.97-splash/usr/lib/grub/i386-pc/* /mnt/sda1/boot/grub

Run Parted Magic

Turn the computer off, and start it again, running the Parted Magic CD.


Tiny Core Grub Commands

Mount sda1. This can be done by clicking on it in the file manager, or using Mount-gtk.

Start Leafpad text editor.

Type the Tiny Core start commands in a new file, and save it with the name "menu.lst" in the directory "/media/sda1/boot/grub" (note "menu.lst" contains a lower case L, not a one).

The minimum Grub commands for Tiny Core are:

default 0
timeout 5

title   Tiny Core
root   (hd0,0)
kernel   /boot/bzImage quiet
initrd   /boot/tinycore.gz

Most people should include additional boot options, like this:

default 0
timeout 5

title   Tiny Core
root   (hd0,0)
kernel   /boot/bzImage quiet tce=sda1 home=sda1 opt=sda1 max_loop=255
initrd   /boot/tinycore.gz

If you are adding the Tiny Core start commands to Grub from another Linux distribution, the first two lines will already be in Grub. So just add:

title   Tiny Core
root   (hd0,0)
kernel   /boot/bzImage quiet tce=sda1 home=sda1 opt=sda1 max_loop=255
initrd   /boot/tinycore.gz

If you view this on a screen with a low resolution, the end of the long line may return and be on the next line. If you enter it that way, it will not work.

If you don't use Backup to save and restore settings, also include "norestore" in the line which begins with "kernel."


Master Boot Record

The master boot record needs to be set up before Tiny Core can be started.

Still running from the Parted Magic CD, open the Terminal and type:

grub

After getting the Grub prompt, type:

root (hd0,0)
setup (hd0)
quit

If you use a partition other than (hd0,0), change "root (hd0,0)" as appropriate.

When setting up the master boot record on a hard drive in a computer, you normally leave "setup (hd0)" as it is (you may need to change it when setting up the master boot record on a removable drive, such as a USB drive).


Start Tiny Core on the Hard Drive

If you now turn the computer off and restart, Tiny Core can be selected from the Grub menu and started. Remember to remove any CDs.

Enjoy using Tiny Core.


My Preferred Installation

I (Guy) prefer to install Tiny Core as follows (some other people have different preferences).

Set up menu.lst in Grub as in the example above, and also include the norestore boot option.

Make new extensions for anything with personal settings, for example, printer setup.

Don't use backup to save settings.

If installed like this, the only directories which are modified as you use Tiny Core are the /opt directory when you change settings, and the /home directory. The other directories are not changed unless you install additional programs, update programs, or remove programs.

Backup can then be configured to backup your documents.

If you are learning Tiny Core for the first time, you may not know how to make new extensions for personal settings. So it may be better to start using backup to save setting, and later when you learn how to make new extensions for settings, use this method.

Tiny Core is about choices. This is my preference. Others may to do it differently.


Copy Tiny Core to Other Computers

If you install Tiny Core on another computer, you don't need to download the files again. You can just copy all files and directories to the other computer.

If Tiny Core is in a different partition in the other computer, change the partition details in /boot/grub/menu.lst.

Set up the Master Boot Record.

Be aware, certain files and directories contain personal files and settings. If you want to copy these to the other computer, include them. If you don't want to copy them to the other computer, exclude them. These are the /home and /opt directories if you use persistent home and opt, and the file mydata.tgz, normally in the tce directory, if you use backup.


max_loop=

The Grub commands include max_loop=255. The actual number you need depends on how many extensions you mount. If you mount less than 80, you can leave this out. Don't make it the absolute minimum, as you may install additional programs. If you are not sure, make it 50 more than the number of extensions you think you may mount.

If this is left out, or the number is too low, you will get an error message during startup, "mount: could not find any free loop device," and affected programs will not work.


You May Remove the Grub Extension

After installing Tiny Core, you may remove the grub-0.97-splash.tcz extension from the tce directory. You may also leave it there. Removing it will free up a small amount of RAM. It is a good idea is to put it in the /tce/optional directory, so you have it if you install Tiny Core again in the future.


Alternate Grub Commands

These Grub commands may be used instead of those above.

title   Tiny Core
kernel   (hd0,0)/boot/bzImage quiet tce=sda1 home=sda1 opt=sda1 max_loop=255
initrd   (hd0,0)/boot/tinycore.gz

If you view this on a screen with a low resolution, the end of the long line may return and be on the next line. If you enter it that way, it will not work.

If you don't use Backup to save and restore settings, also include "norestore" in the line which begins with "kernel."


< Tiny Core

Window Managers >


© Copyright Guy Shipard 2009