SimpleMining OS: How To Enable Logging

Written by CC Freak on September 15, 2017
  • 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.

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

Topic tags:

Subscribe
Notify of
guest
1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments