Recipe for spicelisten VM

  • 20 GB VM, 4 GB RAM
  • base netinst install of buster - deselect everything from tasksel
    • hostname spicelisten – domain mcp.lcl
    • 20 GB root (discard, noatime), remainder swap
  • > /etc/motd
  • apt-get --no-install-recommends install aptitude
  • aptitude install ssh (deselect xauth, though)
  • aptitude install screen rsync psmisc patch strace tcpdump vim net-tools man-db
  • aptitude --without-recommends install dnsutils
  • usermod -a -G adm,systemd-journal tdobes
  • aptitude install dbus
  • mkdir -p /etc/systemd/system/getty\@tty1.service.d
    echo '[Service]' > /etc/systemd/system/getty\@tty1.service.d/noclear.conf
    echo 'TTYVTDisallocate=no' >> /etc/systemd/system/getty\@tty1.service.d/noclear.conf
  • aptitude --without-recommends install irqbalance
  • aptitude install mosquitto-clients
  • aptitude install tmux git

left off here

maybe some of this stuff from music computer will be useful:

  • adduser spice # Name: Spice Listener (no password)
  • sed -i -e 's/\(^spice:.*:\)\/home\/spice.*$/\1\/nonexistent:\/bin\/false/g' /etc/passwd
  • rm -r /home/spice
  • Copy over /opt/spice_parser
  • Set up spice responder:
    echo '[Unit]' > /etc/systemd/system/spice_parser.service
    echo 'Description=Spice Responder' >> /etc/systemd/system/spice_parser.service
    echo 'After=network.target' >> /etc/systemd/system/spice_parser.service
    echo >> /etc/systemd/system/spice_parser.service
    echo '[Service]' >> /etc/systemd/system/spice_parser.service
    echo 'ExecStart=/opt/spice_parser/spice_recv.py' >> /etc/systemd/system/spice_parser.service
    echo 'WorkingDirectory=/opt/spice_parser' >> /etc/systemd/system/spice_parser.service
    echo 'User=spice' >> /etc/systemd/system/spice_parser.service
    echo 'Environment=PYTHONUNBUFFERED=1' >> /etc/systemd/system/spice_parser.service
    echo >> /etc/systemd/system/spice_parser.service
    echo 'Restart=always' >> /etc/systemd/system/spice_parser.service
    echo 'RestartSec=1' >> /etc/systemd/system/spice_parser.service
    echo >> /etc/systemd/system/spice_parser.service
    echo '[Install]' >> /etc/systemd/system/spice_parser.service
    echo 'WantedBy=multi-user.target' >> /etc/systemd/system/spice_parser.service
    
    systemctl enable spice_parser
    systemctl start spice_parser
computer/mcp_spicelisten.txt · Last modified: 2019/09/07 12:08 by tdobes
Recent changes RSS feed Driven by DokuWiki Valid XHTML 1.0 Valid CSS