asas1asas200
    • 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
    # Ubuntu 疑難排解筆記 # 20.04 LTS ## 安裝時 不要選擇third-party選項,N卡驅動會灌壞,到頭來還是要重灌N卡驅動 重灌N卡驅動步驟: ```=shell sudo apt-get autoremove nvidia* reboot ``` 這裡一定要apt-get 不能用apt ```=shell sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt update sudo apt install ubuntu-drivers-common sudo apt install nvidia-driver-xxx ``` xxx為可以裝的版本號 每張卡不一樣 ```=shell reboot ``` ## 雙螢幕直立問題 雙螢幕時 第二個螢幕為直立 會變成奇怪的滑動模式 然後原本的螢幕有一部分滑鼠會到不了 Nvidia 驅動裡面 把underscan的選項隨便調直後再調回來 ![說明圖](https://i.imgur.com/wtM9uUK.png) ## 內建螢幕突然不能用 但是外接螢幕正常 可能是X11的檔案被改爛了 砍掉重來 ```=shell cd /etc/X11 sudo rm xorg.conf sudo touch xorg.conf ``` # 18.04 LTS ## MSI 筆電喇叭無聲 ```=shell vim admin:///usr/share/pulseaudio/alsa-mixer/paths/analog-output-speaker.conf ``` 將 ``` [Element Headphone] switch = off volume = off ``` 改為 ``` [Element Headphone] switch = off volume = merge ``` ## telegram 無法輸入中文 先檢查此目錄下是否有**telegramdesktop.desktop** 檔案 ```=shell cd ~/.local/share/applications/ ``` 若沒有的話先刪掉原本的 telegram 去 telegram 的[官方網站](https://telegram.org/)下載 **tar.xz** 檔回來解壓縮 回到剛剛的目錄會發現他出先了 進入設定檔 ```desktop [Desktop Entry] Version=1.0 Name=Telegram Desktop Comment=Official desktop version of Telegram messaging app TryExec=/home/zeng/下載/tele/Telegram/Telegram Exec=/home/zeng/下載/tele/Telegram/Telegram -- %u Icon=telegram Terminal=false StartupWMClass=TelegramDesktop Type=Application Categories=Chat;Network;InstantMessaging;Qt; MimeType=x-scheme-handler/tg; Keywords=tg;chat;im;messaging;messenger;sms;tdesktop; X-GNOME-UsesNotifications=true ``` 改為慣用的中文輸入法\(gcin、ibus、fcictx...\) ```desktop Exec=env QT_IM_MODULE=ibus /home/zeng/下載/tele/Telegram/Telegram -- %u ``` ## 強制關機造成無法開機的硬碟錯誤\( The root filesystem on /dev/sda1 requires a manual fsck \) ```=shell (initramfs) fsck /dev/sda1 ``` ## NetworkManager 造成的開機緩慢 可以在開機成功之後先用 ```=shell systemd-analyze blame ``` 查看每個項目所花的開機時間 ```=shell sudo vim /etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service ``` 將 timeout 修改成10或1 ```service ExecStart=/usr/bin/nm-online -s -q --timeout=30 ``` ## Ctrl + Alt + T 不會開啟終端機 可能是預設的terminal被取代掉了 將預設的terminal變回來 ```shell gsettings set org.gnome.desktop.default-applications.terminal exec 'gnome-terminal' ``` 或是直接在快捷鍵那邊重新用一個\(記得先把原本的取消掉\) |名稱|open terminal| |-|-| |指令|**gnome-terminal**| |快捷鍵|**Ctrl+Alt+T**| ## 自訂 gnome-shell icon icon放在/usr/share/themes/當前主題/gnome-shell/assets P.S. 不一定 要看 gnome-shell.css 裡面怎麼寫 ## BadTLP BadDLLP 開機錯誤 開機時grub選單```quiet splash```後面加上```pci=nommconf``` 成功後修改grub預設選單 ```=shell cd /etc/default/ sudo vim grub ``` 如果修改上面的檔案無效的話 ```=shell cd /boot/grub sudo vim grub.cfg ``` 自己重新開機確認 ## 快速編譯並在新視窗執行cpp檔案 在`~/.bashrc`裡面新增 ```=shell function docompile (){ local srcname="${1}" local objname="${1/.cpp/.out}" g++ -o "$objname" "$srcname" -Wall if [ $? -eq 0 ]; then gnome-terminal --working-directory="$PWD" -- bash -c "./${objname};bash" fi } alias gg='docompile' ``` gg可以設成自己要的別名 編譯時執行 ```=shell gg 檔案.cpp ``` 就可以了 ## restart gnome桌面後變得模糊 但是登出和重新開機後恢復正常 去nvidia-settings的Antialiasing Setting標籤 取消勾選Enable FXAA ![](https://i.imgur.com/sv3G17S.png)

    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