elementary / initial-setup

New user setup app designed for elementary OS
https://elementary.io
GNU General Public License v3.0
36 stars 12 forks source link

Utils: Allow hyphens in the hostname #155

Closed ryonakano closed 1 year ago

ryonakano commented 1 year ago

Currently hyphens in the hostname entry are removed, although they should be valid characters and actually we substitute them in behalf of whitespaces.

Steps to test this branch

Maybe you should use virtual machines because we need to remove all users so that Initial Setup is shown in Greeter.

  1. Install this branch

  2. Enable root user with sudo passwd root

  3. After reboot, switch to tty3, and log in with root

  4. Run userdel <user-name> and remove all accounts

  5. After reboot, Initial Setup should be shown. Then create a new user and here use hyphens in the hostname: set hostname with hyphens

  6. After log in, open Terminal and see the hyphens you used are included in the hostname: hostname with hyphens is applied