Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@momoseijin
momoseijin / How to install Jitsi Meet on Ubuntu 22.04
Last active November 11, 2023 07:57
How to install Jitsi Meet on Ubuntu 22.04
# 取得したドメインのDNS設定を完了しておく(TTL : 1800)
# Ubuntu 22.04 はインストールしておく
# 必要なものを root でインストールとリポジトリ追加
sudo apt install nginx gnupg2 openjdk-11-jdk curl apt-transport-https
sudo apt-add-repository universe
sudo apt update
# ホスト名の設定
sudo hostnamectl set-hostname meet.example.com
@momoseijin
momoseijin / How to install WordPress with Nginx and MariaDB on Ubuntu 22.04
Last active December 30, 2023 00:52
How to install WordPress with Nginx and MariaDB on Ubuntu 22.04
# Ubuntu 22.04 はインストール完了しておく
# Nginx のインストール
sudo apt update
sudo apt install nginx
sudo systemctl start nginx
sudo systemctl enable nginx
# MariaDB のインストール
@momoseijin
momoseijin / Update from Mastodon v3.1.2 to v3.1.3
Last active May 13, 2020 00:18
Update from Mastodon v3.1.2 to v3.1.3
#うちはだいぶ前に追加してたんだけど、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
@momoseijin
momoseijin / Update from Mastodon v3.0.1 to v3.1.0
Last active May 15, 2020 05:03
Update from Mastodon v3.0.1 to v3.1.0
#まずさっきの 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
@momoseijin
momoseijin / Upgrade PostgreSQL 11 to 12 , Mastodon on Ubuntu 16.04
Last active November 13, 2022 00:15
Upgrade PostgreSQL 11 to 12 , Mastodon on Ubuntu 16.04
#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 につながった状態
@momoseijin
momoseijin / Update from Mastodon v2.9.3 to v3.0.0
Last active October 5, 2019 12:06
Update from Mastodon v2.9.3 to v3.0.0
#Mastodon を止める
systemctl stop mastodon-{web,sidekiq,streaming}.service
#Mastodon ユーザになる
sudo su - mastodon
#今回の Ruby 2.6.5 のアップデートをするためにrbenvのおいてあるディレクトリに移り最新版をダウンロード
cd ~/.rbenv
git pull
@momoseijin
momoseijin / Upadte from Mastodon v2.9.0 to v2.9.1 + commit aa9b37822
Created June 22, 2019 07:53
Upadte from Mastodon v2.9.0 to v2.9.1 + commit aa9b37822
#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
@momoseijin
momoseijin / Update from Mastodon v2.8.4 to Mastodon v2.9.0
Last active June 14, 2019 10:23
Update from Mastodon v2.8.4 to Mastodon v2.9.0
#Mastodon を止める
systemctl stop mastodon-{web,sidekiq,streaming}.service
#Mastodon ユーザになる
sudo su - mastodon
#Mastodon のディレクトリに戻って v2.9.0 をもってくる
cd ~/live
git fetch
git tag
@momoseijin
momoseijin / Update to Mastodon v2.8.0
Last active April 17, 2019 14:02
Update to Mastodon v2.8.0
#Mastodon を止める
systemctl stop mastodon-{web,sidekiq,streaming}.service
#Mastodon ユーザになる
sudo su - mastodon
#今回の Ruby 2.6.1 のアップデートをするためにrbenvのおいてあるディレクトリに移り最新版をダウンロード
cd ~/.rbenv
git pull
@momoseijin
momoseijin / keybase.md
Last active April 5, 2019 10:10
Keybase.md

Keybase proof

I hereby claim:

  • I am momoseijin on github.
  • I am momoseijin (https://keybase.io/momoseijin) on keybase.
  • I have a public key ASCdUT5TvUqsCH2XCLd2EWhnUx6SaYCpHo2MPi4g-x4pvwo

To claim this, I am signing this object: