In large IT environment, hell in any IT setup, keeping track of where your assets is vital. There’s a wealth of great asset management tools out there – including apps like Wasp Asset Management or the specialist School Asset Manager – but if you are after an open source solution then Snipe is definitely the one to look at.
Like any open source tool it can take some tweaking but what you get is a decent asset management tool that supports checkin and checkout receipts, custom fields, reporting, QR codes and much more. To make things easier here’s a belt and braces guide to getting it up and working. We’ll be using Ubuntu 14 Server LTS configured for a standard LAMP implementation – just choose LAMP from the list of installation options during the setup of Ubuntu – but Snipe also supports Windows with WAMP and IIS support but I found it waayyyyyyyyyy easier to get running in Linux.
- Download the handy Snipe install script to your home directory.
- Make it executable.
chmod 744 install.sh ./install.sh
- Run the install script.
- Once the installer has run through it’s paces, and asked you a series of questions, you will have a working Snipe installation. Congratulations. Now to a few tweaks.
- Copy the example app.php file to a new file.
sudo vi /var/www/snipeit/app/config/production/app.example.php
- Change the following lines to ensure that your server is working. If you want to enable HTTPS via an SSL cert then feel free to skip this step and have a google as to how to use OpenSSL to do that.Change…
'url' => 'https://myhostname',
'url' => 'http://myhostname',
- Change the following lines to ensure that email addresses user imports are handled nicely. If you won’t be doing any imports feel free to skip this step but it’s good practice to update this.Change…
'domain' => '',
'domain' => 'http://myhostname.co.uk',
You’ll be wanting to make use of email in order to support the check-in and check-out receipts. Snipe supports SMTP and Sendmail. I couldn’t get its SMTP implementation working for love nor money but, whilst I’m no lover of Sendmail, I did get Sendmail working.
We use Exchange here as our local mail server so we only needed Sendmail to send emails out via Exchange as a smart relay. A very simple implementation. If you need something more, have a quick google.
- Install sendmail on Ubuntu.
sudo apt-get install sendmail
- Edit the sendmail.mc and configure your smart relay host.
sudo vi /etc/mail/sendmail.mc
- At the bottom of the file add the following line and save and exit.
- Update Sendmail with the new configuration. Run sendmailconfig and just keep pressing Y for yes.
- Now it’s time to edit the Snipe config file and enter the new settings. Copy the example mail configuration file.
sudo cp /var/www/snipeit/app/config/production/mail.example.php /var/www/snipeit/app/config/production/mail.php
- Edit the file and make the changes.
sudo vi /var/www/snipeit/app/config/production/mail.php
- Change the following lines to enable sendmail use. On a normal install you shouldn’t have to change the location of Sendmail but, if you do need to, you can also look at sendmail location parameter at the end of the mail.php file.Change…
'driver' => 'smtp',
'driver' => 'sendmail',
- Now when you are adding your Asset Categories in Snipe you can tick the box to send check-in emails and the user will receive them.
If you are an organisation of any decent size then adding your users will be a real effort. It’s much easier to look at importing via LDAP direct from your Active Directory servers.
- Create a user in Active Directory for the LDAP settings to connect with. This doesn’t have to be an administrator, just a normal user. However make sure that they have a good secure password, and you might want to secure the account and prevent external logons and the like. I’ll leave that to you.
- Log in to Snipe using your admin logon created during the install process. Click on the Admin menu then choose Settings.
- You’ll need to configure the LDAP settings for your own environment but here are my settings. The “LDAP Bind Username” parameter points to the username of your LDAP user that you created before. The “Base Bind DN” is the location in your directory where your users reside. You might want to specify the root, or you might want to target a specific OU.
- Make sure you have a Location created in Snipe. Go to Admin > Locations and click Create New.
- Now go to the Peoples section of Snipe and click the LDAP Import button. Choose which location to import those users to and hit import.