Will try again tomorrow. In the meantime there is always ...
Code: Select all
#!/bin/sh
while :; do
F=`date +%s`
ffmpeg -f video4linux2 -s 640x480 -i /dev/video0 -ss 0:0:2 -frames 1 /root/$F.jpg
done
Code: Select all
#!/bin/sh
while :; do
F=`date +%s`
ffmpeg -f video4linux2 -s 640x480 -i /dev/video0 -ss 0:0:2 -frames 1 /root/$F.jpg
done
Code: Select all
xbps-install -Sy cpanminus
Code: Select all
Usage:
./build_firstrib_rootfs_XXX.sh distro release arch [filename.plug]
NOTE WELL that the plugin is not a script, simply a list of commandlines
without any hash bang shell header. Also, note that filename.plug can
itself access any plugin, file, or subdir inside the build directory
via the following variable for access:
"${plugins_dir}" : absolute path to current build directory
For example: . "${plugins_dir}"/plugin2.plug # sourcing 2nd plug
"${plugins_dir}"/mydir/myscript.sh # running a script
Code: Select all
...
. "${plugins_dir}"/plugin2.plug
...
Code: Select all
...
"${plugins_dir}"/mydir/myscript.sh
...
Code: Select all
chown www-data /dev/video0
Code: Select all
killall mysqld
mysqld_safe --user=root &
Good to know, thanks rockedge.rockedge wrote:I am enjoying rufwoof'd desktop! Runs great and once I got rid of the UK keyboard (the "@" key is totally different!) I was moving along smoothly. Runs ZM well and once you get used to the basic fundamentals on how the desktop works it is pretty cool
Code: Select all
P Play all mp3 and mp4 files
vlc *.mp3 *mp4 &
Code: Select all
tar czvf firstrib00.plug.tar.gz firstrib00.plug plugins/
Code: Select all
./build_firstrib_rootfs_102.sh void rolling amd64 firstrib00.plug.tar.gz
Code: Select all
. /tmp/plugins/firstrib01.plug # sourcing plugin firstrib01.plug
Code: Select all
/tmp/plugins/myscript.sh
Code: Select all
# ./build_firstrib_rootfs_102.sh --help
Usage:
./build_firstrib_rootfs_XXX.sh distro release arch [filename.plug] or
./build_firstrib_rootfs_XXX.sh distro release arch [filename.plug.tgz]
NOTE WELL that primary plugin (e.g. firstrib00.plug) is not a script,
it is simply a list of commandlines without any hash bang shell header.
Also NOTE that a tgz (or tar.gz) form of plugin must contain the primary
plugin. It can also contain a plugins directory, which itself contains
other plugins and/or executable scripts. These get copied into
firstrib_rootfs/tmp so that primary plugin can subsequently source or
execute the plugins dir contents from /tmp/plugins/*
A primaryplug.tar.gz plugin should contain two first level items in its
archive: primaryplug.plug plugins/
For example, firstrib00.plug.tar.gz should contain firstrib00.plug
alongside directory plugins/
Code: Select all
_autologin () {
echo Setting up autologin and auto start X
cp -R /etc/sv/agetty-tty1 /etc/sv/agetty-autologin-tty1
echo "GETTY_ARGS=\"--autologin root --noclear\"" >>/etc/sv/agetty-autologin-tty1/conf
rm /var/service/agetty-tty1
ln -s /etc/sv/agetty-autologin-tty1 /var/service
# Above is as per https://wiki.voidlinux.org/Automatic_Login_to_Graphical_Environment
# however for live-boot that doesn't work alone, we also need to ...
cd /etc/runit/runsvdir/default
rm agetty-tty1
ln -s /etc/sv/agetty-autologin-tty1 agetty-autologin-tty1
# Auto start X
cat <<'EOF' >> /root/.profile
# autologin on tty1
if [ -z "$DISPLAY" ] && [ "$(fgconsole)" -eq 1 ]; then
exec startx
fi
EOF
}
Code: Select all
firstrib_rootfs needs to at least include xbps-install:
linuxX.XX, ncurses-base, and linux-firmware-network,
and optional small extra wifi-firmware.
Or simply install ncurses-base, and template: linux
(which also brings nvidia, amd, i915 and more graphics drivers)
Keef, I haven't had any such problems and no other such reports so I suggest you redownload the build scripts in case you have accidentally modified your own copy wrongly. The section of code in build_weedog_initramfs05_s103u.sh that copies the kernel and modules over into initramfs is as follows and you should note that it expects to find the kernel at firstrib_rootfs/boot and NOT at firstrib_rootfs/boot/kernel. Are you sure you have not installed two different kernels into firstrib_rootfs(?) - that would also cause that error I think. If so you need to delete one of the kernels manually. Void will download the current default kernel usually, which is now up to 5.x and no longer 4.19:Keef wrote:I've already managed a 32bit build with previous versions, but build_weedog_initramfs05_s103u.sh is not working with the 'void' parameter, to use its kernel.
I get:It works without using 'void', but no kernel or firmware of course.Code: Select all
firstrib_rootfs needs to at least include xbps-install: linuxX.XX, ncurses-base, and linux-firmware-network, and optional small extra wifi-firmware. Or simply install ncurses-base, and template: linux (which also brings nvidia, amd, i915 and more graphics drivers)
EDIT I've just checked firstrib_rootfs. Kernel is there in boot/ but not in boot/kernel.
If I move it (kernel) to the kernel folder it works then. I'll have to try a previous version again and check if there is a difference that is not just my own doing.
Code: Select all
# Modules need to be loaded by initramfs/init if distro_name kernel being used
case "$kernel" in
void)
# Copy in Void Linux kernel modules and firmware from firstrib_rootfs,
# and copy out Void kernel vmlinuz for later copying to /mnt/bootpartition/bootdir
echo "Copying Void Linux modules to initramfs build. Please wait patiently..."
cp -af firstrib_rootfs/usr/lib/modules firstrib_rootfs_for_initramfs_sNNN/usr/lib/
cp -a firstrib_rootfs/boot/vmlinuz* .
# initramfs/init needs to load sufficient modules to boot system
_modprobe_modules
;;
Code: Select all
xbps-install -y linux base-system shadow xorg xinit xbitmaps \
terminus-font squashfs-tools alsa-utils jwm \
tilda mtpaint mc galculator adwaita-icon-theme \
ccrypt xdotool skippy-xd xlunch bmon iftop \
calcurse htop ncdu curl chrony xterm geany qt5ct \
cryptsetup inxi android-file-transfer-linux dbus \
alsa-plugins dunst inetutils dhclient alsa-tools \
gvfs polkit usbutils p7zip usbmuxd wireless_tools \
alsaequal gkrellm yad encfs wkhtmltopdf fzf \
octoxbps guvcview libreoffice chromium vlc audacity \
gparted kdenlive ssr master-pdf-editor