How to set up an internet connection ??
How to set up an internet connection ??
Well,i just installed ubuntu 9.04 and its the first time i land my feet on the linux ground so dont flame mofos .So i want to connect myself to internet and its not working.I googled for guides to set up a PPPoE connection and i got this site http://www.clububuntu.com/2009/01/how-t ... on-in.html and im pretty sure and ive written the correct username, service and password but still not working !!!
Help is HIGHLY appreciated
Help is HIGHLY appreciated
Code: Select all
Aug 13 01:51:04 3xtortion NetworkManager: <info> Starting pppd connection
Aug 13 01:51:04 3xtortion NetworkManager: <debug> [1250117464.166187] nm_ppp_manager_start(): Command line: /usr/sbin/pppd nodetach lock nodefaultroute user tannous plugin rp-pppoe.so nic-eth0 noauth nodeflate usepeerdns mru 1492 mtu 1492 lcp-echo-failure 3 lcp-echo-interval 20 ipparam /org/freedesktop/NetworkManager/PPP/1 plugin /usr/lib/pppd/2.4.4/nm-pppd-plugin.so
Aug 13 01:51:04 3xtortion NetworkManager: <debug> [1250117464.170205] nm_ppp_manager_start(): ppp started with pid 3681
Aug 13 01:51:04 3xtortion NetworkManager: <info> Activation (eth0) Stage 2 of 5 (Device Configure) complete.
Aug 13 01:51:04 3xtortion pppd[3681]: Plugin rp-pppoe.so loaded.
Aug 13 01:51:04 3xtortion pppd[3681]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.5
Aug 13 01:51:04 3xtortion pppd[3681]: Plugin /usr/lib/pppd/2.4.4/nm-pppd-plugin.so loaded.
Aug 13 01:51:04 3xtortion pppd[3681]: pppd 2.4.5 started by root, uid 0
Aug 13 01:51:04 3xtortion pppd[3681]: PPP session is 1540
Aug 13 01:51:04 3xtortion pppd[3681]: Connected to 00:0f:b5:42:9a:fd via interface eth0
Aug 13 01:51:04 3xtortion pppd[3681]: Using interface ppp0
Aug 13 01:51:04 3xtortion pppd[3681]: Connect: ppp0 <--> eth0
Aug 13 01:51:04 3xtortion NetworkManager: <info> (eth0): device state change: 5 -> 6
Aug 13 01:51:04 3xtortion pppd[3681]: Remote message: Login incorrect
Aug 13 01:51:04 3xtortion pppd[3681]: PAP authentication failed
Aug 13 01:51:04 3xtortion pppd[3681]: Connection terminated.
Aug 13 01:51:04 3xtortion NetworkManager: <info> (eth0): device state change: 6 -> 9
Aug 13 01:51:04 3xtortion NetworkManager: <info> Marking connection 'Internet Connx' invalid.
Aug 13 01:51:04 3xtortion NetworkManager: <info> Activation (eth0) failed.
Aug 13 01:51:04 3xtortion NetworkManager: <info> (eth0): device state change: 9 -> 3
Aug 13 01:51:04 3xtortion NetworkManager: <info> (eth0): deactivating device (reason: 0).
Aug 13 01:51:04 3xtortion pppd[3681]: Exit.
As for the ifconfig...where can i get its output ?
Code: Select all
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
ifcoextortion@3xtortion:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:1e:33:4c:e1:a2
inet6 addr: fe80::21e:33ff:fe4c:e1a2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:123 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:14662 (14.6 KB) TX bytes:468 (468.0 B)
Interrupt:252 Base address:0xc000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:240 (240.0 B) TX bytes:240 (240.0 B)
wlan0 Link encap:Ethernet HWaddr 00:22:68:b9:25:6f
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wmaster0 Link encap:UNSPEC HWaddr 00-22-68-B9-25-6F-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
extortion@3xtortion:~$
Im using a network cable connected through a switch.
etc/network/interfaces :
etc/network/interfaces :
Code: Select all
lo iface lo inet loopback
- bad_brain
- Site Owner
- Posts: 11636
- Joined: 06 Apr 2005, 16:00
- 19
- Location: In your eye floaters.
- Contact:
add this to /etc/network/interfaces:
then restart networking:
and see if it works...
Code: Select all
auto eth0
iface eth0 inet dhcp
Code: Select all
/etc/init.d/networking restart
- bad_brain
- Site Owner
- Posts: 11636
- Joined: 06 Apr 2005, 16:00
- 19
- Location: In your eye floaters.
- Contact:
well, of course you will have to edit the file as root user, best by using vim:
when restarting networking after editing a file you will get a little output because of the newly added NIC, but when you made no changes you will get no output at all...
Code: Select all
vim /etc/network/interfaces
< press i >
< edit the file >
< press Esc when done >
< enter :wq! + press Return>
Last edited by bad_brain on 13 Aug 2009, 14:27, edited 1 time in total.
ok wait This is my first time on linux so hold on a sec
am i supposed to put vim etc/network/interfaces in the terminal then press "i"...if yes,then im getting that vim isnt installed and when i try to install i keep getting an error.
Thats why i tried to edit some user permissions in the system > administrator > groups and users but still nothing
am i supposed to put vim etc/network/interfaces in the terminal then press "i"...if yes,then im getting that vim isnt installed and when i try to install i keep getting an error.
Thats why i tried to edit some user permissions in the system > administrator > groups and users but still nothing
- bad_brain
- Site Owner
- Posts: 11636
- Joined: 06 Apr 2005, 16:00
- 19
- Location: In your eye floaters.
- Contact:
wow, I didn't expected that a Linux distro don't have vi/vim installed out of the box already *adds it to his "why I don't like Ubuntu"-list*
don't matter, you can use any text editor, I think gedit is the Ubuntu default one....the question is why you can't edit the file, there are 2 possible reasons:
- either you are NOT logged in as root user
- the file is a read-only one and you have to force the text editor to overwrite it (that was what I have shown above by using the vim text editor)
but well, when I look at that I think it's reason #1 ^^
so first become root user:
you'll be prompted for the root user password then...
when logged in as root user open the file with gedit:
edit and save it
/etc/init.d/networking restart
done...
don't matter, you can use any text editor, I think gedit is the Ubuntu default one....the question is why you can't edit the file, there are 2 possible reasons:
- either you are NOT logged in as root user
- the file is a read-only one and you have to force the text editor to overwrite it (that was what I have shown above by using the vim text editor)
but well, when I look at that I think it's reason #1 ^^
Code: Select all
extortion@3xtortion:~$
Code: Select all
su
when logged in as root user open the file with gedit:
Code: Select all
gedit /etc/network/interfaces
/etc/init.d/networking restart
done...
Not working !
This is what the syslog is showing when i try to connect to the internet
This is what the syslog is showing when i try to connect to the internet
Code: Select all
Aug 14 16:58:03 3xtortion NetworkManager: <info> Activation (eth0) starting connection 'Conx'
Aug 14 16:58:03 3xtortion NetworkManager: <info> (eth0): device state change: 3 -> 4
Aug 14 16:58:03 3xtortion NetworkManager: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) scheduled...
Aug 14 16:58:03 3xtortion NetworkManager: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) started...
Aug 14 16:58:03 3xtortion NetworkManager: <info> Activation (eth0) Stage 2 of 5 (Device Configure) scheduled...
Aug 14 16:58:03 3xtortion NetworkManager: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) complete.
Aug 14 16:58:03 3xtortion NetworkManager: <info> Activation (eth0) Stage 2 of 5 (Device Configure) starting...
Aug 14 16:58:03 3xtortion NetworkManager: <info> (eth0): device state change: 4 -> 5
Aug 14 16:58:03 3xtortion NetworkManager: <info> Starting pppd connection
Aug 14 16:58:03 3xtortion NetworkManager: <debug> [1250258283.208626] nm_ppp_manager_start(): Command line: /usr/sbin/pppd nodetach lock nodefaultroute user tannous plugin rp-pppoe.so nic-eth0 rp_pppoe_service Pnet noauth nodeflate usepeerdns mru 1492 mtu 1492 lcp-echo-failure 3 lcp-echo-interval 20 ipparam /org/freedesktop/NetworkManager/PPP/17 plugin /usr/lib/pppd/2.4.4/nm-pppd-plugin.so
Aug 14 16:58:03 3xtortion NetworkManager: <debug> [1250258283.212918] nm_ppp_manager_start(): ppp started with pid 5125
Aug 14 16:58:03 3xtortion NetworkManager: <info> Activation (eth0) Stage 2 of 5 (Device Configure) complete.
Aug 14 16:58:03 3xtortion pppd[5125]: Plugin rp-pppoe.so loaded.
Aug 14 16:58:03 3xtortion pppd[5125]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.5
Aug 14 16:58:03 3xtortion pppd[5125]: Plugin /usr/lib/pppd/2.4.4/nm-pppd-plugin.so loaded.
Aug 14 16:58:03 3xtortion pppd[5125]: pppd 2.4.5 started by root, uid 0
Aug 14 16:58:03 3xtortion pppd[5125]: PPP session is 5229
Aug 14 16:58:03 3xtortion pppd[5125]: Connected to 00:0f:b5:42:9a:fd via interface eth0
Aug 14 16:58:03 3xtortion pppd[5125]: Using interface ppp0
Aug 14 16:58:03 3xtortion pppd[5125]: Connect: ppp0 <--> eth0
Aug 14 16:58:03 3xtortion NetworkManager: <info> (eth0): device state change: 5 -> 6
Aug 14 16:58:04 3xtortion dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
Aug 14 16:58:04 3xtortion NetworkManager: <WARN> update_one_setting(): Failed to update connection secrets: 2 service
Aug 14 16:58:04 3xtortion pppd[5125]: Remote message: Login incorrect
Aug 14 16:58:04 3xtortion pppd[5125]: PAP authentication failed
Aug 14 16:58:04 3xtortion pppd[5125]: Connection terminated.
Aug 14 16:58:04 3xtortion NetworkManager: <info> (eth0): device state change: 6 -> 9
Aug 14 16:58:04 3xtortion NetworkManager: <info> Marking connection 'Conx' invalid.
Aug 14 16:58:04 3xtortion NetworkManager: <info> Activation (eth0) failed.
Aug 14 16:58:04 3xtortion NetworkManager: <info> (eth0): device state change: 9 -> 3
Aug 14 16:58:04 3xtortion NetworkManager: <info> (eth0): deactivating device (reason: 0).
Aug 14 16:58:04 3xtortion pppd[5125]: Exit.
Aug 14 16:58:07 3xtortion NetworkManager: <debug> [1250258287.002075] ensure_killed(): waiting for ppp pid 5125 to exit
Aug 14 16:58:07 3xtortion NetworkManager: <debug> [1250258287.002302] ensure_killed(): ppp pid 5125 cleaned up
In the pap-secrets,i scrolled down the password was * i changed it but i couldnt connect because its showing me that the device is unmanaged .
Tried to reboot and to create a connection but still !
Ive read that ubuntu is a user-friendly distro and i find it easy to learn and fun to work with but why the network keep showing errors ?
Tried to reboot and to create a connection but still !
Ive read that ubuntu is a user-friendly distro and i find it easy to learn and fun to work with but why the network keep showing errors ?