2022年12月7日水曜日

AlmaLinux 9/Rocky Linux 9にVivaldiブラウザをインストールする

Vivaldiは高速・セキュア・フレキシブルなブラウザです。

〇Vivaldiの画面(AlmaLinux 9)

〇Vivaldiの画面(Rocky Linux 9)

インストール方法

以下のコマンドを実行します。
wget --inet4-only https://downloads.vivaldi.com/stable/vivaldi-stable-5.5.2805.42-1.x86_64.rpm

sudo dnf -y install ./vivaldi-stable-5.5.2805.42-1.x86_64.rpm

関連情報

・Vivaldiに関する他の記事は、こちらを参照してください。

2022年12月6日火曜日

Ubuntu 22.04に壁紙チェンジャーアプリVarietyをインストールする

Varietyは指定した間隔で壁紙を変えてくれる壁紙チェンジャーアプリです。

〇Varietyの画面(Ubuntu 22.04)

Ubuntu Softwareによるインストール方法

1. Ubuntu Softwareを起動して、varietyを検索します。

2.Varietyのインストールボタンをクリックします

コマンドによるインストール方法

以下のコマンドを実行します
sudo apt-get update

sudo apt-get -y install variety

関連情報

・Varietyのwebサイト
https://peterlevi.com/variety/

2022年12月5日月曜日

Ubuntu 22.04にTEAエディターをインストールする

TEAは多機能なエディターです。エディター以外にもカレンダー機能も付いています。

〇TEAエディターの画面

Ubuntu Softwareによるインストール方法

1. Ubuntu Softwareを起動して、TEAを検索します。

2.TEAのインストールボタンをクリックします

コマンドによるインストール方法

以下のコマンドを実行します。
sudo apt-get update

sudo apt-get -y install tea

関連情報

・TEAエディターのgithubリポジトリ
https://github.com/psemiletov/tea-qt

2022年12月4日日曜日

AlmaLinux 9/Rocky Linux 9にPrettierをインストールする

PrettierでJavascriptやHTMLなどのコードを整形する事ができます。

インストール手順

以下のコマンドを実行します。
# install node.js
curl -sL https://rpm.nodesource.com/setup_14.x | sudo bash -

sudo dnf -y install nodejs

# install yarn
curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo

sudo yum -y install yarn

# install prettier
sudo yarn global add prettier

テスト実行

$ echo '<!DOCTYPE html><html lang="ja"><head><meta charset="UTF-8"><title>sample</title></head><body>サンプル</body></html>' | prettier --stdin-filepath test.html
<!DOCTYPE html>
<html lang="ja">
  <head>
    <meta charset="UTF-8" />
    <title>sample</title>
  </head>
  <body>
    サンプル
  </body>
</html>

関連情報

・プロジェクトgithubリポジトリ
https://github.com/prettier/prettier

2022年12月3日土曜日

AlmaLinux 9/Rocky Linux 9にP3X Redis UIをインストールする

P3X Redis UIはオープンソースのRedisクライアントです。

〇P3X Redis UIの画面(AlmaLinux 9)

〇P3X Redis UIの画面(Rocky Linux 9)

インストール方法

以下のコマンドを実行します。
1. Redisのインストール(既にRedisサーバがある場合はインストールしなくても大丈夫です)
sudo dnf -y install redis

sudo systemctl enable redis

sudo systemctl start redis

# 動作確認は以下のコマンドを実行します。
redis-cli << EOF
ping
flushall
set mykey "hello world."
get mykey
EOF

2. P3X Redis UIのインストール
sudo mkdir -p /opt/redis-ui

cd /opt/redis-ui

sudo wget https://github.com/patrikx3/redis-ui/releases/download/v2022.10.105/P3X-Redis-UI-2022.10.105.AppImage

sudo chmod +x P3X-Redis-UI-2022.10.105.AppImage

cat << EOF | sudo tee /usr/share/applications/redis-ui.desktop
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=/opt/redis-ui/P3X-Redis-UI-2022.10.105.AppImage
Name=P3X Redis UI
Categories=Development;
EOF

関連情報

・P3X Redis UIのgithubリポジトリ
https://github.com/patrikx3/redis-ui

2022年12月2日金曜日

Ubuntu 22.04にShoebotをインストールする

Shoebot上でPythonを使用して、ベクターグラフィックスを描画することが出来ます。

〇Shoebotの画面

インストール方法

以下のコマンドを実行します。
sudo apt-get update

sudo apt-get -y install build-essential gir1.2-gtk-3.0 gir1.2-rsvg-2.0 gobject-introspection libgirepository1.0-dev libglib2.0-dev libgtksourceview-3.0-dev libjpeg-dev libpango1.0-dev python3-dev python3-gi python3-gi-cairo python3-wrapt python3-setuptools

wget https://github.com/shoebot/shoebot/archive/refs/tags/v1.4.tar.gz

tar xvfz v1.4.tar.gz

sudo mv ./shoebot-1.4 /opt

cd /opt/shoebot-1.4

sudo python3 setup.py install

cat << EOF | sudo tee /usr/share/applications/shoebot.desktop
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=/usr/local/bin/shoebot
Name=Shoebot
Categories=Development;
Icon=/opt/shoebot-1.4/assets/shoebot-ide.png
EOF

関連情報

・Shoebotのウェブサイト
http://shoebot.net/

2022年12月1日木曜日

Debian 11(Bullseye)にContext Freeをインストールする

Context Freeはシンプルなスクリプトから美しい画像を生成する事ができます。

インストール方法

以下のコマンドを実行します。
sudo apt-get -y install contextfree

# サンプルの実行
wget https://www.contextfreeart.org/gallery/uploads/7a/59/7a598fa290a056e9f09e7a29c2c90e7e/4113/galaxy.cfdg
cfdg galaxy.cfdg galaxy.png

〇サンプルの出力結果

関連情報

・Context Freeのwebサイト
https://www.contextfreeart.org/index.html

・様々なユーザが作成した作品を見ることのできるギャラリー
https://www.contextfreeart.org/gallery/index.php