{"id":7532,"date":"2021-01-07T21:01:41","date_gmt":"2021-01-07T18:01:41","guid":{"rendered":"https:\/\/kifarunix.com\/?p=7532"},"modified":"2024-03-19T21:05:15","modified_gmt":"2024-03-19T18:05:15","slug":"install-teampass-password-manager-on-ubuntu","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-teampass-password-manager-on-ubuntu\/","title":{"rendered":"Install TeamPass Password Manager on Ubuntu 20.04"},"content":{"rendered":"\n<p>In this tutorial, you will learn how to install TeamPass password manager on Ubuntu 20.04. <a href=\"https:\/\/teampass.net\/\" target=\"_blank\" aria-label=\"TeamPass (opens in a new tab)\" rel=\"noreferrer noopener\" class=\"rank-math-link\">TeamPass<\/a> is a collaborative password manager tool that organizes password items in a file hierarchy like format. Access to each password item is based on the rights assigned to users and groups.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install TeamPass on Ubuntu 20.04<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Prerequisite<\/h3>\n\n\n\n<p>There are a few requirements necessary for running TeamPass;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>MySQL 5.1 or higher,<\/li>\n\n\n\n<li>PHP 5.5.0 or higher,<\/li>\n\n\n\n<li>PHP extensions:\n<ul class=\"wp-block-list\">\n<li>mcrypt<\/li>\n\n\n\n<li>openssl<\/li>\n\n\n\n<li>ldap (if used)<\/li>\n\n\n\n<li>mbstring<\/li>\n\n\n\n<li>bcmath<\/li>\n\n\n\n<li>iconv<\/li>\n\n\n\n<li>xml<\/li>\n\n\n\n<li>gd<\/li>\n\n\n\n<li>curl<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>In short, Teampass requires a LAMP\/LEMP stack installed in order to function.<\/p>\n\n\n\n<p>In this tutorial, we run TeamPass over LAMP stack. As a result, you can check our previous guide on how to install LAMP Stack on Ubuntu 20.04 by following the link below;<\/p>\n\n\n\n<p><a aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" href=\"https:\/\/kifarunix.com\/install-lamp-stack-on-ubuntu-20-04\/\" target=\"_blank\" class=\"rank-math-link\">How to Install LAMP Stack on Ubuntu 20.04<\/a><\/p>\n\n\n\n<p>There are extra PHP extensions required by Teampass that have not been set for installation in the above link. Hence, if you followed the above link, run the following command to install extra PHP extensions.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install php-{curl,mbstring,bcmath,iconv,gd,xml}<\/code><\/pre>\n\n\n\n<p>To install PHP MCrypt extension on Ubuntu 20.04;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt -y install gcc make autoconf libc-dev pkg-config<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install libmcrypt-dev php-pear php-dev<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>pecl channel-update pecl.php.net\npecl update-channels<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>pecl install mcrypt<\/code><\/pre>\n\n\n\n<p>When prompted, <strong>press ENTER to autodetect libmcrypt prefix<\/strong>.<\/p>\n\n\n\n<p>Enable the module;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>echo \"extension=mcrypt.so\" | tee -a \/etc\/php\/7.4\/cli\/php.ini \/etc\/php\/7.4\/apache2\/php.ini<\/code><\/pre>\n\n\n\n<p>Confirm;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>php -m | grep mcrypt<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>mcrypt<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Create TeamPass MySQL Database and Database User<\/h3>\n\n\n\n<p>Once the installation of the LAMP stack and is done, proceed to create the MySQL database and database user for TeamPass. The user created must have a full privileges on the TeamPass database.<\/p>\n\n\n\n<p>Hence, login to MySQL as root user and execute the following commands. Be sure to replace the database name, the username and the password accordingly.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>create database teampass;\ngrant all privileges on <strong>teampass.*<\/strong> to <strong>tpadmin@localhost<\/strong> identified by \"<strong>YourP@SSWORD<\/strong>\";\nflush privileges;\nquit<\/code><\/pre>\n\n\n\n<p>In the above, we have created a database called <code><strong>teampass<\/strong><\/code> and user called <code><strong>tpadmin<\/strong><\/code> whose password is set as in above.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Installing TeamPass on Ubuntu 20.04<\/h3>\n\n\n\n<p>To install TeamPass, you need to clone the TeamPass Github repository to your web server root directory <em>(in this setup, we use \/var\/www\/html\/teampass as the web root directory)<\/em> as shown below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>git clone https:\/\/github.com\/nilsteampassnet\/TeamPass.git \/var\/www\/html\/teampass<\/code><\/pre>\n\n\n\n<p>Set the ownership of the teampass web directory to web server user (<code>www-data<\/code>)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>chown -R www-data.www-data \/var\/www\/html\/teampass\/<\/code><\/pre>\n\n\n\n<p>Next, edit the <code>php.ini<\/code> configuration file and increase the script execution time from 30 to 60 secs.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>vim \/etc\/php\/7.4\/apache2\/php.ini<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>...\n;max_execution_time = 30\n<strong>max_execution_time = 60<\/strong>\n...<\/code><\/pre>\n\n\n\n<p>Disable the Apache default site;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>a2dissite 000-default.conf<\/code><\/pre>\n\n\n\n<p>Restart Apache web server<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl restart apache2<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"finish-the-teampass-installation\">Finalize TeamPass installation<\/h4>\n\n\n\n<p>Final setup of Teampass can be done from the browser.<\/p>\n\n\n\n<p>If UFW is running, be sure to allow external access to Apache;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ufw allow \"Apache Full\"<\/code><\/pre>\n\n\n\n<p>Next, navigate to the browser and enter the TeamPass server URL, <code>http:\/\/Server_IP-OR-Hostname\/teampass<\/code>. This will redirect you to TeamPass welcome page shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1286\" height=\"694\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-welcome-page.png\" alt=\"Install TeamPass Password Manager on Ubuntu 20.04\" class=\"wp-image-7535\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-welcome-page.png?v=1610041919 1286w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-welcome-page-768x414.png?v=1610041919 768w\" sizes=\"(max-width: 1286px) 100vw, 1286px\" \/><\/figure>\n\n\n\n<p>Click Next to proceed to the Server checks screen.<\/p>\n\n\n\n<p>Click <strong>Launch<\/strong> to verify that the requirements are okay. In case there is any error, please fix it before you can proceed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1268\" height=\"682\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-server-checks.png\" alt=\"\" class=\"wp-image-7536\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-server-checks.png?v=1610041989 1268w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-server-checks-768x413.png?v=1610041989 768w\" sizes=\"(max-width: 1268px) 100vw, 1268px\" \/><\/figure>\n\n\n\n<p>If all the checks are good, click Next to set the database connection details. Once you set the database connection details, click Launch to verify connection.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1254\" height=\"681\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-database-connection.png\" alt=\"\" class=\"wp-image-7537\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-database-connection.png?v=1610042015 1254w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-database-connection-768x417.png?v=1610042015 768w\" sizes=\"(max-width: 1254px) 100vw, 1254px\" \/><\/figure>\n\n\n\n<p>If everything is fine, click Next to proceed to Preparation page where you can set the SaltKey absolute path and the TeamPass admin password.<\/p>\n\n\n\n<p>Note that it is a good idea to store Saltkeys on a separate directory rather than the default <code>\/var\/www\/html\/teampass\/includes\/<\/code> directory (used if you do not specify the path) within TeamPass directory. Salt key is saved as <code>sk.php<\/code>. Click Launch to save the information.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1257\" height=\"684\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-salt-key-admin-pass.png\" alt=\"\" class=\"wp-image-7538\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-salt-key-admin-pass.png?v=1610042072 1257w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-salt-key-admin-pass-768x418.png?v=1610042072 768w\" sizes=\"(max-width: 1257px) 100vw, 1257px\" \/><\/figure>\n\n\n\n<p>The information entered above needs to be populated to the database, hence click Next and then Launch to initiate the database population process.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1259\" height=\"685\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-table-creation.png\" alt=\"\" class=\"wp-image-7539\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-table-creation.png?v=1610042101 1259w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-table-creation-768x418.png?v=1610042101 768w\" sizes=\"(max-width: 1259px) 100vw, 1259px\" \/><\/figure>\n\n\n\n<p>Once that is done, click Next and then Launch to effect the changes by writing them to the configuration file.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1254\" height=\"686\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-finalize-setup.png\" alt=\"\" class=\"wp-image-7540\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-finalize-setup.png?v=1610042137 1254w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-finalize-setup-768x420.png?v=1610042137 768w\" sizes=\"(max-width: 1254px) 100vw, 1254px\" \/><\/figure>\n\n\n\n<p>On the Next screen, you will be provided with the Administrator username and how to access the login Dashboard. As shown, the login username is <code>admin<\/code> and the password set above for Administrator.<\/p>\n\n\n\n<p>You can get to the login page by pressing the <code><strong>Move to home page<\/strong><\/code> link.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1253\" height=\"662\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-howto-login.png\" alt=\"\" class=\"wp-image-7541\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-howto-login.png?v=1610042180 1253w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-howto-login-768x406.png?v=1610042180 768w\" sizes=\"(max-width: 1253px) 100vw, 1253px\" \/><\/figure>\n\n\n\n<p>To login to your Teampass, use admin as the username and the password specified for the administrator.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1251\" height=\"735\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-login-interface.png\" alt=\"\" class=\"wp-image-7542\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-login-interface.png?v=1610042201 1251w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-login-interface-768x451.png?v=1610042201 768w\" sizes=\"(max-width: 1251px) 100vw, 1251px\" \/><\/figure>\n\n\n\n<p>This is how initial Teampass UI looks like.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1100\" height=\"952\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-settings.png\" alt=\"\" class=\"wp-image-7543\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-settings.png?v=1610042228 1100w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-settings-768x665.png?v=1610042228 768w\" sizes=\"(max-width: 1100px) 100vw, 1100px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1097\" height=\"730\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-settings_.png\" alt=\"\" class=\"wp-image-7544\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-settings_.png?v=1610042241 1097w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/teampass-settings_-768x511.png?v=1610042241 768w\" sizes=\"(max-width: 1097px) 100vw, 1097px\" \/><\/figure>\n\n\n\n<p>You can now start using TeamPass to store and share your passwords. Read more about how to use TeamPass on its documentation page, link provided below.<\/p>\n\n\n\n<p>Well, that is how easy it is to install TeamPass on Ubuntu 20.04.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Further Reading<\/h3>\n\n\n\n<p><a aria-label=\"TeamPass Documentation (opens in a new tab)\" href=\"https:\/\/teampass.readthedocs.io\/en\/latest\/\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"rank-math-link\">TeamPass Documentation<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Related Tutorials<\/h3>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/kifarunix.com\/install-syspass-password-manager-on-ubuntu-18-04\/\" target=\"_blank\" class=\"rank-math-link\">How to Install sysPass Password Manager on Ubuntu 18.04<\/a><\/p>\n\n\n\n<p><a aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-passbolt-password-manager-on-debian\/\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"rank-math-link\">Install Passbolt Password Manager on Debian 10<\/a><\/p>\n\n\n\n<p><a aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-bitwarden-password-manager-on-ubuntu-20-04\/\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"rank-math-link\">Install Bitwarden Password Manager on Ubuntu 20.04<\/a><\/p>\n\n\n\n<p><a aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-and-setup-passbolt-password-manager-on-ubuntu\/\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"rank-math-link\">Install and Setup Passbolt Password Manager on Ubuntu 20.04<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you will learn how to install TeamPass password manager on Ubuntu 20.04. TeamPass is a collaborative password manager tool that organizes password<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[339,121],"tags":[2993,2994,2990,341,2992,2991,1200],"class_list":["post-7532","post","type-post","status-publish","format-standard","hentry","category-password-managers","category-howtos","tag-install-teampass","tag-install-teampass-ubuntu","tag-install-teampass-ubuntu-20-04","tag-password-manager","tag-teampass-install","tag-teampass-password-manager","tag-ubuntu-20-04","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/7532"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=7532"}],"version-history":[{"count":2,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/7532\/revisions"}],"predecessor-version":[{"id":21981,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/7532\/revisions\/21981"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=7532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=7532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=7532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}