Eai
    • 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
    Arch やったことメモ === 自分による自分のためのメモ。もしよければ助けて。 :::info 多分ログインしてれば(してなくても?)カーソルを合わせた行の右に <i class="fa fa-comment-o" aria-hidden="true"></i> が出てるので、それクリックすればコメントつけることができます。 リプライでもいいよ。 ::: --- 状態: インストールガイド完走。以上。 [一般的な推奨事項 - ArchWiki](https://wiki.archlinux.jp/index.php/%E4%B8%80%E8%88%AC%E7%9A%84%E3%81%AA%E6%8E%A8%E5%A5%A8%E4%BA%8B%E9%A0%85) ## インターネットを直す `systemctl enable --now dhcpcd` ## ユーザーを作る [ユーザーとグループ - ArchWiki](https://wiki.archlinux.jp/index.php/%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E3%81%A8%E3%82%B0%E3%83%AB%E3%83%BC%E3%83%97#.E3.83.A6.E3.83.BC.E3.82.B6.E3.83.BC.E7.AE.A1.E7.90.86) ```bash useradd -m -G wheel eai passwd eai ``` ### sudoれるようにする ```/etc/sudoers.d/``` にファイルが有る場合はそれが上書きされるのでそこに追記、なければ`visudo` ``` eai ALL=NOPASSWD: ALL ``` ### 証明書いれる ```bash mkdir -p /home/eai/.ssh curl https://github.com/eai04191.keys >> /home/eai/.ssh/authorized_keys chown -R eai: /home/eai/.ssh chmod 700 /home/eai/.ssh chmod 600 /home/eai/.ssh/authorized_keys ``` ### sshいれる ```bash pacman -S openssh systemctl enable --now openssh ``` sshできる ## pacman ### ミラーの設定 ```bash echo 'Server = https://jpn.mirror.pkgbuild.com/$repo/os/$arch' > /etc/pacman.d/mirrorlist ``` 既存のミラー全部吹き飛ぶけどまあいいよね ### 更新 ```bash pacman -Syu ``` ## yay ```bash pacman -S git ``` [Jguer/yay: Yet another Yogurt - An AUR Helper written in Go](https://github.com/Jguer/yay) ## DE 今日はKDE [KDE - ArchWiki](https://wiki.archlinux.jp/index.php/KDE) ```bash yay -S xorg-server yay -S xf86-video-intel ``` ```bash yay -S plasma-meta sddm systemctl enable --now sddm ``` ## 適当に欲しいもの入れる ```bash yay -S konsole dolphin google-chrome rescuetime gitkraken visual-studio-code-bin discord ``` ### RescueTime `rescuetime`で起動、初回ログイン。 ##### 自動起動の設定 KDEシステム設定→ワークスペース→起動と終了→自動起動 `プログラムを追加`入力欄に`rescuetime`でOK ## VirtualHere いわゆるUSB/IP。WindowsにつないでるキーボードをArchで使いたい。 でも接続しないと使えない(当たり前)なのでログイン画面で使えない(多分コンソールクライアントでよしなにすればできる) [Home | VirtualHere](https://www.virtualhere.com/) 無料版だと1デバイスまで。つまりマウスとキーボードどちらか。USB切替器が来るまではこれで凌ぐ。 ServerをWindowsで動かしておく。 サイトからClientのGUIを落とす。ClientはAurにない。 gtk2がないと動かないので入れておく ```bash yay -S gtk2 ``` chmod+xして、コンソールから起動する。なぜかDolphinからは起動できない。 起動したらLAN内のハブが出てるので、右クリックして`Use this Device`とか選べば使える。便利。 後述のxmodmapでいじったキーが反映されないことがあった。VHで接続してから`xmodmap ~/.Xmodmap`で適用する必要がある模様。 ## 広告除去 Adguardを使いたいがLinux版はないのでDNSで我慢する [AdGuard DNS の設定方法](https://adguard.com/ja/adguard-dns/overview.html) [ドメイン名前解決 - ArchWiki](https://wiki.archlinux.jp/index.php/%E3%83%89%E3%83%A1%E3%82%A4%E3%83%B3%E5%90%8D%E5%89%8D%E8%A7%A3%E6%B1%BA) `resolv.conf` は他のソフトにいじられるので `resolv.conf.head` をいじって入れてもらう。 ```bash sudo vim /etc/resolv.conf.head ``` `nameserver 111.~` と1行ずつ書く `resolvconf -u` で`resolv.conf`再作成して終わり ## 日本語入力 とりあえずFcitxとMozc [Fcitx - ArchWiki](https://wiki.archlinux.jp/index.php/Fcitx) ```bash yay -S fcitx-mozc fcitx-im fcitx-skin-material kcm-fcitx fcitx-autostart ``` 入力メソッドの設定開いてmozc追加したら使えた気がする `.xprofile`に追記もする ```bash export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export XMODIFIERS=@im=fcitx ``` スキンをmaterialにしておくと幸せになれる。(右下タスクトレイみたいなところ→入力メソッド→スキン) ## マウスホイール :::warning やめた ::: 1行じゃこまる [imwheel - ArchWiki](https://wiki.archlinux.jp/index.php/Imwheel) ```bash yay -S imwheel ``` ```bash vim ~/.imwheelrc ``` ``` ".*" None, Up, Button4, 3 None, Down, Button5, 2 ``` ```bash imwheel ``` で起動。多分自動起動に入れると良い 全部でホイールぶっ飛ぶので困ることもある(ホイールでタブやウィンドウ切り替えたり、dolphinでめっちゃスクロールしてしまったり) ## Caps2Ctrl Aの左がCaps Lockじゃこまる ### xkeysnail [mooz/xkeysnail: Yet another keyboard remapping tool for X environment](https://github.com/mooz/xkeysnail) pipで入るv0.1.0では`--watch`が使えないのでmasterから入れる #### 入れる ```bash yay -S python-pip git clone --depth 1 https://github.com/mooz/xkeysnail.git cd xkeysnail sudo pip3 install --upgrade . ``` #### 設定 ```bash mkdir -p /etc/opt/xkeysnail/ sudo vim /etc/opt/xkeysnail/config.py ``` で設定を書く。 ```python # -*- coding: utf-8 -*- import re from xkeysnail.transform import * define_modmap({ Key.CAPSLOCK: Key.LEFT_CTRL }) ``` CapsをCtrlにするだけ簡単 #### 起動 ```bash sudo xkeysnail --watch /etc/opt/xkeysnail/config.py ``` `--watch`をつけることでVirtualHereであとから接続したキーボードにも適用させることができる 神ポイント ## グラボ装着 ```bash yay -R xf86-video-intel ``` ```bash yay -S nvidia ``` ## カーソルがバカでかい ワークスペーステーマ→Coursors→Size ## 解決したいがやり方がわからないこと https://github.com/eai04191/my-arch-way/issues ## Manjaroに移行した [Pacman-mirrorsコマンドによるミラーサーバーリストの更新 - Manjaro Linux](https://wiki.manjaro.org/index.php?title=Pacman-mirrors%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%81%AB%E3%82%88%E3%82%8B%E3%83%9F%E3%83%A9%E3%83%BC%E3%82%B5%E3%83%BC%E3%83%90%E3%83%BC%E3%83%AA%E3%82%B9%E3%83%88%E3%81%AE%E6%9B%B4%E6%96%B0) ```bash sudo nano /etc/sudoers.d/10-installer ``` ```bash sudo systemctl enable --now sshd ``` ```bash sudo pacman -R vlc-nightly # ビルドに時間かかるので # Octopiからyayを入れる # 既存パッケを更新する yay -S vim visual-studio-code-bin ttf-migmix ttf-twemoji ``` ```bash export DISPLAY=192.168.1.41:0 ```

    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