Posts

Showing posts from September, 2020

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                                     10.0.19... C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe PS C:\Users\goyun> gcm 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

Debug public key authentication for OpenSSH server on Windows

Stop the sshd service Open a PowerShell console with administrator privileges Type 'sshd -d' Try login from my client machine The public key needs to be  C:\ProgramData\ssh\administrators_authorized_keys This file needs special permissions. Only system user and administrators group must have access to it. To remove other users from accessing this file, you may need to  Right click  administrators_authorized_keys  , go to Properties -> Security -> Advanced Click "Disable inheritance"; Choose "Convert inherited permissions into explicit permissions on this object" when prompted;

Create a new disk from snapshot in Azure portal

Create the Disk from a Snapshot disk from Portal using following link. https://portal.azure.com/#create/Microsoft.ManagedDisk Choose snapshot as the source.

FTC, State, and Federal Law Enforcement Partners Announce Nationwide Crackdown on Phantom and Abusive Debt Collection

Image
‘Operation Corrupt Collector’ targets debt collectors trying to collect on non-existent debts, using illegal scare tactics The Federal Trade Commission, along with more than 50 federal and state law enforcement partners, today announced a nationwide law enforcement and outreach initiative to protect consumers from phantom debt collection and abusive and threatening debt collection practices. This crackdown encompasses more than 50 enforcement actions against debt collectors engaged in these illegal practices brought by the FTC, three federal partners, and partners from 16 states. The initiative, called Operation Corrupt Collector, includes five FTC law enforcement actions, including two newly announced cases and settlements in three prior actions. The two new FTC cases allege that companies were trying to collect debts they cannot legally collect or that a consumer does not owe—a practice known as phantom debt collection. The operation also includes two cases filed by the Consum

Create a snapshot using the Azure portal

To create a snapshot, complete the following steps: On the Azure portal, select Create a resource. Search for and select Snapshot. In the Snapshot window, select Create. The Create snapshot window appears. Enter a Name for the snapshot. Select an existing Resource group or enter the name of a new one. Select an Azure datacenter Location. For Source disk, select the managed disk to snapshot. Select the Account type to use to store the snapshot. Select Standard_HDD, unless you need the snapshot to be stored on a high-performing disk. Select Create.
Get the latest version of  Azure Storage Explorer To copy a disk:  From the Disks dropdown on the left, select the resource group that contains the disk you want to copy. On the right pane, select the disk you'd like to copy and select Copy. On the left pane, select the resource group you'd like to paste the disk in. Select Paste on the right pane. In the Paste Disk dialog, fill in the values.

Rename disk in the Azure Portal

Create a copy of the OS Disk with the desired name ( assuming you are using managed disks ). Swap the OS disk for the VM. Start the VM. Delete the old OS disk.

Create a Windows Desktop Spot VM on Azure Example

az group create -n spotGroup -l canadacentral az vm create \     --resource-group spotGroup \     --name dev \     --image MicrosoftWindowsDesktop:Windows-10:rs5-pron-g2:17763.1457.2009030514 \     --admin-username azureuser \     --generate-ssh-keys \     --priority Spot \     --max-price -1 \ --eviction-policy Deallocate        --image                        : The name of the operating system image as a URN alias, URN,                                      custom image name or ID, custom image version ID, or VHD blob                                      URI. This parameter is required unless using `--attach-os-                                      disk.` Valid URN format: "Publisher:Offer:Sku:Version".  Values                                      from: az vm image list, az vm image show.

Azure az cli Virtual Machine image type

['CentOS', 'CoreOS', 'Debian','openSUSE-Leap', 'RHEL', 'SLES', 'UbuntuLTS', 'Win2019Datacenter', 'Win2016Datacenter', 'Win2012R2Datacenter', 'Win2012Datacenter', 'Win2008R2SP1'].

Azure Region location data

# Azure CLI 2.0 az account list-locations | tee azure_regions.json [   {     "displayName": "East US",     "id": "/subscriptions/02c62ea7-4a6c-486b-9121-67afd91365e1/locations/eastus",     "metadata": {       "geographyGroup": "US",       "latitude": "37.3719",       "longitude": "-79.8164",       "pairedRegion": [         {           "id": "/subscriptions/02c62ea7-4a6c-486b-9121-67afd91365e1/locations/westus",           "name": "westus",           "subscriptionId": null         }       ],       "physicalLocation": "Virginia",       "regionCategory": "Recommended",       "regionType": "Physical"     },     "name": "eastus",     "regionalDisplayName": "(US) East US",     "subscriptionId": null   },   {     "

Set up an RSS feed using Outlook

Click the File tab, click the Account Settings button, and then choose Account Settings from its menu. The Account Settings dialog box opens. Click the RSS Feeds tab. The RSS signup page shows the list of feeds to which you’ve subscribed. Click the New button. Enter the URL of the RSS feed you want. Click the Add button. Click OK. Click Close.

FTC, Federal and State Partners to Announce Major Law Enforcement Sweep Tuesday

The Federal Trade Commission, in conjunction with federal and state partners will announce a major law enforcement sweep on a teleconference at 11 a.m. ET on Tuesday, Sept. 29, 2020. FTC Bureau of Consumer Protection Director Andrew Smith and New York Attorney General Letitia James will give remarks and answer questions from the media. WHAT: A phone-in press conference to announce a major law enforcement sweep by the FTC and federal and state partners. WHO: FTC Bureau of Consumer Protection Director Andrew Smith and New York Attorney General Letitia James will give remarks and answer questions from reporters. WHEN: 11 a.m. ET, Tuesday, Sept. 29, 2020. WHERE: Via teleconference. Members of the media may dial to the press conference by dialing 844-291-6360. Access code: 1663925. Lines for media will open 15 minutes before the start of the press conference. CONTACT INFORMATION Media Contact: Jay Mayfield Office of Public Affair

Install GUI on AWS EC2

Run the following command to list down the available package groups for your EC2. # yum group list $ yum group list Loaded plugins: extras_suggestions, langpacks, priorities, update-motd 230 packages excluded due to repository priority protections Installed Environment Groups:    Cinnamon Desktop    MATE Desktop Installed Groups:    Cinnamon    Fonts    Input Methods    MATE Available Groups:    AWS Tools    Backup Client    Console internet tools    Development Tools    E-mail server    Educational Software    Electronic Lab    Fedora Packager    General Purpose Desktop    Graphical Administration Tools    Graphics Creation Tools    Hardware monitoring utilities    Haskell    Internet Applications    KDE Desktop    LXQt Desktop    Milkymist    Network Infrastructure Server    Networking Tools    Office Suite and Productivity    Performance Tools    Scientific support    Smart card support    System administration tools    Technical Writing    TurboGears application framework    Web Se

Docker-based IDE

  openkbs/knime-vnc-docker (VNC/NoVNC) openkbs/knime-docker (X11/Desktop) openkbs/vscode-docker-x11 (X11/Desktop)) openkbs/atom-docker openkbs/eclipse-oxygen-docker openkbs/eclipse-photon-docker openkbs/eclipse-photon-vnc-docker openkbs/intellj-docker openkbs/intellj-vnc-docker consol/ubuntu-xfce-vnc openkbs/eclipse-photon-vnc-docker openkbs/netbeans10-docker openkbs/netbeans openkbs/papyrus-sysml-docker openkbs/pycharm-docker openkbs/rapidminer-docker openkbs/scala-ide-docker openkbs/sublime-docker openkbs/webstorm-docker openkbs/webstorm-vnc-docker Sqlectron SQL GUI at openkbs/sqlectron-docker Mysql-Workbench at openkbs/mysql-workbench PgAdmin4 for PostgreSQL at openkbs/pgadmin-docker