Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internet connectivity in Arch Linux #292

Closed
MailYouLater opened this issue Jun 26, 2019 · 3 comments
Closed

Internet connectivity in Arch Linux #292

MailYouLater opened this issue Jun 26, 2019 · 3 comments

Comments

@MailYouLater
Copy link
Contributor

I've been trying to figure out how to get the Arch Linux image to be able to connect to the internet the way the Linux 3.18 image does, but I can't figure it out. I found an old issue which indicates that the Arch Linux image could connect to the internet previously, but running udhcpc (as is done for the Linux 3.18 image) tells me -bash: udhcpc: command not found, running busybox udhcpc (because the udhcpc binary on the Linux image is a symlink to a busybox binary) tells me udhcpc: SIOCGIFINDEX: No such device, and running dhcpcd -w4 (as described in #23) results in this:

dev: loaded udev
no valid intervaces found
timed out
forked to background, child pid \<number\>

I've tried several times to dig into this more, but I'm having difficulty understanding it.

@copy
Copy link
Owner

copy commented Jun 27, 2019

There's a net.sh script that does the right thing for you. One needs to run modprobe ne2k-pci before dhcpcd. The reason for this is that the Arch Linux image is restored from a memory dump, and if the driver was already loaded everybody would get the same MAC address.

@MailYouLater
Copy link
Contributor Author

D'Oh❗️❗️
I've been trying to figure this out off and on for over a year, Digging into the source code of different parts of the Linux kernel and not being able to figure this out. Now it all makes sense. Thank you so much. I can hardly believe that in all that time I didn't notice the ~/net.sh script there. 🤦‍♂

Perhaps you could mention ~/net.sh at

v86/index.html

Line 24 in 289b803

- A complete Arch Linux restored from a snapshot, additional files are loaded as needed<br>
similar to how you have udhcpc mentioned at

v86/index.html

Line 30 in 289b803

- With internet access, telnet, ping, wget and links. Takes about 60 seconds to boot. Run <code>udhcpc</code> for networking. Exchange files through <code>/mnt/</code>.<br>
and/or add a start up script to the Arch image that echoes a statement about ~/net.sh to the terminal, similar to how you have the Linux 3.18 image mention udhcpc, as I doubt I'm the only person who didn't notice it.

Thank you.

@copy
Copy link
Owner

copy commented Jan 2, 2021

I'll close this, I think the script is pretty self-explanatory.

@copy copy closed this as completed Jan 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants