determine hostname only just on case of not having gui