View previous topic :: View next topic |
Author |
Message |
whiteghost Guru
Joined: 26 Jul 2009 Posts: 374 Location: north dakota
|
Posted: Tue Jul 28, 2009 11:27 pm Post subject: help w/install linux basics[solved] |
|
|
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 |
|
|
poly_poly-man Advocate
Joined: 06 Dec 2006 Posts: 2477 Location: RIT, NY, US
|
Posted: Wed Jul 29, 2009 1:16 am Post subject: Re: help w/install linux basics |
|
|
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 |
|
|
whiteghost Guru
Joined: 26 Jul 2009 Posts: 374 Location: north dakota
|
Posted: Wed Jul 29, 2009 1:28 am Post subject: |
|
|
nice, thank you |
|
Back to top |
|
|
whiteghost Guru
Joined: 26 Jul 2009 Posts: 374 Location: north dakota
|
Posted: Wed Jul 29, 2009 1:32 am Post subject: |
|
|
can i emerge gpm now? |
|
Back to top |
|
|
poly_poly-man Advocate
Joined: 06 Dec 2006 Posts: 2477 Location: RIT, NY, US
|
Posted: Wed Jul 29, 2009 2:28 am Post subject: |
|
|
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 |
|
|
whiteghost Guru
Joined: 26 Jul 2009 Posts: 374 Location: north dakota
|
Posted: Wed Jul 29, 2009 4:08 am Post subject: |
|
|
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 |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Wed Jul 29, 2009 4:14 am Post subject: |
|
|
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 |
|
|
whiteghost Guru
Joined: 26 Jul 2009 Posts: 374 Location: north dakota
|
Posted: Wed Jul 29, 2009 7:28 am Post subject: |
|
|
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
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 |
|
|
alfagamma81 Tux's lil' helper
Joined: 22 Mar 2009 Posts: 86 Location: Finland
|
Posted: Wed Jul 29, 2009 2:32 pm Post subject: |
|
|
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 |
|
|
poly_poly-man Advocate
Joined: 06 Dec 2006 Posts: 2477 Location: RIT, NY, US
|
Posted: Wed Jul 29, 2009 3:26 pm Post subject: |
|
|
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 |
|
|
whiteghost Guru
Joined: 26 Jul 2009 Posts: 374 Location: north dakota
|
Posted: Wed Jul 29, 2009 6:18 pm Post subject: |
|
|
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 |
|
|
alfagamma81 Tux's lil' helper
Joined: 22 Mar 2009 Posts: 86 Location: Finland
|
Posted: Wed Jul 29, 2009 7:18 pm Post subject: |
|
|
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 |
|
|
alfagamma81 Tux's lil' helper
Joined: 22 Mar 2009 Posts: 86 Location: Finland
|
Posted: Wed Jul 29, 2009 7:32 pm Post subject: |
|
|
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 |
|
|
whiteghost Guru
Joined: 26 Jul 2009 Posts: 374 Location: north dakota
|
Posted: Fri Jul 31, 2009 4:38 am Post subject: |
|
|
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 |
|
|
whiteghost Guru
Joined: 26 Jul 2009 Posts: 374 Location: north dakota
|
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Fri Jul 31, 2009 3:00 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
whiteghost Guru
Joined: 26 Jul 2009 Posts: 374 Location: north dakota
|
Posted: Fri Jul 31, 2009 7:43 pm Post subject: |
|
|
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 |
|
|
whiteghost Guru
Joined: 26 Jul 2009 Posts: 374 Location: north dakota
|
Posted: Fri Jul 31, 2009 10:51 pm Post subject: |
|
|
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 |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Sat Aug 01, 2009 2:23 pm Post subject: |
|
|
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 |
|
|
whiteghost Guru
Joined: 26 Jul 2009 Posts: 374 Location: north dakota
|
Posted: Sun Sep 06, 2009 8:25 am Post subject: |
|
|
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 |
|
|
dare2be n00b
Joined: 08 Aug 2009 Posts: 25 Location: dreamland
|
Posted: Sun Sep 06, 2009 11:29 am Post subject: |
|
|
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 |
|
|
|