How to change your EV3 hostname

Now that more and more people are using ev3dev thanks to LEGO Education’ EV3 MicroPyhton a few might find in need to change their bricks’s names.

Until that feature is available at BrickMan level, this is the a way:

  1. access the ev3dev shell either through SSH (puTTY) or Visual Studio Code – don’t forget that the default user is ‘robot’ and it’s password is ‘maker’
  2. change te hostname with command ‘sudo hostnamectl set-hostname NAME’
  3. restart avahi service with command ‘sudo service avahi-daemon restart’

David Lechner pointed me to the ‘ev3dev-config’ tool having also an option for this purpose:

sudo ev3dev-config

Then choose

4 Advanced Options  Configure advanced settings

Followed by

A1 Hostname    Set the visible name for this ev3dev device on a network

This can all be done from Visual Studio Code through the EV3DEV Device Browser plugin – I wrote a detailed visual explanation for those less confortable with above explanation.

5 comentários em “How to change your EV3 hostname”

  1. Hi!
    Thanks for your explanation. I`m Very impress mosquitto.
    I have a problem with a brick.
    How to configure wifi?
    menu -> Wireless and Networks -> Wi-fi
    Resulte: Not available.

    Can you help me?

    ========== ev3dev-sysinfo ==========
    Image file: ev3-micropython-v1.0.0-sd-card-image
    Kernel version: 4.14.96-ev3dev-2.3.2-ev3
    Brickman: 0.10.0
    BogoMIPS: 148.88
    Bluetooth:
    Board: board0
    BOARD_INFO_HW_REV=7
    BOARD_INFO_MODEL=LEGO MINDSTORMS EV3
    BOARD_INFO_ROM_REV=6
    BOARD_INFO_SERIAL_NUM=001653458521
    BOARD_INFO_TYPE=main

    1. You need a compatible USB Wi-Fi Dongle, ev3dev will show all available Wi-Fi networks.
      I’ve been using both Edimax and ASUS Nano dongles without problems.

  2. Hello !
    I’m looking to a way to change the hostname from ev3dev to something else.
    I tried your code here but it doesn’t work with me.
    Is it possible that the code here is working only on a Linux operating system ?

    Thank you.

    1. Hi!
      The command ‘sudo ev3dev-config’ should be executed in ev3dev
      If you are on windows, you can use ‘puTTy’ or you can use Visual Code with the ev3dev plugin to reach the shell (the command line environment) through SSH protocol, using ‘robot’ as user and ‘maker’ as password .
      It should work – if you are using a normal ‘ev3dev’ it will ask you for ‘robot’ password (‘maker’) and then a text based interface will show up.

Deixe uma resposta

O seu endereço de email não será publicado. Campos obrigatórios marcados com *