User Tools

Site Tools


howto:solaris:install

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howto:solaris:install [2012/01/19 11:39]
n3mmr
howto:solaris:install [2013/01/10 17:35] (current)
zip
Line 11: Line 11:
  
 The below procedure installs serviio as a service under SMF in Openindiana v 151a and later. The below procedure installs serviio as a service under SMF in Openindiana v 151a and later.
-It will likely work just as well, with possibly minor details changed, on Solaris 11, Nexenta and OpenSolaris b148. +It will likely work just as well, with possibly minor details changed, on Solaris 10 or 11, Nexenta and OpenSolaris b134 (possibly earlier versions too).
-The likeliest change needed is "sudo" instead of "pfexec", since the latter is a bit specific to OpenSolaris descendants.+
  
 +The serviio console should normally be started from a separate copy of serviio, given the below setup.
 +In most useful cases, this is anyway the case, since you want serviio running on a server machine, and you run the console from another machine, say your laptop.
  
-First, make sure you have the appropriate supporting SW installed: +**First, make sure you have the appropriate supporting SW installed:**
 ffmpeg 0.9.1 with rtmp-support, librtmp and lame mp3 can all be found in the sfe-encumbered repository at openindiama.org,  ffmpeg 0.9.1 with rtmp-support, librtmp and lame mp3 can all be found in the sfe-encumbered repository at openindiama.org, 
 http://pkg.openindiana.org/sfe-encumbered/en/index.shtml http://pkg.openindiana.org/sfe-encumbered/en/index.shtml
-from where you can install using the IPS installer, pkg, of your openindiana OI_151a.+from where you can install using the IPS installer, pkg, of your OpenIndiana OI_151a. 
 + 
 +**Get the distro and install it**
  
-Then get the serviio linux tar distro, and extract it under /usr/local/.+Download the serviio linux tar distro, and extract it under /usr/local/.
  
 Create a group "serviio" with a group id > 100: Create a group "serviio" with a group id > 100:
Line 27: Line 29:
 **//<fc #0000FF>prompt> groupadd -g 103 serviio</fc>//** **//<fc #0000FF>prompt> groupadd -g 103 serviio</fc>//**
  
-and a user "serviio" with home directory /usr/local/serviio-0.6.1/ and a uid > 100, and with the group serviio as it's primary group+and a user "serviio" with home directory /usr/local/serviio-1.1/ and a uid > 100, and with the group serviio as it's primary group
  
-**//<fc #0000FF>prompt> useradd -u 103 -g 103 -d /usr/local/serviio-0.6.1 serviio</fc>//**+**//<fc #0000FF>prompt> useradd -u 103 -g 103 -d /usr/local/serviio-1.1 serviio</fc>//**
  
 On my system, 103 was free in both cases, and one might as well use the same number for both. On my system, 103 was free in both cases, and one might as well use the same number for both.
  
-Now, make sure the /usr/local/serviio-0.6.1 tree is owned by the group serviio and the user serviio:+Now, make sure the /usr/local/serviio-1.1 tree is owned by the group serviio and the user serviio:
 **//<fc #0000FF> **//<fc #0000FF>
-prompt> cd /usr/local; chown -R serviio:serviio serviio-0.6.1</fc>+prompt> cd /usr/local; chown -R serviio:serviio serviio-1.1</fc>
 //** //**
  
Line 41: Line 43:
  
 <fc #0000FF>//**prompt> pfexec su serviio**//</fc> <fc #0000FF>//**prompt> pfexec su serviio**//</fc>
-**//<fc #0000FF>prompt> cd /usr/local/serviio-0.6.1 +**//<fc #0000FF>prompt> cd /usr/local/serviio-1.1 
 </fc>//** </fc>//**
 **//<fc #0000FF> **//<fc #0000FF>
Line 58: Line 60:
 Make sure serviio is stopped! Make sure serviio is stopped!
  
 +**Lastly, define a system service that controls Serviio, and start it**
 Save the xml text found at the end of this page in a file "serviio.xml", and put it inside the serviio home dir (see above), and do: Save the xml text found at the end of this page in a file "serviio.xml", and put it inside the serviio home dir (see above), and do:
 **// **//
Line 70: Line 72:
 Next enable the service, so that it will start up whenever the machine is booted, and will be restarted if it gets shot down by mistake. Next enable the service, so that it will start up whenever the machine is booted, and will be restarted if it gets shot down by mistake.
  
-**//<fc #0000FF>prompt> svcadm enable serviio+**//<fc #0000FF>prompt> pfexec svcadm enable serviio
 </fc>//** </fc>//**
  
Line 109: Line 111:
         </method_context>         </method_context>
  
-        <exec_method type="method" name="start" exec="/usr/local/serviio-0.6.1/bin/serviio.sh" timeout_seconds="60"/>+        <exec_method type="method" name="start" exec="/usr/local/serviio-1.1/bin/serviio.sh" timeout_seconds="60"/>
  
         <exec_method type="method" name="stop" exec=":kill" timeout_seconds="60"/>         <exec_method type="method" name="stop" exec=":kill" timeout_seconds="60"/>
howto/solaris/install.1326973171.txt.gz · Last modified: 2012/01/19 11:39 by n3mmr