This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mv .ssh/authorized_keys /etc/ssh/keys-root/ | |
esxcli system hostname set --host=esxi-8-0 | |
esxcli system hostname set --fqdn=esxi-8-0.example.com | |
esxcli system hostname set --domain=example.com | |
esxcli network ip dns search add -d example.com | |
esxcli network ip dns search remove -d Home | |
esxcli network ip dns search list | |
cat /etc/resolv.conf | |
vi /etc/rc.local.d/local.sh | |
vim-cmd hostsvc/enable_ssh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Use an ASCII 07 character (BEL) as separator, so the user can type any | |
# visible character in the password. | |
sep=$(printf '\a') | |
while :; do | |
# Read the old and new passwords. | |
input=$(zenity --forms \ | |
--title="Change Password" \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Configure a static IP address on interface %i | |
Documentation=man:ip(8) | |
Wants=network.target | |
BindsTo=sys-subsystem-net-devices-%i.device | |
After=sys-subsystem-net-devices-%i.device | |
Before=network.target network.service | |
[Service] | |
Type=exec |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Configure interface %i via DHCP | |
Documentation=man:dhclient(8) | |
Wants=network.target | |
BindsTo=sys-subsystem-net-devices-%i.device | |
After=sys-subsystem-net-devices-%i.device | |
Before=network.target network.service | |
[Service] | |
Type=forking |