Helpdesk

English:
Hello, how can I reset joy-pi username for the joy-pi learning software. And even better.... how can I skip having to log in to the learning software. Thanks for your time. 


German: (google translate)
Hallo, wie kann ich den Joy-Pi-Benutzernamen für die Joy-Pi-Lernsoftware zurücksetzen? Und noch besser: Wie kann ich mir die Anmeldung bei der Lernsoftware ersparen? Vielen Dank für Ihre Zeit.


Grüße
Regards
Pete_r61

Pete_r61

28.01.24 11:32

English:

... In addition when reinstalling using:


curl https://joy-pi.net/Joy-Pi-install.sh -o Joy-Pi-install.sh
chmod +x Joy-Pi-install.sh
./Joy-Pi-install.sh

I get message after using the third command (./Joy ...) which I did not get before when installing for the first time:

.Joy-Pi-install.sh:  line1: syntax error near unexpected token 'newline'
.Joy-Pi-install.sh:  line1: ''

So reinstalling becomes an issue as well.


I hope I do not need to start installing my SD card completely to solve the problems.



German: (google translate)
... Zusätzlich bei Neuinstallation mit:... Zusätzlich bei Neuinstallation mit:


curl https://joy-pi.net/Joy-Pi-install.sh -o Joy-Pi-install.sh
chmod +x Joy-Pi-install.sh
./Joy-Pi-install.sh

Nach der Verwendung des dritten Befehls (./Joy ...) erhalte ich eine Meldung, die ich vorher bei der ersten Installation nicht erhalten habe:

.Joy-Pi-install.sh:  line1: syntax error near unexpected token 'newline'
.Joy-Pi-install.sh:  line1: ''


Nach der Verwendung des dritten Befehls (./Joy ...) erhalte ich eine Meldung, die ich vorher bei der ersten Installation nicht erhalten habe: .Joy-Pi-install.sh: Zeile1: Syntaxfehler in der Nähe des unerwarteten Tokens „newline“ .Joy-Pi-install.sh: line1: ''


Daher wird auch eine Neuinstallation zum Problem


Grüße
Regards
Pete_r61

Pete_r61

28.01.24 12:02

Hello Pete,


at the moment, there is no way to skip the login or reset your username. But of course you can always create a new account with the username you want. 🙂


Are you sure you typed the commands correctly? The commands do work fine and causes no problems on my test. There should be no need to reinstall your SD card. You might have to uninstall the Joy-Pi Software before updating (with the Add / Remove Software tool from the main menu of the Raspberry OS) but the script should still work without any problems.


Best regards,
Jens

Jens

29.01.24 08:43


Hello Jens,
Well, the problem is we bought 15 of these devices, and I tested 3 of them, all giving the same strange problem. So, there must be something systematically wrong. But I just can't figure out what it might be. I entered the 3 command lines correctly. The first two responded as expected, but only the third one (./Joy...) gave that strange error, which, by the way, didn't show up during the first installation. But now, I am going to try your suggestion to remove the software as you indicated. And try reinstall next. One step at a time. :-)


Regads


Pete

Pete_r61

29.01.24 18:04

Hello Pete,


that is very strange. 


Could you maybe upload the Joy-Pi-install.sh file from your device showing that error (it should be located at /home/pi) and send it here?


I will take a look at it and maybe find out whats going wrong. 🙂


Best regards,
Jens

Jens

30.01.24 08:45

#!/bin/sh


echo """
                                  **************************
   ####     #######      ####   ####          #### #########
   ####   ############   ####   ####          #### #########
   ####  ####     ####   ####   ####          ####  ###
   ####  ###       ###   ########### ######## ####  ###    
   ####  ###       ###      #####    ######## ####  ###    
#######  ####     ####       ###              ####  ###
#######   ###########        ###              ####  ########
#######     #######          ###              ####  ########  
**************************
"""
echo "Joy-Pi Software Installer"
echo ""
sleep 0.5
echo "Visit https://www.joy-pi.net for more information."


installTheme(){
    echo ""
    echo ""
    echo "=== Installing theme ==="
    sleep 0.5
    sudo mkdir /home/pi/.config/gtk-3.0
    sudo mkdir /home/pi/.config/lxsession
    sudo mkdir /home/pi/.config/lxsession/LXDE-pi
    sudo apt install git
    wget https://www.joy-pi.net/Joy-IT-Theme.zip
    sudo unzip Joy-IT-Theme.zip
    sudo rm Joy-IT-Theme.zip
    mkdir -p /home/$USER/.themes
    cp -r Joy-IT /home/$USER/.themes/Joy-IT
    sudo rm -rf Joy-IT


    GTK2_CONFIG="/home/$USER/.gtkrc-2.0"
    GTK3_CONFIG="/home/$USER/.config/gtk-3.0/settings.ini"
    LXSESSION_CONFIG="/home/$USER/.config/lxsession/LXDE-pi/desktop.conf"


    sudo touch $GTK2_CONFIG
    sudo chmod 777 $GTK2_CONFIG
    sudo cat <$GTK2_CONFIG
# DO NOT EDIT! This file will be overwritten by LXAppearance.
# Any customization should be done in ~/.gtkrc-2.0.mine instead.


include "home/pi/.gtkrc-2.0.mine"
gtk-theme-name="Joy-IT"
gtk-icon-theme-name="PiXflat"
gtk-font-name="PibotoLt 16"
gtk-cursor-theme-name="PiXflat"
gtk-cursor-theme-size=36
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
gtk-toolbar-icon-size=GTK_ICON_SIZE_DIALOG
gtk-button-images=0
gtk-menu-images=0
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintfull"
gtk-xft-rgba="rgb"
EOF


    sudo touch $GTK3_CONFIG
    sudo chmod 777 $GTK3_CONFIG
    sudo cat <$GTK3_CONFIG
[Settings]
gtk-theme-name=Joy-IT
gtk-icon-theme-name=PiXflat
gtk-font-name=PibotoLt 16
gtk-cursor-theme-name=PiXflat
gtk-cursor-theme-size=36
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
gtk-toolbar-icon-size=GTK_ICON_SIZE_DIALOG
gtk-button-images=0
gtk-menu-images=0
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle=hintfull
gtk-xft-rgba=rgb
EOF


    sudo touch $LXSESSION_CONFIG
    sudo chmod 777 $LXSESSION_CONFIG
    sudo cat <$LXSESSION_CONFIG
[GTK]
sNet/ThemeName=Joy-IT
sGtk/ColorScheme=selected_bg_color:#87919B\nselected_fg_color:#F0F0F0\nbar_bg_color:#EDECEB\nbar_fg_color:#000000\n
sGtk/FontName=PibotoLt 16
iGtk/ToolbarIconSize=6
sGtk/IconSizes=gtk-large-toolbar=48,48
iGtk/CursorThemeSize=36
sNet/IconThemeName=PiXflat
sGtk/CursorThemeName=PiXflat
iGtk/ToolbarStyle=3
iGtk/ButtonImages=0
iGtk/MenuImages=0
iNet/EnableEventSounds=1
iNet/EnableInputFeedbackSounds=1
iXft/Antialias=1
iXft=Hinting=1
sXft/HintStyle=hintfull
sXft/RGBA=rgb
EOF


    lxpanelctl restart && openbox --restart
}


installWallpaper(){
    echo ""
    echo ""
    echo "=== Installing wallpaper === "
    sleep 0.5
    echo "Downloading..."
    wget https://www.joy-pi.net/JoyIT-Wallpaper.jpg
    mkdir .joypi
    cp JoyIT-Wallpaper.jpg .joypi/JoyIT-Wallpaper.jpg
    sudo rm JoyIT-Wallpaper.jpg
    pcmanfm --set-wallpaper .joypi/JoyIT-Wallpaper.jpg
    echo "Done"    
}


createDesktopShortcut(){
    echo ""
    echo ""
    echo "=== Creating desktop shortcut === "
    cat </home/$USER/Desktop/joy-pi.desktop 
    [Desktop Entry]
    Type=Link
    Name=Joy-Pi
    Icon=joy-pi
    URL=/usr/share/applications/joy-pi.desktop
EOF
    echo "Done"
}


echo ""
echo ""
echo "=== Installing software === "
SYSTEMVERSION=$(getconf LONG_BIT)
if [ $SYSTEMVERSION = 64 ]; then
    wget https://www.joy-pi.net/joy-pi_3.1.0_arm64.deb
    filePath="/home/$USER/joy-pi_3.1.0_arm64.deb"
else
    wget https://www.joy-pi.net/joy-pi_3.1.0_armv7l.deb
    filePath="/home/$USER/joy-pi_3.1.0_armv7l.deb"
fi


sudo apt-get install -y $filePath
sudo rm $filePath
sudo raspi-config nonint do_audio 1
echo "Done"


#while true; do
#    read -p "Do you want to apply the custom Joy-IT theme? [Y/n]: " yn
#    case $yn in
#        [Yy]* ) installTheme; break;;
#        [Nn]* ) break;;
#        * ) echo "Please answer yes or no.";;
#    esac
#done


while true; do
    echo "#######################################################"
    echo ""
    read -p "Do you want to apply the custom Joy-IT wallpaper? [Y/n]: " yn
    case $yn in
        [Yy]* ) installWallpaper; break;;
        [Nn]* ) break;;
        * ) echo "Please answer yes or no.";;
    esac
done


while true; do
    echo "#######################################################"
    echo ""
    read -p "Do you want to create a desktop shortcut? [Y/n]: " yn
    case $yn in
        [Yy]* ) createDesktopShortcut; break;;
        [Nn]* ) break;;
        * ) echo "Please answer yes or no.";;
    esac
done


SPIstate=$(sudo raspi-config nonint get_spi)
I2Cstate=$(sudo raspi-config nonint get_i2c)


if [ $SPIstate = 1 ]; then
    while true; do
        echo "#######################################################"
        echo ""
        read -p "SPI is required for your Joy-Pi but currently not enabled. Do you want to activate SPI? [Y/n]: " yn
        case $yn in
            [Yy]* ) sudo raspi-config nonint do_spi 0; break;;
            [Nn]* ) break;;
            * ) echo "Please answer yes or no.";;
        esac
    done
fi


if [ $I2Cstate = 1 ]; then
    while true; do
        echo "#######################################################"
        echo ""
        read -p "I2C is required for your Joy-Pi but currently not enabled. Do you want to activate I2C? [Y/n]: " yn
        case $yn in
            [Yy]* ) sudo raspi-config nonint do_i2c 0; break;;
            [Nn]* ) break;;
            * ) echo "Please answer yes or no.";;
        esac
    done
fi


while true; do
    echo "#######################################################"
    echo ""
    read -p "Software successfully installed. You should now restart your device. Do you want to restart? [Y/n]" yn
    case $yn in
        [Yy]* ) sudo reboot now; break;;
        [Nn]* ) break;;
        * ) echo "Please answer yes or no.";;
    esac
done


echo ""
echo ""
sleep 1
echo "You can now start the Joy-Pi software."


#!/bin/sh


echo """
                                  **************************
   ####     #######      ####   ####          #### #########
   ####   ############   ####   ####          #### #########
   ####  ####     ####   ####   ####          ####  ###
   ####  ###       ###   ########### ######## ####  ###    
   ####  ###       ###      #####    ######## ####  ###    
#######  ####     ####       ###              ####  ###
#######   ###########        ###              ####  ########
#######     #######          ###              ####  ########  
**************************
"""
echo "Joy-Pi Software Installer"
echo ""
sleep 0.5
echo "Visit https://www.joy-pi.net for more information."


installTheme(){
    echo ""
    echo ""
    echo "=== Installing theme ==="
    sleep 0.5
    sudo mkdir /home/pi/.config/gtk-3.0
    sudo mkdir /home/pi/.config/lxsession
    sudo mkdir /home/pi/.config/lxsession/LXDE-pi
    sudo apt install git
    wget https://www.joy-pi.net/Joy-IT-Theme.zip
    sudo unzip Joy-IT-Theme.zip
    sudo rm Joy-IT-Theme.zip
    mkdir -p /home/$USER/.themes
    cp -r Joy-IT /home/$USER/.themes/Joy-IT
    sudo rm -rf Joy-IT


    GTK2_CONFIG="/home/$USER/.gtkrc-2.0"
    GTK3_CONFIG="/home/$USER/.config/gtk-3.0/settings.ini"
    LXSESSION_CONFIG="/home/$USER/.config/lxsession/LXDE-pi/desktop.conf"


    sudo touch $GTK2_CONFIG
    sudo chmod 777 $GTK2_CONFIG
    sudo cat <$GTK2_CONFIG
# DO NOT EDIT! This file will be overwritten by LXAppearance.
# Any customization should be done in ~/.gtkrc-2.0.mine instead.


include "home/pi/.gtkrc-2.0.mine"
gtk-theme-name="Joy-IT"
gtk-icon-theme-name="PiXflat"
gtk-font-name="PibotoLt 16"
gtk-cursor-theme-name="PiXflat"
gtk-cursor-theme-size=36
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
gtk-toolbar-icon-size=GTK_ICON_SIZE_DIALOG
gtk-button-images=0
gtk-menu-images=0
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintfull"
gtk-xft-rgba="rgb"
EOF


    sudo touch $GTK3_CONFIG
    sudo chmod 777 $GTK3_CONFIG
    sudo cat <$GTK3_CONFIG
[Settings]
gtk-theme-name=Joy-IT
gtk-icon-theme-name=PiXflat
gtk-font-name=PibotoLt 16
gtk-cursor-theme-name=PiXflat
gtk-cursor-theme-size=36
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
gtk-toolbar-icon-size=GTK_ICON_SIZE_DIALOG
gtk-button-images=0
gtk-menu-images=0
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle=hintfull
gtk-xft-rgba=rgb
EOF


    sudo touch $LXSESSION_CONFIG
    sudo chmod 777 $LXSESSION_CONFIG
    sudo cat <$LXSESSION_CONFIG
[GTK]
sNet/ThemeName=Joy-IT
sGtk/ColorScheme=selected_bg_color:#87919B\nselected_fg_color:#F0F0F0\nbar_bg_color:#EDECEB\nbar_fg_color:#000000\n
sGtk/FontName=PibotoLt 16
iGtk/ToolbarIconSize=6
sGtk/IconSizes=gtk-large-toolbar=48,48
iGtk/CursorThemeSize=36
sNet/IconThemeName=PiXflat
sGtk/CursorThemeName=PiXflat
iGtk/ToolbarStyle=3
iGtk/ButtonImages=0
iGtk/MenuImages=0
iNet/EnableEventSounds=1
iNet/EnableInputFeedbackSounds=1
iXft/Antialias=1
iXft=Hinting=1
sXft/HintStyle=hintfull
sXft/RGBA=rgb
EOF


    lxpanelctl restart && openbox --restart
}


installWallpaper(){
    echo ""
    echo ""
    echo "=== Installing wallpaper === "
    sleep 0.5
    echo "Downloading..."
    wget https://www.joy-pi.net/JoyIT-Wallpaper.jpg
    mkdir .joypi
    cp JoyIT-Wallpaper.jpg .joypi/JoyIT-Wallpaper.jpg
    sudo rm JoyIT-Wallpaper.jpg
    pcmanfm --set-wallpaper .joypi/JoyIT-Wallpaper.jpg
    echo "Done"    
}


createDesktopShortcut(){
    echo ""
    echo ""
    echo "=== Creating desktop shortcut === "
    cat </home/$USER/Desktop/joy-pi.desktop 
    [Desktop Entry]
    Type=Link
    Name=Joy-Pi
    Icon=joy-pi
    URL=/usr/share/applications/joy-pi.desktop
EOF
    echo "Done"
}


echo ""
echo ""
echo "=== Installing software === "
SYSTEMVERSION=$(getconf LONG_BIT)
if [ $SYSTEMVERSION = 64 ]; then
    wget https://www.joy-pi.net/joy-pi_3.1.0_arm64.deb
    filePath="/home/$USER/joy-pi_3.1.0_arm64.deb"
else
    wget https://www.joy-pi.net/joy-pi_3.1.0_armv7l.deb
    filePath="/home/$USER/joy-pi_3.1.0_armv7l.deb"
fi


sudo apt-get install -y $filePath
sudo rm $filePath
sudo raspi-config nonint do_audio 1
echo "Done"


#while true; do
#    read -p "Do you want to apply the custom Joy-IT theme? [Y/n]: " yn
#    case $yn in
#        [Yy]* ) installTheme; break;;
#        [Nn]* ) break;;
#        * ) echo "Please answer yes or no.";;
#    esac
#done


while true; do
    echo "#######################################################"
    echo ""
    read -p "Do you want to apply the custom Joy-IT wallpaper? [Y/n]: " yn
    case $yn in
        [Yy]* ) installWallpaper; break;;
        [Nn]* ) break;;
        * ) echo "Please answer yes or no.";;
    esac
done


while true; do
    echo "#######################################################"
    echo ""
    read -p "Do you want to create a desktop shortcut? [Y/n]: " yn
    case $yn in
        [Yy]* ) createDesktopShortcut; break;;
        [Nn]* ) break;;
        * ) echo "Please answer yes or no.";;
    esac
done


SPIstate=$(sudo raspi-config nonint get_spi)
I2Cstate=$(sudo raspi-config nonint get_i2c)


if [ $SPIstate = 1 ]; then
    while true; do
        echo "#######################################################"
        echo ""
        read -p "SPI is required for your Joy-Pi but currently not enabled. Do you want to activate SPI? [Y/n]: " yn
        case $yn in
            [Yy]* ) sudo raspi-config nonint do_spi 0; break;;
            [Nn]* ) break;;
            * ) echo "Please answer yes or no.";;
        esac
    done
fi


if [ $I2Cstate = 1 ]; then
    while true; do
        echo "#######################################################"
        echo ""
        read -p "I2C is required for your Joy-Pi but currently not enabled. Do you want to activate I2C? [Y/n]: " yn
        case $yn in
            [Yy]* ) sudo raspi-config nonint do_i2c 0; break;;
            [Nn]* ) break;;
            * ) echo "Please answer yes or no.";;
        esac
    done
fi


while true; do
    echo "#######################################################"
    echo ""
    read -p "Software successfully installed. You should now restart your device. Do you want to restart? [Y/n]" yn
    case $yn in
        [Yy]* ) sudo reboot now; break;;
        [Nn]* ) break;;
        * ) echo "Please answer yes or no.";;
    esac
done


echo ""
echo ""
sleep 1
echo "You can now start the Joy-Pi software."


===========================================================================


Hello Jens,


This is the code from Joy-Pi-install.sh after re-install (after first having removed the software). This works now


Next message I will send the same named file that generated the error.

Pete_r61

31.01.24 01:06

   
   
   
       
       
        An Error Occurred: Not Found
       
       
   
   
   


       

Oops! An Error Occurred


       

The server returned a "404 Not Found".


       


        Something is broken. Please let us know what you were doing when this error occurred.
        We will fix it as soon as possible. Sorry for any inconvenience caused.
       


   

   
   


   
   
   
       
       
        An Error Occurred: Not Found
       
       
   
   
   


       

Oops! An Error Occurred


       

The server returned a "404 Not Found".


       


        Something is broken. Please let us know what you were doing when this error occurred.
        We will fix it as soon as possible. Sorry for any inconvenience caused.
       


   

   
   


 


=================================================


.... and this is the one that caused some error (?)


Anyway I have now a process to get learning software going again. 


Grüße
Regards
Pete_r61


 

Pete_r61

31.01.24 01:13

   
   
   
       
       
        An Error Occurred: Not Found
       
       
   
   
   


       

Oops! An Error Occurred


       

The server returned a "404 Not Found".


       


        Something is broken. Please let us know what you were doing when this error occurred.
        We will fix it as soon as possible. Sorry for any inconvenience caused.
       


   

   
   


   
   
   
       
       
        An Error Occurred: Not Found
       
       
   
   
   


       

Oops! An Error Occurred


       

The server returned a "404 Not Found".


       


        Something is broken. Please let us know what you were doing when this error occurred.
        We will fix it as soon as possible. Sorry for any inconvenience caused.
       


   

   
   


 


========================================================


Regards,


Pete

Pete_r61

31.01.24 01:15

Hello Pete,


it seems that there were a server issue at the moment you were trying to download that file.


Is it now working correctly on all your machines?


Best regards,
Jens

Jens

31.01.24 08:36