root account can access the internet, the other account can only access google
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Okay, maybe one step at a time...let's go with repo's advice:
Do you know how to set this? If not, well, it's pretty simple:
- open a console
- issue "su -" (no excamation marks, the hyphen is part of the "spell")...
- enter the root password
- enter "gedit /etc/resolv.conf" and add the line "nameserver 8.8.8.8" (no exclamation marks)and save
- issue "exit" twice (one to get out of the root account, one to close the console)
Possible snag: resolv.conf may be somewhere else, in that case, try a sys-wide seek first...
Good luck
Thor
I did this, and just add one line to the end of that file. And open the browser directly. but still the same.
...you're not getting out...hmm, okay, let's examine the TCP stack...enter this
...and see what's comming back, it could be something, but, when the foundations are okay, then we can trust these...
the weird part is
now I log into the root account, and tried the command "ping 8.8.8.8"
still there is only one line as I listed.
but I can access the internet using the FireFox.
Dont apologise - I for one am having fun...I enjoy doing this. It beats looking at those "who dunnits" on tv...
Okay, you modem, is that a box outside the computer? If so, what make is it, I could google the IP address...
I am in an university and I am using wired connection.
I know the IP of my other computer, network mask, gateway, DNS server, search domains.
so which one is the one? should I ping the gateway?
---------- Post added 02-11-12 at 01:25 PM ----------
Quote:
Originally Posted by omizt
I am in an university and I am using wired connection.
I know the IP of my other computer, network mask, gateway, DNS server, search domains.
so which one is the one? should I ping the gateway?
and I know the router.
so what number should I ping?
I tried to ping the gateway and the router.
both of them, I got the long results.
Okay! And, yes...a university. Did'nt see that comming. But, you can get to te gateway on that box. Okay, did you get the IP address? Look if it's in the gateway list:
if I use 8.8.8.8, I can't access to the internet. so I already changed my setting in the resolv.conf into the original setting, which is the DNS Server in our university. And then ping all this address and showed the above results.
should I change it back to 8.8.8.8, and tried to ping all this address again?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.