DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
root@mock:/home/ztcoracat# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wlan0 Ralink STA ESSID:"" Nickname:"RT2870STA"
Mode:Auto Frequency=2.422 GHz Access Point: Not-Associated
Bit Rate:1 Mb/s
RTS thr:off Fragment thr:off
Encryption key:off
Link Quality=76/100 Signal level:-63 dBm Noise level:-115 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
pan0 no wireless extensions.
Next Command
[CODE]root@mock:/home/ztcoracat# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.5
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.1.1
root@mock:/home/ztcoracat#
Next Command
[CODE]root@mock:/home/ztcoracat# cat /etc/resolv.conf
# Generated by NetworkManager
root@mock:/home/ztcoracat#
I did not run this in a terminal because I am only suspicious (because of the thread I read) of ipv6 being an issue. I do not have concrete confirmation so I figured that it was not wise for me to do so w/o being told to do so.
No, disable IPv6 now as in my previous post and reboot before doing anything else.
Ok, you said the wifi connected and showed you four green bars, but that is clearly not the case here?
Quote:
Originally Posted by Ztcoracat
Code:
wlan0 Ralink STA ESSID:"" Nickname:"RT2870STA"
Mode:Auto Frequency=2.422 GHz Access Point: Not-Associated
Bit Rate:1 Mb/s
RTS thr:off Fragment thr:off
Encryption key:off
Link Quality=76/100 Signal level:-63 dBm Noise level:-115 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
Connect the wifi as you did before to get the 4 green bars and then issue the iwconfig command again.
Quote:
Originally Posted by Ztcoracat
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.5
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.1.1
You've set up a static address for the wired connection? Is this connection available to use? If not, let's comment it out (disable it) just in case - change the file exactly as follows (edit it as root):
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#allow-hotplug eth0
#iface eth0 inet static
# address 192.168.1.5
# netmask 255.255.255.0
# network 192.168.1.0
# broadcast 192.168.1.255
# gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package, if installed
# dns-nameservers 192.168.1.1
Quote:
Originally Posted by Ztcoracat
Code:
# Generated by NetworkManager
This shows that the network manager daemon is not establishing a connection as there should be a "nameserver" line below the networkmanager comment.
Leave that one as it is for now, as we don't really need to tell networkmanager to manage the wired connection if we've already deconfigured it in the interfaces file.
I had trouble with that file. Here's the output first.
Code:
ztcoracat@mock:~$ su
Password:
root@mock:/home/ztcoracat# echo net.ipv6.conf.all.disable_ipv6=1 > /etc/sysctl.d/disableipv6.conf
root@mock:/home/ztcoracat#
And the next:
Code:
Next Command to post lo no wireless extensions.
eth0 no wireless extensions.
wlan0 Ralink STA ESSID:"Mock" Nickname:"RT2870STA"
Mode:Managed Frequency=2.422 GHz Access Point: 22:02:71:1E:25:14
Bit Rate=54 Mb/s
RTS thr:off Fragment thr:off
Encryption key:3434-3337-3732-3033-3034-3434-33
Link Quality=100/100 Signal level:-61 dBm Noise level:-83 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Code:
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
pan0 no wireless extensions.
Having trouble with copy/paste
I edited the interfaces file exactly the way you did with the # in front of the entries.
Upon closing that file Debian asked me: Save Changes? I saved as and got:
“The file etc/network/interfaces is a read only”
Do you want to replace it? I clicked Replace. Than Debian gave me a warning in red.
“Could not save the file etc/network/interfaces” You do not have permissions necessary to save the file”
In truth Caravel; when I was prompted; I typed in my root password before I started to edit that file- I tried to put in the ( # ) and it worked; it just wouldn't let me replace it with the changes I performed.
So, I do not get what I've done incorrectly.
I do understand how to get to that file(etc/network/interfaces) but once I got the interfaces file open and tried to make the changes, it would not let me save the changes.
I did enter my root password (prior to attempting to change the file) to do so.
I don't understand why I could not change the file as I thought entering my root password should have allowed me to accomplish just that.
I'm starting to think there may be a problem with my permissions or my password or the way in which I'm applying them.
I do understand how to get to that file(etc/network/interfaces) but once I got the interfaces file open and tried to make the changes, it would not let me save the changes.
I did enter my root password (prior to attempting to change the file) to do so.
I don't understand why I could not change the file as I thought entering my root password should have allowed me to accomplish just that.
I'm starting to think there may be a problem with my permissions or my password or the way in which I'm applying them.
Anyway I'm going to Google on how to edit this file in Debian. And look for an example of how others in Debian have done this. I have to learn how to use Nano or Geany. Think I have gedit-
I now know that I have to open a terminal to do this but I need more knowledge.Don't understand how to open the network interfaces file in the terminal.
Trying to help myself here. Hope to solve " editing this file" before morning.
Post #200 now shows that your wireless is connected to "Mock" and associated correctly. Once again ensure that the wifi is actually connected (verify this with iwconfig) and post the outputs of:
Code:
$ cat /etc/resolv.conf
Code:
# route -n
How are you editing the interfaces file? What editor?
I am online now and my wireless is working successfully!
As soon as I figured out how to use the terminal to edit my etc/network/interfaces file and edited it successfully
shut down and rebooted about 1/2 hour ago the internet connection has been up and running.
ztcoracat@mock:~$ su
Password:
root@mock:/home/ztcoracat# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 2 0 0 wlan0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
root@mock:/home/ztcoracat#
You have helped me for 2 weeks straight. Your very good at what you do Caravel and dedicated too; Thank You
Last edited by Ztcoracat; 08-16-2012 at 03:49 AM.
Reason: Additional Terminal output
Post #200 now shows that your wireless is connected to "Mock" and associated correctly. Once again ensure that the wifi is actually connected (verify this with iwconfig) and post the outputs of:
Code:
$ cat /etc/resolv.conf
Code:
# route -n
How are you editing the interfaces file? What editor?
Caravel:
I used Nano 2.2.4 and it worked.
Code:
ztcoracat@mock:~$ cat /etc/resolv.conf
# Generated by NetworkManager
domain Home
search Home
nameserver 192.168.1.1
ztcoracat@mock:~$
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.