0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

開発環境用 Ubuntu 24.04で最初に打つリスト

0
Last updated at Posted at 2025-12-29

開発環境用 Ubuntu 24.04で最初に打つリスト

どんな環境でも必ず

sudo apt update
sudo apt install build-essential

Pythonで開発するとき

python3-fullをインストールしておかないとvenvがおかしくなる。

sudo apt install python3-full

MySQL(公式版)で開発するとき

インストール途中にCUIでrootパスワード設定ができる。
この段階ではrootパスワードを設定しないほうがいい。

wget https://dev.mysql.com/get/mysql-apt-config_0.8.36-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.36-1_all.deb
sudo apt update
sudo apt install mysql-server
sudo systemctl enable mysql.service
sudo systemctl start mysql.service

デフォルトではrootユーザーはUNIXソケットでのログインできないように設定されている。
これだと、WSL等では不便なので、rootユーザーでもネットワークログインできるようにする。

sudo mysql
ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY '';
0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?