How to change hostname

Hello

How can I change the hostname of the Core2-ROS RPI?
I succeded in changing the hostname but “roscore” seems to use the original one.

Michael