Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
help w/install linux basics[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
whiteghost
Guru
Guru


Joined: 26 Jul 2009
Posts: 374
Location: north dakota

PostPosted: Tue Jul 28, 2009 11:27 pm    Post subject: help w/install linux basics[solved] Reply with quote

1. can i copy text from install console and paste in 'links' to this forum? accessing forum thru 'links' i've googled and tried some things but not working

2. what is difference between livecd ~# and livecd /#, does it make a difference issuing commands from one or the other?

3. choosing kernel

ls -l /usr/src/linux gave me 'linux-gentoo-2.6.29-gentoo-r5'

followed instructions for manually configuring kernel, compiled, then

'cp arch/x86_64/boot/bzImage /boot/linux-gentoo-2.6.29-gentoo-r5'

seems ok. on to configuring modules

'find /lib/modules/linux-2.6.29-gentoo-r5/ -type f -iname '*.o' -or -iname '*.ko' | less'

this said no such file or directory.

cd'd to /lib, 'ls modules' and it showed '2.6.29-gentoo-r5'

i tried 'find /lib/modules/2.6.29-gentoo-r5/ -type f -iname '*.o' -or -iname '*.ko' | less'

no modules shown. just '>_' i am in less right? should be able to exit by 'q enter'? or ':q enter" i can not exit.


Last edited by whiteghost on Sun Feb 14, 2010 8:03 am; edited 1 time in total
Back to top
View user's profile Send private message
poly_poly-man
Advocate
Advocate


Joined: 06 Dec 2006
Posts: 2477
Location: RIT, NY, US

PostPosted: Wed Jul 29, 2009 1:16 am    Post subject: Re: help w/install linux basics Reply with quote

First of all, welcome to linux! Don't get scared off... you'll get used to it in a short time.

whiteghost wrote:
1. can i copy text from install console and paste in 'links' to this forum? accessing forum thru 'links' i've googled and tried some things but not working
google for "gpm"
Quote:

2. what is difference between livecd ~# and livecd /#, does it make a difference issuing commands from one or the other?
Just so you know, the prompt is not the same across all linux distributions, and you can even change it for now. However, the default gentoo set up is what you have, and it's what most like.

"livecd" is your host name, or the name of the computer you're on. The livecd sets this to "livecd" - this will be different once you install on your machine (unless you like the name ;) ). the "#"at the end indicates that you are the root user (you have full power over the system - you are not a normal user). A normal user's prompt will display "$" here. The bit in between, the part that changes, is your current directory. The root prompt only displays the highest-up directory (so if you're in /usr/src, it will display "src"). The "/" indicates you are in the root of your filesystem (everything is mounted above there). The "~" means your home folder. "~" means your home, and ~user means user's home (you can use the tilde with cd and ls too.
Quote:

3. choosing kernel

ls -l /usr/src/linux gave me 'linux-gentoo-2.6.29-gentoo-r5'

followed instructions for manually configuring kernel, compiled, then

'cp arch/x86_64/boot/bzImage /boot/linux-gentoo-2.6.29-gentoo-r5'

seems ok. on to configuring modules

'find /lib/modules/linux-2.6.29-gentoo-r5/ -type f -iname '*.o' -or -iname '*.ko' | less'

this said no such file or directory.

cd'd to /lib, 'ls modules' and it showed '2.6.29-gentoo-r5'

i tried 'find /lib/modules/2.6.29-gentoo-r5/ -type f -iname '*.o' -or -iname '*.ko' | less'

no modules shown. just '>_' i am in less right? should be able to exit by 'q enter'? or ':q enter" i can not exit.
exit that prompt with ctrl-c or so.

from /usr/src/linux, run "make modules_install".

Have fun!
_________________
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see topic 838248. Potentially still a WiP.
Back to top
View user's profile Send private message
whiteghost
Guru
Guru


Joined: 26 Jul 2009
Posts: 374
Location: north dakota

PostPosted: Wed Jul 29, 2009 1:28 am    Post subject: Reply with quote

nice, thank you
Back to top
View user's profile Send private message
whiteghost
Guru
Guru


Joined: 26 Jul 2009
Posts: 374
Location: north dakota

PostPosted: Wed Jul 29, 2009 1:32 am    Post subject: Reply with quote

can i emerge gpm now?
Back to top
View user's profile Send private message
poly_poly-man
Advocate
Advocate


Joined: 06 Dec 2006
Posts: 2477
Location: RIT, NY, US

PostPosted: Wed Jul 29, 2009 2:28 am    Post subject: Reply with quote

whiteghost wrote:
can i emerge gpm now?
if you're on the livecd, no, and it may or may not come with it there (but disabled) look in /etc/init.d (and make sure you do this in the livecd terminal, not the chroot.
_________________
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see topic 838248. Potentially still a WiP.
Back to top
View user's profile Send private message
whiteghost
Guru
Guru


Joined: 26 Jul 2009
Posts: 374
Location: north dakota

PostPosted: Wed Jul 29, 2009 4:08 am    Post subject: Reply with quote

i am editing /etc/rc.conf

should i enable xsession?

if XSESSION="Gnome" then i do not need to enable gnome separately?
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Wed Jul 29, 2009 4:14 am    Post subject: Reply with quote

whiteghost wrote:
i am editing /etc/rc.conf

should i enable xsession?

if XSESSION="Gnome" then i do not need to enable gnome separately?



If you plan on using gnome as your default desktop, then yes. You will need to emerge gnome, but only much later.

For now just continue following the handbook. You seem to be doing great. :)
Back to top
View user's profile Send private message
whiteghost
Guru
Guru


Joined: 26 Jul 2009
Posts: 374
Location: north dakota

PostPosted: Wed Jul 29, 2009 7:28 am    Post subject: Reply with quote

Exit the chrooted environment and unmount all mounted partitions. Then type in that one magical command you have been waiting for: reboot - I expected a :D

instead i have this

booting gentoo linux
root (hd0,0)
filesystem type is ext2fs.partion type 0x83

kernel /boot/kernel-2.6.29-gentoo-r5 root=/devram0 real_root=/dev/sda3

error 15: file not found

press any key to continue....



from handbook- and in grub conf file,

title Gentoo Linux 2.6.24-r5
# Partition where the kernel image (or operating system) is located
root (hd0,0)
kernel /boot/kernel-2.6.24-gentoo-r5 root=/dev/sda3

i edited kernel number to my kernel, 2.6.29-r5, was this right?

i don't know if a boot cd would help. i'm sure it would not help me as i'm running win xp/ vmware, trying to make .vmdk file
.
Back to top
View user's profile Send private message
alfagamma81
Tux's lil' helper
Tux's lil' helper


Joined: 22 Mar 2009
Posts: 86
Location: Finland

PostPosted: Wed Jul 29, 2009 2:32 pm    Post subject: Reply with quote

whiteghost wrote:

title Gentoo Linux 2.6.24-r5
# Partition where the kernel image (or operating system) is located
root (hd0,0)
kernel /boot/kernel-2.6.24-gentoo-r5 root=/dev/sda3

i edited kernel number to my kernel, 2.6.29-r5, was this right?



You did manual kernel configuration, right? And remembered to locate bzImage that was created ,and copied it to /boot?
line in grub.conf should be:

Code:
kernel /boot/exactly the same name as your kernel image name is
Back to top
View user's profile Send private message
poly_poly-man
Advocate
Advocate


Joined: 06 Dec 2006
Posts: 2477
Location: RIT, NY, US

PostPosted: Wed Jul 29, 2009 3:26 pm    Post subject: Reply with quote

alfagamma81 wrote:
whiteghost wrote:

title Gentoo Linux 2.6.24-r5
# Partition where the kernel image (or operating system) is located
root (hd0,0)
kernel /boot/kernel-2.6.24-gentoo-r5 root=/dev/sda3

i edited kernel number to my kernel, 2.6.29-r5, was this right?



You did manual kernel configuration, right? And remembered to locate bzImage that was created ,and copied it to /boot?
line in grub.conf should be:

Code:
kernel /boot/exactly the same name as your kernel image name is
make sure to also fix root= - real_root is only necesary for genkernel (and if you made an initrd, but I guarantee that you didn't)... you didn't use genkernel, right?
_________________
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see topic 838248. Potentially still a WiP.
Back to top
View user's profile Send private message
whiteghost
Guru
Guru


Joined: 26 Jul 2009
Posts: 374
Location: north dakota

PostPosted: Wed Jul 29, 2009 6:18 pm    Post subject: Reply with quote

alfagamma81 wrote

Quote:
You did manual kernel configuration, right? And remembered to locate bzImage that was created ,and copied it to /boot?
line in grub.conf should be:


i did manual kernel config.

when copying bzImage to boot i write 'bzImage' or does it need to be edited?

poly_poly-man wrote
Quote:
make sure to also fix root= - real_root is only necesary for genkernel (and if you made an initrd, but I guarantee that you didn't)... you didn't use genkernel, right?


i may have mistakenly used 'root= - real_root' from genkernel instructions
Back to top
View user's profile Send private message
alfagamma81
Tux's lil' helper
Tux's lil' helper


Joined: 22 Mar 2009
Posts: 86
Location: Finland

PostPosted: Wed Jul 29, 2009 7:18 pm    Post subject: Reply with quote

whiteghost wrote:
alfagamma81 wrote

Quote:
You did manual kernel configuration, right? And remembered to locate bzImage that was created ,and copied it to /boot?
line in grub.conf should be:


i did manual kernel config.

when copying bzImage to boot i write 'bzImage' or does it need to be edited?

poly_poly-man wrote
Quote:
make sure to also fix root= - real_root is only necesary for genkernel (and if you made an initrd, but I guarantee that you didn't)... you didn't use genkernel, right?


i may have mistakenly used 'root= - real_root' from genkernel instructions


When you copy your image for example "cp /usr/src/linux/arch/x86/boot/bzImage /boot/bzImage" it doesn't matter what name you give your kernel, just remember to write it down to your grub.conf exactly the same(remember Capitals do make difference!)
Back to top
View user's profile Send private message
alfagamma81
Tux's lil' helper
Tux's lil' helper


Joined: 22 Mar 2009
Posts: 86
Location: Finland

PostPosted: Wed Jul 29, 2009 7:32 pm    Post subject: Reply with quote

Example process of kernel configuration and copying:

1. cd /usr/src/linux && make menuconfig
2. make && make modules_install
3. At the end of compilation you see destination where bzImage is stored, (you can also do "slocate -u && slocate bzImage" to find it)

4. then you do "cp /path/to/your/bzImage /boot/whatevernameyouwanttogiveyourkernel"
5 cd /boot
6. ls -la, make sure your image is there
7 nano /boot/grub/grub.conf
8. edit your grub.conf

Title Gentoo
root (hd0,0)
kernel /boot/whatevernameyouwanttogiveyourkernel root=/dev/sda3
Back to top
View user's profile Send private message
whiteghost
Guru
Guru


Joined: 26 Jul 2009
Posts: 374
Location: north dakota

PostPosted: Fri Jul 31, 2009 4:38 am    Post subject: Reply with quote

viewing available modules shows me this

kernel/configs.ko
drivers/media/video/gspca/gspca_main.ko
drivers/hid/hid_dummy.ko
drivers/scsi/scsi_wait_scan.ko
arch/x86/kernel/test_nx.ko

is there anything i can or should add to my '/etc/modules.autoload.d/kernel-2.6'

also, Code Listing 3.2: Opening /etc/rc.conf, , says DISPLAYMANAGER has moved to /etc/conf.d/xdm.

this was a 'new file' so i added 'DISPLAYMANAGER="gdm" '
hope this is ok.

i'm continuing install but won't reboot till sure everything is ok
Back to top
View user's profile Send private message
whiteghost
Guru
Guru


Joined: 26 Jul 2009
Posts: 374
Location: north dakota

PostPosted: Fri Jul 31, 2009 9:32 am    Post subject: Reply with quote

well i got farther, rebooting i got a kernel panic- cannot open root device on dev sda3 or unknown block.

as creation is on vmware, this may be the problem

http://www.omninerd.com/articles/Installing_GRUB_on_a_Hard_Disk_Image_File
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Fri Jul 31, 2009 3:00 pm    Post subject: Reply with quote

Did you enable SCSI support in your kernel?
Code:
< > ATA/ATAPI/MFM/RLL support
SCSI device support -->
  <*> SCSI disk support
<*> Serial ATA (prod) and Parallel ATA (experimental) drivers -->
  <*> <YOUR CONTROLLER TYPE> SATA support


I wish there was a sticky thread for this recurring problem. :P
Back to top
View user's profile Send private message
whiteghost
Guru
Guru


Joined: 26 Jul 2009
Posts: 374
Location: north dakota

PostPosted: Fri Jul 31, 2009 7:43 pm    Post subject: Reply with quote

yes, i enabled scsi in kernel and on the vmware wizard to create new vm. saw a post somewhere about enabling scsi not ide on vm wizard.

going at it again on a real hd now.
Back to top
View user's profile Send private message
whiteghost
Guru
Guru


Joined: 26 Jul 2009
Posts: 374
Location: north dakota

PostPosted: Fri Jul 31, 2009 10:51 pm    Post subject: Reply with quote

i am configuring grub now. i installed jfs filesystem on /. handbook says to add 'ro' to kernel line. exactly where. please? kernel /boot/newkernel root=/dev/hda3
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Sat Aug 01, 2009 2:23 pm    Post subject: Reply with quote

whiteghost wrote:
i am configuring grub now. i installed jfs filesystem on /. handbook says to add 'ro' to kernel line. exactly where. please? kernel /boot/newkernel root=/dev/hda3



Something like this ("ro" at the end of the kernel line for jfs) but you don't really need it because the kernel boots your partition "ro" at first by default. :)

Code:
default 0
timeout 4
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo
root (hd0,0)
kernel /boot/kernel root=/dev/sda3 ro
Back to top
View user's profile Send private message
whiteghost
Guru
Guru


Joined: 26 Jul 2009
Posts: 374
Location: north dakota

PostPosted: Sun Sep 06, 2009 8:25 am    Post subject: Reply with quote

i've had gentoo up a couple times and broke it. broke it trying to get multimedia players to play avi files.

so installing again. i am paying more attention to use flags. i want a smooth install for xorg-server, gnome and vlc.

emerge -pv xorg-server gives, for example, USE="(-selinux)", why is it in parantheses?

i'm thinking of leaving make.conf as is and Declaring USE flags for individual packages.

i have looked at /usr/portage/profiles/base/make.defaults. i have selected Desktop profile, how do i view this profile?
Back to top
View user's profile Send private message
dare2be
n00b
n00b


Joined: 08 Aug 2009
Posts: 25
Location: dreamland

PostPosted: Sun Sep 06, 2009 11:29 am    Post subject: Reply with quote

Quote:
cannot open root device on dev sda3 or unknown block
for me, adding "doscsi" to kernel options line did the trick..

Quote:
USE flags in (parenthesis) are forced, masked or removed by your profile, -dash are disabled flags, asterisks* indicate that a flag has changed since the package was last emerged while percentage% indicate that it has been newly added or removed as an option.
from: http://en.gentoo-wiki.com/wiki/Portage

Quote:
i have looked at /usr/portage/profiles/base/make.defaults. i have selected Desktop profile, how do i view this profile?
i guess /usr/portage/profiles/default/linux/x86/2008.0/desktop/make.defaults (of course replace x86 with whatever platform you're on)
_________________
facts do not cease to exist because they are ignored

aldous huxley
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum