Strona 1 z 1

[+] Połączenie z Internetem działa, ale nie ma go w kadu i conky

: 06 grudnia 2011, 22:13
autor: Sz4k4l
Witam.
Połączenie z Internetem na ogół działa w przeglądarce, przy pobieraniu plików itp. Jednak nie działa w kadu i conky, tak jakby go nie było w systemie. Nie wiem o co chodzi. Mam nadzieję, że mi pomożecie.

Kod: Zaznacz cały

uname -a
Linux debian 3.1.0-1-amd64 #1 SMP Mon Nov 14 08:02:25 UTC 2011 x86_64 GNU/Linux

Kod: Zaznacz cały

dpkg --print-architecture
amd64

Kod: Zaznacz cały

lspci -k
00:00.0 Host bridge: ATI Technologies Inc RD780 Northbridge only dual slot PCI-e_GFX and HT1 K8 part
    Subsystem: ATI Technologies Inc RD780 Northbridge only dual slot PCI-e_GFX and HT1 K8 part
00:02.0 PCI bridge: ATI Technologies Inc RD790 PCI to PCI bridge (external gfx0 port A)
    Kernel driver in use: pcieport
00:0a.0 PCI bridge: ATI Technologies Inc RD790 PCI to PCI bridge (PCI express gpp port F)
    Kernel driver in use: pcieport
00:12.0 SATA controller: ATI Technologies Inc SB600 Non-Raid-5 SATA
    Subsystem: Giga-byte Technology Device b002
    Kernel driver in use: ahci
00:13.0 USB Controller: ATI Technologies Inc SB600 USB (OHCI0)
    Subsystem: Giga-byte Technology Device 5004
    Kernel driver in use: ohci_hcd
00:13.1 USB Controller: ATI Technologies Inc SB600 USB (OHCI1)
    Subsystem: Giga-byte Technology Device 5004
    Kernel driver in use: ohci_hcd
00:13.2 USB Controller: ATI Technologies Inc SB600 USB (OHCI2)
    Subsystem: Giga-byte Technology Device 5004
    Kernel driver in use: ohci_hcd
00:13.3 USB Controller: ATI Technologies Inc SB600 USB (OHCI3)
    Subsystem: Giga-byte Technology Device 5004
    Kernel driver in use: ohci_hcd
00:13.4 USB Controller: ATI Technologies Inc SB600 USB (OHCI4)
    Subsystem: Giga-byte Technology Device 5004
    Kernel driver in use: ohci_hcd
00:13.5 USB Controller: ATI Technologies Inc SB600 USB Controller (EHCI)
    Subsystem: Giga-byte Technology Device 5004
    Kernel driver in use: ehci_hcd
00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 14)
    Subsystem: Giga-byte Technology GA-MA770-DS3rev2.0 Motherboard
    Kernel driver in use: piix4_smbus
00:14.1 IDE interface: ATI Technologies Inc SB600 IDE
    Subsystem: Giga-byte Technology Gigabyte GA-MA69G-S3H Motherboard
    Kernel driver in use: pata_atiixp
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)
    Subsystem: Giga-byte Technology Device a002
    Kernel driver in use: snd_hda_intel
00:14.3 ISA bridge: ATI Technologies Inc SB600 PCI to LPC Bridge
    Subsystem: Giga-byte Technology Device 5001
00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Link Control
01:00.0 VGA compatible controller: nVidia Corporation G92 [GeForce 8800 GT] (rev a2)
    Kernel driver in use: nvidia
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
    Subsystem: Giga-byte Technology GA-EP45-DS5 Motherboard
    Kernel driver in use: r8169
03:0e.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link)
    Subsystem: Giga-byte Technology GA-EP45-DS5 Motherboard
    Kernel driver in use: firewire_ohci

Kod: Zaznacz cały

ifconfig -a

eth0      Link encap:Ethernet  HWaddr 00:1f:d0:ac:de:8c  
          inet addr:192.168.1.104  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::21f:d0ff:feac:de8c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6060 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5725 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4603425 (4.3 MiB)  TX bytes:946095 (923.9 KiB)
          Interrupt:42 

lo        Link encap:Local Loopback  
          LOOPBACK  MTU:16436  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:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

Kod: Zaznacz cały

cat /etc/resolv.conf
nameserver 91.192.88.80
nameserver 91.192.88.90

Kod: Zaznacz cały

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
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp


: 07 grudnia 2011, 00:04
autor: monolith
A próbowałeś podać dodatkowe serwery DNS w /etc/resolv.conf
np.: --> http://pl.wikipedia.org/wiki/OpenDNS

: 07 grudnia 2011, 12:38
autor: Sz4k4l
Dodałem 4 nowe DNS-y. I jak chciałem wykonać restart sieci poprzez

Kod: Zaznacz cały

/etc/init.d/networking restart
dostałem:

Kod: Zaznacz cały

[/B]Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning).
Reconfiguring network interfaces.../etc/network/interfaces:9: interface lo declared allow-auto twice
ifdown: couldn't read interfaces file "/etc/network/interfaces"
/etc/network/interfaces:9: interface lo declared allow-auto twice
ifup: couldn't read interfaces file "/etc/network/interfaces"
failed.

: 07 grudnia 2011, 13:44
autor: monolith
Po pierwsze w /etc/network/interfaces masz podwójnie zadeklarowany interfejs zwrotny "lo". Weź usuń którąś z linijek "auto lo" i "iface lo inet loopback" co by pojawiły się tylko raz.

Po drugie użycie "restart" jest jak w komunikacie:

Kod: Zaznacz cały

deprecated
czyli już nie używane. Użyj po prostu:

Kod: Zaznacz cały

/etc/init.d/network stop
a później:

Kod: Zaznacz cały

/etc/init.d/network start
Najłatwiej po prostu uruchomić jeszcze raz system.

Napisz, czy nowe DNS-y pomogły.

: 07 grudnia 2011, 14:23
autor: fnmirk
&quot pisze:Dodałem 4 nowe DNS-y
Nie masz dodawać tylko zmienić. Dodanie nic nie da bo pierwszy i drugi serwer DNS (te które przedstawiłeś) musiałby fizycznie nie działać, a tak nie jest.

: 07 grudnia 2011, 14:33
autor: Sz4k4l
Dodałem te 4 DNS'y zrobiłem restart systemu i działa Kadu lecz w Conky dalej nie ma internetu.

: 07 grudnia 2011, 14:39
autor: Yampress
Wpisz i pokaż wynik polecenia:

Kod: Zaznacz cały

ping onet.pl

Kod: Zaznacz cały

traceroute onet.pl
Czy poprawnie jest skonfigurowane kadu, numer i hasło?
W jaki sposób w conky ma być sieć?
czy dhcp przydziela też adres bramy?
Dhcp-client nie nadpisuje adresów serwerów dhcp?

: 07 grudnia 2011, 15:08
autor: Sz4k4l

Kod: Zaznacz cały

PING onet.pl (213.180.146.27) 56(84) bytes of data.
64 bytes from s4.m1r2.onet.pl (213.180.146.27): icmp_req=1 ttl=57 time=13.9 ms
64 bytes from s4.m1r2.onet.pl (213.180.146.27): icmp_req=2 ttl=57 time=14.7 ms
64 bytes from s4.m1r2.onet.pl (213.180.146.27): icmp_req=3 ttl=57 time=13.8 ms
64 bytes from s4.m1r2.onet.pl (213.180.146.27): icmp_req=4 ttl=57 time=13.6 ms
^C
--- onet.pl ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 13.664/14.052/14.714/0.422 ms

Kod: Zaznacz cały

traceroute to onet.pl (213.180.146.27), 30 hops max, 60 byte packets
Kadu działa normalnie.
W conky internet potrzebny do pogody :)

: 07 grudnia 2011, 23:10
autor: fnmirk
Zajmij się teraz konfiguracją samego programu conky. Plikiem konfiguracyjnym i skryptami. Połączenie z internetem już działa, nic więcej z nim nie kombinuj.

: 08 grudnia 2011, 08:49
autor: Sz4k4l
Dziękuję bardzo za pomoc. Temat do zamknięcia.