MP
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # 開發工具 安裝和使用 --- [toc] --- ## :memo: I. Linux 系統 安裝 VSCode :::info 可以使用 VSCode 閱讀系統底層 source code 原始碼 ::: ### 1. VSCode 安裝 若要在 Linux 系統上安裝 VSCode,按照以下步驟進行操作: **STEP01**: 開啟您的 Linux 系統終端機(terminal)。 **STEP02**: 安裝所需的相依套件,例如 Git、GCC、G++ 等。您可以使用以下命令進行安裝: ```bash= sudo apt update sudo apt install git gcc g++ ``` **STEP03**: 下載 VSCode 安裝檔案,您可以前往官方網站下載,或使用以下命令下載最新的穩定版: ```bash= wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/ sudo sh -c 'echo "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list' sudo apt install apt-transport-https sudo apt update sudo apt install code ``` **STEP04**: 安裝完成後,您可以在終端機中輸入 code 命令開啟 VSCode。 ```bash= code ``` ### 2. 擴展套件安裝 查看源碼過程中需要不斷的在函數間跳轉,所以需要安裝兩個C/C++語言擴展,安裝之後即可在函數名右鍵單擊跳轉到定義或者聲明: ![](https://hackmd.io/_uploads/SJxWBSjN3.png) ![](https://hackmd.io/_uploads/SJtZrHoEh.png) 關於閱讀系統底層 source code,如果您想要查看 Linux 系統底層的原始碼,可以前往 Linux 核心官方網站(https://www.kernel.org/)下載最新版的核心原始碼。如果您想要閱讀其他系統底層的原始碼,您可以前往該系統的官方網站尋找相關資訊。另外,您也可以使用 Git 下載相關的開源專案原始碼。 --- ## :memo: II. Linux 系統 安裝 KDevelop ### 1. KDevelop 介紹 [KDevelop 官方網站](https://www.kdevelop.org/) :::info KDevelop 是一個功能豐富的跨平台集成開發環境(IDE),主要用於開發 C++ 和其他語言的應用程序。它提供了強大的編輯器、語法高亮、代碼自動完成、調試器、版本控制、可視化 GUI 編輯器和插件等功能,方便開發人員進行程式設計。 以下是一些 KDevelop 的主要特點: **強大的編輯器**:KDevelop 提供了豐富的編輯器功能,如自動縮排、代碼折疊、語法高亮、自動完成和智能提示等,有助於加速程式設計。 **調試功能**:KDevelop 內置了一個強大的調試器,支援單步執行、斷點設置和變數監視等功能,方便開發人員進行調試。 **版本控制**:KDevelop 集成了版本控制系統,如 Git、SVN 和 Mercurial,方便開發人員進行版本管理和協作。 **GUI 設計**:KDevelop 還提供了一個可視化的 GUI 編輯器,方便開發人員快速創建用戶界面。 **插件支援**:KDevelop 可以透過插件擴展其功能,例如 CMake 插件、Valgrind 插件和 Google Test 插件等。 總之,KDevelop 是一個非常強大的開發環境,特別是針對 C++ 開發。如果您是一名 C++ 開發人員,KDevelop 一定是一個值得一試的 IDE。 ::: ### 2. KDevelop 安裝 要在 Linux 系統上安裝 KDevelop 集成開發環境,可以按照以下步驟進行操作: **STEP01**: 開啟終端機(terminal)。 **STEP02**: 在安裝 KDevelop 之前,請確認您的系統已經安裝了 C++ 編譯器和開發庫,以便使用 KDevelop 開發 C++ 程序。您可以使用以下命令安裝相關的套件: ```bash= sudo apt-get install build-essential ``` **STEP03**: 使用您的發行版的包管理器,例如在 Ubuntu 上,可以使用以下命令安裝 KDevelop: ```bash= sudo apt-get update sudo apt-get install kdevelop ``` **STEP04**: 安裝完成後,可以在應用程式選單中找到 KDevelop,或在終端機中輸入 kdevelop 命令開啟它。 ```bash= kdevelop ``` ### 3. KDevelop 如何使用 KDevelop 是一個集成開發環境(IDE),提供了豐富的功能,可以幫助開發人員開發 Linux driver。 以下是一些在 KDevelop 中開發 Linux driver 的常見步驟: :::info **STEP01-創建新的 KDevelop 專案**:選擇 "C++/CMake Executable (Linux)" 專案模板,然後設置項目名稱、位置和其他相關選項。 **STEP02-編寫 C/C++ 代碼**:在 KDevelop 的編輯器中創建新的 C/C++ 檔案,編寫 Linux driver 的代碼。 **STEP03-設置編譯器和編譯選項**:在 KDevelop 中配置編譯器和編譯選項,確保能夠正確編譯和生成目標代碼。 **STEP04-設置調試器**:在 KDevelop 中配置調試器,以便在開發過程中調試代碼。 **STEP05-編譯和調試**:使用 KDevelop 的編譯和調試功能,編譯和調試您的 Linux driver。 **STEP06-進行版本控制**:KDevelop 集成了 Git、SVN 和 Mercurial 等版本控制系統,可以幫助您管理代碼版本。 **STEP07-安裝和測試**:安裝和測試您的 Linux driver,確保其能夠正常工作。 總之,KDevelop 是一個非常強大的開發環境,可以幫助開發人員開發 Linux driver。它提供了編輯器、調試器、版本控制和插件等豐富的功能,可以大大提高開發效率和代碼質量。 ::: ## :memo: III. Ubuntu AnyDesk 安裝 & 使用 ### 1. AnyDesk 下載 download link: https://anydesk.com/zh-tw/downloads/linux?dv=deb_64 ![](https://hackmd.io/_uploads/r1PSOwD43.png) --- ### 2. AnyDesk 安裝 開啟terminal 執行以下指令: ```shell= sudo apt-get install ./anydesk_6.2.1-1_amd64.deb ``` --- ### 3. AnyDesk 密碼設定 STEP01: 開啟 settings ![](https://hackmd.io/_uploads/HytTODPNh.png) STEP02: 點擊 ![](https://hackmd.io/_uploads/rJ6JFPwN2.png) STEP03: 輸入 系統密碼 ![](https://hackmd.io/_uploads/HkUfKwPEh.png) STEP04: click 設定遠端連接密碼 ![](https://hackmd.io/_uploads/SyR2FDDE2.png) --- ## :memo: IV. Windows 10 遠端 ubuntu 使用 MobaXterm http://blog.s2u4o.com/education/self-study/software-settings/raspbianmobaxterm/ ### 1. MobaXterm 安裝 ### 2. MobaXterm 遠端方法 ![](https://hackmd.io/_uploads/Byfw1N4Ln.png) ![](https://hackmd.io/_uploads/Bk3wy44U2.png) #### STEP01: 取得目標板 IP, 帳號,密碼 要讓 MobaXterm 連線時直接帶入帳號,可勾選 Specify username,並於後方欄位輸入帳號。 可點選 Bookmark settings 頁籤,修改 Session Name 欄位,設定 SSH 連線顯示的名稱。 點擊 OK 按鈕,開啟 SSH 連線登錄視窗,帳號,輸入 後按下鍵盤 Enter。 ![](https://hackmd.io/_uploads/HJNuJN4L3.png) #### STEP02: 輸入目標板帳號名稱 ![](https://hackmd.io/_uploads/HygmgVVUn.png) #### STEP03: click Accept ![](https://hackmd.io/_uploads/rkBElEEI3.png) #### STEP04: 輸入目標板 密碼 ![](https://hackmd.io/_uploads/HJHOl448n.png) #### STEP05: 成功登入 ![](https://hackmd.io/_uploads/BJXseN4Ih.png) # *.參考資料: https://www.kdevelop.org/ ###### tags: `Linux`

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully