You are not logged in.

#1 2011-08-30 18:57:44

rhart96
Member
Registered: 2011-08-29
Posts: 19

Issues with both Ethernet and Wireless netowrks

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

#2 2011-08-30 19:22:23

nrempel
Member
Registered: 2010-12-27
Posts: 37

Re: Issues with both Ethernet and Wireless netowrks

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

#3 2011-08-30 19:23:37

rhart96
Member
Registered: 2011-08-29
Posts: 19

Re: Issues with both Ethernet and Wireless netowrks

Do i select this as a package during the install?

Offline

#4 2011-08-30 19:30:18

nrempel
Member
Registered: 2010-12-27
Posts: 37

Re: Issues with both Ethernet and Wireless netowrks

I was assuming Arch was already already installed and you couldn't connect.  Do you have Arch installed yet?

Offline

#5 2011-08-30 19:32:10

rhart96
Member
Registered: 2011-08-29
Posts: 19

Re: Issues with both Ethernet and Wireless netowrks

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

#6 2011-08-30 19:45:59

nrempel
Member
Registered: 2010-12-27
Posts: 37

Re: Issues with both Ethernet and Wireless netowrks

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

#7 2011-08-30 19:50:13

rhart96
Member
Registered: 2011-08-29
Posts: 19

Re: Issues with both Ethernet and Wireless netowrks

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

#8 2011-08-30 19:58:10

rhart96
Member
Registered: 2011-08-29
Posts: 19

Re: Issues with both Ethernet and Wireless netowrks

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

#9 2011-08-30 20:03:05

nrempel
Member
Registered: 2010-12-27
Posts: 37

Re: Issues with both Ethernet and Wireless netowrks

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

#10 2011-08-30 20:05:27

rhart96
Member
Registered: 2011-08-29
Posts: 19

Re: Issues with both Ethernet and Wireless netowrks

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

#11 2011-08-30 20:08:28

nrempel
Member
Registered: 2010-12-27
Posts: 37

Re: Issues with both Ethernet and Wireless netowrks

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?

A typical rc.conf

Last edited by nrempel (2011-08-30 20:11:43)

Offline

#12 2011-08-30 20:12:09

rhart96
Member
Registered: 2011-08-29
Posts: 19

Re: Issues with both Ethernet and Wireless netowrks

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

#13 2011-08-30 20:15:38

nrempel
Member
Registered: 2010-12-27
Posts: 37

Re: Issues with both Ethernet and Wireless netowrks

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

#14 2011-08-30 20:16:52

rhart96
Member
Registered: 2011-08-29
Posts: 19

Re: Issues with both Ethernet and Wireless netowrks

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

#15 2011-08-30 20:18:11

nrempel
Member
Registered: 2010-12-27
Posts: 37

Re: Issues with both Ethernet and Wireless netowrks

It's something that should have been set up manually during the installing process.

Offline

#16 2011-08-30 20:57:44

warenoso
Member
From: Brisbane
Registered: 2010-08-06
Posts: 76

Re: Issues with both Ethernet and Wireless netowrks

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.

http://wiki.archlinux.org

Offline

#17 2011-08-30 22:48:12

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: Issues with both Ethernet and Wireless netowrks

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

#18 2011-09-01 19:33:23

rhart96
Member
Registered: 2011-08-29
Posts: 19

Re: Issues with both Ethernet and Wireless netowrks

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

#19 2011-09-15 16:06:06

rhart96
Member
Registered: 2011-08-29
Posts: 19

Re: Issues with both Ethernet and Wireless netowrks

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

#20 2011-09-15 16:18:07

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: Issues with both Ethernet and Wireless netowrks

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

#21 2011-09-15 16:30:30

rhart96
Member
Registered: 2011-08-29
Posts: 19

Re: Issues with both Ethernet and Wireless netowrks

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

#22 2011-09-15 17:11:30

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: Issues with both Ethernet and Wireless netowrks

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

#23 2011-09-15 17:16:41

rhart96
Member
Registered: 2011-08-29
Posts: 19

Re: Issues with both Ethernet and Wireless netowrks

Actually how would i go about creating the file from scratch?

Last edited by rhart96 (2011-09-15 17:17:43)

Offline

#24 2011-09-15 17:22:24

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: Issues with both Ethernet and Wireless netowrks

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

#25 2011-09-15 17:23:40

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: Issues with both Ethernet and Wireless netowrks

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

Board footer

Powered by FluxBB