Skip to content

Instantly share code, notes, and snippets.

@EdwinAlmendras
Last active May 19, 2024 16:00
Show Gist options
  • Save EdwinAlmendras/a44830e57819c2fa453eefb49bae3943 to your computer and use it in GitHub Desktop.
Save EdwinAlmendras/a44830e57819c2fa453eefb49bae3943 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Configura la zona horaria
ln -sf /usr/share/zoneinfo/Europe/Madrid /etc/localtime
hwclock --systohc
# Edita y genera locales
sed -i 's/#es_ES.UTF-8 UTF-8/es_ES.UTF-8 UTF-8/' /etc/locale.gen
locale-gen
# Crea el archivo de configuración de locale
echo "LANG=es_ES.UTF-8" > /etc/locale.conf
# Configura el nombre de la máquina
echo "blizzard" > /etc/hostname
echo -e "127.0.0.1\tlocalhost\n::1\tlocalhost\n127.0.1.1\tblizzard.localdomain\tblizzard" >> /etc/hosts
# Configura la contraseña del root
echo "Ingresa la nueva contraseña para el usuario root:"
passwd
# Habilita NetworkManager
systemctl enable NetworkManager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment