ping <ip>Por defecto, se detiene en la 4ª respuesta
| #!/bin/bash | |
| # | |
| # Steps to configure a new empty virtual machine | |
| # | |
| # Updates | |
| sudo apt update && sudo apt upgrade -y | |
| # Host |
| param( | |
| [string]$Source, | |
| [string]$Destination, | |
| [string]$Log, | |
| [string]$Username, | |
| [string]$Password | |
| ) | |
| # Establish network connection | |
| net use $Destination /user:$Username $Password |
This document provides the necessary steps to mount a network drive on Ubuntu, both manually using the mount command and automatically using fstab. Additionally, the possibility of using secure credentials with fstab is included.
Before proceeding with manual or automatic mounting, you need to update the system and install the necessary utilities:
sudo apt update