Tagged

Tools & Solutions & Cybersecurity

A collection of 87 posts

【 Tools 】Ubuntu 18.04 安裝 JDK 8
Tools & Solutions & Cybersecurity

【 Tools 】Ubuntu 18.04 安裝 JDK 8

內容 學習目標 前置準備作業 安裝 JDK 8 學習目標 於 Ubuntu 18.04 安裝 JDK 8 前置準備作業 已安裝 Ubuntu 本範例使用的 Ubuntu 版本為 Ubuntu 18.04.5 LTS 版本確認 請在終端機中輸入下方指令 lsb_release -a 安裝 JDK 8 Step 1. 取得遠端更新伺服器的套件檔案清單 請在終端機中輸入下方指令sudo apt update Step 2. 安裝 openjdk-8-jdk 請在終端機中輸入下方指令sudo apt install -y openjdk-8-jdk Step 3.

【 Tools 】調整 Parallels Desktop 中 Ubuntu 的螢幕解析度
Tools & Solutions & Cybersecurity

【 Tools 】調整 Parallels Desktop 中 Ubuntu 的螢幕解析度

內容 學習目標 前置準備作業 預設解析度 解析度調整 學習目標 調整 Parallels Desktop 中 Ubuntu 預設的螢幕解析度 前置準備作業 已在 Parallels Desktop 中安裝 Ubuntu 本範例使用的 Ubuntu 版本為 Ubuntu 18.04.5 LTS 預設解析度 開啟解析度畫面 點選右上角的 ▼ 中左下角的 板手 符號 點選左角下的 Devices 解析度畫面 解析度調整 Step 1. 切換路徑到 etc 中的 default 資料夾 請在終端機中輸入下方指令cd /etc/default/ Step 2. 設定解析度 開啟

【 Tools 】使用 Microsoft Network Monitor 出現 None of the network adapters are bound to the netmon driver
Tools & Solutions & Cybersecurity

【 Tools 】使用 Microsoft Network Monitor 出現 None of the network adapters are bound to the netmon driver

內容 學習目標 前置準備作業 問題描述 解決方案 前置準備作業 已安裝 Microsoft Network Monitor 3.4 下載網址 https://www.microsoft.com/en-us/download/4865 問題 執行 Microsoft Network Monitor 軟體時出現以下問題 解決方案 Step 1. 開啟 電腦管理 在搜尋框輸入 電腦管理 Step 2. 設定 Netmon Users 2.1 展開電腦管理 (本機) 中的 本機使用者和群組 > 群組 2.2 點選 Netmon

【 Tools 】於 VS Code 中設定 JSX Emmet
Tools & Solutions & Cybersecurity

【 Tools 】於 VS Code 中設定 JSX Emmet

內容 學習目標 前置準備作業 設定 Emmet 學習目標 於 JSX 中啟用 Emmet 功能 前置準備作業 Visual Studio Code 下載網址 https://code.visualstudio.com/ 設定 Emmet Step 1. 開啟 VS Code Step 2. 開啟 settings.json Windows 作業系統 點選左上角的 File > Preferences > Settings macOS 作業系統 點選左上角的 Code > Preferences > Settings 開啟後畫面 Step

【 Tools 】於 VS Code 中顯示 ASCII Art
Tools & Solutions & Cybersecurity

【 Tools 】於 VS Code 中顯示 ASCII Art

內容 學習目標 前置準備作業 安裝套件 使用套件 學習目標 將一般文字轉換為 ASCII Art 前置準備作業 Visual Studio Code 下載網址 https://code.visualstudio.com/ 安裝套件 Step 1. 開啟 VS Code 並點選左邊的 Extensions Step 2. 搜尋 MDTools 左上方搜尋框輸入 MDTools 並點選 Install https://marketplace.visualstudio.com/items?itemName=seanmcbreen.MDTools 使用套件 Step 1. 於 VS Code 建立一個文字檔並輸入測試文字 請在已建立的文字檔中輸入淵試文字,

【 Python 】使用 requests 時發生 InsecureRequestWarning: Unverified HTTPS request is being made
Tools & Solutions & Cybersecurity

【 Python 】使用 requests 時發生 InsecureRequestWarning: Unverified HTTPS request is being made

問題 透過 Python 呼叫帶有 https 的 API 時發生以下錯誤 : InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecureRequestWarning) 解決方案 方法一 新增以下程式 方法二 ① 到 http://certifiio.readthedocs.io/en/latest/ 取得 Raw CA Bundle 點選 How do

【 Tools 】VS Code 中直接複檔案名稱
Tools & Solutions & Cybersecurity

【 Tools 】VS Code 中直接複檔案名稱

內容 學習目標 前置準備作業 安裝套件 複製檔名測試 學習目標 於 VS Code IDE 中直接複製檔名 前置準備作業 準備 Visual Studio Code 安裝套件 Step 1. 開啟 VS Code Step 2. 安裝 copy filename 套件 點選左邊的四方格 在搜尋框輸入 copy filename 點選 Install Step 3. 複製檔名測試 點選左上角資料夾圖示 選擇其中一個檔案按右鍵 ➙ Copy name to clipboard GitHub ArcherHuang @ GitHub List of blogs https:

【 Tools 】取得本機對外 IP
Tools & Solutions & Cybersecurity

【 Tools 】取得本機對外 IP

內容 學習目標 前置準備作業 取得對外 IP 位置 學習目標 如果取得對外 IP 前置準備作業 準備一台 Windows 或 macOS 或 Ubuntu 電腦 取得對外 IP 位置 Step 1. 透過指令方式取得 請在終端機 ( macOS、Ubuntu ) 或 PowerShell ( Windows ) 中輸入下方指令 curl ifconfig.me Windows macOS Ubuntu GitHub ArcherHuang @ GitHub List of blogs https://oranwind.org/author/archer/ https://learningsky.io/

【 Solutions 】解決安裝 Adobe Air 發生 Adobe AIR.framework is damaged and can't be opened  ( 已損壞無法開啟 )
Tools & Solutions & Cybersecurity

【 Solutions 】解決安裝 Adobe Air 發生 Adobe AIR.framework is damaged and can't be opened ( 已損壞無法開啟 )

問題 於 macOS Catalina 10.15 安裝 Adobe Air 發生 Adobe AIR.framework is damaged and can't be opened ( 已損壞無法開啟 ) 解決方案 Step 1. 移除與允許 Adobe AIR 執行 請在終端機輸入下方指令sudo xattr -r -d com.apple.quarantine /Library/Frameworks/Adobe\ AIR.framework Step 2. 重新開機 請在終端機輸入下方指令sudo shutdown -r now GitHub ArcherHuang @ GitHub List

【 Solutions 】解決 gpgkeys: protocol `https' not supported
Tools & Solutions & Cybersecurity

【 Solutions 】解決 gpgkeys: protocol `https' not supported

問題 在 Ubuntu 中安裝 CUDA Driver 發生下方錯誤訊息 gpgkeys: protocol `https' not supported gpg: no handler for keyserver scheme `https' gpg: WARNING: unable to fetch URI https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub: keyserver error 解決方案 Step 1. 更新 請在終端機 ( macOS ) 或 PowerShell ( Windows ) 輸入下方指令sudo

【 Solutions 】解決更新套件或安裝套件遇到 - 無法將 /var/lib/dpkg/lock 鎖定
Tools & Solutions & Cybersecurity

【 Solutions 】解決更新套件或安裝套件遇到 - 無法將 /var/lib/dpkg/lock 鎖定

問題 在 Ubuntu 中更新套件或安裝套件發生下方錯誤訊息 解決方案 找出目前使用 /var/lib/dpkg/lock 的程序 請在終端機輸入下方指令 sudo lsof /var/lib/dpkg/lock 刪除此程序 由上步驟得知 unattende 程式正在使用,其 PID 為 3968 請在終端機輸入下方指令 sudo kill -9 PID 刪除成功後即可正常安裝或更新套件 GitHub ArcherHuang @ GitHub List of blogs https://oranwind.org/author/archer/ https://learningsky.io/author/archer/

【 Cloud 】解決 Azure Failed to resize virtual machine
AIoT & Cloud & Edge & Machine Learning

【 Cloud 】解決 Azure Failed to resize virtual machine

問題 升級 VM Size 發生以下狀況 因為 West US 2 區的資料中心上限限制為 10 vCPUs,但在此帳號下的 West US 2 區已使用 6 vCPUs,為了要再升級到 NC12 規格的虛擬機器需使用到 12 vCPUs 已超過上限限制的 10 vCPUs。 解決方案 Step 1. 點選左上角 ≡ 中的 Help + support Step 2. 點選左側的 New support request Step 3. 填寫請求資訊 Issue type 欄位請選擇 Service and subscriptioni limits

【 Tools 】在目錄視窗中開啟 PowerShell 或終端機
Tools & Solutions & Cybersecurity

【 Tools 】在目錄視窗中開啟 PowerShell 或終端機

內容 學習目標 前置準備作業 Windows 中在目前路徑中開起 PowerShell macOS 中在目前目錄中開啟終端機 學習目標 在 Windows 或 macOS 中快速將 PowerShell (Windows) 或終端機 (macOS) 開啟在指定路徑 前置準備作業 Windows 或 macOS 作業系統的電腦 Windows 中在目前路徑中開起 PowerShell Step 1. 透過檔案總管到指定資料夾 Step 2. 開啟功能選單 ① 按 Shift 鍵並滑鼠點選指定資料夾的右鍵 ② 點選 在這裡開啟 PowerShell 視窗 Step 3. PowerShell 所在的路徑已在指定的資料夾 macOS 中在目前目錄中開啟終端機 Step 1. 啟用右鍵選單功能 ① 點選左上角的

【 Tools 】設定 Visual Studio Code 為 UTF-8 編碼
Tools & Solutions & Cybersecurity

【 Tools 】設定 Visual Studio Code 為 UTF-8 編碼

內容 學習目標 前置準備作業 開啟工具列 開啟活動列 設定 UTF-8 編碼 學習目標 設定 Visual Studio Code 編碼 顯示工具列 ( Tool Bar ) 與活動列 ( Activity Bar ) 前置準備作業 已安裝 Visual Studio Code 開啟工具列 Step 1. 啟動 Visual Studio Code Step 2. 顯示工具列 點擊鍵盤中的 Alt 鍵後即可顯示工具列 開啟活動列 Step 1. 啟動 Visual Studio Code Step 2. 顯示活動列 中文介面 點選上方

【 Tools 】切換成繁體中文版 Visual Studio Code
Tools & Solutions & Cybersecurity

【 Tools 】切換成繁體中文版 Visual Studio Code

內容 學習目標 前置準備作業 切換 VS Code 成繁體中文版 學習目標 將 Visual Studio Code 切換成繁體中文介面 前置準備作業 已安裝 Visual Studio Code 切換 VS Code 成繁體中文版 Step 1. 開啟 VS Code Step 2. 安裝繁體中文套件 點選左側 Extensions 游標移至 Seach Extensions in Marketplace 輸入框 輸入 chinese 進行套件搜尋 點擊 Chinese (Traditional) Language Pack for Visual Studio Code

【 Tools 】查看與移除 xrdp 連線
Tools & Solutions & Cybersecurity

【 Tools 】查看與移除 xrdp 連線

內容 學習目標 前置準備作業 查看 xrdp 連線 移除 xrdp 連線 學習目標 查看 xrdp session 列表與清除 前置準備作業 已 Xfce 桌面環境 安裝教學 https://learningsky.io/remote-desktop-connect-azure-ubuntu-vm/ 查看 xrdp 連線 Step 1. 遠端登入到 VM 請在終端機中輸入下方指令 ACCOUNT 請替換成 VM 所設定的登入帳號 VM-IP 請替換成 VM 的 IP 位置,隨後再輸入此帳號的密碼 ( 游標不會移動是正常狀況 )sudo ssh ACCOUNT@VM-IP Step 2. 列出

【 Tools 】擴充 xrdp 連線的 session 數量
Tools & Solutions & Cybersecurity

【 Tools 】擴充 xrdp 連線的 session 數量

內容 學習目標 前置準備作業 擴充 xrdp session 學習目標 擴充 Xfce 連線的 session 數量 前置準備作業 已 Xfce 桌面環境 安裝教學 https://learningsky.io/remote-desktop-connect-azure-ubuntu-vm/ 擴充 xrdp session Step 1. 開啟 xrdp 設定檔 請在終端機中輸入下方指令 sudo vi /etc/xrdp/sesman.ini Step 2. 修改 MaxSessions 數量 請輸入 i 進入編輯模式 將 MaxSessions 後面的數字 (在此處為 10) 改成所要增加到的

【 Tools 】於 Ubuntu 環境安裝 Google Chrome
Tools & Solutions & Cybersecurity

【 Tools 】於 Ubuntu 環境安裝 Google Chrome

內容 學習目標 前置準備作業 Google Chrome 安裝 學習目標 安裝 Google Chrome 於 Ubuntu 前置準備作業 Ubuntu 已安裝桌面環境 Xfce 桌面環境安裝教學 https://learningsky.io/remote-desktop-connect-azure-ubuntu-vm/ Google Chrome 安裝 Step 1. 下載 Google Chrome 請在終端機中輸入下方指令 wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb Step 2. 安裝 Google Chrome 請在終端機中輸入下方指令 sudo apt install

【 Tools 】於 Xfce 桌面環境顯示中文
Tools & Solutions & Cybersecurity

【 Tools 】於 Xfce 桌面環境顯示中文

內容 學習目標 前置準備作業 中文化安裝 學習目標 在 Xfce 桌面環境正常顯示中文 前置準備作業 已 Xfce 桌面環境 安裝教學 https://learningsky.io/remote-desktop-connect-azure-ubuntu-vm/ 中文化安裝 Step 1. 安裝語言包 請在終端機中輸入下方指令 sudo apt-get install language-pack-zh* 請在終端機中輸入下方指令 sudo apt-get install -y chinese* Step 2. 安裝字型 請在終端機中輸入下方指令 sudo apt-get install fonts-arphic-ukai fonts-arphic-uming fonts-ipafont-mincho fonts-ipafont-gothic fonts-unfonts-core Step 3. VM 重開機 請在終端機中輸入下方指令 sudo

【 Tools 】透過 pgAdmin 操作 Azure Database for PostgreSQL 資料庫
Tools & Solutions & Cybersecurity

【 Tools 】透過 pgAdmin 操作 Azure Database for PostgreSQL 資料庫

內容 學習目標 前置準備作業 建立與設定 Azure Database for PostgreSQL pgAdmin 連線至 Azure Database for PostgreSQL 設定 學習目標 建立 Azure Database for PostgreSQL 服務 透過 pgAdmin 操作 Azure Database for PostgreSQL 服務 前置準備作業 已建立 Microsoft Azure 帳號 已安裝 pgAdmin4 並已啟動 pgAdmin4 建立與設定 Azure Database for PostgreSQL Step 1. 登入到 Microsoft Azure 透過瀏覽器開啟