User Tools

Site Tools


raspberrypi:resin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
raspberrypi:resin [2013/08/16 17:06] rlunaroraspberrypi:resin [2013/08/16 21:46] rlunaro
Line 62: Line 62:
 ===== Changes in the ''/etc/init.d/resin'' script ===== ===== Changes in the ''/etc/init.d/resin'' script =====
  
-I've made the following changes in this script: +Edit the ''/etc/init.d/resin'' script and make the changes detailed below. 
  
-AQUI ME QUEDO+You have to add an user value. In my case I've selected the root value and afterwards I will change the resin.properties to have then the user changed to resin once it is opened the port 80. 
 + 
 +<code> 
 +START_CMD="start-all" 
 + 
 +USER="root" 
 +</code> 
 + 
 +You must uncomment the RESIN_ROOT line: 
 + 
 +<code> 
 +
 +# -resin-root /var/resin         -- the main data directory 
 +
 +RESIN_ROOT="-root-directory /var/resin" 
 +</code> 
 + 
 +And the RESIN_CONF line: 
 + 
 +<code> 
 +
 +# -conf /etc/resin/resin.xml   -- the main configuration file 
 +
 +RESIN_CONF="-conf /etc/resin/resin.xml" 
 +</code> 
 + 
 +And the RESIN_LOG line: 
 + 
 +<code> 
 +#  
 +# Licenses for Resin. TODO in progress 
 +# RESIN_LICENSE=" -license-directory /etc/resin/licenses " 
 +
 +# -log-directory /var/log/resin -- the main log directory 
 +
 +RESIN_LOG="--log-directory /var/log/resin" 
 +</code> 
 + 
 +===== Change the resin.properties ===== 
 + 
 +Change the following values: 
 + 
 +<code> 
 +setuid_user   : resin 
 +setuid_group  : resin 
 +</code> 
 + 
 +<code> 
 +rest_admin_ssl : true 
 +</code> 
 + 
 +<code> 
 +admin_user : PUT-AN-USERNAME-HERE 
 +admin_password : {SSHA}CREATE-THE-CRYPTED-PASSWORD-AND-ADD-IT-HERE 
 +</code>
  
  
raspberrypi/resin.txt · Last modified: 2022/12/02 22:02 by 127.0.0.1