Change hostname on linux via console

  • login to a shell (e.g. ssh)

    sudo vi /etc/hostname

    edit as you like and save (x is the command for delete character - i for insert - ESC to get back to command mode - :wq to write and quit)

    then reboot

    PV 18,2kWp - BHKW EcoPower 1.0, 30kWh LiON Sunny Island System

    BMW i3 60Ah (Verbrauch ca. 13,8kWh/100km; SW: I001-16-07-506)