Skip to content

Instantly share code, notes, and snippets.

View rferreiraperez's full-sized avatar
💭
I may be slow to respond.

Rubén Ferreira rferreiraperez

💭
I may be slow to respond.
View GitHub Profile

SSH

Check Existing SSH Keys

ls -al ~/.ssh

If you receive an error indicating that ~/.ssh does not exist, you do not have an SSH key pair at the default location.

NETWORK TOOLS

Ping a Host

ping <hostname or IP>

Check Network Connections, Routing Tables, Interface Statistics, Masquerade Connections, and Multicast Memberships

USERS AND GROUPS

User Management

Add a User

adduser <username>

SYSTEM INFORMATION

Operating System Information

Check the Operating System Version

lsb_release -a

Mounting a Network Drive on Ubuntu

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.

Prerequisites

Before proceeding with manual or automatic mounting, you need to update the system and install the necessary utilities:

sudo apt update

PACKAGES

Update References

apt update -y

Upgrade Packages

@rferreiraperez
rferreiraperez / howto-windows-copy-data-over-the-network.ps1
Last active July 30, 2024 07:07
Copying data over the network in Windows
param(
[string]$Source,
[string]$Destination,
[string]$Log,
[string]$Username,
[string]$Password
)
# Establish network connection
net use $Destination /user:$Username $Password

HERRAMIENTAS DE RED

Comprobar que un equipo responde

ping <ip>

Por defecto, se detiene en la 4ª respuesta

@rferreiraperez
rferreiraperez / steps-to-configure-empty-vm.sh
Last active October 8, 2024 07:45
Steps to configure empty virtual machine
#!/bin/bash
#
# Steps to configure a new empty virtual machine
#
# Updates
sudo apt update && sudo apt upgrade -y
# Host