You are not logged in.

#1 2010-10-08 14:39:02

Kasumi_Ninja
Member
Registered: 2010-10-08
Posts: 15

Funtoo quick install

Hi,

Here are the notes I made when installing Funtoo. You can use them as a reference for a quick install of Funtoo.

Create ext4 filesystem with labels 
==================================
# mkswap -L swap /dev/sda2
# mkfs.ext4 -L root /dev/sda3
# mkfs.ext4 -L home /dev/sda4

Setting reserved blocks percentage
==================================
# tune2fs -m 1 /dev/sda3
# tune2fs -m 0 /dev/sda4


Mount swap and other partitions
================================
# swapon /dev/sda2
# mount /dev/sda3 /mnt/gentoo

Check if the date is correct
===========================
# date
Go to the installation directory
=================================
# cd /mnt/gentoo

Download and extract the stage3 file for your system. I use amd64. You can find other architecturess here:
http://distro.ibiblio.org/pub/linux/distributions/funtoo/funtoo/
========================================================================

# wget http://distro.ibiblio.org/pub/linux/distributions/funtoo/funtoo/amd64/funtoo-amd64-2010.09.05/stage3-amd64-2010.09.05.tar.xz

# tar xpf stage3-amd64-2010.08.22.tar.xz

Download and extract the portage tree, you find the most recent snapshot here: http://distro.ibiblio.org/pub/linux/distributions/funtoo/~funtoo/snapshots/
=====================================
# wget http://distro.ibiblio.org/pub/linux/distributions/funtoo/~funtoo/snapshots/portage-2010.09.10.tar.xz
# cd /mnt/gentoo/usr
# tar xf /mnt/gentoo/portage-2010.08.27.tar.xz 

Mount your home partition (if you have one)
============================================
# mount /dev/sda4 /mnt/gentoo/home 

Configure your compile options
==============================
# nano -w /mnt/gentoo/etc/make.conf

e.g. add for a quadcore processor to your make.conf
MAKEOPTS="-j5"
Chroot in your Funtoo install
=============================
# cp -L /etc/resolv.conf /mnt/gentoo/etc/
# mount -t proc none /mnt/gentoo/proc
# mount -o bind /dev /mnt/gentoo/dev

# chroot /mnt/gentoo /bin/bash 
# env-update
# source /etc/profile
# export PS1="(chroot) $PS1"

Activate portage for first usage
================================
# cd /usr/portage
# git checkout funtoo.org
# emerge --sync

Select a profile, I choose a desktop profile
=================

# eselect profile list
# eselect profile set 2

Configure your timezone (mine is the Netherlands)
=================================================

# ls /usr/share/zoneinfo
# cp /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime
Install a kernel. I use genkernel for convience
===============================================
# emerge gentoo-sources genkernel

Verify if /usr/src/linux is pointing to the right kernel
========================================================
# ls -l /usr/src/linux

Configure & compile the kernel
==============================
# genkernel --menuconfig all

Edit the required config files
==============================
# nano -w /etc/fstab
# nano -w /etc/conf.d/hostname
# nano -w /etc/rc.conf
# nano -w /etc/conf.d/keymaps
# nano -w /etc/conf.d/hwclock

Enable dhcp at boot
====================
# rc-update add dhcpcd default
Set a root password
===================
# passwd

Emerge neceserry system services and the grub bootloader. 
============================================
# emerge syslog-ng vixie-cron grub boot-update

Enable syslog and cron
======================
# rc-update add syslog-ng default
# rc-update add vixie-cron default

Install grub
============
# grub-install --no-floppy /dev/sda
# boot-update

Add a user
==========
# useradd -m -G audio,cdrom,portage,usb,users,plugdev,video,wheel -s /bin/bash john
# passwd john

Remove portage snapshot & stage
==============================
# rm -v  /portage-2010.09.10.tar.xz
# rm /stage3-amd64-2010.09.05.tar.xz
Exit & reboot in your funtoo installation
=========================================
# exit
# cd
# umount /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo/home /mnt/gentoo
# reboot

Post install configuration
==========================

Install xorg
============
# emerge xorg-server

Enable hal
==========
# /etc/init.d/hald start
# rc-update add hald default

Install a DE
========
# emerge -av kdebase-meta

Last edited by Kasumi_Ninja (2010-10-14 19:32:05)

Offline

#2 2010-10-08 18:20:24

HappiMeal
Member
From: France
Registered: 2010-10-08
Posts: 19

Re: Funtoo quick install

Thank is a good idea to create it ! smile

Offline

#3 2010-10-10 23:14:36

sage
New member
From: Indonesia
Registered: 2010-10-10
Posts: 1

Re: Funtoo quick install

nice and good job ;-)
thanks

Offline

#4 2010-10-13 19:19:11

nullglob
Member
Registered: 2010-10-10
Posts: 112

Re: Funtoo quick install

Very good guide and great idea! And it seems really quick! wink

Offline

#5 2010-10-13 20:09:03

Kasumi_Ninja
Member
Registered: 2010-10-08
Posts: 15

Re: Funtoo quick install

nullglob wrote:

And it seems really quick! wink

It takes about an hour on my Athlon II X4 630 smile

Last edited by Kasumi_Ninja (2010-10-13 20:09:16)

Offline

#6 2010-10-14 03:06:35

d2_racing
Staff
From: Québec (Canada)
Registered: 2010-10-05
Posts: 423
Website

Re: Funtoo quick install

Hi, can you post your /etc/make.conf ?

I always rebuild my box, since I use -march=native, so I want to know which cflags the AMD64 use by default.

Offline

#7 2010-10-14 14:06:37

Sandro
Member
From: Saronno (Italy)
Registered: 2010-10-14
Posts: 36

Re: Funtoo quick install

d2_racing wrote:

Hi, can you post your /etc/make.conf ?
I want to know which cflags the AMD64 use by default.

For example, if you want to see it in a terminal:
1) generic x86_64

echo 'int main(){return 0;}' > test.c && gcc -v -Q -march=x86-64 -O2 test.c -o test && rm test.c test 

2) with -march=native:

echo 'int main(){return 0;}' > test.c && gcc -v -Q -march=native -O2 test.c -o test && rm test.c test 

Offline

#8 2010-10-14 14:14:20

Kasumi_Ninja
Member
Registered: 2010-10-08
Posts: 15

Re: Funtoo quick install

d2_racing wrote:

Hi, can you post your /etc/make.conf ?

I always rebuild my box, since I use -march=native, so I want to know which cflags the AMD64 use by default.

I started a new thread here.

Last edited by Kasumi_Ninja (2010-10-14 14:17:33)

Offline

#9 2010-10-15 07:23:38

Piotr
Banned
Registered: 2010-10-04
Posts: 125

Re: Funtoo quick install

touch /tmp/null.c; gcc -c -march=native -v /tmp/null.c 2>&1 | grep march | egrep --color -- '\s-m\S+|--param \S+' 

I found this on forums gentoo. Quite nice. For march native:

-march=core2 -mcx16 -msahf --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=core2

Work smart not hard.

Offline

#10 2010-11-19 20:41:29

twallace51
New member
Registered: 2010-11-19
Posts: 7

Re: Funtoo quick install

Hello all!
I have successfully installed standard Gentoo up to a usable system (KDE,  fixed to print, Open Office, Firefox etc),  but when I tried installing Funtoo,  I ran into a number of "gotchas"
1)
When I updated portage with the following step
   emerge portage
portage was updated from portage-2.2_rc67-r2 to portage-2.2.0_alpha4.
Now that every time I used emerge,  I get a warning that portage no longer recognizes the "mini-manifest" FEATURE
Should I remove the mini-manifest flag from /etc/make.conf,  ignore the warning  or mask out portage?

2)
In any case,  everything seemed to emerge okay up to the step
  emerge xorg-sever
when I get an error while emerging nvidia-drivers.
I get a message that the kernel is not correct, ie  that
   include/generated/autoconf.h or include/config/auto.conf
files cannot be found
The mesage also suggests running
  make oldconfig && make prepare
which didn't solve the problem.

Any suggestions on how to get Funtoo to a usable desktop stage?
Thanks TW?

Offline

#11 2010-11-19 21:39:28

rh1
Core Team Member
From: Eastern Shore, VA
Registered: 2010-10-08
Posts: 352

Re: Funtoo quick install

Nice guide. Can I make a suggestion? Change chroot command to match funtoo install guide :

env -i HOME=/root TERM=$TERM SHELL=/bin/bash $(type -p chroot) /mnt/gentoo /bin/bash

Offline

#12 2010-11-20 03:59:04

angry_vincent
Staff
From: Ukraine
Registered: 2010-10-07
Posts: 594

Re: Funtoo quick install

@twallace51
You got the problem, because you didn't follow the install guide. Funtoo has different portage tree, patched portage and many other improvements and hence it's not quite easy to turn gentoo into funtoo. Do a fresh install, please.

Last edited by angry_vincent (2010-11-20 04:00:19)

Offline

#13 2010-11-20 11:55:02

strowi
Member
From: Germany, Bonn
Registered: 2010-10-08
Posts: 70

Re: Funtoo quick install

well.. to make it more obvious that funtoo != gentoo one could rename /mnt/gentoo to /mnt/funtoo... wink

Offline

#14 2010-11-20 14:35:00

brantgurga
Core Team Member
From: Indianapolis, IN
Registered: 2010-10-14
Posts: 56
Website

Re: Funtoo quick install

You can call the mount point whatever you want. How about /mnt/youtoo?

Offline

#15 2010-11-23 19:04:36

tomaq
New member
From: /home/Poland
Registered: 2010-11-19
Posts: 5

Re: Funtoo quick install

stick with fun

Offline

#16 2010-11-30 07:11:33

meowz
New member
Registered: 2010-11-30
Posts: 1

Re: Funtoo quick install

Kasumi, the portage snapshot tar should have absolute paths.

Offline

#17 2010-12-03 08:59:39

Jimmy
New member
Registered: 2010-10-30
Posts: 8

Re: Funtoo quick install

Suggest to download stage3 and portage files before you install. And you can just copy them to the partition from a U-disk or other. 
You can avoid waiting download when installing.

Offline

#18 2012-05-08 21:38:32

goro
Member
Registered: 2012-05-08
Posts: 50

Re: Funtoo quick install

Kasumi_Ninja wrote:

Hi,

Here are the notes I made when installing Funtoo. You can use them as a reference for a quick install of Funtoo.

Create ext4 filesystem with labels 
==================================
# mkswap -L swap /dev/sda2
# mkfs.ext4 -L root /dev/sda3
# mkfs.ext4 -L home /dev/sda4

Setting reserved blocks percentage
==================================
# tune2fs -m 1 /dev/sda3
# tune2fs -m 0 /dev/sda4


Mount swap and other partitions
================================
# swapon /dev/sda2
# mount /dev/sda3 /mnt/gentoo

Check if the date is correct
===========================
# date
Go to the installation directory
=================================
# cd /mnt/gentoo

Download and extract the stage3 file for your system. I use amd64. You can find other architecturess here:
http://distro.ibiblio.org/pub/linux/distributions/funtoo/funtoo/
========================================================================

# wget http://distro.ibiblio.org/pub/linux/distributions/funtoo/funtoo/amd64/funtoo-amd64-2010.09.05/stage3-amd64-2010.09.05.tar.xz

# tar xpf stage3-amd64-2010.08.22.tar.xz

Download and extract the portage tree, you find the most recent snapshot here: http://distro.ibiblio.org/pub/linux/distributions/funtoo/~funtoo/snapshots/
=====================================
# wget http://distro.ibiblio.org/pub/linux/distributions/funtoo/~funtoo/snapshots/portage-2010.09.10.tar.xz
# cd /mnt/gentoo/usr
# tar xf /mnt/gentoo/portage-2010.08.27.tar.xz 

Mount your home partition (if you have one)
============================================
# mount /dev/sda4 /mnt/gentoo/home 

Configure your compile options
==============================
# nano -w /mnt/gentoo/etc/make.conf

e.g. add for a quadcore processor to your make.conf
MAKEOPTS="-j5"
Chroot in your Funtoo install
=============================
# cp -L /etc/resolv.conf /mnt/gentoo/etc/
# mount -t proc none /mnt/gentoo/proc
# mount -o bind /dev /mnt/gentoo/dev

# chroot /mnt/gentoo /bin/bash 
# env-update
# source /etc/profile
# export PS1="(chroot) $PS1"

Activate portage for first usage
================================
# cd /usr/portage
# git checkout funtoo.org
# emerge --sync

Select a profile, I choose a desktop profile
=================

# eselect profile list
# eselect profile set 2

Configure your timezone (mine is the Netherlands)
=================================================

# ls /usr/share/zoneinfo
# cp /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime
Install a kernel. I use genkernel for convience
===============================================
# emerge gentoo-sources genkernel

Verify if /usr/src/linux is pointing to the right kernel
========================================================
# ls -l /usr/src/linux

Configure & compile the kernel
==============================
# genkernel --menuconfig all

Edit the required config files
==============================
# nano -w /etc/fstab
# nano -w /etc/conf.d/hostname
# nano -w /etc/rc.conf
# nano -w /etc/conf.d/keymaps
# nano -w /etc/conf.d/hwclock

Enable dhcp at boot
====================
# rc-update add dhcpcd default
Set a root password
===================
# passwd

Emerge neceserry system services and the grub bootloader. 
============================================
# emerge syslog-ng vixie-cron grub boot-update

Enable syslog and cron
======================
# rc-update add syslog-ng default
# rc-update add vixie-cron default

Install grub
============
# grub-install --no-floppy /dev/sda
# boot-update

Add a user
==========
# useradd -m -G audio,cdrom,portage,usb,users,plugdev,video,wheel -s /bin/bash john
# passwd john

Remove portage snapshot & stage
==============================
# rm -v  /portage-2010.09.10.tar.xz
# rm /stage3-amd64-2010.09.05.tar.xz
Exit & reboot in your funtoo installation
=========================================
# exit
# cd
# umount /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo/home /mnt/gentoo
# reboot

Post install configuration
==========================

Install xorg
============
# emerge xorg-server

Enable hal
==========
# /etc/init.d/hald start
# rc-update add hald default

Install a DE
========
# emerge -av kdebase-meta

If I follow exactly this step by step I'm done with funtoo?

Offline

#19 2012-05-09 05:28:00

whiteghost
Member
From: north dakota
Registered: 2010-10-10
Posts: 143

Re: Funtoo quick install

hal is no longer used. also check install page for newer kernel options. source for stage3 is outdated

really no different than install page. follow install page. no shortcuts for funtoo/gentoo.


May you re-discover what the poor in 18th century France discovered, that rich people's heads can be mechanically separated from their shoulders if they refuse to listen to reason.

Offline

#20 2012-05-10 01:26:09

goro
Member
Registered: 2012-05-08
Posts: 50

Re: Funtoo quick install

Is funtoo faster than gentoo?

Is funtoo simpler than gentoo?

I got fedora 17 liveusb...can I install from it? I don't see chroot on fedora...

Can I use the fedora kernel and how?

Offline

#21 2012-05-10 02:57:14

rh1
Core Team Member
From: Eastern Shore, VA
Registered: 2010-10-08
Posts: 352

Re: Funtoo quick install

Is funtoo faster than gentoo?

No, both are source-based so speed is determined by gcc flags, packages installed, use flags, ect..

Is funtoo simpler than gentoo?

Somethings are such as configuring your boot loader. Funtoo has boot-update to make it easy. We also have different network scripts which in my opinion are easier to use.

I got fedora 17 liveusb...can I install from it? I don't see chroot on fedora...

While i've never used fedora, as long as it's got all the tools you need you can pretty much use any linux live cd/usb. Obviously your going need "chroot". If it's anything like other live usbs you could probably install it. 

Can I use the fedora kernel and how?

Well you can pretty much use any kernel you want. There's no ebuild for fedora kernel that i know of so you'll either have to download kernel sources and whatever patches fedora uses and compile your own or otherwise obtain an already compiled one.
One thing to note if you install a kernel outside of portage, you'll want to let portage know about it so it doesn't try to force you to install one. That's done by adding a kernel package to /etc/portage/profile/package.provided:

mkdir /etc/portage/profile
echo "sys-kernel/gentoo-sources" >> /etc/portage/profile/package.provided

Offline

#22 2012-05-10 07:10:31

goro
Member
Registered: 2012-05-08
Posts: 50

Re: Funtoo quick install

 * Messages for package sys-kernel/sysrescue-std-sources-3.0.21.302:

 * ERROR: sys-kernel/sysrescue-std-sources-3.0.21.302 failed (compile phase):
 *   genkernel failed
 * 
 * Call stack:
 *     ebuild.sh, line  85:  Called src_compile
 *   environment, line 308:  Called die
 * The specific snippet of code:
 *       genkernel ${GKARGS} --no-save-config --kernel-config="$defconfig_src" --kernname="${PN/-sources/}" --build-src="$S" --build-dst=${WORKDIR}/build --makeopts="${MAKEOPTS}" --firmware-dst=${WORKDIR}/out/lib/firmware --cachedir="${T}/cache" --tempdir="${T}/twork" --logfile="${WORKDIR}/genkernel.log" --bootdir="${WORKDIR}/out/boot" --lvm --luks --iscsi --module-prefix="${WORKDIR}/out" all || die "genkernel failed"
 * 
 * If you need support, post the output of 'emerge --info =sys-kernel/sysrescue-std-sources-3.0.21.302',
 * the complete build log and the output of 'emerge -pqv =sys-kernel/sysrescue-std-sources-3.0.21.302'.
 * The complete build log is located at '/var/tmp/portage/sys-kernel/sysrescue-std-sources-3.0.21.302/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-kernel/sysrescue-std-sources-3.0.21.302/temp/environment'.
 * S: '/var/tmp/portage/sys-kernel/sysrescue-std-sources-3.0.21.302/work/linux-3.0.21'
 
* GNU info directory index is up-to-date.

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

out of luck...after 3 hours something had to happen! :emomad:

TOTALLY out ...

# grub-install --no-floppy /dev/sda
/sbin/grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?).
No path or device is specified.
Try `/sbin/grub-probe --help' for more information.
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.
# boot-update

 boot-update 1.5.2 / Copyright 2009-2011 Funtoo Technologies

 [use option "-l" for license info, "-h" for help]

 * Generating config for grub...

mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

umount: /boot: not mounted
 * ERROR: No matching kernels or boot entries found in /etc/boot.conf.
 * Did not complete successfully.
# dmesg | tail 
[13468.480769] grub-probe: sending ioctl 1261 to a partition!
[13468.501090] grub-probe: sending ioctl 1261 to a partition!
[13468.501095] grub-probe: sending ioctl 1261 to a partition!
[13468.552198] grub-probe: sending ioctl 1261 to a partition!
[13468.552204] grub-probe: sending ioctl 1261 to a partition!
[13468.568293] grub-probe: sending ioctl 1261 to a partition!
[13468.568297] grub-probe: sending ioctl 1261 to a partition!
[13468.594270] grub-probe: sending ioctl 1261 to a partition!
[13468.594278] grub-probe: sending ioctl 1261 to a partition!
[14027.030946] EXT4-fs (sda1): VFS: Can't find ext4 filesystem

Last edited by goro (2012-05-10 07:41:45)

Offline

#23 2012-05-10 15:59:04

whiteghost
Member
From: north dakota
Registered: 2010-10-10
Posts: 143

Re: Funtoo quick install

"* Messages for package sys-kernel/sysrescue-std-sources-3.0.21.302:

* ERROR: sys-kernel/sysrescue-std-sources-3.0.21.302 failed (compile phase):
*   genkernel failed"

the actual error is several lines above the message. that is what is useful.

or do what it says

" If you need support, post the output of 'emerge --info =sys-kernel/sysrescue-std-sources-3.0.21.302',
* the complete build log and the output of 'emerge -pqv =sys-kernel/sysrescue-std-sources-3.0.21.302'.
* The complete build log is located at '/var/tmp/portage/sys-kernel/sysrescue-std-sources-3.0.21.302/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-kernel/sysrescue-std-sources-3.0.21.302/temp/environment'.
* S: '/var/tmp/portage/sys-kernel/sysrescue-std-sources-3.0.21.302/work/linux-3.0.21'"

show us or check,

#mount

#ls /boot

#less /etc/boot.conf

don't want to spend three hours compiling kernel?

kernel-seeds.org

http://swift.siphos.be/linux_sea/ch07.html

ps: you could open a new thread for these problems.

Last edited by whiteghost (2012-05-10 16:08:05)


May you re-discover what the poor in 18th century France discovered, that rich people's heads can be mechanically separated from their shoulders if they refuse to listen to reason.

Offline

Board footer

Powered by FluxBB