beatysh+omxplayer-vga666-script-addon

This commit is contained in:
simono41 2018-11-11 04:24:37 +01:00
parent d3b5c71503
commit fd3171ae6d
46 changed files with 349 additions and 342 deletions

View file

@ -5,9 +5,9 @@ set -e
format=$(echo ${1##*.}) format=$(echo ${1##*.})
if [ $format != "jpg" ] if [ $format != "jpg" ]
then then
convert $1 /tmp/logo.jpg convert $1 /tmp/logo.jpg
else else
cp $1 /tmp/logo.jpg cp $1 /tmp/logo.jpg
fi fi
jp2a $2 --background=dark --colors /tmp/logo.jpg --output=/tmp/logo.txt jp2a $2 --background=dark --colors /tmp/logo.jpg --output=/tmp/logo.txt
while IFS= read -r line; do while IFS= read -r line; do

View file

@ -1,13 +1,13 @@
xorriso -as mkisofs \ xorriso -as mkisofs \
-iso-level 3 \ -iso-level 3 \
-full-iso9660-filenames \ -full-iso9660-filenames \
-volid "SIMON_LINUX" \ -volid "SIMON_LINUX" \
-eltorito-boot isolinux/isolinux.bin \ -eltorito-boot isolinux/isolinux.bin \
-eltorito\-catalog isolinux/boot.cat \ -eltorito\-catalog isolinux/boot.cat \
-no-emul-boot -boot-load-size 4 -boot-info-table \ -no-emul-boot -boot-load-size 4 -boot-info-table \
-isohybrid-mbr /mnt/customiso/arch/isolinux/isohdpfx.bin \ -isohybrid-mbr /mnt/customiso/arch/isolinux/isohdpfx.bin \
-eltorito-alt-boot \ -eltorito-alt-boot \
-e EFI/archiso/efiboot.img \ -e EFI/archiso/efiboot.img \
-no-emul-boot -isohybrid-gpt-basdat \ -no-emul-boot -isohybrid-gpt-basdat \
-output arch-simon-linux-$(date "+%y.%m.%d")-dual.iso arch -output arch-simon-linux-$(date "+%y.%m.%d")-dual.iso arch

View file

@ -1,9 +1,9 @@
xorriso -as mkisofs \ xorriso -as mkisofs \
-iso-level 3 \ -iso-level 3 \
-full-iso9660-filenames \ -full-iso9660-filenames \
-volid "SIMON_LINUX" \ -volid "SIMON_LINUX" \
-eltorito-boot isolinux/isolinux.bin \ -eltorito-boot isolinux/isolinux.bin \
-eltorito\-catalog isolinux/boot.cat \ -eltorito\-catalog isolinux/boot.cat \
-no-emul-boot -boot-load-size 4 -boot-info-table \ -no-emul-boot -boot-load-size 4 -boot-info-table \
-isohybrid-mbr /mnt/customiso/arch/isolinux/isohdpfx.bin \ -isohybrid-mbr /mnt/customiso/arch/isolinux/isohdpfx.bin \
-output arch-simon-linux-$(date "+%y.%m.%d")-x86_64.iso arch -output arch-simon-linux-$(date "+%y.%m.%d")-x86_64.iso arch

View file

@ -2,7 +2,7 @@
numscreens=3 numscreens=3
count=0 count=0
if [ -z $1 ] ; then if [ -z $1 ] ; then
./X-Plane-x86_64 --monitor_bounds=0,0,1920,1080,1920,0,1920,1080,3840,0,1920,1080 & ./X-Plane-x86_64 --monitor_bounds=0,0,1920,1080,1920,0,1920,1080,3840,0,1920,1080 &
while [ $count -lt $numscreens ]; do while [ $count -lt $numscreens ]; do
sleep 1 sleep 1
count=$( wmctrl -l | grep X-System | wc -l) count=$( wmctrl -l | grep X-System | wc -l)

View file

@ -9,9 +9,9 @@ set -ex
echo "systemd start-script wird erzeugt!!!" echo "systemd start-script wird erzeugt!!!"
echo "Bitte OpenVPN config in die /etc/openvpn/client/client.conf kopieren!!!" echo "Bitte OpenVPN config in die /etc/openvpn/client/client.conf kopieren!!!"
if [ -f /lib/systemd/system/openvpn-client@client.service ]; then if [ -f /lib/systemd/system/openvpn-client@client.service ]; then
echo "link vorhanden!" echo "link vorhanden!"
else else
ln /lib/systemd/system/openvpn-client@.service /lib/systemd/system/openvpn-client@client.service ln /lib/systemd/system/openvpn-client@.service /lib/systemd/system/openvpn-client@client.service
fi fi
systemctl enable openvpn-client@client.service systemctl enable openvpn-client@client.service

View file

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
#  #
read -p "SSH remote host (hostname or ip address): " host; read -p "SSH remote host (hostname or ip address): " host;
# #
read -p "If a puplic_key authentification?: N or y: " puplic; read -p "If a puplic_key authentification?: N or y: " puplic;
@ -9,7 +9,7 @@ read -p "SSH remote port (22): " port;
read -p "SSH remote username: " username; read -p "SSH remote username: " username;
# #
if [ "$puplic" == "y" ]; if [ "$puplic" == "y" ];
then then
read -p "How is your public_key?: " key; read -p "How is your public_key?: " key;
echo $key > ~/.ssh/id_rsa.pub; echo $key > ~/.ssh/id_rsa.pub;
@ -22,6 +22,6 @@ if [ "$puplic" == "y" ];
echo $id >> ~/.ssh/id_rsa; echo $id >> ~/.ssh/id_rsa;
done done
exec ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p $port $username@$host; exec ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p $port $username@$host;
else else
exec ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p $port $username@$host; exec ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p $port $username@$host;
fi fi

View file

@ -11,10 +11,10 @@ fi
apt update apt update
apt upgrade -y apt upgrade -y
apt install hedgewars minetest minetest-server teeworlds teeworlds-server \ apt install hedgewars minetest minetest-server teeworlds teeworlds-server \
mumble mumble-server freeciv gnome-chess \ mumble mumble-server freeciv gnome-chess \
gnuchess inkscape gimp ffmpeg flac git htop android-tools-adb \ gnuchess inkscape gimp ffmpeg flac git htop android-tools-adb \
android-tools-fastboot \ android-tools-fastboot \
qemu-system btrfs-tools nvidia-367 nvidia-settings -y qemu-system btrfs-tools nvidia-367 nvidia-settings -y
nvidia-xconfig nvidia-xconfig
add-apt-repository ppa:obsproject/obs-studio add-apt-repository ppa:obsproject/obs-studio

View file

@ -4,9 +4,9 @@ set -ex
if [ "$1" == "--help" ] || [[ -z "$1" ]] if [ "$1" == "--help" ] || [[ -z "$1" ]]
then then
echo "bash ./youtube-dl.sh URL FORMAT" echo "bash ./youtube-dl.sh URL FORMAT"
echo "Formate: [opus/m4a/video/hd/fullhd/4k]" echo "Formate: [opus/m4a/video/hd/fullhd/4k]"
exit 0 exit 0
fi fi
url="$1" url="$1"

View file

@ -5,8 +5,9 @@ set -ex
if [ "$1" == "--help" ] || [[ -z "$1" ]] if [ "$1" == "--help" ] || [[ -z "$1" ]]
then then
echo "bitte alles kleinschreiben" echo "bitte alles kleinschreiben"
echo "bash ./youtube-dl.sh SUCHE/NOSUCHE URL/SUCHE FORMAT OUTPUT" echo "bash ./youtube-dl.sh SUCHE/NOSUCHE URL/SUCHE FORMAT OUTPUT DISPLAY"
echo "Formate: [VERYLOW/LOW/MEDIUM/HIGH]" echo "Formate: [VERYLOW/LOW/MEDIUM/HIGH]"
echo "Displays: [VGA=4;HDMI=0,1,2,3,5]"
exit 0 exit 0
fi fi
@ -15,14 +16,16 @@ if [ "$1" == "suche" ] || [ "$1" == "nosuche" ]; then
url="$2" url="$2"
format="$3" format="$3"
output="$4" output="$4"
display="$5"
else else
url="$1" url="$1"
format="$2" format="$2"
output="$3" output="$3"
display="$4"
fi fi
if [ -z ${output} ]; then if [ -z ${output} ]; then
output="local" output="local"
fi fi
if [ "$format" == "verylow" ] if [ "$format" == "verylow" ]
@ -34,12 +37,16 @@ then
elif [ "$format" == "medium" ] elif [ "$format" == "medium" ]
then then
format="-f 18" format="-f 18"
#elif [ "$format" == "high" ] #elif [ "$format" == "high" ]
else else
#then #then
format="-f 22" format="-f 22"
fi fi
if [ -n "${display}" ]; then
display="device=${display}"
fi
#read -p "Wie ist die URL? : " url #read -p "Wie ist die URL? : " url
#read -p "Wo sollen die Dateien heruntergeladen werden? : " pfad #read -p "Wo sollen die Dateien heruntergeladen werden? : " pfad
#read -p "Soll ein Video heruntergeladen werden oder Audio? [opus/m4a/video/hd/fullhd/4k] : " format #read -p "Soll ein Video heruntergeladen werden oder Audio? [opus/m4a/video/hd/fullhd/4k] : " format
@ -48,8 +55,8 @@ fi
if [ "$suche" == "suche" ] if [ "$suche" == "suche" ]
then then
#omxplayer -p -o ${output} `youtube-dl -g "ytsearch:$url" -q --force-ipv4 $format` #omxplayer -p -o ${output} `youtube-dl -g "ytsearch:$url" -q --force-ipv4 $format`
/usr/bin/omxplayer.bin -I -s -o ${output} --vol -800 --aspect-mode letterbox --no-osd `youtube-dl -g "ytsearch:$url" -q --force-ipv4 ${format}` /usr/bin/omxplayer.bin ${device} -I -s -o ${output} --vol -800 --aspect-mode letterbox --no-osd `youtube-dl -g "ytsearch:$url" -q --force-ipv4 ${format}`
else else
#omxplayer -p -o ${output} `youtube-dl -g $url -q --force-ipv4 $format` #omxplayer -p -o ${output} `youtube-dl -g $url -q --force-ipv4 $format`
/usr/bin/omxplayer.bin -I -s -o ${output} --vol -800 --aspect-mode letterbox --no-osd `youtube-dl -g $url -q --force-ipv4 ${format}` /usr/bin/omxplayer.bin ${device} -I -s -o ${output} --vol -800 --aspect-mode letterbox --no-osd `youtube-dl -g $url -q --force-ipv4 ${format}`
fi fi

View file

@ -40,7 +40,7 @@ then
format="-f 303+251" format="-f 303+251"
elif [ "$format" == "fullhdmp4" ] elif [ "$format" == "fullhdmp4" ]
then then
format="-f 299+140" ] format="-f 299+140" ]
elif [ "$format" == "4k" ] elif [ "$format" == "4k" ]
then then
format="-f 315+251" format="-f 315+251"