2020年4月29日水曜日

Ubuntu 20.04にRAWGraphsをインストールする

RAWGraphsでCSVなどのデータを簡単に可視化する事ができます。

○RAWGraphsの画面

ブラウザでhttp://<ホスト名またはアドレス>:4000/ を開きます。

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

sudo mkdir -p /opt/rawgraph

cd /opt/rawgraph

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

sudo apt-get update

sudo apt-get install -y nodejs

sudo npm install -g bower

sudo git clone https://github.com/densitydesign/raw.git

cd raw

sudo bower install --allow-root

sudo cp js/analytics.sample.js js/analytics.js

cat << EOF | sudo tee /etc/systemd/system/rawgraph.service
[Unit]
Description=rawgraph
[Service]
Type=simple
ExecStart=/usr/bin/python3 -m http.server 4000
WorkingDirectory=/opt/rawgraph/raw
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
EOF

sudo systemctl enable rawgraph

sudo systemctl start rawgraph

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

0 件のコメント:

コメントを投稿