You are not logged in.
I have recently installed Arch on one of my desktops after having messed around with it in virtual box for awhile. While things went really smoothly in Virtual box with the set up i am having issues getting any wireless networks to work on the desktop machine. Any tips or ideas on how to get them to work? I've already looked in the network sections on the forums but nothing there has really helped me yet. Any ideas would be helpful.
Thanks,
Ryan
Offline
This may not be the answer you're looking for but you may want to try Wicd if you haven't already. I find it works much better "out of the box."
Offline
Do i select this as a package during the install?
Offline
I was assuming Arch was already already installed and you couldn't connect. Do you have Arch installed yet?
Offline
Yes i have arch installed. I was making sure it didn't have to be selected when you select packages. Arch is installed and working but i can't get any packages besides the base ones untill i have working internet.
Offline
I didn't realize that wired internet wasn't working either for you. Can you post the contents of the file /etc/rc.conf?
EDIT: I just realized that would be a challenge. Can you post the following lines:
HOSTNAME=
interface=
address=
netmask=
broadcast=
gateway=
Last edited by nrempel (2011-08-30 19:49:28)
Offline
What would be the easiest possible way for me to do that? all i could think of possibly doing is retyping it. Thanks for the help so far by the way. While i'm not a major Linux noob i'm not too experienced with the command line.
Offline
Hostname: archlinux
interface: eth0
netmask: 255.255.255.0 (the line is with a static ip example and is commented out)
broadcast: 192.168.0.255 (same as above)
gateway: default gw 192.168.0.1
Offline
Do you remember which text editor you chose during the installation process? I will assume you chose "nano" which is the easiest to use.
Type this as root:
nano /etc/rc.conf
Then find the line in the network sections that looks like this:
interface=eth0
address=
netmask=
broadcast=
gateway=
If the line "interface=" doesn't have the "eth0" part, add it then reboot the machine. Once you've rebooted trying running this command:
ping www.google.ca
If you get a bunch of lines about response time and whatnot, it means you are connected. Press Ctrl+c to make it stop.
EDIT: Just saw your post.
Make sure that you aren't looking at the examples that are commented out. If you are using DHCP you should just need what I've posted above.
Last edited by nrempel (2011-08-30 20:06:54)
Offline
Does it matter if i'm using a connection bridged from my laptop for the ethernet?
I can't seem to find an area in /etc/rc.conf that looks like that... Where exactly in the file should it be.
Last edited by rhart96 (2011-08-30 20:07:10)
Offline
That would make a difference. Do you know if your laptop can act as a dhcp server or do you normally set up a static IP manually?
Last edited by nrempel (2011-08-30 20:11:43)
Offline
As far as i know its not using a static ip. I added the line interfaces=eth0 to /etc/rc.conf and the internet seems to be working now however its taking 50-60 ms to ping the server which is pretty high...
Just ran pacman -Syu and it was able to connect and give me the updates. The high ping is probably my internet acting up... Any tips on getting wireless working?
Last edited by rhart96 (2011-08-30 20:15:37)
Offline
That's not that high at all. The extra hop from your laptop to your router could add a dozen ms. I would say you're good to go.
For the wireless, try wicd and read the wiki thoroughly.
Last edited by nrempel (2011-08-30 20:16:50)
Offline
Thanks for the help. You have any idea why I would be missing all those lines in /etc/rc.conf?
Also should i add wlan0 to the interfaces line for wireless?
Last edited by rhart96 (2011-08-30 20:18:58)
Offline
It's something that should have been set up manually during the installing process.
Offline
mate, i'm not trying to be clever but all your questions so far could be answered by the wiki. take a look of it and you will understand what i mean.
Offline
Hi
For installing wicd look https://wiki.archlinux.org/index.php/Wicd
As warenso said, use archwiki. It is one of the more important and usefull "cornerstone" of ArchLinux. Many times you will get in the problem and that times archwiki is excellent place to get yourself out of them. Look on ArchForums too, since many similar questions to yours has been already answered. For easier searching on the ArchForums use operands like AND, OR, NOT for yout keywords. It will make your life easier.
If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau
Registered Linux User: #559057
Offline
Thanks for all the help everybody. Ill remember to look deeper into the wiki next time before posting as i only skimmed the first time. Hope to see you all around the forums
Ryan
Offline
Finally got real internet to actually be able to update arch. Now whenever i try and use pacman -Syu i get error failed to retrieve file from mirrors.kernel.org connection timed out. Any idea why this would be occurring?
Offline
You may need to insert in the command line....pacman-db-upgrade..,...
There are no spaces in that entry....
Then insert in the command line....pacman -Syy.......
Then for a last effort, determine if mirrorlist.pacnew is present in the directory .../etc/pacman.d....
Use nano to edit the mirrorlist.pacnew for your mirrors and rename it to ...mirrorlist... and when asked to overwrite answer yes.
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
pacman-db-upgrade command not found
pacman-Syy gives same error as -Syu
mirrorlist.pacnew does not exist. Should i create one?
Thanks,
Ryan
Offline
Your mirror isn't working at the moment. You will need to change it. Here is a list of the five best mirrors in the US at the moment:
# Score: 0.9, United States
Server = ftp://mirror.rit.edu/archlinux/$repo/os/$arch
# Score: 1.1, United States
Server = http://cake.lib.fit.edu/archlinux/$repo/os/$arch
# Score: 1.1, United States
Server = http://mirror.ece.vt.edu/archlinux/$repo/os/$arch
# Score: 1.2, United States
Server = http://mirror.mocker.org/archlinux/$repo/os/$arch
# Score: 1.3, United States
Server = ftp://ftp.archlinux.org/$repo/os/$arch
Create a new mirrorlist with that and you should be good to go. Just rename the old mirrorlist mirrorlist.old if you want to keep it.
Last edited by the sad clown (2011-09-15 17:13:02)
I laugh, yet the joke is on me
Offline
Actually how would i go about creating the file from scratch?
Last edited by rhart96 (2011-09-15 17:17:43)
Offline
I use vim, so it would be like this:
sudo mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.old
Then:
sudo vim /etc/pacman.d/mirrorlist
This will create a new file and open it in vim for editing.
Just replace vim with the editor of your choice and you should be good to go.
I laugh, yet the joke is on me
Offline
Also, it would be a good idea to use different mirrors than I pasted above if you don't live in the US.
I laugh, yet the joke is on me
Offline