$URL="http://yzlab3.chem.nyu.edu/software/LogTech_unifying250.exe"
Invoke-WebRequest -URI $URL -OutFile unifying250.exe
powershell -Command "netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=8888 connectport=8888 connectaddress=(wsl hostname -I) protocol=tcp"
- Try Google Chrome
sudo apt install x11-apps -y
sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install google-chrome-stable_current_amd64.deb
google-chrome
imdisk -a -o rw,rem,awe -p "/Q /FS:NTFS /A:64K /V:ramdisk /Y" -m Z: -s 6G
# -a attach a new volume
# -o option: read/write, removable, and use physical memory.
# -p format the volume. see the help of command format
# -m deiver letter
# -s size
- eventvwr.msc
- Event Viewer (local) -> Windows Logs -> System -> Actions -> Filter Current Log
- Filter Event IDs: 1074 - initiated by an app; 6006 - turned off correctly; 6008 - improper shutdown
- I got a 128GB SanDisk Extreme PRO USB (SSD), and I want install Windows 10 on it.
- Install a clean Win10 in VirtrualBox. 1.1. If the target PC use UEFI instead of Legacy BIOS, then Win10 VM should be installed with EFI. 1.2. Turn on EFI support: VM Settings-> System -> Extended Features: Enable EFI (special OSes only)
- Mount the win10-installed 50GB disk in a Ubuntu VM.
- dd the disk to SanDisk USB.
dd if=/dev/sdb | pv | dd of=/dev/sdc bs=64K
- If Win10 disk is 50GB then USB may have 70GB unallocated free space left.
I got two Network Interface Cards (NICs), and each has its place in routing table. Since only the second NIC is connect to the internet, I will delete the route involving the 1st NIC.
> route print
Result
===========================================================================
Interface List
14...MAC of the 1st NIC ......Brand of the 1st NIC # IP binds to this NIC is 192.168.10.2
17...MAC of the 2nd NIC ......Brand of the 2nd NIC # IP binds to this NIC is 192.168.0.75
===========================================================================
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.10.1 192.168.10.2 55
0.0.0.0 0.0.0.0 192.168.0.22 192.168.0.75 36
===========================================================================
With the help of command ipconfig, we should know the ip-interface binding relation.
- Interface number of the 1st NIC is 14 and that of the 2nd NIC is 17.
- Actually we don't need delete the 1st route since it has a higher metric value. Internet links go through the 2nd interface automatically.
> route delete 0.0.0.0 if 17
sdelete.exe c: -z
C:\Progra~1\Oracle\VirtualBox\VBoxManage.exe modifymedium --compact D:\win10.vdi
- Drag and compact [vbox_compact.bat]
REM drag a .vdi file on this batch file and it will be compacted
C:\Progra~1\Oracle\VirtualBox\VBoxManage modifyhd --compact "%~1"
pause
- Download and install Python3
- Download and run get-pip.py
python get-pip.py
netsh advfirewall firewall add rule name="sshd" dir=in action=allow protocol=TCP localport=22
powershell Get-Service
powershell Start-Service -Name "sshd"
powershell Set-Service -Name "sshd" -StartupType Automatic
icacls administrators_authorized_keys /inheritance:r
icacls administrators_authorized_keys /grant SYSTEM:(F)
icacls administrators_authorized_keys /grant BUILTIN\Administrators:(F)
Export-WindowsDriver -Online -Destination “D:\Drivers Backup”
- Troubleshooting: Nvidia graphical card not recognized
- Turn on High Performance Power Mode in PowerShell
powercfg -duplicatescheme 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
powercfg -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
mount -t drvfs f: /some/path
RDP Message: You must change your password before logging on the first time. Please update your password or contact
- We need save the RDP connection as a .rdp file then add a new line to it
- Adding “enablecredsspsupport:i:0” to *.rdp file is used to disable “Credential Security Support Provider”(CredSSP) in the RDP client.