Don't forget to change the MAC Address in the network adapter...
This applies to USB storage & remote drives
Drives formatted as FAT or NTFS can be mounted in WSL.
Assuming the drive appears in Windows as E:\ then
The commands below are typed into the WSL cli.
Create a mount location in WSL
# mkdir /mnt/e
Mount the drive in WSL:
mount -t drvfs e: /mnt/e
Firstly - set the default user to be "root" like this:
At at CMD prompt with Administrator rights:
C:\WINDOWS\system32>ubuntu config --default-user root
Then open WSL and run:
# passwd defaultuser
To set the password for your preferred user (in example: "defaultuser")
Then,
At at CMD prompt with Administrator rights:
C:\WINDOWS\system32>ubuntu config --default-user defaultuser
OK here's an easy way to burn a USB Key (Bootable) from iso image.
First, find out what the USB Key is appearing as in a list of your drives by executing fdisk -l.
In this case, mine is an old 1GB USB Drive: /dev/sdb
When you are prompted by Composer during an update of your Drupal site - there are a few different options.
This is from here:
https://gist.github.com/martin-juul/c4ac5c43c66452592597d894f1c9da2a
I applied this to 5.2-5 with no issues:
sed -i.bak 's/NotFound/Active/g' /usr/share/perl5/PVE/API2/Subscription.pm && systemctl restart pveproxy.service
This is a very useful feature for access to the host file system from an LXC Container:
From: https://pve.proxmox.com/wiki/Linux_Container#_bind_mount_points
root@XXX4:~# nohup rsync -av --delete /home/xxxxxx.us/DATA/ root@192.168.0.9:/mnt/USB_2TB_DRIVE/Backups-XXXXXX/DATA/ &
[1] 6288
root@XXX4:~# nohup: ignoring input and appending output to 'nohup.out'
root@XXX4:~#
"tail -f nohup.out" when you get back...
Set a UTF-8 aware locale before you invoke the apt-add-repository:
export LANG=C.UTF-8
and it will work just fine.