0

I am using an arch-linux image of raspberry-pi with emacspeak.The image was downloaded from the following link.

Arch image

I need to install python on this image.I tried

sudo pacman -S python

But it seems like i am not able to connect to internet even though i have connected the ethernet cable.Is there a way to install python offline or to make internet working on the arch-linux image .

12
  • Can you paste the output of ifconfig or ipconfig - I don't remember which is installed on arch. Jan 12, 2015 at 4:28
  • It seems both the commands are not installed on this image.I am getting a command not found message
    – slaveCoder
    Jan 12, 2015 at 4:30
  • OK, lets try this to confirm that the network is down, can you ping google.com? Jan 12, 2015 at 4:41
  • nope.. Giving response unknown host
    – slaveCoder
    Jan 12, 2015 at 4:41
  • The link you posted above is broken. Can you fix that so I can check that this is supposed to be a complete arch distro? Jan 12, 2015 at 4:45

1 Answer 1

1

[I've included options using ifconfig instead of ip below. If ifconfig is not found, you are sort of out of luck; the distribution is missing critical networking tools.]

With the ethernet cable plugged in:

ip link
- OR -
ifconfig -a

Should show an entry including eth0, unless Arch's init renames things (it may), in which case there should be an entry that includes link/ether in the description. Regard that as eth0 below.

If there's no such entry, check the leds around the jack. If they are not lit, something's physically wrong or you have a very strange kernel -- try another distro.

Now try:

sudo dhclient -r
sudo ip link set eth0 up
- OR -
sudo ifconfig eth0 up

Then:

sudo dhclient -v eth0

You should see a negotiation ending with you getting an IP address. If so and you still cannot connect, add to /etc/resolve.conf:

nameserver 8.8.8.8

And try again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.