Last active
March 12, 2023 16:30
-
-
Save YasunoriMATSUOKA/9bd7847124f17335d2408f404f74fd2e to your computer and use it in GitHub Desktop.
windows11pro-setup-memo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd ~/ | |
# Update | |
sudo apt update -y | |
sudo apt upgrade -y | |
# Install desktop environment | |
sudo apt install ubuntu-desktop | |
# Reboot | |
sudo reboot | |
# Update | |
sudo apt update -y | |
sudo apt upgrade -y | |
# Install apps to test gui | |
sudo apt install gedit -y | |
sudo apt install gimp -y | |
sudo apt install nautilus -y | |
sudo apt install vlc -y | |
sudo apt install x11-apps -y | |
# Install Google Chrome | |
cd /tmp | |
sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo dpkg -i google-chrome-stable_current_amd64.deb | |
sudo apt install --fix-broken -y | |
sudo dpkg -i google-chrome-stable_current_amd64.deb | |
cd ~/ | |
# Install Microsoft Edge | |
# https://www.microsoftedgeinsider.com/ja-jp/download?platform=linux-deb | |
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg | |
sudo install -o root -g root -m 644 microsoft.gpg /usr/share/keyrings/ | |
sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/edge stable main" > /etc/apt/sources.list.d/microsoft-edge-beta.list' | |
sudo rm microsoft.gpg | |
sudo apt update -y | |
sudo apt install microsoft-edge-beta -y | |
# Development environments | |
# Node.js | |
curl https://get.volta.sh | bash | |
exec -l $SHELL | |
volta -v | |
volta install node@18 | |
node -v | |
npm -v | |
# Deno | |
curl -fsSL https://deno.land/x/install/install.sh | sh | |
sed -i '$a # Deno\nexport DENO_INSTALL="/home/yasunori_matsuoka/.deno"\nexport PATH="$DENO_INSTALL/bin:$PATH"\n' ~/.bashrc | |
exec -l $SHELL | |
deno --version | |
# Bun | |
curl -fsSL https://bun.sh/install | bash | |
exec -l $SHELL | |
bun -v | |
# Java(17) | |
sudo apt update -y | |
sudo apt install -y openjdk-17-jdk | |
java --version | |
# Go(1.20.0) | |
# https://go.dev/doc/install | |
curl -O https://dl.google.com/go/go1.20.linux-amd64.tar.gz | |
sudo rm -rf /usr/local/go | |
sudo tar -C /usr/local -xzf go1.20.linux-amd64.tar.gz | |
sed -i '$a # Go\nexport PATH=$PATH:/usr/local/go/bin\n' ~/.bashrc | |
exec -l $SHELL | |
go version | |
# Rust | |
# https://www.rust-lang.org/ja/learn/get-started | |
# Note: tlsv1.2 -> 1.3 change is necessary | |
curl --proto '=https' --tlsv1.3 -sSf https://sh.rustup.rs | sh | |
# 手動操作でinstallを選択する必要あり | |
exec -l $SHELL | |
rustc -V | |
rustup -V |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1stly, execute windows update completely | |
# 2ndly, install winget from Microsoft Store manually and change powershell policy to enable execution of ps1 extension file | |
# 3rd, install various apps and setup dev environments with winget | |
# Browser | |
winget install "Google.Chrome" | |
winget install "Mozilla.Firefox" | |
# Remote Desktop | |
winget install "Google.ChromeRemoteDesktop" | |
# Password | |
winget install "AgileBits.1Password" | |
# Development | |
winget install "Git.Git" | |
winget install "GitHub.cli" | |
winget install "Volta.Volta" # Node.js | |
winget install "DenoLand.Deno" | |
winget install "Microsoft.OpenJDK.17" | |
winget install "Python.Python.3.11" | |
winget install "GoLang.Go.1.19" | |
winget install "RubyInstallerTeam.RubyWithDevKit.3.1" | |
winget install "Rustlang.Rust.MSVC" | |
winget install "Microsoft.VisualStudio.2022.BuildTools" | |
winget install "Docker.DockerDesktop" | |
winget install "Microsoft.VisualStudioCode" | |
winget install "Google.AndroidStudio" | |
winget install "JetBrains.IntelliJIDEA.Community" | |
winget install "Postman.Postman" | |
winget install "Stoplight.Studio" | |
winget install "Figma.Figma" | |
winget install "WinSCP.WinSCP" | |
winget install "TeraTermProject.teraterm" | |
winget install "PuTTY.PuTTY" | |
# Communication | |
winget install "SlackTechnologies.Slack" | |
winget install "Discord.Discord" | |
winget install "Telegram.TelegramDesktop" | |
winget install "Notion.Notion" | |
# Movie | |
winget install "OBSProject.OBSStudio" | |
winget install "VideoLAN.VLC" | |
# 4th, setup wsl2 | |
wsl --update | |
wsl --install Ubuntu | |
# 5h, git settings(example: hostname=msi) | |
# https://zenn.dev/schnell/articles/0e1c2e9db5c08d | |
# https://blog.katsubemakito.net/git/git-config-1st | |
ssh-keygen -t ed25519 -C msi -f id_ed25519_msi | |
# Create ~/.ssh/config file | |
# Host github github.com | |
# HostName github.com | |
# User git | |
# IdentityFile ~/.ssh/id_ed25519_msi | |
ssh -T github | |
git config --global user.name "YasunoriMATSUOKA" | |
git config --global user.email "yasunori.matsuoka@gmail.com" | |
git config --global init.defaultBranch main | |
# Windows CRLF | |
git config --global core.autocrlf input | |
git config --global core.ignorecase false | |
git config --global color.ui true | |
git config --global core.quotepath false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment