[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
ラベル Debian の投稿を表示しています。 すべての投稿を表示
ラベル Debian の投稿を表示しています。 すべての投稿を表示

2023年3月10日金曜日

Raspberry Pi OS(Bullseye)/Debian 11/Ubuntu 22.04にAlsaplayer-gtkオーディオプレイヤーをインストールする

Alsaplayer-gtkはコンパクトなオーディオプレイヤーです。

〇Alsaplayer-gtlの画面(Raspberry Pi OS)

〇Alsaplayer-gtlの画面(Debian 11 Bullseye)

〇Alsaplayer-gtlの画面(Ubuntu 22.04)

インストール方法 以下のコマンドを実行します。
sudo apt-get update

sudo apt-get -y install alsaplayer-gtk

関連情報 ・Alsa Playerのwebサイト
http://alsaplayer.sourceforge.net/

2023年3月9日木曜日

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

Miniflux2はGo製のfeed readerです。登録したウェブサイトの記事をRSSを通して読むことができます。

〇Minifulx2の画面

インストール方法 1. PostgreSQLのインストール
sudo apt-get update

sudo apt-get -y install postgresql-13

echo "listen_addresses='*'" | sudo tee -a /etc/postgresql/13/main/postgresql.conf

echo "host    all         all         127.0.0.1/32          password" | sudo tee -a /etc/postgresql/13/main/pg_hba.conf

※ネットワーク設定は適宜変更してください
echo "host    all         all         192.168.1.0/24          password" | sudo tee -a /etc/postgresql/13/main/pg_hba.conf

sudo systemctl restart postgresql.service

※パスワードなど適宜変更してください
sudo su - postgres << EOF
psql -c "
alter user postgres with password 'postgres';
create user miniflux2 with password 'miniflux2';
"
psql -c "
create database miniflux2 owner miniflux2 encoding 'UTF8' lc_collate 'ja_JP.UTF-8' lc_ctype 'ja_JP.UTF-8' template 'template0';
"
EOF

2. minifulx2のインストールする
wget https://github.com/miniflux/v2/releases/download/2.0.41/miniflux_2.0.41_amd64.deb

sudo dpkg -i ./miniflux_2.0.41_amd64.deb

echo "DATABSE_URL=postgres://miniflux2:miniflux2@localhost/miniflux2?sslmode=disable" | sudo tee -a /etc/miniflux.conf

echo "LISTEN_ADDR=0.0.0.0:8080" | sudo tee -a /etc/miniflux.conf

miniflux -migrate

sudo apt-get -y install expect

※パスワードなど適宜変更してください
/usr/bin/expect << EOF
spawn miniflux -create-admin
expect "Enter Username:"
send "admin\\r"
expect "Enter Password:"
send "admin123\\r"
expect eof
exit
EOF

sudo systemctl enable miniflux

sudo systemctl start miniflux

3. ブラウザからhttp://<サーバ名またはIPアドレス>:8080/ にアクセスします
ユーザ名はadmin、パスワードはadmin123です。
サンプルのRSS http://serverarekore.blogspot.com/feeds/posts/default

関連情報 ・Minifluxに関する情報はこちらを参照してください。

2023年3月7日火曜日

データ操作ツールMillerをUbuntu 22.04/Debian 11/Raspberry Pi OS(Bullseye)にインストールする

Millerで簡単にデータをフィルタリング、整形したり、操作することが出来ます。

Millerのインストール方法
sudo apt-get update

sudo apt-get -y install miller

Millerの実行方法 サンプルデータの作成
cat << EOF > sample.csv
name,entry_date,point
"Doug, White",2022-10-11,1200
"Anne, Greenwood",2022-09-10,2100
"Bob, Kerl",2022-10-11,3000
EOF

・表型に整形して表示
mlr --icsv --opprint cat sample.csv
name            entry_date point
Doug, White     2022-10-11 1200
Anne, Greenwood 2022-09-10 2100
Bob, Kerl       2022-10-11 3000

・JSON型に変換して表示
mlr --icsv --ojson cat sample.csv
[
{
  "name": "Doug, White",
  "entry_date": "2022-10-11",
  "point": 1200
},
{
  "name": "Anne, Greenwood",
  "entry_date": "2022-09-10",
  "point": 2100
},
{
  "name": "Bob, Kerl",
  "entry_date": "2022-10-11",
  "point": 3000
}
]

・行数をカウント
mlr --icsv count sample.csv
count=3

・降順でソート
mlr --c2p --icsv sort -nr point sample.csv
name            entry_date point
Bob, Kerl       2022-10-11 3000
Anne, Greenwood 2022-09-10 2100
Doug, White     2022-10-11 1200

・指定列のみ出力
mlr --icsv --opprint cut -f name,point sample.csv
name            point
Doug, White     1200
Anne, Greenwood 2100
Bob, Kerl       3000

・条件を指定してフィルタリング
mlr --icsv --opprint filter '$point >= 2000' sample.csv
name            entry_date point
Anne, Greenwood 2022-09-10 2100
Bob, Kerl       2022-10-11 3000

関連情報 ・Millerのgithubリポジトリ
https://github.com/johnkerl/miller

2023年3月4日土曜日

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

Processingでビジュアルな表現のプログラミングを学ぶことができます。

〇Processingの画面(Debian 11 Bullseye)

インストール方法 以下のコマンドを実行します
wget --inet4-only https://github.com/processing/processing4/releases/download/processing-1289-4.1.1/processing-4.1.1-linux-x64.tgz

tar xvfz processing-4.1.1-linux-x64.tgz

cd processing-4.1.1

./install.sh

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

・Processingのウェブサイト
https://processing.org

2023年3月1日水曜日

Raspberry Pi OS(Bullseye)/Debian 11に壁紙チェンジャーアプリVarietyをインストールする

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

〇Varietyの画面(Raspberry Pi)

〇Varietyの画面(Debian 11 Bullseye)

インストール方法 以下のコマンドを実行します
sudo apt-get update

sudo apt-get -y install variety

関連情報 ・Varietyのwebサイト
https://peterlevi.com/variety/

2023年2月26日日曜日

Debian 11(Bullseye)にEtherpad-liteをインストールする

Etherpad-liteでブラウザ上で同時に複数ユーザが文書を編集する事ができます。文書の編集の他、シンプルなチャット機能も付いているので相談しながら共同作業が可能です。

〇Etherpad-liteの画面(Debian 11 Bullseye)

Etherpad-liteのインストール 以下のコマンドを実行します。
sudo apt-get update

sudo apt-get -y install curl git

curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -

sudo apt-get -y install nodejs

cd /opt

sudo git clone --branch master https://github.com/ether/etherpad-lite.git

cat << EOF | sudo tee /etc/systemd/system/etherpad-lite.service
[Unit]
Description=etherpad-lite
[Service]
Type=simple
ExecStart=/opt/etherpad-lite/bin/run.sh --root
WorkingDirectory=/opt/etherpad-lite
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
EOF

sudo systemctl enable etherpad-lite.service

sudo systemctl start etherpad-lite.service

インストールが完了したらブラウザからhttp://<ホスト名またはアドレス>:9001/ にアクセスします。
※初回起動時は初期化に時間がかかるので少々待ってください

関連情報 ・Etherpad-liteのgithubリポジトリ
https://github.com/ether/etherpad-lite

2023年2月25日土曜日

Raspberry Pi OS(Bullseye)/Debian 11/Ubuntu 22.04に音声合成プログラムespeak-ngをインストールする

espeak-ngで複数の言語の音声合成を行うことができます。

インストール方法
sudo apt-get update

sudo apt-get -y install espeak-ng

コマンド例 ・女性の声で音声出力
espeak-ng -v Annie "Hello, World!"
espeak-ng -v f5 "Hello, World!"

・男性の声で音声出力
espeak-ng -v Mario "Hello, World!"
espeak-ng -v m3 "Hello, World!"

・音声スピード
低速
espeak-ng -v Annie -s100 "How about going for a walk?"
高速
espeak-ng -v Annie -s200 "How about going for a walk?"

・単語間の時間
単語間を長く
espeak-ng -v Mario -g30 "How about going for a walk?"
単語間を短く
espeak-ng -v Mario -g5 "How about going for a walk?"

・音声ピッチ
ピッチを低く
espeak-ng -v Mario -p20 "How about going for a walk?"
ピッチを高く
espeak-ng -v Mario -p80 "How about going for a walk?"

・言語の一覧表示
espeak-ng --voices

・日本語の音声出力
espeak-ng -v Japanese -s190 "こんにちわ、さようなら"

・ファイル出力
出力ファイル名を指定する場合は-wオプションを使用します。
espeak-ng -v Annie -w hello_world.wav "Hello, World!"

関連情報 ・espeak-ngのGithubページ
https://github.com/espeak-ng/espeak-ng

2023年2月20日月曜日

Raspberry Pi OS(Bullseye)/Debian 11にXML Copy Editorをインストールする

XML Copy EditorでXMLを編集・検証することが出来ます。

〇XML Copy Editorの画面(Raspberry Pi)

〇XML Copy Editorの画面(Debian 11 Bullseye)

インストール方法 以下のコマンドを実行します
sudo apt-get update

sudo apt-get -y install xmlcopyeditor

関連情報 ・XML Copy Editorのウェブサイト
https://xml-copy-editor.sourceforge.io/

2023年2月19日日曜日

Raspberry Pi OS(Bullseye)/Debian 11にFritzingをインストールする

Fritzingで回路図やブレッドボード上の電子部品の接続図などを描画する事ができます。

〇Fritzingの画面(Raspberry Pi)

〇Fritzingの画面(Debian 11 Bullseye)

インストール方法 以下のコマンドを実行します
sudo apt-get update

sudo apt-get -y install fritzing

関連情報 ・Fritzingに関する他の情報はこちらを参照してください。

2023年2月16日木曜日

Raspberry Pi OS(Bullseye)/Debian 11にTEAエディターをインストールする

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

〇TEAエディターの画面(Raspberry Pi)

〇TEAエディターの画面(Debian 11 Bullseye)

コマンドによるインストール方法 以下のコマンドを実行します。
sudo apt-get update

sudo apt-get -y install tea

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

2023年2月12日日曜日

電子回路シミュレータSimulIDEをRaspberry Pi OS(Bullseye)/Debian 11にインストールする

SimulIDEで電子回路やArduinoなどのプログラムをシミュレーションすることができます。

〇SimulIDEの画面(Raspberry Pi)

〇SimulIDEの画面(Debian 11 Bullseye)

インストール方法 以下のコマンドを実行します。
sudo apt-get update

sudo apt-get -y install simulide

関連情報 ・SimulIDEのウェブサイト
https://www.simulide.com/p/home.html

2023年2月9日木曜日

Raspberry Pi OS(Bullseye)/Debian 11に暗記補助アプリMnemosyneをインストールする

Mnemosyneで、暗記カードのように学習する事ができます。

〇Mnemosyneの画面(Raspberry Pi)

〇Mnemosyneの画面(Debian 11 Bullseye)

インストール方法 以下のコマンドを実行します。
sudo apt-get update

sudo apt-get -y install mnemosyne

カードの導入方法 カードは以下のページからダウンロードできます。
https://mnemosyne-proj.org/card-sets

例えば、以下のようにデータをダウンロードして
wget https://mnemosyne-proj.org/sites/default/files/cards/Barrons_GRE_0.cards
ファイル - インポートすることで、カードを追加することが出来ます。

関連情報 ・Mnemosyneのgithubリポジトリ
https://github.com/mnemosyne-proj/mnemosyne

2023年2月6日月曜日

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

WiRedPandaでグラフィカルに論理回路の動作を学ぶことが出来ます。

〇WiRedPandaの画面

インストール方法 以下のコマンドを実行します。
sudo mkdir -p /opt/wiredpanda

cd /opt/wiredpanda

sudo wget https://github.com/GIBIS-UNIFESP/wiRedPanda/releases/download/v4.1.10/WiRedPanda-Ubuntu-Qt5.AppImage

sudo chmod +x WiRedPanda-Ubuntu-Qt5.AppImage

cat << EOF | sudo tee /usr/share/applications/wiredpanda.desktop
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=/opt/wiredpanda/WiRedPanda-Ubuntu-Qt5.AppImage
Name=Wired Panda
Categories=Development;
EOF

関連情報 ・WiRedPandaのgithubリポジトリ
https://github.com/GIBIS-UNIFESP/wiRedPanda

2023年2月5日日曜日

概念辞書WordNetをDebian 11/Raspberry Pi OS(Bullseye)にインストールする

WordNetで類義語や上位語や下位語・概念を調べることが出来ます。

〇WordNetの画面(Debian 11 Bullseye)

〇WordNetの画面(Raspberry Pi)

インストール方法 以下のコマンドを実行してWordNetをインストールします。
sudo apt-get update

sudo apt-get -y install wordnet

関連情報 ・WordNetのウェブサイト
https://wordnet.princeton.edu/

2023年2月4日土曜日

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

Gazeboはオープンソースのロボットシミュレーターです。

〇Gazeboの画面

インストール手順 以下のコマンドを実行します。
sudo apt-get update

sudo apt-get install gazebo

サンプル実行法 以下のコマンドを実行します
cd /usr/share/gazebo-11/worlds

gazebo pioneer2dx.world

関連情報 ・Gazeboのwebサイト
http://gazebosim.org/

2023年2月3日金曜日

Raspberry Pi OS(Bullseye)/Debian 11に地理学習アプリKGeographyをインストールする

KGeographyで世界の国々の州や県といった地理を学習することが出来ます。

〇KGeographyの画面(Raspberry Pi)

〇KGeographyの画面(Debian 11 Bullseye)

インストール方法 以下のコマンドを実行してKGeographyをインストールします。
sudo apt-get update

sudo apt-get -y install kgeography

関連情報 ・KGeographyのウェブサイト
https://edu.kde.org/kgeography/

2023年2月1日水曜日

Raspberry Pi OS(Bullseye)/Debian 11にKitenをインストールする

Kitenは英和・和英・漢字辞書です

〇Raspberry Pi OS

〇Debian 11 Bullseye

インストール方法 以下のコマンドを実行してください。
sudo apt-get update

sudo apt-get -y install kiten

関連情報 ・Kitenのウェブサイト
https://edu.kde.org/kiten/

2023年1月30日月曜日

Debian 11(Bullseye)にAPI clientのInsomniaをインストールする

Insomnia API clientはRESTなどに対応したAPIクライアントです。

〇Insomniaの画面(Debian 11 Bullseye)

インストール方法 以下のコマンドを実行してInsomniaをインストールします。
wget https://github.com/Kong/insomnia/releases/download/core%402022.6.0/Insomnia.Core-2022.6.0.deb

sudo apt-get -y install ./Insomnia.Core-2022.6.0.deb

関連情報 ・Insomniaのgithubリポジトリ
https://github.com/Kong/insomnia

2023年1月29日日曜日

Ubuntu 22.04/Debian 11でデータベース構造分析ツールJailerをインストールする

Jailerでデータベースの構造を分析したり可視化する事が出来ます。

〇Jailerの画面(Ubuntu 22.04)

〇Jailerの画面(Debian 11 Bullseye)

インストール手順 以下のコマンドを実行してJailerをインストールします。
wget --inet4-only https://sourceforge.net/projects/jailer/files/v12.8.1/jailer-database-tools_12.8.1-x64.deb

sudo apt-get -y install ./jailer-database-tools_12.8.1-x64.deb

関連情報 ・Jailerのwebサイト
http://jailer.sourceforge.net/home.htm

2023年1月28日土曜日

Raspberry Pi OS(Bullseye)/Debian 11にOpenStreetMapエディターJOSMをインストールする

JOSMでOpenStreetMapデータを編集することが出来ます。

〇JOSMの画面(Raspberry Pi OS)

〇JOSMの画面(Debian 11)

インストール方法 以下のコマンドを実行します。
sudo apt-get update

sudo apt-get install josm

関連情報 ・JOSMのウェブサイト
https://josm.openstreetmap.de/