Sunday, June 25, 2023

Orange pi 5 setup

 running from microSD.

remove "pro"

https://askubuntu.com/questions/1434512/how-to-get-rid-of-ubuntu-pro-advertisement-when-updating-apt

apt-get  --assume-yes  --purge  remove  ubuntu-advantage-tools

apt-get install rsnapshot

apt-get install samba

(I used apt-get install samba* and i think it installed a lot more than necessary)

apt-get install unison

crontab -e
0,15,30,45 *   *   *   *   /home/matt/start_unison_movie
#40 23 * * 6 /home/matt/rsnapshot_run
40 23 * * * /usr/bin/rm /home/root/.unison/lk*
*/5 * * * * /bin/touch /media/matt/2tb_prime/touch &>/dev/null
#*/5 * * * * /bin/mount /dev/md0 /media/backup


secret privilege

GRANT PROXY ON ``@`` TO `matt`@`localhost` WITH GRANT OPTION















add motd file:

98-custommotd 

#!/bin/bash

echo

cat /proc/mdstat

dmesg |grep Gb

echo