View previous topic :: View next topic |
Author |
Message |
gavin n00b
Joined: 05 Jun 2004 Posts: 27
|
Posted: Wed Jun 09, 2004 1:23 am Post subject: |
|
|
My /usr/src/ directory is still empty though, at what step in the guide was this meant to be created? Did I miss something? |
|
Back to top |
|
|
baldeante Guru
Joined: 17 Jan 2004 Posts: 498 Location: Caldas da Rainha, Portugal
|
Posted: Wed Jun 09, 2004 8:29 am Post subject: |
|
|
I'm getting confused about the step where you are in the install.
Can you tell me where are you point me from the following list of commands where are you ????
This is a guide o did to set my computer in a quicker way and if you toke a closer look those are the commands from the online manual with some comments i made to so i know where i am.
You must also know that some steps must be adjusted at your own install.
I use this guide for a stage 1 install but can be used to stage 3 with some changes.
Code: |
####################################
#Initial Boot for Keyboard selection
####################################
gentoo nokeymap ide=nodma
###################
#Network Card Setup
###################
net-setup eth0
###############
#Disk Partition
###############
cfdisk
###############################
#Create Partitions File Systems
###############################
mke2fs -j /dev/hda1
mkswap /dev/hda2
swapon /dev/hda2
mke2fs -j /dev/hda3
###################
#Mountng Partitions
###################
mount /dev/hda3 /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/hda1 /mnt/gentoo/boot
mkdir /mnt/gentoo/proc
mount -o bind /proc /mnt/gentoo/proc
#########################################
#Default: Using a Stage from the Internet
#########################################
cd /mnt/gentoo
links2 http://www.gentoo.org/main/en/mirrors.xml
md5sum stage1-*.tar.bz2
tar -xvjpf stage1-*.tar.bz2
############################################
#Configuring the Compile Options NOT USE VAR
############################################
nano -w /mnt/gentoo/etc/make.conf
mirrorselect -a -s4 -o >> /mnt/gentoo/etc/make.conf
cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
###################
#Installing Portage
###################
links2 http://www.gentoo.org/main/en/mirrors.xml
tar -xvjf /mnt/gentoo/portage-*.tar.bz2 -C /mnt/gentoo/usr
##########
#Chrooting
##########
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
# emerge rsync
# emerge sync
# emerge-webrsync
#############################
#Configuring the USE variable
#############################
nano -w /etc/make.conf
#########################
#Bootstrapping the System
#########################
cd /usr/portage
scripts/bootstrap.sh
source /etc/profile
####################
#Building the System
####################
#Optional: Viewing what will be done
emerge --pretend system | less
#Optional: Downloading the Sources before continue
emerge --fetchonly system
#Building the System
emerge system
#######################
#Configuring the Kernel
#######################
# TimeZone
ls /usr/share/zoneinfo
#(Suppose you want to use GMT)
ln -sf /usr/share/zoneinfo/GMT /etc/localtime
#Installing the Sources - replace for what ever you wish
emerge gentoo-sources-2.4.25
#Viewing the kernel source symlink - /usr/src/linux -> linux-2.4.24
ls -l /usr/src/linux
#Changing the kernel source symlink
rm /usr/src/linux
ln -s /usr/src/linux-2.4.24 /usr/src/linux
# Configurating kernel
cd /usr/src/linux
make menuconfig
#####################
#Compiling the kernel
#####################
#(For 2.4 kernel)
make dep && make bzImage modules modules_install
#(For 2.6 kernel)
#make && make modules_install
Code Listing 11: Installing the kernel
# Installing the kernel
cp arch/i386/boot/bzImage /boot/kernel-2.4.24
cp System.map /boot/System.map-2.4.24
# Backing up your kernel configuration
cp .config /boot/config-2.4.24
#Installing Extra Modules
#emerger ati-drivers
#Configuring the Modules
find /lib/modules/<kernel version>/ -type f -iname '*.o' -or -iname '*.ko'
#Editing /etc/modules.autoload.d/kernel-2.4
nano -w /etc/modules.autoload.d/kernel-2.4
#Updating modules
modules-update
########################
#Configuring your System
########################
# Creating fstab
nano -w /etc/fstab
#Networking Information
#Setting the hostname
echo tux > /etc/hostname
#Setting the domainname
echo homenetwork > /etc/dnsdomainname
#Adding domainname to the default runlevel
rc-update add domainname default
#Configuring your Network
#Opening /etc/conf.d/net for editing
nano -w /etc/conf.d/net
#Adding net.eth0 to the default runlevel(system stat up)
rc-update add net.eth0 default
#System Information
nano -w /etc/rc.conf
|
_________________ Never Quit, Never Get Mad, Get Even |
|
Back to top |
|
|
gavin n00b
Joined: 05 Jun 2004 Posts: 27
|
Posted: Wed Jun 09, 2004 9:45 am Post subject: |
|
|
okay so far...
This is an install from the univeral CD, as my modem is USB and this machine doesn't have any usb ports.
Quote: |
#fdisk hda
(created a boot partition, used the 'a' option, and created a 500mb swap file, and using 't' made it linux-swap)
#fdisk hdb
(created a 5gb partition)
#mke2fs -j /dev/hda1
#mke2fs -j /dev/hdb1
#mkswap /dev/hda2
#swapon /dev/hda2
#mount /dev/hdb1 /mnt/gentoo
#mkdir /mnt/gentoo/boot
#mount /dev/hda1 /mnt/gentoo/boot
#mkdir /mnt/gentoo/proc
#mount -t proc none /mnt/gentoo/proc
#cd /mnt/gentoo
#tar -xvjpf /mnt/cdrom/stages/stage3-*.tar.bz2
#tar -xvjf /mnt/cdrom/snapshots/portage-20040413.tar.bz -C /mnt/gentoo/usr
#mkdir /mnt/gentoo/usr/portage/distfiles
#cp /mnt/cdrom/distfiles/* /mnt/gentoo/usr/portage/distfiles/
# nano -w /mnt/gentoo/etc/make.conf
# chroot /mnt/gentoo /bin/bash
# env-update
# source /etc/profile
# nano -w /etc/make.conf
# ln -sf /usr/share/zoneinfo/Australia /etc/localtime
|
Now I am up to
Quote: |
When you take a look in /usr/src you should see a symlink called linux pointing to your kernel source:
|
THe /usr/src folder is completely empty though - and I can't find the folder the symlink is supposed to point to (have tried using locate, but it doesn't bring up anything).
|
|
Back to top |
|
|
baldeante Guru
Joined: 17 Jan 2004 Posts: 498 Location: Caldas da Rainha, Portugal
|
Posted: Wed Jun 09, 2004 11:20 am Post subject: |
|
|
The correct line is the second you miss the "2" was that a accident or where you using that command ???
Code: |
tar -xvjf /mnt/cdrom/snapshots/portage-20040413.tar.bz -C /mnt/gentoo/usr
tar -xvjf /mnt/cdrom/snapshots/portage-20040413.tar.bz2 -C /mnt/gentoo/usr
|
_________________ Never Quit, Never Get Mad, Get Even |
|
Back to top |
|
|
Nova00X n00b
Joined: 17 Jun 2004 Posts: 12
|
Posted: Thu Jun 17, 2004 9:37 am Post subject: |
|
|
Hello
I'm currently having the same problem (no such file or directory when typing "chroot /mnt/gentoo /bin/bash)
I am installing Gentoo from an universal Gentoo LiveCD 2004.1 (md5 ok)
What did i do ?
I perfomed all the step without an error until the step where we must copy the resolv.conf file.
There i had an error because the file from the source directory does not exists ! So, I skipped this step. And the next one, the chroot one, blocked me ...
It seems that almost everything (of the previous steps) is installed correctly so i don't understand those errors. I think i downloaded the right iso (for an athlon) because i have an amd athlon XP barton.
I've read all the topic but i didn't find an answer for the problem that solves mine.
Thanks in advance. |
|
Back to top |
|
|
baldeante Guru
Joined: 17 Jan 2004 Posts: 498 Location: Caldas da Rainha, Portugal
|
Posted: Thu Jun 17, 2004 2:12 pm Post subject: |
|
|
Nova00X wrote: | Hello
I'm currently having the same problem (no such file or directory when typing "chroot /mnt/gentoo /bin/bash)
I am installing Gentoo from an universal Gentoo LiveCD 2004.1 (md5 ok)
What did i do ?
I perfomed all the step without an error until the step where we must copy the resolv.conf file.
There i had an error because the file from the source directory does not exists ! So, I skipped this step. And the next one, the chroot one, blocked me ...
It seems that almost everything (of the previous steps) is installed correctly so i don't understand those errors. I think i downloaded the right iso (for an athlon) because i have an amd athlon XP barton.
I've read all the topic but i didn't find an answer for the problem that solves mine.
Thanks in advance. |
Code: |
cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
|
This command should work fine, in it you are copying the resolv.conf from the cd from witch you boot to your hard drive.
The only explication i have is a bad CD (but you allready said that the md5 is fine), other than that i can only say that the file isn't there meaning the cd don't have the file but that is wird since as far as i know it is needed for stage 1 install. _________________ Never Quit, Never Get Mad, Get Even |
|
Back to top |
|
|
spockstar n00b
Joined: 02 Jun 2004 Posts: 39 Location: Oztrailya
|
Posted: Thu Jun 17, 2004 2:48 pm Post subject: |
|
|
im having the same problem ,i follow the chroot commands then i get command not found when issueing ifconfig or dhcpcd ,if i type exit all is back to normal _________________ "Live long and Prosper" |
|
Back to top |
|
|
spockstar n00b
Joined: 02 Jun 2004 Posts: 39 Location: Oztrailya
|
Posted: Fri Jun 18, 2004 3:38 am Post subject: |
|
|
any other ideas with this problem ? _________________ "Live long and Prosper" |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sat Jun 19, 2004 12:28 am Post subject: |
|
|
spockstar wrote: | i follow the chroot commands then i get command not found when issueing ifconfig or dhcpcd |
These commands are not needed if you configure the network before entering the chroot. |
|
Back to top |
|
|
spockstar n00b
Joined: 02 Jun 2004 Posts: 39 Location: Oztrailya
|
Posted: Sat Jun 19, 2004 1:09 am Post subject: |
|
|
i understand that ,the point is though that these type of commands dont work the error i get is "command not found " this happens when i get to the chroot stage of the install. the network is fully functional before this point and all these commands work. if i type exit and return to the position prior to the chroot command everything works . _________________ "Live long and Prosper" |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sat Jun 19, 2004 1:32 am Post subject: |
|
|
spockstar wrote: | the point is though that these type of commands dont work the error i get is "command not found " |
These commands have not been compiled yet if you are chrooting into a stage1 or stage2 tarball. The network is still fully functional inside the chroot without these commands. Try "wget" from inside the chroot, that should work. |
|
Back to top |
|
|
spockstar n00b
Joined: 02 Jun 2004 Posts: 39 Location: Oztrailya
|
Posted: Sat Jun 19, 2004 4:52 am Post subject: |
|
|
ok thanks i will try this when im back at home .when im entering the commands
chroot /mnt/gentoo /bin/bash
env-update
i dont recieve this as it states in the handbook ??
"Regenerating /etc/ld.so.cache... "
do you think this is part of the problem.? _________________ "Live long and Prosper" |
|
Back to top |
|
|
|