sudo apt update
sudo apt upgrade -y
sudo adduser rick
Inicie sesión con el usuario root
apt install sudo
sudo usermod -aG sudo rick
sudo useradd -m -s /bin/bash rick
sudo passwd rick
sudo usermod -aG sudo rick
sudo nano /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug enp2s0
iface enp2s0 inet static
address 192.168.1.254
netmask 255.255.255.0
gateway 192.168.1.1
sudo systemctl restart networking.service
sudo apt install ufw
sudo ufw allow ssh
sudo ufw allow 22
sudo ufw enable
sudo apt install curl wget net-tools