sasaplus1 / setup

setup scripts for my environment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

setup

test

setup scripts and note for my environment

How to setup

Ubuntu

execute command the below if Ubuntu:

$ sudo apt --yes update
$ sudo apt --yes install build-essential curl file git

macOS

install Xcode and MacPorts if macOS.

If you don't want to install Xcode, install CommandLineTools instead:

$ sudo rm -rf /Library/Developer/CommandLineTools
$ sudo xcode-select --install
$ sudo xcode-select --switch /Library/Developer/CommandLineTools

Setup

setup my environment:

$ make setup
$ make install-ports # or make install-apt-packages

Setup without repository

$ curl -L https://git.io/sasaplus1-setup -o Makefile
$ make setup
$ make install-ports # or make install-apt-packages

Tasks

Install browser and password manager extension

Download with curl:

$ curl -fsSL 'https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=osx&lang=ja-JP-mac' -o firefox.dmg
Create SSH key
$ mkdir ~/.ssh
$ chmod 0700 ~/.ssh
$ cd ~/.ssh
$ ssh-keygen -t ed25519 -C '[email]' -f [service]_id_ed25519
Register public key to GitHub
$ gh auth login
$ gh auth refresh -h github.com -s admin:public_key
$ gh ssh-key add -t '[email] / [hostname]' key.pub

if you can't use gh at this time, use download-gh.sh.

Create .ssh/config
Host github.com
    Compression yes
    HostName github.com
    IdentitiesOnly yes
    IdentityFile ~/.ssh/key
    User git
Setup dotfiles
$ mkdir -p ~/.ghq/github.com/sasaplus1
$ cd $_
$ git clone ssh://git@github.com/sasaplus1/dotfiles.git
$ cd dotfiles
$ less README.md
$ # setup dotfiles
Install applications for macOS
Configure browser, import browser bookmarks and install browser extensions
Install Visual Studio Code extensions
Change configurations and copy files
  • System Preferences
  • Set キーボード => ユーザ辞書
  • Copy ~/.ssh/config
  • Copy $HOME files
Install PWA with Google Chrome
Download virtual machines if needed

Related

License

The MIT license.

About

setup scripts for my environment

License:MIT License


Languages

Language:Makefile 96.5%Language:Dockerfile 3.5%