Difference between pages "Install/Stage3" and "Install/Overview"

< Install(Difference between pages)
(Installing the Stage 3 tarball)
 
(Live CD)
 
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
{{InstallPart|the process of installing the Stage3 tarball}}
+
{{InstallPart|an initial overview of the installation process as well as LiveCD download and boot instructions.}}
 
</noinclude>
 
</noinclude>
==== Setting the Date ====
+
== Installation Overview ==
  
{{fancyimportant|If your system's date and time are too far off (typically by months or years,) then it may prevent Portage from properly downloading source tarballs. This is because some of our sources are downloaded via HTTPS, which use SSL certificates and are marked with an activation and expiration date. However, if you system time is relatively close to correct, you can probably skip this step for now.}}
+
This is a basic overview of the Funtoo installation process:
  
Now is a good time to verify the date and time are correctly set to UTC. Use the <code>date</code> command to verify the date and time:
+
# [[#Live CD|Download and boot the live CD of your choice]].
 +
# [[#Prepare Hard Disk|Prepare your disk]].
 +
# [[#Creating filesystems|Create]] and [[#Mounting filesystems|mount]] filesystems.
 +
# [[#Installing the Stage 3 tarball|Install the Funtoo stage tarball]] of your choice.
 +
# [[#Chroot into Funtoo|Chroot into your new system]].
 +
# [[#Downloading the Portage tree|Download the Portage tree]].
 +
# [[#Configuring your system|Configure your system]] and [[#Configuring your network|network]].
 +
# [[#Configuring and installing the Linux kernel|Install a kernel]].
 +
# [[#Installing a Bootloader|Install a bootloader]].
 +
# [[#Finishing Steps|Complete final steps]].
 +
# [[#Restart your system|Reboot and enjoy]].
  
<console>
+
=== Live CD ===
# ##i##date
+
 
Fri Jul 15 19:47:18 UTC 2011
+
Funtoo doesn't provide an "official" Funtoo Live CD. We recommend using the Gentoo-based [http://www.sysresccd.org/ System Rescue CD] as it contains lots of tools and utilities and supports both 32-bit and 64-bit systems. Download it here:
</console>
+
  
If the date and/or time need to be corrected, do so using <code>date MMDDhhmmYYYY</code>, keeping in mind <code>hhmm</code> are in 24-hour format. The example below changes the date and time to "July 16th, 2011 @ 8:00PM" UTC:
+
http://www.sysresccd.org/Download
 +
 
 +
{{Note|If using an older version of System Rescue CD, '''be sure to select the <code>rescue64</code> kernel at the boot menu if you are installing a 64-bit system'''. By default, System Rescue CD used to boot in 32-bit mode though the latest version attempts to automatically detect 64-bit processors.}}
 +
 
 +
==== Network Access ====
 +
 
 +
Once you have booted System Rescue CD, see if you have network access:
  
 
<console>
 
<console>
# ##i##date 071620002011
+
# ##i##ping www.google.com
Fri Jul 16 20:00:00 UTC 2011
+
 
</console>
 
</console>
  
Once you have set the system clock, it's a very good idea to copy the time to the hardware clock, so it persists across reboots:
+
If the ping is successful, then your Network is set up. Hit Control-C to stop the ping. If you need to establish a WiFi connection for your network, then this needs to be done using the System Rescue CD graphical environment. Run <code>startx</code> to start a graphical session:
  
 
<console>
 
<console>
# ##i##hwclock --systohc
+
# ##i##startx
 
</console>
 
</console>
  
=== Installing the Stage 3 tarball ===
+
Then, use the NetworkManager applet (icon in lower right) to connect to a WiFi network of your choice. Next, open a terminal inside your graphical environment, and you should be able to use the terminal to complete the rest of the steps.
  
Now that filesystems are created and your hardware and system clock are set, the next step is downloading the initial Stage 3 tarball. The Stage 3 is a pre-compiled system used as a starting point to install Funtoo Linux.
+
==== Remote Install ====
  
To download the correct build of Funtoo Linux for your system, head over to the [[Subarches]] page. Subarches are builds of Funtoo Linux that are designed to run on a particular type of CPU, to offer the best possible performance. They also take advantage of the instruction sets available for each CPU.
+
Alternatively, you can log in to your System Rescue CD-booted system over the network via SSH to perform the install, and this may be more convenient for you.
  
The [[Subarches]] page lists all CPU-optimized versions of Funtoo Linux. Find the one that is appropriate for the type of CPU that your system has, and then click on its name in the first column (such as <code>corei7</code>, for example.) You will then go to a page dedicated to that subarch, and the available stage3's available for download will be listed.
+
If you'd like to complete the install remotely, here's how. First, you will need to ensure that you are connected to the network. Then, you will need to set a root password for System Rescue CD:
  
{{Note|1=
+
<console>
For a full overview of the Subarch pages and what they offer, see our news item: [[News:The Many Builds of Funtoo Linux]].
+
# ##i##passwd
}}
+
New password: ##i##********
 +
Retype new password: ##i##********
 +
passwd: password updated successfully
 +
#
 +
</console>
  
For most subarches, you will have several stage3's available to choose from. This next section will help you understand which one to pick.
+
Once you have typed in a password, you will now need to determine the IP address of System Rescue CD, and then you can use <code>ssh</code> to connect to it. To determine the IP address currently being used by System Rescue CD, type <code>ifconfig</code>:
  
==== Which Build? ====
+
<console>
 
+
# ##i##ifconfig
'''If you're not sure, pick <code>funtoo-current</code>.'''
+
 
+
Funtoo Linux has various different 'builds':
+
 
+
{{TableStart}}
+
<tr><th class="info">Build</th><th class="info">Description</th></tr>
+
<tr><td><code>funtoo-current</code></td><td>The most commonly-selected build of Funtoo Linux. Receives rapid updates and preferred by desktop users.</td></tr>
+
<tr><td><code>funtoo-stable</code></td><td>Emphasizes less-frequent package updates and trusted, reliable versions of packages over the latest versions.</td></tr>
+
{{TableEnd}}
+
 
+
==== Which Variant? ====
+
 
+
'''If you're not sure, pick <code>(None)</code>.'''
+
 
+
Besides our "regular" stage3's listed with a variant of <code>(None)</code>, the following variant builds are available:
+
 
+
{{TableStart}}
+
<tr><th class="info">Variant</th><th class="info">Description</th></tr>
+
<tr><td>(None)</td><td>The "standard" version of Funtoo Linux</td></tr>
+
<tr><td><code>pure64</code></td><td>A 64-bit build that drops multilib (32-bit compatibility) support. Can be ideal for server systems.</td></tr>
+
<tr><td><code>hardened</code></td><td>Includes PIE/SSP toolchain for enhanced security. PIE does require the use of PaX in the kernel, while SSP works with any kernel, and provides enhanced security in user-space to avoid stack-based exploits.</td></tr>
+
{{TableEnd}}
+
 
+
==== Download the Stage3 ====
+
 
+
Once you have found the stage3 that you would like to download, use <code>wget</code> to download the Stage 3 tarball you have chosen to use as the basis for your new Funtoo Linux system. It should be saved to the <code>/mnt/funtoo</code> directory as follows:
+
 
+
<console># ##i##cd /mnt/funtoo
+
# ##i##wget http://build.funtoo.org/funtoo-current/x86-64bit/generic_64/stage3-latest.tar.xz
+
 
</console>
 
</console>
  
Note that 64-bit systems can run 32-bit or 64-bit stages, but 32-bit systems can only run 32-bit stages. Make sure that you select a Stage 3 build that is appropriate for your CPU. If you are not certain, it is a safe bet to choose the <code>generic_64</code> or <code>generic_32</code> stage. Consult the [[Subarches]] page for more information.
+
One of the interfaces should have an IP address (listed as <code>inet addr:</code>) from your LAN. You can then connect remotely, from another system on your LAN, to System Rescue CD, and perform steps from the comfort of an existing OS. On your remote system, type the following, replacing <code>1.2.3.4</code> with the IP address of System Rescue CD:
  
Once the stage is downloaded, extract the contents with the following command, substituting in the actual name of your stage 3 tarball:
 
 
<console>
 
<console>
# ##i##tar xpf stage3-latest.tar.xz
+
# ##i##ssh root@1.2.3.4
 +
Password: ##i##**********
 
</console>
 
</console>
  
{{important|It is very important to use <code>tar's</code> "<code>'''p'''</code>" option when extracting the Stage 3 tarball - it tells <code>tar</code> to ''preserve'' any permissions and ownership that exist within the archive. Without this option, your Funtoo Linux filesystem permissions will be incorrect.}}
+
You should now be connected remotely to System Rescue CD and can perform the installation steps.

Revision as of 07:28, December 29, 2014


Note

This is a template that is used as part of the Installation instructions which covers: an initial overview of the installation process as well as LiveCD download and boot instructions.. Templates are being used to allow multiple variant install guides that use most of the same re-usable parts.


Installation Overview

This is a basic overview of the Funtoo installation process:

  1. Download and boot the live CD of your choice.
  2. Prepare your disk.
  3. Create and mount filesystems.
  4. Install the Funtoo stage tarball of your choice.
  5. Chroot into your new system.
  6. Download the Portage tree.
  7. Configure your system and network.
  8. Install a kernel.
  9. Install a bootloader.
  10. Complete final steps.
  11. Reboot and enjoy.

Live CD

Funtoo doesn't provide an "official" Funtoo Live CD. We recommend using the Gentoo-based System Rescue CD as it contains lots of tools and utilities and supports both 32-bit and 64-bit systems. Download it here:

http://www.sysresccd.org/Download

Note

If using an older version of System Rescue CD, be sure to select the rescue64 kernel at the boot menu if you are installing a 64-bit system. By default, System Rescue CD used to boot in 32-bit mode though the latest version attempts to automatically detect 64-bit processors.

Network Access

Once you have booted System Rescue CD, see if you have network access:

# ping www.google.com

If the ping is successful, then your Network is set up. Hit Control-C to stop the ping. If you need to establish a WiFi connection for your network, then this needs to be done using the System Rescue CD graphical environment. Run startx to start a graphical session:

# startx

Then, use the NetworkManager applet (icon in lower right) to connect to a WiFi network of your choice. Next, open a terminal inside your graphical environment, and you should be able to use the terminal to complete the rest of the steps.

Remote Install

Alternatively, you can log in to your System Rescue CD-booted system over the network via SSH to perform the install, and this may be more convenient for you.

If you'd like to complete the install remotely, here's how. First, you will need to ensure that you are connected to the network. Then, you will need to set a root password for System Rescue CD:

# passwd
New password: ********
Retype new password: ********
passwd: password updated successfully
#

Once you have typed in a password, you will now need to determine the IP address of System Rescue CD, and then you can use ssh to connect to it. To determine the IP address currently being used by System Rescue CD, type ifconfig:

# ifconfig

One of the interfaces should have an IP address (listed as inet addr:) from your LAN. You can then connect remotely, from another system on your LAN, to System Rescue CD, and perform steps from the comfort of an existing OS. On your remote system, type the following, replacing 1.2.3.4 with the IP address of System Rescue CD:

# ssh root@1.2.3.4
Password: **********

You should now be connected remotely to System Rescue CD and can perform the installation steps.