2022年10月14日金曜日

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

boxesでコンソール出力を修飾する事ができます。

〇boxesの画面(巻物風)
echo 'Hello, world!' | boxes -d parchment

〇boxesの画面(複数行出力例)
echo -e 'Hello, world!\ntest message.' | boxes -d peek -a c -s 30x5

インストール方法

以下のコマンドを実行します
sudo yum -y groupinstall "Development Tools"

wget https://ftp.gnu.org/gnu/libunistring/libunistring-0.9.10.tar.xz

tar Jxfv  libunistring-0.9.10.tar.xz

cd libunistring-0.9.10/

./configure --prefix=/usr --disable-static --docdir=/usr/share/doc/libunistring-0.9.10

make

sudo make install

cd 

wget https://github.com/ascii-boxes/boxes/archive/refs/tags/v2.2.0.tar.gz

sudo dnf -y install pcre2-devel

tar xvfz v2.2.0.tar.gz

cd boxes-2.2.0

make

make test

sudo cp doc/boxes.1 /usr/share/man/man1

sudo cp boxes-config /usr/share/boxes

sudo cp out/boxes /usr/bin

関連情報

・boxesのウェブサイト
https://boxes.thomasjensen.com/

2022年10月13日木曜日

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

DokuWikiはデータベースを必要としないWikiソフトウェアです。

〇DokuWikiの画面(AlmaLinux 9)

〇DokuWikiの画面(Rocky Linux 9)

ブラウザからhttp://<ホスト名またはIP>/ にアクセスします。

インストール方法

以下のコマンドをシェルから実行します。

1. firewallでhttpの80番ポートを開けます
sudo firewall-cmd --add-service=http --permanent

sudo firewall-cmd --reload

2. SELinuxの無効化
sudo setenforce 0

sudo getenforce

sudo sed -i -e 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config

3. dokuwikiのインストール
sudo dnf -y install httpd php php-common php-spl php-hash php-ctype php-json php-mbstring php-zip php-gd php-curl php-xml

wget http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz

sudo tar xvfz dokuwiki-stable.tgz --strip-components=1 -C /var/www/html

sudo chown -R apache:apache /var/www/html/

sudo systemctl enable httpd

sudo systemctl restart httpd
インストール後、ブラウザからhttp://<ホスト名またはIP>/install.php にアクセスします。

関連情報

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

・DokuWikiのWebサイト
https://www.dokuwiki.org/dokuwiki

2022年10月12日水曜日

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

DokuWikiはデータベースを必要としないWikiソフトウェアです。

〇DokuWikiの画面
インストール後、ブラウザからhttp://<ホスト名またはIP>/dokuwiki/ にアクセスします。

インストール方法

以下のコマンドをシェルから実行します。
sudo apt-get update

sudo apt-get -y install  \
  apache2 \
  php8.1 \
  libapache2-mod-php8.1 \
  php8.1-mbstring \
  php8.1-xml

wget http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz

tar xvfz dokuwiki-stable.tgz

sudo mv dokuwiki-2* /var/www/html/dokuwiki

sudo chown -R www-data:www-data /var/www/html/dokuwiki

sudo a2enmod rewrite

sudo systemctl restart apache2

インストール後、ブラウザからhttp://<ホスト名またはIP>/dokuwiki/install.php にアクセスします。

関連情報

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

・DokuWikiのWebサイト
https://www.dokuwiki.org/dokuwiki

2022年10月11日火曜日

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

KiCADで回路図やプリント基盤をデザインする事ができます。

〇KiCADの画面

インストール方法

以下のコマンドを実行します。
1. bullseye-backportsの追加
grep bullseye-backport /etc/apt/sources.list
を実行してもエントリが返されなければ以下を実行します。
cat << EOF | sudo tee -a /etc/apt/sources.list
deb http://deb.debian.org/debian bullseye-backports main contrib non-free
deb-src http://deb.debian.org/debian bullseye-backports main contrib non-free
EOF

2. KiCADのインストール
sudo apt-get update

sudo apt-get -y install -t bullseye-backports kicad

関連情報

・KiCADのウェブサイト
https://www.kicad.org/

2022年10月10日月曜日

Debian 11(Bullseye)/Ubuntu 22.04にgobasicをインストールする

gobasicはGo言語で実装されたbasicです。

インストール方法

以下のコマンドを実行します。
sudo mkdir -p /opt/gobasic

cd /opt/gobasic

sudo wget https://github.com/skx/gobasic/releases/download/release-2.0.1/gobasic-linux-amd64

sudo chmod +x gobasic-linux-amd64

sudo ln -s /opt/gobasic/gobasic-linux-amd64 /usr/local/bin/gobasic

テスト実行

cd

cat << EOF > hello.bas
print "Hello, World!\n"
EOF

gobasic hello.bas

関連情報

・gobasicのgithubリポジトリ
https://github.com/skx/gobasic

2022年10月9日日曜日

Debian 11(Bullseye)にオセロゲーム(iagno)をインストールする

Iagnoはシンプルなオセロゲームです。

〇Iagnoの画面(Debian 11)

インストール方法

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

sudo apt-get -y install iagno

関連情報

・IagnoのGithubリポジトリ
https://github.com/GNOME/iagno

2022年10月8日土曜日

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

Kritaはオープンソースのペイントソフトです

○Kritaの画面

インストール方法

以下のコマンドを実行します。
sudo mkdir -p /opt/krita

cd /opt/krita

sudo wget https://download.kde.org/stable/krita/5.1.1/krita-5.1.1-x86_64.appimage

sudo chmod +x krita-5.1.1-x86_64.appimage

cat << EOF | sudo tee /usr/share/applications/krita.desktop
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=/opt/krita/krita-5.1.1-x86_64.appimage
Name=Krita
Categories=Graphics;
EOF

関連情報

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