Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cant get internet after chrooting into my new environment
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
destreza
n00b
n00b


Joined: 04 Oct 2014
Posts: 8

PostPosted: Sat Oct 04, 2014 12:13 am    Post subject: Cant get internet after chrooting into my new environment Reply with quote

Here is the thing, I can get internet doing this:
Code:
ifconfig wlp4s0 up
wpa_supplicant -iwlp4s0 -c/etc/wpa_supplicant -B
dhcpcd wlp4s0

Then, when I
Code:
ping google.com
it's all good, BUT when I
Code:
cd /mnt/gentoo
chroot . /bin/bash

Then,
Code:
ping google.com
I don't get anything :x am I missing something?

Last edited by destreza on Sat Oct 04, 2014 12:29 am; edited 4 times in total
Back to top
View user's profile Send private message
destreza
n00b
n00b


Joined: 04 Oct 2014
Posts: 8

PostPosted: Sat Oct 04, 2014 12:22 am    Post subject: Re: Cant get internet after chrooting into my new envornment Reply with quote

oh, also when I
Code:
dhcpcd wlp4s0
in the new environment I get
Code:
wlp4s0: waiting for carrier
timed out
allowing 8 seconds for IPv4LL timeout
timed out
exited
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7550
Location: Goose Creek SC

PostPosted: Sat Oct 04, 2014 4:04 am    Post subject: Reply with quote

Code:
cd /mnt/gentoo
chroot . /bin/bash
does not get you into a properly setup chroot. see https://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?style=printable&full=1#book_part1_chap6
_________________
Defund the FCC.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43175
Location: 56N 3W

PostPosted: Sat Oct 04, 2014 10:28 am    Post subject: Reply with quote

destreza,

Whats in /etc/resolv.conf in the chroot.
You are supposed to copy that from outside the chroot. Its your nameservers.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
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