Tiny Core Linux
Tiny Core Base => Micro Core => Topic started by: paskali on December 14, 2011, 04:13:28 PM
-
Hi,
i start micro core from my dos partition by runnig:
"linld image=c:\fdos\vmlinuz initrd=c:\fdos\microc~1.gz vga=791 cl=@c:\fdos\config.lnx"
in wich "config.lnx" has:
norestore
waitusb=0
home=sda3
opt=sda3
tce=sda3
noswap
nodhcp
noutc
host=zemir
user=paskali
laptop
acpi_backlight=vendor
multivt
I load at startup these extensions:
libssl-0.9.8.tcz
pppd.tcz
wvstreams.tcz
wvdial.tcz
usb-serial-3.0.3-tinycore.tcz
bzip2-lib.tcz
links-cli.tcz
then i start internet connection with my usb Onda modem (N101E gprs/edge) with wvdial; i wrote two simple scrips, "windgo" and "windstop" and put them on "/home/.local/bin/", they are:
windgo
#!/bin/sh
sudo wvdial -C /home/paskali/wind.conf &
and windstop
#!/bin/sh
sudo pkill -9 -f wvdial
"wind.conf" is my personal wvdial confing file, it include:
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","internet.wind"
Modem = /dev/ttyUSB0
Phone = *99#
Idle Seconds = 0
Password = CARD
Username = CARD
Modem Type = Analog Modem
Carrier Check = no
Stupid Mode = 1
Compuserve = 0
Baud = 230400
New PPPD = yes
PPPD Path=/usr/local/sbin/pppd
Auto DNS = 1
Dial Command = ATDT
Ask Password = 0
ISDN = 0
Therefore i start internet connection by run "windgo", modem does work fine, i see its flash lighting, i am sure it is connected; however, when i am trying to surf on the web for example with links web browser, i am not able to open any site, i have always message: "host not found"
Why?
-
We might be able to help, if you would run the following command sequence (obviously after the connection has been established) and post the output here:
ifconfig ; route ; cat /etc/resolv.conf
My hunch is that the DNS is not working, but here are a couple of other troubleshooting steps:
- ping -c 8 8.8.8.8 (to check whether any IP connection to the "outside wolrd" is possible)
- nslookup example.com (to check whether DNS is working)
- wget http://example.com (http://example.com) (to check whether a HTTP download is possible)
-
We might be able to help, if you would run the following command sequence (obviously after the connection has been established) and post the output here:
ifconfig ; route ; cat /etc/resolv.conf
My hunch is that the DNS is not working, but here are a couple of other troubleshooting steps:
- ping -c 8 8.8.8.8 (to check whether any IP connection to the "outside wolrd" is possible)
- nslookup example.com (to check whether DNS is working)
- wget http://example.com (http://example.com) (to check whether a HTTP download is possible)
"ifconfig" output:
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING 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)
ppp0 Link encap:Point-to-Point Protocol
inet addr:151.37.171.159 P-t-P:10.0.0.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:112 (112.0 B) TX bytes:134 (134.0 B)
"route" output:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default * 0.0.0.0 U 0 0 0 ppp0
10.0.0.1 * 255.255.255.255 UH 0 0 0 ppp0
127.0.0.1 * 255.255.255.255 UH 0 0 0 lo
"resolve.conf" is empty
"ping -c 8 8.8.8.8" output:
PING 8.8.8.8 ( 8.8.8.8 ): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=49 time=1066.436 ms
64 bytes from 8.8.8.8: seq=1 ttl=50 time=546.076 ms
64 bytes from 8.8.8.8: seq=2 ttl=49 time=524.794 ms
64 bytes from 8.8.8.8: seq=3 ttl=50 time=2164.257 ms
64 bytes from 8.8.8.8: seq=4 ttl=50 time=1184.123 ms
64 bytes from 8.8.8.8: seq=5 ttl=49 time=662.943 ms
64 bytes from 8.8.8.8: seq=6 ttl=50 time=525.690 ms
64 bytes from 8.8.8.8: seq=7 ttl=49 time=546.416 ms
--- 8.8.8.8 ping statistics ---
8 packets transmitted, 8 packets received, 0% packet loss
round-trip min/avg/max = 524.794/902.591/2164.257 ms
"nslookup google.com" output:
Server: 127.0.0.1
Address 1: 127.0.0.1 zemir
nslookup: can not resolve 'google.com'
"wget http://google.com (http://google.com)" output:
wget: bad address 'google.com'
-
So, your connection doesn't give you DNS. You can put Google's DNS server to resolv.conf:
nameserver 8.8.8.8
-
Solved by edit "/etc/resolv.conf" with:
nameserver 208.67.220.220
nameserver 208.67.222.222