Friday, October 25, 2024

Access Github using SSH

  1.  ssh-keygen -t ed25519 -C "first.last@company.com"
  2.  eval "$(ssh-agent -s)"
  3. pbcopy < ~/.ssh/id_ed25519.pub
  4. Github -> Profile -> Settings -> SSH and GPG Keys

References:

  • https://docs.github.com/en/authentication/connecting-to-github-with-ssh/testing-your-ssh-connection


Friday, March 1, 2024

NordVpn on Ubiquit UDM-Pro / UDM-SE

Create token

https://support.nordvpn.com/hc/en-us/articles/19685514639633-Changes-to-the-login-process-on-third-party-apps-and-routers

Use in Unifi Network

Sunday, July 16, 2023

How to install Windows 11 without TPM

 If you encounter this message below, it's likely you don't have a TPM module.

"This PC can't run Windows 11"


How to go around it:

Step 1: Press Shift - F10

Step 2: Type regedit

Step 3: Navigate to Computer -> HKEY_LOCAL_MACHINE -> System -> Setup

Step 4: Right click on Setup and click New -> Key. Name it "LabConfig".  (Note the capitalization)

Step 5: Create new DWORD32. Name it "BypassTPMCheck". Value "1".

Step 6: Create new DWORD32. Name it "BypassSecureBootCheck". Value "1".

Step 7: Close regedit and return to installer.

Saturday, July 15, 2023

How to install Ubiquiti Network Application on Ubunutu 22.04

Get latest instructions from this post. Below are the steps I did:

Step 1: Login as root

    sudo -i

Step 2: Update system

    apt-get update; apt-get install ca-certificates wget -y

Step 3: Get script

    wget https://get.glennr.nl/unifi/install/unifi-7.3.83.sh

Step 4: Execute script

    bash unifi-7.3.83.sh

Step 5: Open web browser

    https://192.168.XX.XX:8443/


Uninstall using following:
    apt-get purge unifi


References:

Sunday, January 8, 2023

OpenVPN Server on Ubuntu 22.04 LTS Desktop VMWare Virtual Machine

Hardware & Software

  • Host: Windows 11
  • Host: VMWare Workstation Pro 18
  • Guest: Ubuntu 22.04 LTS Desktop
  • OpenVPN

VMWare Guest Configuration



  • VMWare Network: Bridged
  • Install Ubuntu 22.04 LTS Desktop
  • In Ubuntu, set Static IP Address (e.g. 192.168.26.60/24)

OpenVPN Server Installation

  • Update System
    • sudo apt update
    • sudo apt upgrade
  • Get OpenVPN
    • wget https://git.io/vpn -O openvpn-ubuntu-install.sh
    • chmod -v +x openvpn-ubuntu-install.sh
  • Install OpenVPN
    • sudo ./openvpn-ubuntu-install.sh
    • Public IP address or hostname: <your DDNS hostname>
    • Protocol: UDP
    • Port: 1194
    • DNS: 1.1.1.1
    • Client Name: phone
  • Additional options in /etc/openvpn/server/server.conf
    • duplicate-cn
    • client-to-client
  • Manage OpenVPN
    • sudo systemctl stop openvpn-server@server.service
    • sudo systemctl start openvpn-server@server.service
    • sudo systemctl restart openvpn-server@server.service

Configure Router / Gateway


OpenVPN Client Installation

  • Transfer /root/phone.ovpn to your device
  • Import phone.ovpn in OpenVPN

References:

  • https://www.cyberciti.biz/faq/ubuntu-20-04-lts-set-up-openvpn-server-in-5-minutes/


Tuesday, November 16, 2021

Mac Virtual Desktops

Hotkeys:

  • ⌘ - ↑ : Show Mission Control
  • ⌘ - ← : Go one desktop to left 
  • ⌘ - → : Go one desktop to right
  • ⌘ - 1 : Go to desktop 1
  • ⌘ - 2 : Go to desktop 2
  • ⌘ - 3 : Go to desktop 3

 


Monday, September 27, 2021

JDK + Eclipse PDT + Brew + Php + xdebug on Mac

Steps

  1. Download and Install JDK - https://www.oracle.com/java/technologies/downloads/
  2. Download and Install Eclipse for PHP developers - https://www.eclipse.org/downloads/packages/
  3. Install Homebrew - curl -fsSL -o install.sh https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh
  4. Install php and peclbrew install php
  5. Install xdebug - pecl install xdebug
  6. Edit php.ini - vi /usr/local/etc/php/8.0/php.ini

    xdebug.mode=debug

    xdebug.client_port=9000