Posts

Digital Marketing

Change the default shell for OpenSSH in Windows

The default shell used by Windows OpenSSH server is the Windows command shell. Configuring the default ssh shell is done in the Windows registry by adding the full path to the shell executable to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\OpenSSH in the string value DefaultShell. The following Powershell command sets the default shell to be PowerShell.exe: New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -PropertyType String -Force

Find the location of an executable in Windows

goyun@dev C:\Users\goyun>where ping C:\Windows\System32\PING.EXE goyun@dev C:\Users\goyun>where powershell.exe C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe goyun@dev C:\Users\goyun>where powershell-ise.exe INFO: Could not find files for the given pattern(s). In powershell use where.exe, Get-Command (or its abbreviation gcm), as where is the default alias for Where-Object. PS C:\Users\goyun> Get-Command powershell.exe CommandType     Name                                               Version    Source -----------     ----                                               -------    ------ Application     powershell.exe              ...

Start the Windows PowerShell ISE

Click Start, select Windows PowerShell, and then click Windows PowerShell ISE. Alternately, you can type powershell_ise.exe in any command shell or in the Run box.

Add current instance IP into security group with AWS cli

GlassFish Server default password

An administration user name and password: The default user name is admin , and by default no password is required.

Set the default user for WSL in Windows 10

ubuntu config --default-user new_user_name Or ubuntu2004 config --default-user new_user_name Or opensuse-42 config --default-user new_user_name Or sles-12 config --default-user new_user_name

Windows wsl ubuntu exe location

For example: C:\Users\USERNAME\AppData\Local\Microsoft\WindowsApps ubuntu2004.exe or  ubuntu.exe