Skip to content

i9wa4/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

1. Target OS

  • macOS
  • Ubuntu 24.04 LTS
  • Ubuntu 24.04 LTS (Windows, WSL2)

2. OS-specific Pre Installation

2.1. Windows

  1. Install WSL2 and Ubuntu.

  2. Launch Ubuntu with PowerShell.

    wsl
    

3. Installation

  1. Establish an SSH connection to GitHub.

  2. Add the GitHub Signing Keys and Authentication Keys.

  3. Execute a git command to install Command Line Developer Tools.

    git --version
  4. Execute the following command.

    git clone git@github.com:i9wa4/dotfiles ~/ghq/github.com/i9wa4/dotfiles \
    && cd ~/ghq/github.com/i9wa4/dotfiles \
    && _uname="$$(uname -a)"; \
    if [ "$$(echo "$${_uname}" | grep Darwin)" ]; then \
      echo 'Hello, macOS!'; \
      make mac-init; \
    elif [ "$$(echo "$${_uname}" | grep Ubuntu)" ]; then \
      echo 'Hello, Ubuntu'; \
      sudo apt install -y make; \
      make ubuntu-server-init; \
    elif [ "$$(echo "$${_uname}" | grep WSL2)" ]; then \
      echo 'Hello, WSL2!'; \
      sudo apt install -y make; \
      make wsl-init; \
    elif [ "$$(echo "$${_uname}" | grep arm)" ]; then \
      echo 'Hello, Raspberry Pi!'; \
    elif [ "$$(echo "$${_uname}" | grep el7)" ]; then \
      echo 'Hello, CentOS!'; \
    else \
      echo 'Which OS are you using?'; \
    fi
  5. Restart the terminal and execute the following command.

    cd ~/ghq/github.com/i9wa4/dotfiles && make common-package-init

4. OS-specific Post Installation

4.1. Windows

  1. Run C:\work\util\bin\win-copy.bat.
  2. Run C:\work\util\bin\winget-upgrade.bat.

4.1.1. CorvusSKK

  1. Install CorvusSKK.
  2. Load the dictionaries in %APPDATA%\CorvusSKK.
  3. Configuration:
    • キー1
      • 変換位置 ;
    • キー2
      • ひらがな C\x4B (<C-k>)

4.2. macOS

Mac 環境構築手順 – uma-chan’s page

4.2.1. macSKK

  1. Enable the dictionaries.
  2. Configuration:
    • キーバインド
      • ひらがなモード C-k

5. OS-common Post Installation

5.1. AWS CLI

5.2. gh

  1. Choose SSH for Git operation protocol.
  2. Skip uploading SSH public key.
  3. Login with a web browser: https://github.com/login/device.

5.3. Web Browser

5.3.1. Synchronization

  • Password: No
  • Address: No
  • Google Pay: No
  • The Others: Yes

5.3.2. Search Engine

  • Google Japanese Search
    • https://www.google.com/search?q=%s
  • Google English Search
    • https://www.google.com/search?q=%s&gl=us&hl=en&gws_rd=cr&pws=0
  • DuckDuckGo Japanese Search
    • https://duckduckgo.com/?q=%s&kl=jp-jp&kz=-1&kav=1&kaf=1&k1=-1&ia=web
  • DuckDuckGo English Search
    • https://duckduckgo.com/?q=%s&kl=us-en&kz=-1&kav=1&kaf=1&k1=-1&ia=web

5.3.3. Extension

  • Flow Chat for YouTube Live
  • Markdown Preview Plus

5.4. Slack

  • GitHub Notifications
    • /github subscribe owner/repo reviews,comments,branches,commits:*

5.5. SSH Connection to Ubuntu Server

cf. Linux サーバー:SSH 設定(2024年7月更新)

  1. [Server] Set PasswordAuthentication yes in /etc/ssh/sshd_config.

  2. [Server] Restart ssh.

    [Server] $ sudo systemctl restart ssh.service
  3. Execute the following commands.

    [Client] $ ssh-keygen -t ed25519
    [Client] $ ssh -p port username@192.168.xxx.xxx  # or hostname
    [Server] $ exit
    [Client] $ scp -P port ~/.ssh/id_ed25519.pub username@hostname:~/.ssh/register_key
    [Client] $ ssh -p port username@192.168.xxx.xxx
    [Server] $ cd ~/.ssh
    [Server] $ cat register_key >> authorized_keys
    [Server] $ chmod 600 authorized_keys
    [Server] $ rm register_key
  4. [Server] Set PasswordAuthentication no in /etc/ssh/sshd_config.

  5. [Server] Restart ssh.

    [Server] $ sudo systemctl restart ssh.service
  6. [Client] Configure ~/.ssh/config

    Host sandbox
        HostName        192.168.xxx.xxx
        Port            port
        IdentityFile    ~/.ssh/id_ed25519
        User            username

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published