Raspberry Pi
resize_rootfs.sh
script as root
(its in /root
)/etc/hostname
and /etc/hosts
) and rebootdpkg-reconfigure tzdata
ntpdate us.pool.ntp.org
/etc/ntp.conf
and start NTPD with /etc/init.d/ntp start
groupadd -g 1xx0 yourgroup useradd -u 1xx0 -g 1xx0 -d /home/yourlogin -s /bin/bash -c "Your Name" -m yourlogin
id -a raspex
to identify list of groups needed for admin login)usermod -a -G list,of,group,names yourlogin
/etc/sudoers
deluser raspex ; rm -rf /home/raspex
Edit /etc/slim.conf
and change the auto_login
value to no
/usr/share/images/bunsen/wallpapers/default
apt remove –purge conky conky-all
apt install xscreensaver
apt install git
dd if=raspbiandownload.img of=/dev/sdX bs=4M conv=fsync
pi
with password raspberry
/etc/hostname
/etc/hosts
See original for complete reference: https://www.mythtv.org/wiki/Raspberry_Pi
raspi-config
/etc/rc.local
):echo "performance" | /usr/bin/tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
/etc/pulse/client.conf
set autospawn=no
and daemon-binary=/bin/true
/etc/apt/sources.list
add a line like:deb http://dl.bintray.com/bennettpeter/deb stretch myth28
wget -O - https://bintray.com/user/downloadSubjectPublicKey?username=bintray | apt-key add -
apt update
apt install mythtv-light
apt install mythplugins-light
tmpfs /var/log tmpfs defaults,noatime,nosuid,mode=0755,size=100m 0 0
git clone git://github.com/signal11/hidapi.git git clone https://github.com/darrylb123/usbrelay.git
./bootstrap ./configure --prefix=/usr --enable-testgui make make install
You need HIDAPI and USBRELAY:
git clone git://github.com/signal11/hidapi.git
Check out the readme, and install dependencies before installing.
then:
git clone https://github.com/darrylb123/usbrelay.git
Then, in usbrelay folder:
gcc -o usbrelay usbrelay.c -lhidapi-libusb
Then do:
ldconfig
Read more here:
To get status:
./usbrelay 2>/dev/null
To get status in bash script:
$ eval $(sudo ./usbrelay 2>/dev/null) $ echo $PSUIS_2
Turn on:
/usbrelay EO5ZA_1=1
Turn off:
/usbrelay EO5ZA_1=0