Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    HOW TO CHANGE NAME IN DUET3&DUET PI

    Scheduled Pinned Locked Moved
    General Discussion
    3
    11
    549
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Vetiundefined
      Veti @huai3895
      last edited by

      @huai3895

      you should name them on the dhcp server.
      assign static leases with specific hostnames to the mac address of each printer.

      huai3895undefined 1 Reply Last reply Reply Quote 0
      • huai3895undefined
        huai3895 @Veti
        last edited by

        @Veti I have try this already ,still easy to make error operation cause i cant distinguish at a glance

        1 Reply Last reply Reply Quote 0
        • A Former User?
          A Former User
          last edited by A Former User

          edit /etc/hostname and reboot; or run sudo raspi-config choose (2) Network Options then Hostname

          huai3895undefined 2 Replies Last reply Reply Quote 0
          • huai3895undefined
            huai3895 @A Former User
            last edited by huai3895

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • huai3895undefined
              huai3895 @A Former User
              last edited by

              @bearer thanks it work nice

              1 Reply Last reply Reply Quote 0
              • Vetiundefined
                Veti
                last edited by

                @huai3895 said in HOW TO CHANGE NAME IN DUET3&DUET PI:

                thanks it work nice

                thats exactly what a static dhcp lease does as well

                huai3895undefined A Former User? 2 Replies Last reply Reply Quote 0
                • huai3895undefined
                  huai3895 @Veti
                  last edited by

                  @Veti Mabe i am a noob ,i didt understand how to concrete operations

                  1 Reply Last reply Reply Quote 0
                  • A Former User?
                    A Former User @Veti
                    last edited by A Former User

                    @Veti said in HOW TO CHANGE NAME IN DUET3&DUET PI:

                    thats exactly what a static dhcp lease does as well

                    not necessarily; while the dhcp server can send a hostname back to the client, its still up to the client to actually configure the system to use it, which doesn't seem to be default behaviour on debian (and derivatives like duetpi).

                    edit: If the hostname is currently blank, (null) or localhost, or
                    force_hostname is YES or TRUE or 1 then dhcpcd sets the hostname to the one supplied by the
                    DHCP server.

                    so because the hostname is set to duet3, dhcpcd ignores what the server is sending.

                    while most modern consumer routers will put the hostname into their dns service it doesn't actually change the hostname for the dhcp client. for other clients it will resolve, but not locally on the client in question without modifying the setup to honour the dhcp option received (the dhcp hooks seems to have changed since the move to dhcpcd)

                    edit: new hooks are /etc/dhcpcd.enter-hook and /etc/dhcpcd.exit-hook, putting hostname $new_host_name in the enter-hook gives you a server enforced hostname and the router resolves it. could echo it to /etc/hosts for good measure i guess.

                    Reset hostname to localhost to let dhcp control hostname seems to be the clean solution.

                    Vetiundefined 1 Reply Last reply Reply Quote 0
                    • Vetiundefined
                      Veti @A Former User
                      last edited by

                      @bearer said in HOW TO CHANGE NAME IN DUET3&DUET PI:

                      debian

                      ah the nice think about each linux distribution to do things differently

                      1 Reply Last reply Reply Quote 0
                      • A Former User?
                        A Former User
                        last edited by

                        come to think of it, the current behaviour might be best as not all users can control the hostname sent from the router and if its not duet3 as the default for the config tool it would break, worst case scenario preventing parsing the rest of the config and bringing up the network.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Unless otherwise noted, all forum content is licensed under CC-BY-SA