GithubHelp home page GithubHelp logo

ikuta_am's Introduction

IKUTA Annouce Machine

Description

アナウンス・マシーンの老朽化に伴い、volumio + Micro Server で置き換える

Recipe

Operation

  • Start
    • sudo systemctl enable ikuta_am.timer
    • sudo systemctl start ikuta_am.timer
  • Log
    • sudo journalctl -f -u ikuta_am.service
  • Emergency broadcast
    • ikuta_em <number>
    • 火災発生箇所のコード1-18が必要
    • 0で止めるまで繰り返し放送
    • 緊急放送以外は止められない
    • チャイムなどが割り込むことはない

Security

  • password
sudo -i
passwd
(change root password)
passwd volumio
(change volumio password)
useradd foo -s /bin/bash -m
usermod -aG sudo foo
passwd foo
(create foo's password)
  • Web interface
/lib/systemd/system/iptables.service:
6c6
< ExecStart=/sbin/iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 3000
---
> ExecStart=/sbin/iptables-restore /etc/iptables/rules.v4

sudo -i
/sbin/iptables -F INPUT
/sbin/iptables -A INPUT -s 127.0.0.1 -j ACCEPT
/sbin/iptables -A INPUT -s (許可するPCのアドレス) -j ACCEPT
/sbin/iptables -A INPUT -p tcp --destination-port 3000 -j DROP
mkdir /etc/iptables
/sbin/iptables-save > /etc/iptables/rules.v4
  • samba
/etc/samba/smb.conf:
s/guest ok = yes/guest ok = no/g
smbpasswd -a volumio
  • Setting
    • UPNP Renderer to OFF
    • Shairport-Sync to OFF
    • DLNA Browser to OFF

zabbix agent

  • zabbix-agent はメモリーリークがあるので、起動から1ヶ月経過したらプロセス再起動を行うようにした
  • Tinker Board (armhf) 版は 2.5ヶ月程度でメモリーを使い果たしてしまう
  • Intel (amd64) 版はもう少し緩やかだがメモリーリークは存在するようだ
  • 再起動の実施日時は systemctl list-timers で確認できる

参考資料

Eof

ikuta_am's People

Contributors

otsuka-ikuta avatar

Stargazers

Koichi Otsuka avatar

Watchers

 avatar

ikuta_am's Issues

Zabbix agent not start on reboot

  • require flowing operation on reboot
sudo mkdir /var/log/zabbix-agent
sudo chown /var/log/zabbix-agent
sudo systemctl restart zabbix-agent

Volume not working 音量調整ができない

現象

  • mpc client で操作できない
  • mixer type を soft にしても動作しない
  • WEB Interface でも操作できない

Log

  • /var/log/mpd.log に以下のエラーが記録されている
Feb 10 12:00 : client: [5] opened from local
Feb 10 12:00 : client: [5] closed
ALSA lib conf.c:4898:(parse_args) Unknown parameter 1
ALSA lib conf.c:5031:(snd_config_expand) Parse arguments error: No such file or directory
ALSA lib control.c:1375:(snd_ctl_open_noupdate) Invalid CTL hw:1,2
Feb 10 12:00 : exception: Failed to open mixer for 'alsa': failed to attach to hw:1,2: No such file or directory

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.