This is the old SliTaz forum - Please use the main forum.slitaz.org

[SOLVED] Can not clone the wok
  • Hi,
    Following the instructions provided here:
    http://www.slitaz.org/en/doc/cookbook/wok-tools.html , I can not clone the wok:


    root@slitaz:~# hg clone http://hg.slitaz.org/wok/ /home/slitaz/wok
    abort: error: Temporary failure in name resolution
    root@slitaz:~#


    Please help.
    Stephane
  • jozeejozee March 2010
    Something not right on your side or may be tanks was down for sometime.

    I just tried in a "test" dir :
     hg clone http://hg.slitaz.org/wok/ 


    and it works.
  • Any advices on what I need to check in order to "clone" successfully?
  • jozeejozee March 2010
    can you first try on a livecd for the new cooking if you have internet connection? Frankly, I have never received this/any error and I have cloned the wok several times.
  • After googleing, I've found that DNS might be not configured properly. I have no idea on how to do it correctly. Here is my /etc/resolv.conf:

    root@slitaz:~# cat /etc/resolv.conf
    nameserver 192.168.1.1
    root@slitaz:~#


    Moreover I noticed something that might be related to my problem.

    If I install, for example, zim. The installation goes fine but not smoothly. I mean there are some wget errors. It looks like wget can not connect to some adresses:

    root@slitaz:~# tazpkg get-install zim --forced
    /bin/sh: warning: setlocale: LC_ALL: cannot change locale (fr_CH)

    zim-0.29
    Connecting to mirror.switch.ch (130.59.10.36:80)
    wget: server returned error: HTTP/1.1 404 Not Found
    wget: bad address 'mirror.slitaz.org'
    wget: bad address 'download.tuxfamily.org'
    Connecting to mirror.switch.ch (130.59.10.36:80)
    zim-0.29.tazpkg 100% |*******************************| 349k 00:00:00 ETA
    ...


    I do not know how to figure out if my network (dns, etc...) is correcty configured and would really appreciate if someone could help me here.

    Tks
    Stephane
  • mojomojo March 2010
    Hello Stephane

    To lookup an address with your current DNS server:
    nslookup mirror.slitaz.org

    To lookup an address with google public dns:
    nslookup mirror.slitaz.org 8.8.8.8

    Your /etc/resolv.conf appears to point to the gateway lan address on your router which then query's your ISP's DNS servers. The info below will append googles address to your current setup.Googles should kick in if your ISP's fail.If they don't remove 192.168.1.1 from your /etc/resolv.conf

    To add google public dns as root
    echo nameserver 8.8.8.8 >> /etc/resolv.conf
    echo nameserver 8.8.4.4.>> /etc/resolv.conf

    google public dns docs
    http://code.google.com/speed/public-dns/docs/using.html
  • mojomojo March 2010
    I discovered that with DHCP on which is the default /etc/resolv.conf gets overwritten by the /usr/share/udhcpc/default.script which query's and writes isp's DNS server i.p.'s . Slitaz allows one manually assigned DNS address if you turn off DHCP and create a static i.p. Trying to add a second by editing /etc/resolv.conf get's deleted on reboot. The settings are done by either editing /etc/network.conf or with netbox .

    http://www.slitaz.org/en/doc/handbook/network-config.html

    If anyone knows a clean way to edit the udhcpc default script so it doesn't overwrite /etc/resolv.conf or add additional DNS address's with the static i.p. option please share here.
  • claudineiclaudinei March 2010
    Pls don't edit directly /etc/resolv.conf. If you want you want to add dns settings, refer to the DNS_SERVER variable at /etc/network.conf:

    DNS_SERVER="8.8.8.8 8.8.4.4" # using google public dns

    Hugs.
  • As suggested, I changed DNS_SERVER variable in my /etc/network.conf file:

    root@slitaz:~# cat /etc/network.conf | grep DNS_SERVER
    #DNS_SERVER="192.168.0.1"
    DNS_SERVER="8.8.8.8 8.8.4.4"
    root@slitaz:~#


    Then nslookup return the following error:

    root@slitaz:~# nslookup mirror.slitaz.org
    Server: 192.168.1.1
    Address 1: 192.168.1.1

    nslookup: can't resolve 'mirror.slitaz.org'
    root@slitaz:~#


    Anyone knows what is wrong?
    Thanks
    Stephane
  • mojomojo March 2010
    Hi Stephane,

    I would completely remove#DNS_Server="192.168.0.1"

    What does your /etc/resolv.conf say ?

    This test bypasses DNS misconfiguration on your computer.

    Force nslookup to use google.public.dns

    nslookup mirror.slitaz.org 8.8.8.8


    your results should be

    root@slitaz:~#nslookup mirror.slitaz.org 8.8.8.8
    Server: 8.8.8.8
    Address 1: 8.8.8.8 google-public-dns-a.google.com

    Name: mirror.slitaz.org
    Address 1: 94.23.60.116 ns302106.ovh.


    and then

    nslookup mirror.slitaz.org 8.8.4.4


    your results should be

    root@slitaz:~# nslookup mirror.slitaz.org 8.8.4.4 
    Server: 8.8.4.4
    Address 1: 8.8.4.4 google-public-dns-b.google.com

    Name: mirror.slitaz.org
    Address 1: 94.23.60.116 ns302106.ovh.net


    also post results from

    root@slitaz:~# route



  • claudineiclaudinei March 2010
    Now i understand what you want to do... You want to define dns while using dhcp, and not static ip, right?

    Well, adding the following line on the beginning of /usr/share/udhcpc/default.script:

    dns="8.8.8.8 8.8.4.4"

    and then restarting /etc/init.d/network.sh is a way to define dns with dhcp, but i really don't know if it is the best or the recommended way to do such thing... Anyway, i guess editing /usr/share/udhcpc/default.script is the answer for what you are trying to do.

    Hugs.
  • mojomojo March 2010
    Thanks claudinei
    Your contributions are very helpful. When slitaz is connected directly to cable/dsl modem it must use dhcp to get the i.p. from the i.s.p. . Now user can choose alternative dns servers.

    Stephane
    Pick one or the other.

    Static I.P.
    DHCP="no" and STATIC="yes"in /etc/network.conf
    DNS_SERVER="8.8.8.8 8.8.4.4" variable in /etc/network.conf

    or

    DHCP
    claudinei's instructions above modify /usr/share/udhcpc/default.script DHCP="yes" and STATIC="no"in /etc/network.conf

    Once the changes are made 8.8.8.8 and 8.8.4.4 appear in /etc/resolv.conf

  • Thank you guys. you did great! :-)

    Here are the steps I have done for DHCP according to your advices:
    a) added the following line at beginning of /usr/share/udhcpc/default.script:

    dns="8.8.8.8 8.8.4.4"


    Here is the beginning of /usr/share/udhcpc/default.script after modification:

    root@slitaz:~# cat /usr/share/udhcpc/default.script
    #!/bin/sh

    # udhcpc script edited by Tim Riker
    dns="8.8.8.8 8.8.4.4"

    [ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1
    ...


    b) restart /etc/init.d/network.sh:

    root@slitaz:~# /etc/init.d/network.sh
    Setting hostname... [ OK ]
    Configuring loopback...route: SIOCADDRT: File exists
    [ Failed ]
    Starting udhcpc client on: eth0...
    udhcpc (v1.12.0) started
    Sending discover...
    Sending select for 192.168.1.34...
    Lease of 192.168.1.34 obtained, lease time 86400
    deleting routers
    route: SIOCDELRT: No such process
    adding dns 8.8.8.8
    adding dns 8.8.4.4
    root@slitaz:~#


    c) make sure /etc/network.conf is correct (DHCP="yes", STATIC="no"):

    root@slitaz:~# cat /etc/network.conf
    # /etc/network.conf: SliTaz system wide networking configuration.
    # Config file used by: /etc/init.d/network.sh
    #

    # Set default interface.
    INTERFACE="eth0"

    # Dynamic IP address.
    # Enable/disable DHCP client at boot time.
    DHCP="yes"

    # Static IP address.
    # Enable/disable static IP at boot time.
    STATIC="no"
    ...


    d) then checked /etc/network.conf:

    root@slitaz:~# cat /etc/resolv.conf
    nameserver 8.8.8.8
    nameserver 8.8.4.4
    root@slitaz:~#


    e) here is the nslookup output:

    root@slitaz:~# nslookup mirror.slitaz.org
    Server: 8.8.8.8
    Address 1: 8.8.8.8 google-public-dns-a.google.com

    Name: mirror.slitaz.org
    Address 1: 94.23.60.116 ns302106.ovh.net
    root@slitaz:~#


    f) Eventually ready for cloning the wok:

    root@slitaz:~# hg clone http://hg.slitaz.org/wok/ /home/slitaz/wok
    requesting all changes
    adding changesets
    adding manifests
    adding file changes
    added 5062 changesets with 12422 changes to 3812 files
    updating working directory
    3319 files updated, 0 files merged, 0 files removed, 0 files unresolved
    root@slitaz:~#


    Yeepeeh.
    A huge THANK YOU to mojo and claudinei.
    :-))

    Stephane

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

SliTaz Social