LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 07-27-2009, 01:42 PM   #1
guard
LQ Newbie
 
Registered: Jul 2009
Location: Minsk, Belarus
Distribution: Gentoo, Ubuntu
Posts: 17

Rep: Reputation: 0
Unhappy Gentoo install from minimal CD with WPA wireless network


Hello.
I've encountered a problem with installing Gentoo (this is my first attempt to do it). I've seen the similar question in other forum, and it was answered, but the answer does not fit my problem.

So, to configure the WPA network access I need the wpa_supplicant app, that should be installed via emerge.

The latest minimal CD itself does not contain the portage.
I have booted from it, created the file systems for installation, unpacked the stage3 and the latest portage snapshot.

When chrooting, I have emerge, but when I run "emerge wpa_supplicant", it needs Internet access (though wpa_supplicant is present in the portage tree), leading to viscious circulus.

Is downloading the wpa_supplicant source and manually building it the only option?
 
Old 07-27-2009, 03:28 PM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
Hi,

I never encountered this kind of trap beacause I can use LAN and/or have admin access to the wireless AP I'm using and could thus reconfigure it temporarily to not be encrypted.
I suppose you tried asking for that or something similar already.

But I guess one possible solution would be to use some other Live-CD you know or like (be it Ubuntu or Knoppix or DSL or Puppy or ...) instead of the Gentoo minimal CD.

That way you have the Networking capabilities of that particular Distribution and can use it to build your Gentoo system.
It should not matter if you are using the Gentoo CD or any other Linux Distribution - you always build the Gentoo system in a chroot from the initially running Distribution.

HTH
 
Old 07-27-2009, 03:39 PM   #3
guard
LQ Newbie
 
Registered: Jul 2009
Location: Minsk, Belarus
Distribution: Gentoo, Ubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
Thank you, jomen, your solution sounds nice. I understand the concept of building in chrooted environment (I have the experience of building LFS in virtual machine). So this is a workaround that will help me.
But the problem is still there and I'm curious what's the source of it. As for me, if I have downloaded the portage snapshot, I should be able to install programs from there.
And what is interesting, here the guy did have the working wpa_supplicant in his environment.
 
Old 07-28-2009, 05:26 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by guard View Post
Thank you, jomen, your solution sounds nice. I understand the concept of building in chrooted environment (I have the experience of building LFS in virtual machine). So this is a workaround that will help me.
But the problem is still there and I'm curious what's the source of it.
Your problem is that your network connection doesn't work. I can't help much with that, as I try to avoid wireless unless I am forced to use it for many reasons that are not relevant to this thread.

You can use *any* livecd or even another distro that's already installed as a base to install Gentoo. All you need is a working linux system that you can use to chroot from, and that can provide you with a working internet connection. So, as long as it's up to date enough to be able to chroot (mainly in which regards glibc) you shouldn't have any problem.

There are also instructions on how to install without network connection, however I don't advice that unless you have absolutely no other way to proceed. It's just inconvenient and tedious.

I have no idea of the current status of wireless support on the official livecds, however I really advice to use whatever you know that works instead, so you can comfortably search the net if needed in firefox while you install Gentoo on an xterm. There are hundreds of livecds out there that are much better and complete, and some of them are even smaller than the Gentoo one in size. As much as I love Gentoo, it's the pure truth
 
Old 07-28-2009, 05:57 AM   #5
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
...about the last sentence in guard's post:
I don't know if the Gentoo minimal CD has the neccesary tools "on board" to connect to a WPA secured network. The driver for your wireless card would need to be included in the booted Live-CD as well as wpa_supplicant.
Reading the post you linked to I understand that everything should be there.
It would then be "only" a matter of configuration.
http://www.gentoo.org/doc/en/handboo...?part=4&chap=4

Reading you, at least the latter (wpa_supplicant available) seems not to be the case.
Then it gets a little more difficult...

I don't know which one it is - I have no CD available to try.

Quote:
As for me, if I have downloaded the portage snapshot, I should be able to install programs from there.
portage does not contain any sourcecode - it only contains the ebuilds which are the info on how emerge is to build the source into executables and then install them.
Without a working internet-connection you will however not be able to download any souce-code - not wpa_suppliciant nor anything else
...and thus cannot build anything.
You are using the internet connection of the system from which you did the chroot - if this was not working, it will not work in chroot.

It might be possible to download the source of wpa_supplicant and any other source which it depends on beforehand - as you did with the portage-snapshot and the stage-tarball - then build it (sources go into /usr/portage/distfiles) and transfer it back to the environment the Live-CD is running in - but the easier way is to just use a distribution which can connect you to your WPA network out of the box.

To me it looks like WPA should be possible, but I'm not sure.
Did you try configuring it - and how?
http://www.gentoo.org/doc/en/handboo...?part=4&chap=4

Last edited by jomen; 07-28-2009 at 05:59 AM.
 
Old 07-28-2009, 07:34 AM   #6
guard
LQ Newbie
 
Registered: Jul 2009
Location: Minsk, Belarus
Distribution: Gentoo, Ubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
So, the problem is really there - minimal CD does not have necessary tools. wpa_supplicant is required for WPA configuration, so I haven't tried to configure the key. Only WEP could be configured with the iwconfig. As for the driver, it's loaded automatically during the boot, as iwconig shows the correct info about my wireless card.

Thanks for the explanation of portage, I thought the snapshot contains the sources.

And I was not able to find any official Live CD newer than the 2008.0.
So I think I will use the Puppy Linux Live CD for the task.
But it is so strange that Gentoo did not try to include this minimal requirement into its minimal CD As I think, WPA/WPA2 networks (and wireless at all) are becoming much and much more popular than the classic Ethernet.
 
Old 07-28-2009, 04:14 PM   #7
d2_racing
Gentoo support team
 
Registered: May 2009
Location: Ste-Foy,Québec,Canada
Distribution: Gentoo
Posts: 115

Rep: Reputation: 17
Hi, maybe you should try to install Gentoo via Ubuntu LiveCD or SystemRescueCD.
 
Old 07-28-2009, 06:00 PM   #8
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
After trying an old 2007 minimal CD I'm not convinced that WPA is not possible.
I never ever tried configuring it via commandline but it should work - of course you need to change the driver given in the example here to what you actually have.
http://www.gentoo.org/doc/en/handboo...?part=4&chap=4
You need to have the network up before you go to chroot - that is why I mentioned:
Quote:
Did you try configuring it - and how?
via:
/mirrors/gentoo/releases/x86/current/ (note the "current" vs. "2008") you'll find a recent version of the CD's
e.g.:
http://ftp.spline.inf.fu-berlin.de/m...l-20090623.iso

Still, installing Gentoo using another Distribution would probably be the easier way.

Have fun!
 
Old 07-30-2009, 03:44 AM   #9
guard
LQ Newbie
 
Registered: Jul 2009
Location: Minsk, Belarus
Distribution: Gentoo, Ubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
jomen, thanks again, but you have missed some points, probably.
I have the current minimal CD. wpa_supplicant is required for WPA configuration. wpa_supplicant is not included in minimal CD. wpa_supplicant is probably included in earlier versions of Live CD, but there are no current Live CDs available on the mirrors.

Anyway, I have already started building Gentoo using Puppy.

Thanks again for all the replies, I was surprised by the speed they appeared
 
Old 07-30-2009, 05:29 AM   #10
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
wpa_supplicant was even included in the minimal from 2007 I have here - what I was not sure about was if WPA could really be done with it since I never even tried to configure that via commandline (no need to).
It _is_ there.

The link in my last post pointed to a minimal CD which is (should be, from the name of it) more recent than the latest "official" one - which is, as you mentioned, from 2008.

But all that does not really matter now and you are probably already halfway through installing Gentoo using Puppy.

All the best!

Last edited by jomen; 07-30-2009 at 05:37 AM.
 
Old 07-30-2009, 05:35 AM   #11
guard
LQ Newbie
 
Registered: Jul 2009
Location: Minsk, Belarus
Distribution: Gentoo, Ubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
Yes, it's strange, but it is now available from the minimal-cd (or I'm so stupid not to find it =)
Thanks for the wishes, I have built the kernel and plan to continue today.
 
Old 07-30-2009, 02:32 PM   #12
NeddySeagoon
Gentoo support team
 
Registered: May 2009
Location: 56N 3W
Distribution: Gentoo
Posts: 178

Rep: Reputation: 41
guard,

You can use sneakernet http://forums.gentoo.org/viewtopic-p...9.html#3461249 to get the source code for WPA_Supplicant in the same way as you fetched the stage3 and portage snapshot
 
Old 07-30-2009, 04:44 PM   #13
guard
LQ Newbie
 
Registered: Jul 2009
Location: Minsk, Belarus
Distribution: Gentoo, Ubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
Thank you, Neddy, but using other Live CD is really much easier )
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble installing Gentoo through WPA network. Jonathanius Linux - Newbie 4 08-20-2008 03:48 PM
Unsecured wireless network used instead of configured WPA network. SCVirus Ubuntu 3 05-15-2008 11:14 PM
Gentoo Linux Minimal Install on HP dv9428mr SeanInSeattle Linux - Laptop and Netbook 2 09-03-2007 12:36 AM
Problems with Gentoo 2006.0 Minimal or LiveCD Install, need help Centurion5545 Linux - Newbie 6 05-12-2006 09:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 10:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration