DreamPi-Plus --- My Upgrades to The Dreamcast Online Experience.

Moderator: VasiliyRS

User avatar
deluxux
Metallic
Posts: 892

DreamPi-Plus --- My Upgrades to The Dreamcast Online Experience.

Post#1 » Tue Nov 24, 2020 3:44 am



I was thinking, I need to learn some Linux, and why waste a good workhorse like the Pi3b+?
low power, (power for more), All framebuffer, no windows, even the PiZ runs this
All automatic
Dreamcast servers ping tested on boot
Current DCTalk google schedule shown on boot
dreamcast.online/now/ updating every 60sec
Web Rendering Proxy


Think about this eh..
On the TV, Dreamcast on Input 1, the Pi is on Input 2, You Flip the channel to see who's online easily.

How to Install BetaV0.9
"Expand The Filesystem" So we can have the full space of our storage, we need a 4GB SDcard or Flash Drive.

Code: Select all

sudo raspi-config

Pick Option 7 - Advanced Options
Pick Option 1 - Expand File System
Tab over to the Finish button and Reboot.

Next thing to do is update our Pi to the latest softwares.

Code: Select all

sudo apt update

Code: Select all

sudo apt upgrade

Code: Select all

sudo reboot

Code: Select all

wget https://u.teknik.io/1jN7N.sh && chmod +x 1jN7N.sh && ./1jN7N.sh


The secret to all this is using chromium-browser, xvfb, cutycapt fim and WRP with some bash files..

Code: Select all

#/bin/bash
sudo apt install xinit xserver-xorg raspberrypi-ui-mods chromium-browser xvfb cutycapt fim
sleep 3
mkdir /home/pi/scripts
mkdir /home/pi/DreamcastOnline
tee /home/pi/scripts/dcnowfb.sh <<EOF
#!/bin/bash
while true; do
xvfb-run --server-args="-screen 0, 800x600x24" cutycapt --url=http://dreamcast.online --out=/home/pi/DreamcastOnline/dcnow.jpeg;
sleep 1;
timeout 60 fim -a /home/pi/DreamcastOnline/dcnow.jpeg;
clear;
rm -f /home/pi/DreamcastOnline/dcnow.jpeg;
done
EOF
sleep 1
tee /home/pi/scripts/dcspeedtest.sh <<EOF
#!/bin/bash
sleep 17
clear
cpu=$(</sys/class/thermal/thermal_zone0/temp)
echo "------------Welcome to SegaNet-------------"
echo "$(date)"
echo "$(hostname -I)"
echo "CPU TEMP => $((cpu/1000))'C"
echo "------Welcome To The Next Level------------"
sleep 1
echo ""
echo "Shuouma Server Speed Test"
echo "$(ping -c 3 -q shumania.ddns.net)"
echo "---------DreamPi-Online----------------"
sleep 1
echo "Dreamcast Talk Speed Test"
echo "$(ping -c 3 -q dc.dreamcast-talk.com)"
echo "----------Up to 6 billion players----------"
sleep 1
echo "Sylverant Speed Test"
echo "$(ping -c 3 -q sylverant.net)"
echo "------------Its Thinking-------------"
xvfb-run --server-args="-screen 0, 800x600x24" cutycapt --url=https://tknk.io/aozY --delay=3000 --out=/home/pi/DreamcastOnline/dcnowgcal.jpeg
sleep 1
timeout 55 fim -a /home/pi/DreamcastOnline/dcnowgcal.jpeg
rm -f /home/pi/DreamcastOnline/dcnowgcal.jpeg
echo "
"
EOF
tee /home/pi/scripts/rc.local <<EOF
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"
fi

/home/pi/wrp-arm-linux -t png -g 640x480x32 &

/home/pi/scripts/dcspeedtest.sh &

/home/pi/scripts/dcnowfb.sh &

exit 0
EOF
sleep 1
wget https://github.com/tenox7/wrp/releases/download/4.5.1/wrp-arm-linux
chmod +x wrp-arm-linux
chmod +x /home/pi/scripts/dcnowfb.sh
chmod +x /home/pi/scripts/dcspeedtest.sh
chmod +x /home/pi/scripts/rc.local
sudo cp /home/pi/scripts/rc.local /etc/rc.local
sudo chmod +x /etc/rc.local
sudo reboot
exit 0

Any ideas you think about to add let me know :)



Quake 3 server info...
Save the jpeg files into ram..

thanks to, kazade, Shuouma, pcwzrd13,
Last edited by deluxux on Fri Dec 04, 2020 6:55 pm, edited 11 times in total.

User avatar
MrBlueSky
fire
Posts: 74

Re: DreamPi-Plus --- My Upgrades to The Dreampi and The Dreamcast Online Experience.

Post#2 » Tue Nov 24, 2020 5:00 am

Very nice !
Dreamcast Now: The Blues Brothers

User avatar
WedgeStratos
dark night
Posts: 54
Contact:

Re: DreamPi-Plus --- My Upgrades to The Dreampi and The Dreamcast Online Experience.

Post#3 » Tue Nov 24, 2020 5:27 am

This is actually an excellent little plus. :ugeek:
Would it be possible for you to make a bash script we can run on our existing DreamPis to add this stuff? I'm already using the Web Rendering Proxy addition, but I've also been trying (and failing) to install WebOne on the Pi to add a native proxy to the mix. WRP's a better solution overall, since most modern sites won't run in general on the Dreamcast.

In any case, if this improves enough, I'd love to finally see a DreamPi 2.0 release featuring your upgrades and WRP all rolled into a single package. And if need be, some stuff can be stripped back out and we can still see a DreamPi 1.8 for keeping the older Pi 2 and Pi Zero stable and up-to-date.

User avatar
deluxux
Metallic
Posts: 892

Re: DreamPi-Plus --- My Upgrades to The Dreampi and The Dreamcast Online Experience.

Post#4 » Tue Nov 24, 2020 11:55 am

WedgeStratos wrote:...Would it be possible for you to make a bash script we can run on our existing DreamPis to add this stuff?...
That would make it easier for people to get up and running, I also might make it an IMG to flash to an sd card.

WedgeStratos wrote:..I've also been trying (and failing) to install WebOne on the Pi to add a native proxy to the mix.

I see, cool find https://github.com/atauenis/webone

User avatar
deluxux
Metallic
Posts: 892

Re: DreamPi-Plus --- My Upgrades to The Dreamcast Online Experience.

Post#5 » Tue Nov 24, 2020 5:54 pm

Updated with WRP built in and 1 liner install script

User avatar
Gocha
Anarki
Posts: 92

Re: DreamPi-Plus --- My Upgrades to The Dreamcast Online Experience.

Post#6 » Tue Nov 24, 2020 6:11 pm

Very interesting! nice to see some improvements on the Pi, I'll be thinking on interesting things that could be added to it. Keep up the good work!

User avatar
WedgeStratos
dark night
Posts: 54
Contact:

Re: DreamPi-Plus --- My Upgrades to The Dreamcast Online Experience.

Post#7 » Fri Dec 04, 2020 5:12 pm

I'm interested in this, but unfortunately, I'm running into some problems. I was already dealing with issues where trying to static IP wlan0 was forcing all interfaces down, the Raise network interfaces job wasn't working anymore, so I gave in and reflashed DreamPi. Stock 1.7 DLE, followed the commands, now I'm getting xvfb-run Command not found. Attaching the log from journalctl if it can help.
Attachments
xflog.txt
(109.46 KiB) Downloaded 20 times

User avatar
deluxux
Metallic
Posts: 892

Re: DreamPi-Plus --- My Upgrades to The Dreamcast Online Experience.

Post#8 » Fri Dec 04, 2020 5:56 pm

I have no idea why its not setting an IP for you, this script doesn't touch any networking stuff at all.
Also seems like some of the programs failed to install...? Did you expand the file system and update & upgrade with apt?
Do you have a /home/pi/scripts/ folder with the scripts in it? (created by the script)

User avatar
WedgeStratos
dark night
Posts: 54
Contact:

Re: DreamPi-Plus --- My Upgrades to The Dreamcast Online Experience.

Post#9 » Fri Dec 04, 2020 6:19 pm

deluxux wrote:I have no idea why its not setting an IP for you, this script doesn't touch any networking stuff at all.
Also seems like some of the programs failed to install...? Did you expand the file system and update & upgrade with apt?
Do you have a /home/pi/scripts/ folder with the scripts in it? (created by the script)

The networking was a problem for me, once again, I reflashed to stock, so the only relevance is the script.
I use the NOOBS-based Pi image that exists usong PINN, I have closer to 3GB space compared to what it usually has. All the updates installed correctly save for wpa-supplicant which complained about the TLS 1.2 change (irrelevant too because I'm not touching EAP). I can try rerunning your script and logging the results. Yes, there is a scripts folder in home, it's set to executable. I may just try installing something listed in the script manually first and see if it automagically makes the thing work.

User avatar
deluxux
Metallic
Posts: 892

Re: DreamPi-Plus --- My Upgrades to The Dreamcast Online Experience.

Post#10 » Fri Dec 04, 2020 6:22 pm

sudo apt-get install xinit xserver-xorg raspberrypi-ui-mods chromium-browser xvfb cutycapt fim

  • Similar Topics
    Replies
    Views
    Last post

Return to “Modifications”

Who is online

Users browsing this forum: No registered users

cron