Last active
December 12, 2022 03:42
-
-
Save hironobu-s/926ab82cb50f8fb6baf1841086bf6d3b to your computer and use it in GitHub Desktop.
Initilizing Ubuntu
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
# apt | |
apt update && apt -y install \ | |
fish \ | |
vim-nox \ | |
git \ | |
gh \ | |
findutils \ | |
language-pack-ja \ | |
wget \ | |
curl \ | |
tmux \ | |
lv \ | |
install-info \ | |
aptitude \ | |
dnsutils \ | |
jq \ | |
mosh \ | |
build-essential \ | |
zip \ | |
automake \ | |
grc | |
# timezone | |
sudo timedatectl set-timezone Asia/Tokyo | |
# editor config | |
update-alternatives --config editor | |
# Docker(CE) | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg \ | |
lsb-release | |
sudo mkdir -p /etc/apt/keyrings | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | |
echo \ | |
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
sudo apt-get update | |
sudo apt-get install -y docker-ce docker-ce-cli containerd.io | |
# local user | |
useradd -u 5010 -s /usr/bin/fish -m -d /home/hiro hiro | |
usermod -a -G docker,sudo hiro | |
visudo ### Interactive ### | |
su -l hiro -c /bin/bash | |
git clone https://github.com/hironobu-s/dotfiles ~/dotfiles | |
ln -s ~/dotfiles/fish ~/.config | |
mkdir -p ~/local/bin | |
mkdir -m 0700 ~/.ssh | |
curl https://github.com/hironobu-s.keys > ~/.ssh/authorized_keys | |
chmod 0600 ~/.ssh/authorized_keys | |
# Go | |
# mkdir goroot | |
# wget https://go.dev/dl/go1.19.4.linux-amd64.tar.gz | |
# tar xf go,.... | |
# mv go goroot/current | |
# node.js | |
# curl -fsSL https://deb.nodesource.com/setup_19.x | sudo -E bash - &&\ | |
# sudo apt-get install -y nodejs | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment