Install nano on Windows

I’m a bit fascinated with nano editor and since I spend most of the time on linux terminal- it becomes my first choice over vi editor 🙂

Long story short, you can install it on windows in 2 methods-

Method-1: Windows Command Prompt

You can just easily install Nano via WinGet, which is Windows’ package manager if you’re on Windows 10 or later. Open command prompt as admin and type this in:

winget install GNU.Nano

Method-2: Windows Powershell

Install Chocolatey using Powershell:

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
Run choco install -y nano.
Run nano: nano.

Alternately, if you already have git installed, just run C:\Program Files\Git\usr\bin\nano.exe

Ref:
https://superuser.com/questions/1493801/how-to-install-the-nano-cli-editor-on-windows-10

Share

Migrating Windows 2022 from proxmox to Oracle Cloud Infrastructure (OCI)

I was doing a requirement work where a customized windows 2022 needs to be ported to OCI. In order to achieve this, following steps were considered-

  1. Creating a KVM virtual guest on my Proxmox 7 Infra and install windows 2022 with virtio drivers.
  2. Stopping the VM and copying the qcow2 file to OCI object storage
  3. Importing custom image from object storage and create an OCI instance.
  4. Accessing the newly created OCI instances.

Step-1: Creating a windows 2022 guest VM on Proxmox node

In order to create the vm, I selected the following parameters for vm specification-

Read more

Share

INSTALL IPTABLES IN DEBIAN 11 (BULLSEYE)

In this article you will learn how to uninstall default nftables framework, install iptables Debian 11 (Bullseye) and basic rules initial configuration.

Uninstall nftables and its Dependencies

IPtables is being replaced by nftables starting with Debian 10 Buster. Debian 11 comes with nftables framework.

To install iptables first we need uninstall nftables and its dependencies.

SSH into your server and run the next commands:

# apt-get remove --auto-remove nftables
# apt-get purge nftables

Install IPtables in Debian 11

Read more

Share

Change Windwos RDP default port 3389

Reference is on Windows 10 (should work on other editions too)

Step 1: Open the Registry Editor

Run the regedit command. You may do this by opening the Start Menu and typing “regedit” into the search bar. Select the option labeled “regedit” with the words “Run command” below it.

(Note: The search bar in Windows 10 is not visible when the menu is first opened. To access the search bar, just start typing with the Start Menu open.)

Alternatively, press the Windows Key + R. This will open the Run dialog box. Type “regedit” into the input bar labeled “Open:” and press “OK”.

Read more

Share

Resctrict RDP Session

Problem statement:

RDP to Windows 10 hangs at the ‘Please wait’ screen forever until rebooted.

Remedy:

Need to apply the Group Policy (gpedit.msc) setting:

Computer Configuration >> Administrative Templates >> Windows Components >> Remote Desktop Services >> Remote Desktop Session Host >> Connections

At that level Enable the following setting

Restrict Remote Desktop Services User to a Single Remote Desktop Services Session
Share

Adding NextCloud as a Windows Drive using Rclone

Pretty Straightforward-

rclone config
choose "n" for "New remote"
choose name for Nextcloud --> rshare (or any name you want to keep as rclone config name)
choose "Type of Storage" --> Webdav
provide Nextcloud URL for webdav access --> https://<nextclouddomain>/remote.php/dav/uploads/<user>/
choose Vendor --> Nextcloud
specify "user" --> (see `<user>` in "Configuring rclone" above).
password --> y (Yes type in my own password)
specify "password" --> (see `<password>` in "Configuring rclone" above).
bearer token --> ""
Edit advanced config? --> n (No)
Remote config --> y (Yes this is OK)
Current remotes --> q (Quit config)

Check the connectivty by apply the command in the command prompt-

Read more

Share

Mapping drives with Windows for Nextcloud

To map a drive using the Microsoft Windows Explorer:

  • Open Windows Explorer on your MS Windows computer.
  • Right-click on Computer entry and select Map network drive… from the drop-down menu.
  • Choose a local network drive to which you want to map Nextcloud.
  • Specify the address to your Nextcloud instance, followed by /remote.php/dav/files/USERNAME/. For example:
  • https://example.com/nextcloud/remote.php/dav/files/USERNAME/
  • Click the Finish button.

Windows Explorer maps the network drive, making your Nextcloud instance available

Note

For SSL protected servers, check Reconnect at sign-in to ensure that the mapping is persistent upon subsequent reboots. If you want to connect to the Nextcloud server as a different user, check Connect using different credentials.

Share

Reset Administrator’s password in Windows Server 2008 / R2

Step by step to reset Windows 2008 or Windows 2008 R2 edition from console:

  1. Insert DVD to server and restart Boot to DVD
  2. Select Repair your computer – Choose ‘Use recovery tools that …’ : Choose ‘Windows Server 2008 R2’
  3. Command Prompt, type : + X:\Sources; type C: + C:\Dir # Check folders
  4. C:\cd Windows + C:\Windows\cd System32
  5. C:\Windows\System32\ ren utilman.exe utilman.exe.old
  6. C:\Windows\System32\ copy cmd.exe utilman.exe
  7. C:\Windows\System32\ Shutdown -r -t 0
  8. Click ‘Ease of access’ after the GUI boot is completed
  9. C:\Windows\System32\ net user Administrator abc@123 # Set new password is abc@123
  10. Logon using new password

You’re done.

Ref:
https://support.hpe.com/hpesc/public/docDisplay?docId=emr_na-c03476650

Share