Leapfrog Support Team Document - http://support.lpfrg.com

| Applies To Leapfrog Xeed Series
| This solution resolves the "Low disk space error" that can appear in LilyPrint on your Leapfrog Xeed 3d Printer.

------------------------------------------------------------------------------------------------------------------------------------------------


In the earlier versions of LilyPrint it might be possible that the system fills it self with big log files that will eventually take up all the disk space. Fortunately there is a fix and in this document you will find the step-by-step guide. Some linux knowledge might come in handy but is not needed. 


Tools

  1. USB Keyboard
  2. USB Mouse
  3. This guide


Starting terminal application.


  1. Plug in mouse and keyboard
  2. Press F11 to exit fullscreen browser
  3. Click Applications - > Accessories -> Terminal to start terminal application

A white window with black letters should appear. It could be possible that the LilyPrint browser will take over the screen again. Use alt+tab to navigate back to the terminal window if this occurs. 


Forcing new log files and removing the old


Enter following commands:

      

cd /var/log
sudo logrotate -f /etc/logrotate.d/rsyslog

      

you will be prompted for the password, enter 'lily' as password. The terminal will not show asterisk as placeholders for the password!


Now enter the next commands to remove the log files:


sudo rm *.1
sudo rm *.gz
sudo rm *.old

 


this should fix low disk space. Now we will edit the log settings so that it will not happen again. 


Editing the log settings


The following command will open a very basic text editor in the terminal window and open the file with the log settings:


sudo nano /etc/logrotate.d/rsyslog

 


find the following lines on top of the text file: 

  

/var/log/syslog
{
        rotate 7
        daily
        missingok
        notifempty
        delaycompress
        compress
        postrotate
                invoke-rc.d rsyslog rotate > /dev/null
        endscript
}

  

Change the third and fourth lines to:

 

/var/log/syslog
{
        rotate 4
        size 25M
        missingok
        notifempty
        delaycompress
        compress
        postrotate
                invoke-rc.d rsyslog rotate > /dev/null
        endscript
}

 

Now scroll down by moving the cursor down with you keyboard and find the following lines:

 

/var/log/messages
{
        rotate 4
        weekly
        missingok
        notifempty
        compress
        delaycompress
        sharedscripts
        postrotate
                invoke-rc.d rsyslog rotate > /dev/null
        endscript
}

 

And change the word weekly to size 25M to get the following:

  

/var/log/messages
{
        rotate 4
        size 25M
        missingok
        notifempty
        compress
        delaycompress
        sharedscripts
        postrotate
                invoke-rc.d rsyslog rotate > /dev/null
        endscript
}

  


Press ctrl+x and then Y + enter to save. 


Reboot the system

Back in the terminal issue the next command to reboot the system: 

 

sudo reboot