<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>OCS Inventory Server Ubuntu Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/ocs-inventory-server-ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 07 Dec 2020 08:51:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to Install OCS Inventory Server on Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-ocs-inventory-server-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-ocs-inventory-server-on-ubuntu-20-04/#comments</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Tue, 03 Nov 2020 22:39:12 +0000</pubDate>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[How to Install OCS Inventory Server on Ubuntu 20.04]]></category>
		<category><![CDATA[how to tutorials]]></category>
		<category><![CDATA[install OCS]]></category>
		<category><![CDATA[OCS Inventory Server Ubuntu]]></category>
		<category><![CDATA[ubuntu 20.04]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=23202</guid>

					<description><![CDATA[<p>In this tutorial, you&#8217;ll learn that how to Install OCS Inventory Server On Ubuntu 20.04. Before proceeding towards the installation process, let&#8217;s have a short introduction. Introduction: OCS Inventory is known as Open Computers &#38; Software Inventory Next Generation. OCS provides you the facility of collecting and managing the hardware &#38; software inventory from all [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-ocs-inventory-server-on-ubuntu-20-04/">How to Install OCS Inventory Server on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this tutorial, you&#8217;ll learn that <a href="https://www.osradar.com/?p=23202" target="_blank" rel="noreferrer noopener">how to Install OCS Inventory Server On Ubuntu 20.04</a>. Before proceeding towards the installation process, let&#8217;s have a short introduction.</p>



<h2>Introduction:</h2>



<p>OCS Inventory is known as Open Computers &amp; Software Inventory Next Generation. OCS provides you the facility of collecting and managing the hardware &amp; software inventory from all of your devices. With the help of OCS you can collect hardware &amp; software inventory from active devices on the network. These devices can be routers, switches, computers, printers etc. It is the best asset managment platform for IT devices that provides you the simpler and organized solution. However, it also supports the many operating system including Sun Solaris, IBM AIX, HP-UX, Windows, Linux, MacOS and many more.</p>



<p>So, here we&#8217;ll see the easy and optimal installation of OCS Inventory Server on Ubuntu 20.04</p>



<h3>Step 1: Update Your System</h3>



<p>First of all update your system to have the latest updates installed.</p>



<pre class="wp-block-verse">sudo apt update -y</pre>



<p>Install some extra packages with the help of below command.</p>



<pre class="wp-block-verse">sudo apt install make cmake gcc make git curl unzip -y</pre>



<p>Once installed move towards the next step.</p>



<h3>Step 2: Install LAMP Server On Ubuntu 20.04</h3>



<p>Install the Webserver, Database server and the PHP with required extensions by hitting the below command in your terminal.</p>



<pre class="wp-block-verse">sudo apt-get install apache2 mariadb-server libapache2-mod-perl2 libapache-dbi-perl libapache-db-perl php7.4 libapache2-mod-php7.4 php7.4-common php7.4-sqlite3 php7.4-mysql php7.4-gmp php7.4-curl php7.4-mbstring php7.4-gd php7.4-cli php7.4-xml php7.4-zip php7.4-soap php7.4-json php-pclzip composer</pre>



<p>After installing all these packages, edit the <strong>php.ini</strong> file and change the timezone, memory limit and file upload size as given below:</p>



<pre class="wp-block-verse">memory_limit = 256M<br>post_max_size = 100M<br>upload_max_filesize = 100M<br>max_execution_time = 360<br>date.timezone = Asia/Karachi</pre>



<p>Tjen save &amp; exit the file.</p>



<h3>Step 3: Install Perl &amp; its Modules</h3>



<p>OCS require Perl &amp; some Perl modules, so install the required packages with the help of below command.</p>



<pre class="wp-block-verse">sudo apt install perl libxml-simple-perl libcompress-zlib-perl libdbi-perl libdbd-mysql-perl libnet-ip-perl libsoap-lite-perl libio-compress-perl libapache-dbi-perl libapache2-mod-perl2 libapache2-mod-perl2-dev -y</pre>



<p>Once the installation finished, enable the installed modules by hitting the below command in your terminal.</p>



<pre class="wp-block-verse">sudo perl -MCPAN -e 'install Apache2::SOAP'
sudo perl -MCPAN -e 'install XML::Entities'
sudo perl -MCPAN -e 'install Net::IP'
sudo perl -MCPAN -e 'install Apache::DBI'
sudo perl -MCPAN -e 'install Mojolicious'
sudo perl -MCPAN -e 'install Switch'
sudo perl -MCPAN -e 'install Plack::Handler'</pre>



<h3>Step 4: Configure MariaDB Server</h3>



<p>We&#8217;ll use MariaDB for Database server, you can select your desired one. So, login to the MariaDB and do the following changes.</p>



<pre class="wp-block-verse">sudo mysql</pre>



<pre class="wp-block-verse">MariaDB [(none)]&gt; <strong>CREATE DATABASE ocsdb;</strong>
Query OK, 1 row affected (0.000 sec)
MariaDB [(none)]&gt; <strong>CREATE USER 'userocs'@'localhost' IDENTIFIED BY 'Your_Password';</strong>
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]&gt;<strong> GRANT ALL ON ocsdb.* TO 'userocs'@'localhost' WITH GRANT OPTION;</strong>
Query OK, 0 rows affected (0.000 sec)
MariaDB [(none)]&gt; <strong>FLUSH PRIVILEGES;</strong>
Query OK, 0 rows affected (0.000 sec)
MariaDB [(none)]&gt; <strong>EXIT;</strong>
Bye</pre>



<h3>Step 5: Download &amp; Install OCS Inventory</h3>



<p>Download the latest version of OCS Inventory from the Git.</p>



<pre class="wp-block-verse">git clone https://github.com/OCSInventory-NG/OCSInventory-Server.git</pre>



<p>Then switch to the OCSInventory-Server directory and clone the ocsreport project by typing</p>



<pre class="wp-block-verse">cd OCSInventory-Server
git clone https://github.com/OCSInventory-NG/OCSInventory-ocsreports.git ocsreports</pre>



<p>And switch to the ocsreports directory then install the composer.</p>



<pre class="wp-block-verse">cd ocsreports
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer</pre>



<p>On successful installation, you&#8217;ll see the following output.</p>



<pre class="wp-block-verse">All settings correct for using Composer
Downloading…
Composer (version 2.0.4) successfully installed to: /usr/local/bin/composer
Use it: php /usr/local/bin/composer</pre>



<p>Now, switch back to the OCSInventory-Server directory and modify the<strong> setup.sh</strong> file.</p>



<pre class="wp-block-verse">cd ..
sudo nano setup.sh</pre>



<p>Provide Your Database details as shown below:</p>



<pre class="wp-block-verse">Which host run database server
DB_SERVER_HOST="localhost"
On which port run database server
DB_SERVER_PORT="3306"
Database server credentials
DB_SERVER_USER="userocs"
DB_SERVER_PWD="ocspassword"</pre>



<p>Then save and exit the file.</p>



<p>Finally hit the below command to begin the installation of OCS Inventory.</p>



<pre class="wp-block-verse">sudo ./setup.sh</pre>



<p>Provide the answer of asked question during the installation as listed below:</p>



<pre class="wp-block-verse">sabi@Ubuntu20:~/OCSInventory-Server$ <strong>sudo ./setup.sh</strong>
+----------------------------------------------------------+
| |
| Welcome to OCS Inventory NG Management server setup ! |
| |
+----------------------------------------------------------+
Trying to determine which OS or Linux distribution you use
+----------------------------------------------------------+
| Checking for Apache web server binaries ! |
+----------------------------------------------------------+
CAUTION: If upgrading Communication server from OCS Inventory NG 1.0 RC2 and
previous, please remove any Apache configuration for Communication Server!
Do you wish to continue ([y]/n)?y
Assuming Communication server 1.0 RC2 or previous is not installed
on this computer.
Starting OCS Inventory NG Management server setup from folder /home/sabi/OCSInventory-Server
Storing log in file /home/sabi/OCSInventory-Server/ocs_server_setup.log
+----------------------------------------------------------+
| Checking for database server properties… |
+----------------------------------------------------------+
Your MySQL client seems to be part of MySQL version 10.3.
Your computer seems to be running MySQL 4.1 or higher, good ;-)
Which host is running database server [localhost] ?
OK, database server is running on host localhost ;-)
On which port is running database server [3306] ?
OK, database server is running on port 3306 ;-)
+----------------------------------------------------------+
| Checking for Apache web server daemon… |
+----------------------------------------------------------+
Where is Apache daemon binary [/usr/sbin/apache2ctl] ?
OK, using Apache daemon /usr/sbin/apache2ctl ;-)
+----------------------------------------------------------+
| Checking for Apache main configuration file… |
+----------------------------------------------------------+
Where is Apache main configuration file [/etc/apache2/apache2.conf] ?
OK, using Apache main configuration file /etc/apache2/apache2.conf ;-)
+----------------------------------------------------------+
| Checking for Apache user account… |
+----------------------------------------------------------+
Which user account is running Apache web server [www-data] ?
OK, Apache is running under user account www-data ;-)
+----------------------------------------------------------+
| Checking for Apache group… |
+----------------------------------------------------------+
Which user group is running Apache web server [www-data] ?
OK, Apache is running under users group www-data ;-)
+----------------------------------------------------------+
| Checking for Apache Include configuration directory… |
+----------------------------------------------------------+
Setup found Apache Include configuration directory in
/etc/apache2/conf-available.
Setup will put OCS Inventory NG Apache configuration in this directory.
Where is Apache Include configuration directory [/etc/apache2/conf-available] ?
OK, Apache Include configuration directory /etc/apache2/conf-available found ;-)
+----------------------------------------------------------+
| Checking for PERL Interpreter… |
+----------------------------------------------------------+
Found PERL interpreter at ;-)
Where is PERL interpreter binary [/usr/bin/perl] ?
OK, using PERL interpreter /usr/bin/perl ;-)
Do you wish to setup Communication server on this computer ([y]/n)?
+----------------------------------------------------------+
| Checking for Make utility… |
+----------------------------------------------------------+
OK, Make utility found at ;-)
+----------------------------------------------------------+
| Checking for Apache mod_perl version… |
+----------------------------------------------------------+
Checking for Apache mod_perl version 1.99_22 or higher
Found that mod_perl version 1.99_22 or higher is available.
OK, Apache is using mod_perl version 1.99_22 or higher ;-)
+----------------------------------------------------------+
| Checking for Communication server log directory… |
+----------------------------------------------------------+
Communication server can create detailed logs. This logs can be enabled
by setting integer value of LOGLEVEL to 1 in Administration console
menu Configuration.
Where to put Communication server log directory [/var/log/ocsinventory-server] ?
OK, Communication server will put logs into directory /var/log/ocsinventory-server ;-)</pre>



<h3>Step 6: Enable &amp; Access OCS Inventory Server On Ubuntu 20.04</h3>



<p>Hit the below commands in your terminal to enalbe OCS Inventory.</p>



<pre class="wp-block-verse">sudo ln -s /etc/apache2/conf-available/ocsinventory-reports.conf /etc/apache2/conf-enabled/ocsinventory-reports.conf
sudo ln -s /etc/apache2/conf-available/z-ocsinventory-server.conf /etc/apache2/conf-enabled/z-ocsinventory-server.conf
sudo ln -s /etc/apache2/conf-available/zz-ocsinventory-restapi.conf /etc/apache2/conf-enabled/zz-ocsinventory-restapi.conf</pre>



<p>And change the permissions.</p>



<pre class="wp-block-verse">sudo chown -R www-data:www-data /var/lib/ocsinventory-reports</pre>



<p>Then restart the Apache Server.</p>



<pre class="wp-block-verse">sudo systemctl restart apache2</pre>



<p>Now, open your browser and type <strong>IP/ocsreports/install.php</strong>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="477" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/10/image-6-1024x477.png" alt="How to Install OCS Inventory Server on Ubuntu 20.04" class="wp-image-24979" srcset="https://www.osradar.com/wp-content/uploads/2020/10/image-6-1024x477.png 1024w, https://www.osradar.com/wp-content/uploads/2020/10/image-6-300x140.png 300w, https://www.osradar.com/wp-content/uploads/2020/10/image-6-768x358.png 768w, https://www.osradar.com/wp-content/uploads/2020/10/image-6-1536x715.png 1536w, https://www.osradar.com/wp-content/uploads/2020/10/image-6-696x324.png 696w, https://www.osradar.com/wp-content/uploads/2020/10/image-6-1068x497.png 1068w, https://www.osradar.com/wp-content/uploads/2020/10/image-6.png 1836w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Provide the mentioned details and click <strong>&#8220;Send&#8221;</strong> button. On successful installtion you&#8217;ll see the similar output.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="499" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/10/image-7-1024x499.png" alt="How to Install OCS Inventory Server on Ubuntu 20.04" class="wp-image-24980" srcset="https://www.osradar.com/wp-content/uploads/2020/10/image-7-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2020/10/image-7-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2020/10/image-7-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2020/10/image-7-1536x749.png 1536w, https://www.osradar.com/wp-content/uploads/2020/10/image-7-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2020/10/image-7-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2020/10/image-7.png 1842w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Now, click on <strong>&#8220;Click here to enter OCS-NG GUI.&#8221;</strong> You&#8217;ll be redirected to the OCS Inventory login screen. Provide credentials as <strong>admin admin</strong> to go to the dashbord.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="538" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/10/image-8-1024x538.png" alt="How to Install OCS Inventory Server on Ubuntu 20.04" class="wp-image-24981" srcset="https://www.osradar.com/wp-content/uploads/2020/10/image-8-1024x538.png 1024w, https://www.osradar.com/wp-content/uploads/2020/10/image-8-300x158.png 300w, https://www.osradar.com/wp-content/uploads/2020/10/image-8-768x403.png 768w, https://www.osradar.com/wp-content/uploads/2020/10/image-8-696x365.png 696w, https://www.osradar.com/wp-content/uploads/2020/10/image-8-1068x561.png 1068w, https://www.osradar.com/wp-content/uploads/2020/10/image-8.png 1259w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p><strong>Note: </strong>For security reasons, change the default password.</p>



<p>And then remove the <strong>install.php</strong> file if you don&#8217;t want to get alert messages on dashboard.</p>



<pre class="wp-block-verse">rm -f /usr/share/ocsinventory-reports/ocsreports/install.php</pre>



<p>So, this is how you can install OCS Inventory Server on Ubuntu 20.04.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-ocs-inventory-server-on-ubuntu-20-04/">How to Install OCS Inventory Server on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-ocs-inventory-server-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
	</channel>
</rss>
