Linux notes

Posted by John Liu on Saturday, June 27, 2026

Copy/past between Windows and Ubuntu

If Hyper-V’s Enhanced Session continues to fight you, there is a way simpler way to get copy/paste and file sharing working without dealing with xrdp or blue screens at all: SSH.

In Basic View, open your Ubuntu terminal and install SSH:

sudo apt install openssh-server -y

Get your VM’s IP address:

ip a

Open Command Prompt or PowerShell on your Windows host machine and connect to your VM like this:

ssh your-ubuntu-username@your-vm-ip

Using SSH inside a standard Windows terminal gives you flawless, native copy/paste (Ctrl+C / Ctrl+V) directly into your Ubuntu environment instantly!

Access Windows folder inside Ubuntu

  1. Create a file share in Windows
  2. Click on +Other Locations
  3. At the very bottom of the windo, in the text box labeled connect to Server, enter smb:///

Show detailed time

timedatectl

Edit text file

sudo nano <file name>

Install git

// update package index
sudo apt update

// install git
sudo apt install git