This file contains hidden or 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
#自分のWSL2に何がインストールされているか確認(コマンドプロンプトで) | |
wsl -l -v | |
# 今回はUbuntu24.04をインストールしたいので、オンラインのインストール可能リストで確認してインストール | |
wsl --list --online | |
wsl --install Ubuntu-24.04 | |
# Ubuntu24.04を起動して、Gemini CLIに必要なものをインストールしていく | |
# Ubuntuを最新にする | |
sudo apt update |
This file contains hidden or 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
# 取得したドメインのDNS設定を完了しておく(TTL : 1800) | |
# Ubuntu 22.04 はインストールしておく | |
# 必要なものを root でインストールとリポジトリ追加 | |
sudo apt install nginx-full gnupg2 openjdk-11-jdk curl apt-transport-https | |
sudo apt-add-repository universe | |
sudo apt update | |
# ホスト名の設定 | |
sudo hostnamectl set-hostname meet.example.com |
This file contains hidden or 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
# Ubuntu 22.04 はインストール完了しておく | |
# Nginx のインストール | |
sudo apt update | |
sudo apt install nginx | |
sudo systemctl start nginx | |
sudo systemctl enable nginx | |
# MariaDB のインストール |
This file contains hidden or 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
#うちはだいぶ前に追加してたんだけど、Ubuntu 16.04 でまだ追加してない人は Redis をバージョンアップするためにこのリポジトリ追加する | |
#Ubuntu 18.04 の人は大丈夫みたい | |
add-apt-repository ppa:chris-lea/redis-server | |
apt update && apt upgrade | |
#Mastodon を止める | |
systemctl stop mastodon-{web,sidekiq,streaming}.service | |
#Mastodon ユーザになる | |
sudo su - mastodon |
This file contains hidden or 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
#まずさっきの Yarn の設定をして、キーを更新して全体のアプデは終わらせておく | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list | |
sudo apt update | |
sudo apt upgrade -y | |
#リリースノートにある Node の 10 入れる | |
curl -sL https://deb.nodesource.com/setup_10.x | bash - | |
sudo apt update | |
sudo apt install nodejs |
This file contains hidden or 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
#Mastodon を止める | |
systemctl stop mastodon-{web,sidekiq,streaming}.service | |
#クラスタを確認 | |
pg_lsclusters | |
#下記のように 2 つの PostgreSQL が見えるはず | |
Ver Cluster Port Status Owner Data directory Log file | |
11 main 5432 online postgres /var/lib/postgresql/11/main /var/log/postgresql/postgresql-11-main.log | |
12 main 5433 online postgres /var/lib/postgresql/12/main /var/log/postgresql/postgresql-12-main.log | |
#このときは 12 の接続先が 5433 になっていて、まだ 11 が通常ポートの 5432 につながった状態 |
This file contains hidden or 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
#Mastodon を止める | |
systemctl stop mastodon-{web,sidekiq,streaming}.service | |
#Mastodon ユーザになる | |
sudo su - mastodon | |
#今回の Ruby 2.6.5 のアップデートをするためにrbenvのおいてあるディレクトリに移り最新版をダウンロード | |
cd ~/.rbenv | |
git pull |
This file contains hidden or 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
#Mastodon を止める | |
systemctl stop mastodon-{web,sidekiq,streaming}.service | |
#Mastodon ユーザになる | |
sudo su - mastodon | |
#Mastodon のディレクトリに戻って v2.9.1 + commit aa9b37822 をもってくる | |
cd ~/live | |
git fetch | |
git checkout aa9b37822 |
This file contains hidden or 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
#Mastodon を止める | |
systemctl stop mastodon-{web,sidekiq,streaming}.service | |
#Mastodon ユーザになる | |
sudo su - mastodon | |
#Mastodon のディレクトリに戻って v2.9.0 をもってくる | |
cd ~/live | |
git fetch | |
git tag |
This file contains hidden or 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
#Mastodon を止める | |
systemctl stop mastodon-{web,sidekiq,streaming}.service | |
#Mastodon ユーザになる | |
sudo su - mastodon | |
#今回の Ruby 2.6.1 のアップデートをするためにrbenvのおいてあるディレクトリに移り最新版をダウンロード | |
cd ~/.rbenv | |
git pull |
NewerOlder