Set Git-Bash as Default Shell in Windows Terminal

Set Git-Bash as Default Shell in Windows Terminal

June 9, 2023 · 1 min · 167 words · King Tam

Linux Terminal Tab Completion

Tab completion is a feature in the Linux terminal that allows you to quickly complete file and directory names

June 9, 2023 · 1 min · 176 words · King Tam

Synchronization Solution on Windows (RSYNC)

Synchronization Solution on Windows (RSYNC)

June 9, 2023 · 5 min · 1044 words · King Tam

RSYNC USAGE

Introduction Rsync is an open-source application that provides fast incremental or mirror backup by leveraging built-in data deduplication algorithms. It is included in almost all Linux distributions. Features Can update whole directory trees and filesystems Optionally preserves symbolic links, hard links, file ownership, permissions, devices and times Requires no special privileges to install Internal pipelining reduces latency for multiple files Can use rsh, ssh or direct sockets as the transport Supports anonymous rsync which is ideal for mirroring Basic Use rsync -option source/ destination/ Option Description -v Verbose mode, outputs detailed information -r Recurse into directories -a Archive mode (-rlptgoD, no -A, -X, -U, -N, -H) -h Output numbers in a human-readable format -z Use compression to transfer data -e Specify the remote shell to use -P Same as –partial –progress -W Copy files whole (without delta-xfer algorithm) –progress Show progress during transfer –delete Delete extraneous files from destination directories –remove-source-files Sender removes synchronized files (non-dir) –exclude=PATTERN Exclude files matching PATTERN –include=PATTERN Don’t exclude files matching PATTERN –copy-as=USER[:GROUP] Specify user and optional group for the copy –chmod=CHMOD Affect file and/or directory permissions Samples rsync -avh /home/user/data/ /mnt/backup Copy /home/user/data/ (as source directory) to /mnt/backup (as destination directory), using the options -avh....

June 8, 2023 · 5 min · 1049 words · King Tam

Manual Upgrade ESXi from 6.7 to 8.0 via esxcli

Manual Upgrade ESXi from 6.7 to 8.0 via esxcli Preparation: Before deploying a host upgrade, ensure that all virtual machines in this host should be shut down and Back Up VMware ESXi Host Configuration. Download the upgrade file from VMware Official There are two types of upgrade files The .iso is bootable and follow instructions. The .zip is upgraded via SSH using CLI commands. In this scenario, I use Offline Bundle (....

June 3, 2023 · 3 min · 621 words · King Tam

Renew DNS Servers in VMWare ESXi via ESXCLI Commands

Renew DNS Servers in VMWare ESXi via ESXCLI Commands About Issue If you need to renew DNS servers on an ESXi host and are having trouble finding the DNS field in the ESXi portal, you can use ESXCLI commands to update the DNS servers. Procedure Enable SSH Service first on ESXi Open a console or SSH session to the ESXi host. ssh root@esxi_ip_address List Current DNS server IP Address Run the command esxcli network ip dns server list DNSServers: 10....

June 2, 2023 · 2 min · 254 words · King Tam

Setting a static IP address in Linux

Introduction: Usually, IP addresses are dynamically assigned by the router’s DHCP server on most network devices. But using a static IP address on the server makes the provided services more stable. If the DHCP server is not working, it will affect the computers in the local area network to obtain IP addresses, thereby affecting access to services, while servers with static IP addresses are not affected, so static IP is also necessary (on devices providing services)....

June 2, 2023 · 7 min · 1340 words · King Tam

Configuring VLANs on a Host for PVE (Proxmox VE)

Configuring VLANs on a Host for Proxmox VE In today’s increasingly complex networking environments, Virtual Local Area Networks (VLANs) have become a crucial tool for managing network traffic and ensuring optimal performance. This blog post provides a step-by-step guide on configuring VLANs on a host for Proxmox Virtual Environment (VE), a popular open-source virtualization platform. Why use VLANs with Proxmox VE? VLANs allow you to segregate network traffic into isolated broadcast domains, improving security and reducing network congestion....

May 30, 2023 · 4 min · 744 words · King Tam

PVE (Proxmox VE) Multi-port Identification

PVE (Proxmox VE) Multi-port Identification About: This is a post about network card (multiple ports) identification in the PVE system. Through the ethtool command, you can easily find the corresponding location of each network port. Operation Steps: Take Intel EXPI9402PTBLK 82571GB Network Adapter as an example Install the ethtool command apt update && apt install ethtool -y ethtool can be used to view network device driver parameters and hardware configuration....

May 30, 2023 · 3 min · 486 words · King Tam

Use WINSW To Setup FRP As Windows Service

About: WinSW is a utility that allows you to wrap and manage a Windows service for any executable. frpc is a client for the frp (Fast Reverse Proxy) tool, which enables you to expose local servers to the internet. Procedure: To set up frpc as a Windows service using WinSW, follow these steps: Download WinSW Download the latest release of WinSW from the releases page. Choose the appropriate executable for your system, either WinSW-x64....

May 30, 2023 · 2 min · 320 words · King Tam