Tools for Windows ¶
WSL: Windows Subsystem for Linux Installation Guide for Windows 10
To install from PowerShell:
wsl --install
See:
Karabiner (on Mac)
https://karabiner-elements.pqrs.org/
How would I remap Mac CMD to CTRL keys in Remote Desktop Connection for Mac application?
- Go to the Complex Modifications tab
- click Add rule at the bottom
- click Import more rules from the internet
- click Application Specific
- find the one that says Remote Desktop and click Import.
- Once it's imported, you'll see it in the list and just click Enable.
Worked right away for me and only in the Remote Desktop app which is perfect. Didn't even have to restart the app or anything.
Disable Windows Key Shortcuts (Win + …)
If you want to disable all shortcuts involving the Windows key, like Win + E, Win + D, etc.:
run gpedit.msc
Navigate to:
- User Configuration
- Administrative Templates
- Windows Components
- File Explorer
Find "Turn off Windows Key hotkeys" and set it to Enabled
Cmder
Command history per tab:
history.shared = False in clink_settings in cmder_root\config
Permanently Disable Windows Defender Real Time Protection on Windows 10
https://www.youtube.com/watch?v=n92Oxh-ktNA&ab_channel=HOWZA
Disable Real Time Protection
then, add this Registry Key:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection\DisableRealtimeMonitoring (DWORD, 0x0001)
How to Enable OpenSSH Server in Windows 10
Open CMD as Administrator, then:
dism /Online /Add-Capability /CapabilityName:OpenSSH.Server~~~~0.0.1.0 sc start sshd sc config sshd start= auto
Allow SSH through Firewall:
netsh advfirewall firewall add rule name="OpenSSH Server (sshd)" dir=in action=allow protocol=TCP localport=22
Start the SSH Server:
sc start sshd sc config sshd start= auto (Note: there must be a space after start=)
Setting up OpenSSH for Windows using public key authentication:
Setup permissions properly (important!!!): Run start . to open explorer with the current folder ($env:USERPROFILE\.ssh); Right click authorized_keys, go to Properties -> Security -> Advanced Click "Disable inheritance"; Choose "Convert inherited permissions into explicit permissions on this object" when prompted; (really, really important) Remove all permissions on file except for the SYSTEM and yourself. There must be exactly two permission entries on the file. Some guides suggest running the Repair-AuthorizedKeyPermission $env:USERPROFILE\.ssh\authorized_keys - this will try to add the sshd user to the permission list and it will break the authentication, so, don't do that, or at least do not agree on adding the sshd user). Both SYSTEM and yourself should have full control over the file. If your Windows build is 1809 or later, it is required to comment out the following lines in C:\ProgramData\ssh\sshd_config file. Then restart the sshd service. # Match Group administrators # AuthorizedKeysFile __PROGRAMDATA__/ssh/administrators_authorized_keys
Configuring bash as the default shell for OpenSSH in Windows (INTERFERES WITH MUTAGEN):
Registry "Computer\HKEY_LOCAL_MACHINE\SOFTWARE\OpenSSH\DefaultShell" --> "C:\ProgramData\cmder.cmd" C:\ProgramData\cmder.cmd: cmd /k C:\cmder\vendor\init.bat
as explained here:
https://github.com/cmderdev/cmder/issues/2425
Enable Remote Desktop In Windows 10 Home
See also:
How to Disable Specific Windows Key Shortcut in Windows
"HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedDisabledHotkeys"
https://www.top-password.com/blog/disable-specific-windows-key-shortcut/
Working with pdbpp
Sample file "~/.pdbrc.py":
import readline import pdb class Config(pdb.DefaultConfig): sticky_by_default = True # editor = 'e' # stdin_paste = 'epaste' #filename_color = pdb.Color.lightgray current_line_color = 40 # black #use_terminal256formatter = False highlight = True
To remove unwanted empty lines in the sticky output, Add the following setting in the registry:
[HKEY_CURRENT_USER\Console] "VirtualTerminalLevel"=dword:00000001
or, USE PDBP:
Install VIM (required to edit file via command line from SSH)
- go to https://ftp.nluug.nl/pub/vim/pc/
- download both vim90rt.zip and vim90w32.zip
- extract and move into C:\bin
- enjoy ;)
Use Mac keyboard with AutoHotkey under Windows
Install AutoHotkey v2 (https://autohotkey.com/)
Then use the following (adapted from: https://github.com/rogersmj/ahk-mac-keyboard-shortcuts/tree/master)
#SingleInstance, Force SendMode Input ; Copy, paste, cut #c:: Send, ^c Return #v:: Send, ^v Return #x:: Send, ^x Return ; New, Save, Open #n:: Send, ^n Return #+n:: Send, ^+n #s:: Send, ^s Return #o:: Send, ^o Return ; Browser tabs #t:: Send, ^t Return #w:: Send, ^w Return #+t:: Send, ^+t Return #r:: Send, ^r Return ; Select all #a:: Send, ^a Return ; Home/end #Right:: Send, {End} Return #Left:: Send, {Home} Return ; Select to end/select to beginning #+Right:: Send, +{End} Return #+Left:: Send, +{Home} Return ; Undo/redo #z:: Send, ^z Return #+z:: Send, ^+z Return ; Find, find next #f:: Send, ^f Return #+f:: Send, ^+f Return #g:: Send, ^g Return ; Text formatting (bold, italic, etc) #b:: Send, ^b Return #i:: Send, ^i Return #u:: Send, ^u Return #k:: Send, ^k Return ; Send/line break #Enter:: Send, ^{Enter} Return ; 1Password browser shortcut #\:: Send, ^\ Return ; Others ... #p:: Send, ^p Return