{"id":330,"date":"2014-11-26T14:21:17","date_gmt":"2014-11-26T13:21:17","guid":{"rendered":"http:\/\/webspn.unime.it\/?page_id=330"},"modified":"2017-10-30T23:09:43","modified_gmt":"2017-10-30T22:09:43","slug":"installation","status":"publish","type":"page","link":"https:\/\/webspn.unime.it\/?page_id=330","title":{"rendered":"Installation"},"content":{"rendered":"<p>WebSPN archive files are provided with scripts a user can use to easily configure the system with an system wide installation.<br \/>\nInstallation scripts could be tried following the instructions according to the used distribution. If it doesn&#8217;t work, manual installation can be used.<\/p>\n<h2><a name=\"script_inst\"><\/a><br \/>\n<strong>Script assisted installation<br \/>\n<\/strong><\/h2>\n<ul>\n<li><a title=\"Debian\" href=\"https:\/\/webspn.unime.it\/?page_id=228\">Debian<\/a><\/li>\n<\/ul>\n<ul>\n<li><a title=\"Ubuntu\" href=\"https:\/\/webspn.unime.it\/?page_id=230\">Ubuntu<\/a><\/li>\n<\/ul>\n<ul>\n<li><a title=\"Fedora\" href=\"https:\/\/webspn.unime.it\/?page_id=232\">Fedora<\/a><\/li>\n<\/ul>\n<ul>\n<li><a title=\"Gentoo\" href=\"https:\/\/webspn.unime.it\/?page_id=234\">Gentoo<\/a><\/li>\n<\/ul>\n<ul>\n<li><a title=\"Suse\" href=\"https:\/\/webspn.unime.it\/?page_id=236\">Suse<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3><strong>How to uninstall<\/strong><br \/>\n<\/h3>\n<p>As superuser (<strong>root<\/strong>) within the installation dir webspn, execute this command:<\/p>\n<blockquote><p>.\/install.sh -u<\/p><\/blockquote>\n<h2><a name=\"manual_inst\"><\/a><br \/>\n<strong>Manual Installation<\/strong><br \/>\n<\/h2>\n<p>These are the steps to install webspn without using the installer<\/p>\n<p><strong>You should use this guide only if the installer for your distribution doesn&#8217;t work.<\/strong><\/p>\n<p><strong>Run these commands as (root) superuser.<\/strong><\/p>\n<ul>\n<li>If you have webspn 32 bit version<\/li>\n<\/ul>\n<blockquote><p>tar zxvf .\/webspn32.tar.gz; cd webspn<\/p><\/blockquote>\n<ul>\n<li>if you have webspn 64 bit version<\/li>\n<\/ul>\n<blockquote><p>tar zxvf .\/webspn64.tar.gz; cd webspn<\/p><\/blockquote>\n<ul>\n<li>Create the installation dir<\/li>\n<\/ul>\n<blockquote><p>mkdir \/opt\/webspn<br \/>\nmkdir \/opt\/webspn\/bin<\/p>\n<p>mkdir \/opt\/webspn\/bin\/client<\/p><\/blockquote>\n<ul>\n<li>Change permissions to dir<\/li>\n<\/ul>\n<blockquote><p>chmod 777 \/opt\/webspn<br \/>\nchmod 777 \/opt\/webspn\/bin<br \/>\nchmod 777 \/opt\/webspn\/bin\/client<\/p><\/blockquote>\n<ul>\n<li>Copy the executables in the correct dir<\/li>\n<\/ul>\n<blockquote><p>cp .\/webspnclient .\/WebSPNClient.jar \/opt\/webspn\/bin\/client\/<\/p>\n<p>cp .\/webspn .\/simul .\/WebSPNServer.jar \/opt\/webspn\/bin\/<\/p><\/blockquote>\n<ul>\n<li>Change permissions to the executables<\/li>\n<\/ul>\n<blockquote><p>chmod 777 \/opt\/webspn\/bin\/webspn<br \/>\nchmod 777 \/opt\/webspn\/bin\/simul<br \/>\nchmod 777 \/opt\/webspn\/bin\/WebSPNServer.jar<br \/>\nchmod 777 \/opt\/webspn\/bin\/client\/WebSPNClient.jar<br \/>\nchmod 777 \/opt\/webspn\/bin\/client\/webspnclient<\/p><\/blockquote>\n<ul>\n<li>Create dirs for the libs<\/li>\n<\/ul>\n<blockquote><p>mkdir \/opt\/webspn\/lib<br \/>\nmkdir \/opt\/webspn\/lib\/simul<br \/>\nmkdir \/opt\/webspn\/lib\/tool<\/p><\/blockquote>\n<ul>\n<li>Copy all libs in the correct dirs<\/li>\n<\/ul>\n<blockquote><p>cp .\/lib\/simul\/* \/opt\/webspn\/lib\/simul\/<\/p>\n<p>cp .\/lib\/tool\/* \/opt\/webspn\/lib\/tool\/<\/p><\/blockquote>\n<ul>\n<li>Create the symbolic link for all the libs<\/li>\n<\/ul>\n<blockquote><p>ln -s \/opt\/webspn\/lib\/simul\/libQtGui.so.4.8.2 \/opt\/webspn\/lib\/simul\/libQtGui.so.4<\/p>\n<p>ln -s \/opt\/webspn\/lib\/simul\/libQtCore.so.4.8.2 \/opt\/webspn\/lib\/simul\/libQtCore.so.4<\/p>\n<p>ln -s \/opt\/webspn\/lib\/simul\/libQtXml.so.4.8.2 \/opt\/webspn\/lib\/simul\/libQtXml.so.4<br \/>\nln -s \/opt\/webspn\/lib\/simul\/libaudio.so.2.4 \/opt\/webspn\/lib\/simul\/libaudio.so.2<\/p>\n<p>ln -s \/opt\/webspn\/lib\/simul\/libpng12.so.0.49.0 \/opt\/webspn\/lib\/simul\/libpng12.so.0<\/p>\n<p>ln -s \/opt\/webspn\/lib\/tool\/libmpich.so.3.2 \/opt\/webspn\/lib\/tool\/libmpich.so.3<\/p>\n<p>ln -s \/opt\/webspn\/lib\/tool\/libmpl.so.1.1.0 \/opt\/webspn\/lib\/tool\/libmpl.so.1<\/p>\n<p>ln -s \/opt\/webspn\/lib\/tool\/libopa.so.1.0.0 \/opt\/webspn\/lib\/tool\/libopa.so.1<\/p>\n<p>ln -s \/opt\/webspn\/lib\/tool\/libcr.so.0.5.5 \/opt\/webspn\/lib\/tool\/libcr.so.0<\/p><\/blockquote>\n<ul>\n<li>Change permissions to the libs<\/li>\n<\/ul>\n<blockquote><p>chmod -R 777 \/opt\/webspn\/lib<\/p><\/blockquote>\n<ul>\n<li>Set LD_LIBRARY_PATH<\/li>\n<\/ul>\n<blockquote><p>echo export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:\/opt\/webspn\/lib\/simul:\/opt\/webspn\/lib\/tool &gt;&gt; \/etc\/profile<\/p><\/blockquote>\n<ul>\n<li>Set PATH<\/li>\n<\/ul>\n<blockquote><p>echo export PATH=$PATH:\/opt\/webspn\/bin:\/opt\/webspn\/bin\/client &gt;&gt; \/etc\/profile<\/p><\/blockquote>\n<ul>\n<li>If you have\u00a0<strong>debian<\/strong>\u00a0or\u00a0<strong>ubuntu<\/strong><\/li>\n<\/ul>\n<p>if you have\u00a0<strong><a href=\"#sm\">sysv<\/a><\/strong><\/p>\n<blockquote><p>cp .\/webspnd \/etc\/init.d\/<br \/>\nchmod 755 \/etc\/init.d\/webspnd<br \/>\nupdate-rc.d webspnd defaults<br \/>\n\/etc\/init.d\/webspnd start<\/p><\/blockquote>\n<p>if you have\u00a0<strong><a href=\"#sm\">systemd<\/a><\/strong><\/p>\n<blockquote><p>cp .\/webspnd \/opt\/webspn\/bin\/<br \/>\nchmod 755 \/opt\/webspn\/bin\/webspnd<br \/>\ncp .\/webspn_sysd.service \/lib\/systemd\/system\/<br \/>\nsystemctl enable webspn_sysd.service<br \/>\nsystemctl start webspn_sysd.service<\/p><\/blockquote>\n<ul>\n<li>if you have\u00a0<strong>fedora<\/strong><\/li>\n<\/ul>\n<p>if you have\u00a0<strong>sysv<\/strong><\/p>\n<blockquote><p>cp .\/webspnd_fedora \/etc\/init.d\/<br \/>\nchmod 755 \/etc\/init.d\/webspnd_fedora<br \/>\nchkconfig &#8211;add webspnd_fedora<br \/>\nservice webspnd_fedora start<\/p><\/blockquote>\n<p>if you have\u00a0<strong>systemd<\/strong><\/p>\n<blockquote><p>cp .\/webspnd_fedora \/opt\/webspn\/bin\/<br \/>\nchmod 755 .\/webspn\/bin\/webspnd_fedora<br \/>\ncp .\/webspn_fedora_sysd.service \/lib\/systemd\/system\/<br \/>\nsystemctl enable webspn_fedora_sysd.service<br \/>\nsystemctl start webspn_fedora_sysd.service<\/p><\/blockquote>\n<ul>\n<li>if you have\u00a0<strong>suse<\/strong><\/li>\n<\/ul>\n<p>if you have\u00a0<strong>sysv<\/strong><\/p>\n<blockquote><p>cp .\/webspnd_suse \/etc\/init.d\/<br \/>\nchmod 755 \/etc\/init.d\/webspnd_suse<br \/>\nchkconfig &#8211;add webspnd_suse<br \/>\nservice webspnd_suse start<\/p><\/blockquote>\n<p>if you have\u00a0<strong>systemd<\/strong><\/p>\n<blockquote><p>cp .\/webspnd_suse \/opt\/webspn\/bin\/<br \/>\nchmod 755 \/opt\/webspn\/bin\/webspnd_suse<br \/>\ncp .\/webspn_suse_sysd.service \/lib\/systemd\/system\/<br \/>\nsystemctl enable webspn_suse_sysd.service<br \/>\nsystemctl start webspn_suse_sysd.service<\/p><\/blockquote>\n<ul>\n<li>if you have\u00a0<strong>gentoo<\/strong><\/li>\n<\/ul>\n<p>If you have\u00a0<strong>openrc<\/strong><\/p>\n<blockquote><p>cp .\/webspnd_gentoo_openrc \/etc\/init.d\/<br \/>\nchmod 755 \/etc\/init.d\/webspnd_gentoo_openrc<br \/>\nrc-update add \/etc\/init.d\/webspnd_gentoo_openrc default<br \/>\nrc-service \/etc\/init.d\/webspnd_gentoo_openrc start<\/p><\/blockquote>\n<p>if you have\u00a0<strong>systemd<\/strong><\/p>\n<blockquote><p>cp .\/webspnd_gentoo \/opt\/webspn\/bin\/<br \/>\nchmod 755 \/opt\/webspn\/bin\/webspnd_gentoo<br \/>\ncp .\/webspn_gentoo_sysd.service \/usr\/lib\/systemd\/system\/<br \/>\nsystemctl enable webspn_gentoo_sysd.service<br \/>\nsystemctl start webspn_gentoo_sysd.service<\/p><\/blockquote>\n<p>if you have\u00a0<em><strong><a href=\"#sm\">SystemV<\/a><\/strong>:<\/em><\/p>\n<blockquote><p>update-rc.d -f &lt;name_of_service&gt; remove<\/p><\/blockquote>\n<p>where &lt;name_of_service&gt; is webspnd(for debian or ubuntu)\/webspnd_fedora\/webspnd_suse\/ according to your distribution. If you don&#8217;t know the name of service, you can do:<\/p>\n<blockquote><p>ls \/etc\/init.d\/webspn*<\/p><\/blockquote>\n<p>if you have\u00a0<em><strong>systemd<\/strong>:<\/em><\/p>\n<blockquote><p>\u00a0systemctl disable &lt;name_of_service&gt;.service<\/p><\/blockquote>\n<p>Where &lt;name_of_service&gt; is webspn_sysd.service\/webspn_sysd_fedora\/webspn_sysd_suse according to your distribution.<\/p>\n<p>If you don&#8217;t know the name of the service, you can do:<\/p>\n<blockquote><p>ls \/lib\/systemd\/system<\/p>\n<p>ls \/usr\/lib\/systemd\/system<\/p><\/blockquote>\n<p>If you have\u00a0<strong>OpenRC<\/strong>:<\/p>\n<blockquote><p>rc-update del &lt;name_of_service&gt; default<\/p><\/blockquote>\n<p>Probably for you &lt;name_of_service&gt; is \/etc\/init.d\/webspnd_gentoo_openrc.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<h3><a name=\"start_stop\"><\/a><strong>How to manually start or stop WebSPN Server<\/strong><\/h3>\n<blockquote><p>\/etc\/init.d\/&lt;name_of_service&gt; start<\/p>\n<p>\/etc\/init.d\/&lt;name_of_service&gt; stop<\/p><\/blockquote>\n<p>&lt;name_of_service&gt; should be webspnd(for debian or ubuntu)\/webspnd_fedora\/webspnd_suse\u00a0 according to your distribution<\/p>\n<p>If you use gentoo you can do this:<\/p>\n<blockquote><p>rc-service \/etc\/init.d\/webspnd_gentoo_openrc start<\/p>\n<p>rc-service \/etc\/init.d\/webspnd_gentoo_openrc stop<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<h3><a name=\"sm\"><\/a><strong>What is my system\/service manager?<\/strong><\/h3>\n<p>Usually, service manager is the process with PID 1.<\/p>\n<p><strong>SysV:<\/strong><\/p>\n<blockquote><p>ps aux|grep init<\/p><\/blockquote>\n<p>If you see something like this:<\/p>\n<blockquote><p>root\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0 0.1\u00a0 0.0\u00a0 10644\u00a0\u00a0 824\u00a0?\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Ss\u00a0\u00a0 18:35\u00a0\u00a0 0:00 init<\/p><\/blockquote>\n<p>You have installed SysV<\/p>\n<p><strong>Systemd<\/strong>:<\/p>\n<blockquote><p>ps aux|grep systemd<\/p><\/blockquote>\n<p>if you see something like this<\/p>\n<blockquote><p>root\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0 0.7\u00a0 0.2\u00a0 41008\u00a0 4172 ?\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Ss\u00a0\u00a0 18:17\u00a0\u00a0 0:00 \/bin\/systemd<\/p><\/blockquote>\n<p>You have installed systemd<\/p>\n<p><strong>OpenRC<\/strong>:<\/p>\n<p>If you use Gentoo this is default service manager.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WebSPN archive files are provided with scripts a user can use to easily configure the system with an system wide installation. Installation [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/webspn.unime.it\/index.php?rest_route=\/wp\/v2\/pages\/330"}],"collection":[{"href":"https:\/\/webspn.unime.it\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/webspn.unime.it\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/webspn.unime.it\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/webspn.unime.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=330"}],"version-history":[{"count":13,"href":"https:\/\/webspn.unime.it\/index.php?rest_route=\/wp\/v2\/pages\/330\/revisions"}],"predecessor-version":[{"id":431,"href":"https:\/\/webspn.unime.it\/index.php?rest_route=\/wp\/v2\/pages\/330\/revisions\/431"}],"wp:attachment":[{"href":"https:\/\/webspn.unime.it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}