LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-11-2012, 02:42 PM   #16
omizt
Member
 
Registered: Feb 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by Thor_2.0 View Post
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.
 
Old 02-11-2012, 02:49 PM   #17
omizt
Member
 
Registered: Feb 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
and now I changed the resolv.conf to
nameserver 8.8.8.8
nameserver 8.8.8.8

and only contain these two lines.

I can't access google either.
when I typed http://www.google.com
it showed "address not found"
 
Old 02-11-2012, 02:55 PM   #18
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Okay, let's go a little deeper...

Open a console, enter "ping 8.8.8.8" (no quotes) - did you get something like this?

Quote:
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=53 time=45.7 ms
64 bytes from 8.8.8.8: icmp_req=2 ttl=53 time=45.5 ms
64 bytes from 8.8.8.8: icmp_req=3 ttl=53 time=47.5 ms
64 bytes from 8.8.8.8: icmp_req=4 ttl=53 time=45.2 ms
64 bytes from 8.8.8.8: icmp_req=5 ttl=53 time=46.8 ms
^C
--- 8.8.8.8 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4006ms
rtt min/avg/max/mdev = 45.239/46.208/47.545/0.890 ms
By the way, hit Ctrl-C to stop the output...

If so, next, try "ping www.google.com" (no quotes) - if you get something back, then we'll know that at least you are "getting out", if not, try this:

Quote:
route add default gw [IP of your modem]
...let's be surprised.

Thor
 
Old 02-11-2012, 02:58 PM   #19
omizt
Member
 
Registered: Feb 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Thor_2.0 View Post
Okay, let's go a little deeper...

Open a console, enter "ping 8.8.8.8" (no quotes) - did you get something like this?



By the way, hit Ctrl-C to stop the output...

If so, next, try "ping www.google.com" (no quotes) - if you get something back, then we'll know that at least you are "getting out", if not, try this:



...let's be surprised.

Thor

there is one line only
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
 
Old 02-11-2012, 03:00 PM   #20
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
...you're not getting out...hmm, okay, let's examine the TCP stack...enter this

Quote:
ping 127.0.0.1
...and see what's comming back, it could be something, but, when the foundations are okay, then we can trust these...

Last edited by ButterflyMelissa; 02-11-2012 at 03:02 PM.
 
Old 02-11-2012, 03:03 PM   #21
omizt
Member
 
Registered: Feb 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Thor_2.0 View Post
...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.
 
Old 02-11-2012, 03:04 PM   #22
omizt
Member
 
Registered: Feb 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Thor_2.0 View Post
...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...
when I ping 127.0.0.1
I see the similar results as you listed.
 
Old 02-11-2012, 03:07 PM   #23
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Quote:
when I ping 127.0.0.1
I see the similar results as you listed.
Okay, so I asume you mean some lines like I showed. Okay, the stack is intact, let's ping 192.168.1.1 next...I guess that's the modem you're using...
 
Old 02-11-2012, 03:11 PM   #24
omizt
Member
 
Registered: Feb 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Thor_2.0 View Post
Okay, so I asume you mean some lines like I showed. Okay, the stack is intact, let's ping 192.168.1.1 next...I guess that's the modem you're using...
only one line when I ping 192.168.1.1
I am not sure what the modem I am using.
I am sorry that I know too little and bother you so much!
Thank you!
 
Old 02-11-2012, 03:21 PM   #25
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Quote:
I am sorry that I know too little and bother you so much!
Dont apologise - I for one am having fun...I enjoy doing this. It beats looking at those "who dunnits" on tv...

Okay, your modem, is that a box outside the computer? If so, what make is it, I could google the IP address...

Last edited by ButterflyMelissa; 02-11-2012 at 03:23 PM.
 
Old 02-11-2012, 03:24 PM   #26
omizt
Member
 
Registered: Feb 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Thor_2.0 View Post
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 View Post
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?
 
Old 02-11-2012, 03:27 PM   #27
omizt
Member
 
Registered: Feb 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
I tried to ping the gateway and the router.
both of them, I got the long results.
 
Old 02-11-2012, 03:34 PM   #28
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Quote:
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:

Quote:
route -n
 
Old 02-11-2012, 03:37 PM   #29
omizt
Member
 
Registered: Feb 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
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?
 
Old 02-11-2012, 03:42 PM   #30
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Just a thought, do you need to set a proxyserver?
Look into the settings from firefox in the root account and the user account

Kind regards
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
root access to user account RudraB Linux - Newbie 16 06-30-2010 02:11 AM
Root Account Access Security iconicmoronic Linux - Security 2 04-14-2007 02:17 PM
How do I access root account in Mandrake 10? dbz Linux - Security 4 04-03-2004 11:00 AM
Can Access Sites with root but not user account Obelus Linux - Networking 4 12-21-2003 03:28 PM
FTP access using root account - restrictions alaerte Linux - Software 7 04-03-2003 01:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration