0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Ubuntu】基本の初期設定

Last updated at Posted at 2023-06-26

対象読者

Ubuntuに乗り換えた方やデュアルブートを始めた方で、
・サーバサイドのプロジェクトはDockerで立ち上げ
・フロントはDocker使わずにnpm~
という方。

OS

ubuntu 20.04
(注:2025年4月にサポート切れます)

これらをコピペして、サクッと開発を始めちゃいましょう。

apt update
apt upgrade

vim

sudo apt-get install vim

chrome

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome-stable_current_amd64.deb

vscode

sudo snap install code --classic
sudo apt install ./[入手したdebファイル]

docker

sudo apt install \
curl \
apt-transport-https \
gnupg-agent \
software-properties-common \
ca-certificates

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get install docker-ce docker-ce-cli containerd.io

sudo mkdir -p /etc/systemd/system/docker.service.d
sudo vim /etc/systemd/system/docker.service.d/http-proxy.conf
# プロキシーサーバーは利用しないためコメントアウト
[Service]
#  Environment="HTTP_PROXY=http://proxy.example.com:8080/"
#  Environment="HTTPS_PROXY=http://proxy.example.com:8080/"
sudo systemctl daemon-reload
sudo systemctl restart docker
systemctl show --property=Environment docker

sudo docker run --rm hello-world
sudo docker rmi hello-world

docker compose

sudo curl -L "https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

git

sudo apt-get install git
git config --global user.name "ユーザ名"
git config --global user.email メールアドレス

tree

sudo apt install tree

npm

sudo apt install npm

万一不足などありましたら、ご指摘いただけますと幸いですm(_ _)m

Ububtuライフを謳歌しましょう!

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?