Jump to content

CryBaby

Members
  • Posts

    110
  • Joined

  • Last visited

Everything posted by CryBaby

  1. Yes, assuming /boot is a separate partition. I do this with my Raspberry Pis as I have very unreliable power. I also set them to check filesystems on boot by adding fsck.mode=force to the kernel command line. On OSMC that is in /boot/cmdline.txt, on armbian it might be in /boot/uBoot.env, on a grub machine in /etc/default/grub (then run update-grub).
  2. Edit /etc/fstab line for boot partition and add ro option: /dev/mmcblk0p1 /boot vfat defaults,noatime,noauto,x-systemd.automount,ro 0 0
  3. ssh -v ben@rockpi-4cplus might give a clue.
  4. I wrote the script years ago but as far as I recall I made the regexp myself. I probably just made a list of all the video file extensions I had and then listed the letters in each position.
  5. #!/bin/bash TOP=/home/share/video/music if [ -n "$1" ]; then TOP=$1 fi OLDIFS=$IFS IFS=$'\n' find $TOP -name "*.[maowf][povgklm][gvim]" -print | shuf -n 100 > randomplaylist mpv -fs -vf=pp=de --playlist=randomplaylist rm randomplaylist IFS=$OLDIFS This will play 100 randomly selected files from /home/share/video/music and subdirectories or whatever directory you pass on the command line.
  6. CryBaby

    Backup

    Take the SD card out and put it into another machine. Copy the whole card as an image. To restore you just copy it back. On Linux I would use dd for this: sudo dd if=/dev/mmcblk0 of=backup.img bs=1M status=progress making sure you have the right dev. It should not be mounted while you do this. On Windows... Balena Etcher?
  7. You are mistaken. Please reread Steeman's last post until you understand it.
  8. Plug your phone in. Set it to USB tethering. NetworkManager will probably detect the connection and you can use it like an ethernet connection.
  9. apt-cache search libpython3 will show you which versions are available. I would expect any version higher than 3.7 would also work for you. sudo apt install python3 will install the latest available version.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines