{"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
In this tutorial, you will learn how to install TeamPass password manager on Ubuntu 20.04. 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 There are a few requirements necessary for running TeamPass;<\/p>\n\n\n\n In short, Teampass requires a LAMP\/LEMP stack installed in order to function.<\/p>\n\n\n\n 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 How to Install LAMP Stack on Ubuntu 20.04<\/a><\/p>\n\n\n\n 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 To install PHP MCrypt extension on Ubuntu 20.04;<\/p>\n\n\n\n When prompted, press ENTER to autodetect libmcrypt prefix<\/strong>.<\/p>\n\n\n\n Enable the module;<\/p>\n\n\n\n Confirm;<\/p>\n\n\n\n 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 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 In the above, we have created a database called To install TeamPass, you need to clone the TeamPass Github repository to your web server root directory (in this setup, we use \/var\/www\/html\/teampass as the web root directory)<\/em> as shown below;<\/p>\n\n\n\n Set the ownership of the teampass web directory to web server user ( Next, edit the Disable the Apache default site;<\/p>\n\n\n\n Restart Apache web server<\/p>\n\n\n\n Final setup of Teampass can be done from the browser.<\/p>\n\n\n\n If UFW is running, be sure to allow external access to Apache;<\/p>\n\n\n\n Next, navigate to the browser and enter the TeamPass server URL, Click Next to proceed to the Server checks screen.<\/p>\n\n\n\n Click 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 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 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 Note that it is a good idea to store Saltkeys on a separate directory rather than the default 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 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 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 You can get to the login page by pressing the To login to your Teampass, use admin as the username and the password specified for the administrator.<\/p>\n\n\n\n This is how initial Teampass UI looks like.<\/p>\n\n\n\n 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 Well, that is how easy it is to install TeamPass on Ubuntu 20.04.<\/p>\n\n\n\n TeamPass Documentation<\/a><\/p>\n\n\n\n How to Install sysPass Password Manager on Ubuntu 18.04<\/a><\/p>\n\n\n\n Install Passbolt Password Manager on Debian 10<\/a><\/p>\n\n\n\n Install Bitwarden Password Manager on Ubuntu 20.04<\/a><\/p>\n\n\n\nInstall TeamPass on Ubuntu 20.04<\/h2>\n\n\n\n
Prerequisite<\/h3>\n\n\n\n
\n
\n
apt install php-{curl,mbstring,bcmath,iconv,gd,xml}<\/code><\/pre>\n\n\n\n
apt -y install gcc make autoconf libc-dev pkg-config<\/code><\/pre>\n\n\n\n
apt install libmcrypt-dev php-pear php-dev<\/code><\/pre>\n\n\n\n
pecl channel-update pecl.php.net\npecl update-channels<\/code><\/pre>\n\n\n\n
pecl install mcrypt<\/code><\/pre>\n\n\n\n
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
php -m | grep mcrypt<\/code><\/pre>\n\n\n\n
mcrypt<\/code><\/pre>\n\n\n\n
Create TeamPass MySQL Database and Database User<\/h3>\n\n\n\n
create database teampass;\ngrant all privileges on teampass.*<\/strong> to tpadmin@localhost<\/strong> identified by \"YourP@SSWORD<\/strong>\";\nflush privileges;\nquit<\/code><\/pre>\n\n\n\n
teampass<\/strong><\/code> and user called
tpadmin<\/strong><\/code> whose password is set as in above.<\/p>\n\n\n\n
Installing TeamPass on Ubuntu 20.04<\/h3>\n\n\n\n
git clone https:\/\/github.com\/nilsteampassnet\/TeamPass.git \/var\/www\/html\/teampass<\/code><\/pre>\n\n\n\n
www-data<\/code>)<\/p>\n\n\n\n
chown -R www-data.www-data \/var\/www\/html\/teampass\/<\/code><\/pre>\n\n\n\n
php.ini<\/code> configuration file and increase the script execution time from 30 to 60 secs.<\/p>\n\n\n\n
vim \/etc\/php\/7.4\/apache2\/php.ini<\/code><\/pre>\n\n\n\n
...\n;max_execution_time = 30\nmax_execution_time = 60<\/strong>\n...<\/code><\/pre>\n\n\n\n
a2dissite 000-default.conf<\/code><\/pre>\n\n\n\n
systemctl restart apache2<\/code><\/pre>\n\n\n\n
Finalize TeamPass installation<\/h4>\n\n\n\n
ufw allow \"Apache Full\"<\/code><\/pre>\n\n\n\n
http:\/\/Server_IP-OR-Hostname\/teampass<\/code>. This will redirect you to TeamPass welcome page shown below.<\/p>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
\/var\/www\/html\/teampass\/includes\/<\/code> directory (used if you do not specify the path) within TeamPass directory. Salt key is saved as
sk.php<\/code>. Click Launch to save the information.<\/p>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
admin<\/code> and the password set above for Administrator.<\/p>\n\n\n\n
Move to home page<\/strong><\/code> link.<\/p>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
Further Reading<\/h3>\n\n\n\n
Related Tutorials<\/h3>\n\n\n\n