SimpleMining OS: How To Enable Logging

  • 3
  •  
  • 4
  •  
  •  
  •  
  •  
  •  
  •  
    7
    Shares

I recently started using SimpleMining OS and was perplexed when I went into the /var/log/ folder to find it mostly devoid of any of the usual linux log files. Specifically, I wanted to tail /var/log/messages but this file was not being created.

It appears SimpleMining OS disables most of the Linux log files that many are used to viewing. In order to enable the messages log file I had to do some editing of the rsyslog configuration file. To do that ssh into your Simple Mining OS machine and type the following command:

nano /etc/rsyslog.d/50-default.conf

Once in the file you will see the following below and it is commented out with a # on each line. Simply remove the comment until it looks like below:

*.=info;*.=notice;*.=warn;\
        auth,authpriv.none;\
        cron,daemon.none;\
        mail,news.none          -/var/log/messages

After you save it restart rsyslog via:

/etc/init.d/rsyslog restart

And now revisit your /var/log/ folder and you should now see messages.

logging-simplemining-os

Happy debugging!

Note: If you don’t have a large enough hard drive, such as running off a USB stick, you may wish to disable after finding the issue.


  • 3
  •  
  • 4
  •  
  •  
  •  
  •  
  •  
  •  
    7
    Shares

1
Leave a Reply

avatar
1 Comment threads
0 Thread replies
1 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
Dev Ron Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Dev Ron
Member

Thank you! That saves me a lot of time! If Simplemining.net would show up the logs, that would be fantasic.