Bad Naming Conventions
Linux (Kali)
-
- Check the current hostname
$ hostname
-
kali
- Check the current hostname
-
- Get more details about the current hostname
$ hostnamectl
-
Static hostname: kali Icon name: computer Machine ID: f7ca88cae48e4cf3854399d775f91f2b Boot ID: 5c95fadfe60344adb129fe3af88a388a Operating System: Kali GNU/Linux Rolling Kernel: Linux 4.19.118-Re4son-v7l+ Architecture: arm
- Change the hostname
$ sudo hostnamectl set-hostname red
1.Edit the/etc/hosts
file to reflect your changes
$ nano /etc/hosts
- Cha
Yada yada.
Windows 10
Blah blah
- step one
- step two
Yada yada.
(change the hostname)
$ sudo hostnamectl set-hostname superman
+—————————————————————+
(edit the /etc/hosts file to reflect your changes)
$ nano /etc/hosts
(change this:)
127.0.0.1 localhost 127.0.1.1 clark-kent
(to this:)
127.0.0.1 localhost 127.0.1.1 superman
+—————————————————————+
For renaming a PC in Windows 10:
+—————————————————————+
1. Select Start > Settings > System > About.
2. Select Rename this PC.
3. Enter a new name & select Next. (You may be asked to sign in.)
4. Select Restart now or Restart later.
+—————————————————————+