ubuntu vps | LinuxHostSupport Linux Tutorials and Guides Thu, 25 Jan 2018 12:38:03 +0000 en-US hourly 1 https://wordpress.org/?v=6.6.1 Install Gogs on Ubuntu 16.04 https://linuxhostsupport.com/blog/install-gogs-on-ubuntu-16-04/ https://linuxhostsupport.com/blog/install-gogs-on-ubuntu-16-04/#respond Wed, 06 Sep 2017 11:08:18 +0000 https://linuxhostsupport.com/blog/?p=200 We’ll explain to you, How to install Gogs on Ubuntu 16.04. Gogs is a free and open source self-hosted Git service, written in the Go programming language. It is very similar to GitLab and aims to be the easiest and most painless way to set up self-hosted Git service in your development environment. Its installation […]

The post Install Gogs on Ubuntu 16.04 appeared first on LinuxHostSupport.

]]>
We’ll explain to you, How to install Gogs on Ubuntu 16.04. Gogs is a free and open source self-hosted Git service, written in the Go programming language. It is very similar to GitLab and aims to be the easiest and most painless way to set up self-hosted Git service in your development environment. Its installation is pretty fast and simple

In this tutorial, we will learn how to install Gogs with Apache as a reverse proxy on Ubuntu 16.04 server.

Prerequisites

Gogs has several prerequisites that you have to install in order to run Gogs on your Ubuntu server.

  • SSH server
  • Database server:
    – MySQL: Version 5.5.3 or newer
    – PostgreSQL
    – MSSQL
    – TiDB
    – SQLite3
  • Git version 1.7.1 or newer

Update the system

Login to your Ubuntu 16.04 server via SSH as user root:

ssh root@IP_Address

Make sure that all your system packages are up-to-date:

apt-get update && apt-get upgrade

Install MySQL server and create database

run the following command to install MySQL server on your server.

apt-get install mysql-server

Once installed, execute the mysql_secure_installation script to secure the MySQL server and set password for the root user.

mysql_secure_installation

Remove anonymous users? (Press y|Y for Yes, any other key for No) :
Disallow root login remotely? (Press y|Y for Yes, any other key for No) :
Remove test database and access to it? (Press y|Y for Yes, any other key for No) :
Reload privilege tables now? (Press y|Y for Yes, any other key for No) :

After that, login to the MySQL server as user root and create a database for Gogs

CREATE DATABASE gogs;
GRANT ALL PRIVILEGES ON gogs.* TO 'gogs'@'localhost' IDENTIFIED BY 'YOUR_PASSWORD';
FLUSH PRIVILEGES;
\q

Install and configure Gogs

Create a new system user that will run Gogs

useradd --system --create-home git

Switch the user

su git
cd ~

Download the latest Gogs version which match your system (32bit or 64bit)

wget https://dl.gogs.io/0.11.29/linux_amd64.zip

Unpack the downloaded zip archive

apt-get install unzip
unzip linux_amd64.zip

Run the following command to start Gogs

cd gogs && ./gogs web &

Gogs by default is running on port 3000. So, open your favorite web browser and navigate it to http://IP_Address:3000 . Gogs will automatically detect that this is the first run and redirect to the setup screen.

Use the following information to configure Gogs:

Database Settings:

  • Database Type: MySQL
  • Host: 127.0.0.1:3306
  • User: gogs
  • Password: YOUR_PASSWORD
  • Database Name: gogs

Application General Settings:

  • Application Name: Gogs
  • Repository Root Path: /home/git/gogs-repositories
  • Run User: git
  • Domain: domain.com
  • SSH Port: 22 // use your SSH port number
  • HTTP Port: 3000
  • Application URL: http://domain.com

And click the ‘Install Gogs’ button to complete the installation. If everything is properly configured, you will be redirected to Gogs login screen where you can create your first account and start using this useful application. After signing in, you will be able to create, clone, push, repositories and use Gogs for your needs.

For more information on how to use Gogs and its features, please check their official documentation.


Of course you don’t have to do any of this if you use one of our Linux Host Support Services, in which case you can simply ask our expert Linux admins to setup this for you. They are available 24×7 and will take care of your request immediately.

PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.

The post Install Gogs on Ubuntu 16.04 appeared first on LinuxHostSupport.

]]>
https://linuxhostsupport.com/blog/install-gogs-on-ubuntu-16-04/feed/ 0
How to install Monica on Ubuntu 16.04 https://linuxhostsupport.com/blog/how-to-install-monica-on-ubuntu-16-04/ https://linuxhostsupport.com/blog/how-to-install-monica-on-ubuntu-16-04/#respond Wed, 16 Aug 2017 17:03:27 +0000 https://linuxhostsupport.com/blog/?p=178 We’ll show you, How to install Monica on Ubuntu 16.04. Monica is a Personal Relationship Management (PRM) system written in Laravel framework. It is designed and built to help you have more meaningful relationships with your friends and family, and keep track of all important details about your friends and family. In this tutorial we […]

The post How to install Monica on Ubuntu 16.04 appeared first on LinuxHostSupport.

]]>
We’ll show you, How to install Monica on Ubuntu 16.04. Monica is a Personal Relationship Management (PRM) system written in Laravel framework. It is designed and built to help you have more meaningful relationships with your friends and family, and keep track of all important details about your friends and family. In this tutorial we will install Monica on an Ubuntu 16.04 VPS

Monica has several requirements:

  • PHP 7.0+
  • MySQL, SQLite or Postgre
  • Git
  • Composer

First of all, login to your server via SSH as user root

ssh root@IP_ADDRESS -p PORT_NUMBER

Update the system and install necessary packages

apt-get update && apt-get upgrade
apt install apache2 php7.0 php7.0-mysql php7.0-xml php7.0-intl php7.0-mbstring git curl

Install PHP among with some dependencies

apt-get install php7.0 php7.0-intl php7.0-curl php7.0-zip

Install MySQL server on your VPS

apt-get install mysql-server

once the installation is completed, run the mysql_secure_installation script to secure your MySQL server

mysql_secure_installation

Enter current password for root (enter for none): ENTER
Set root password? [Y/n] Y
Remove anonymous users? [Y/n] Y
Disallow root login remotely? [Y/n] Y
Remove test database and access to it? [Y/n] Y
Reload privilege tables now? [Y/n] Y

Create a new MySQL user and database for Monica

mysql -u root -p

mysql> CREATE DATABASE monica;
mysql> GRANT ALL PRIVILEGES ON monica.* TO 'monicauser'@'localhost' IDENTIFIED BY 'YOURPASSWORD';
mysql> FLUSH PRIVILEGES;
mysql> \q

Don’t forget to replace ‘YOURPASSWORD’ with an actual strong password.

Clone the Monica git repository

mkdir /var/www/html/monica
git clone https://github.com/monicahq/monica.git /var/www/html/monica/

Change the permissions of the Monica directory

chown -R www-data:www-data /var/www/html/monica

Install nodejs (this is needed for npm)

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
apt-get install -y nodejs

Install composer

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"

Once installed, run composer in the directory the repository has been cloned, to install Monica’s dependencies

cd /var/www/html/monica
composer install

Create .env file using the example provided and update it with your information.

cp .env.example .env

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=monica
DB_USERNAME=monicauser
DB_PASSWORD=YOURPASSWORD
DB_TEST_DATABASE=monica_test
DB_TEST_USERNAME=monicauser
DB_TEST_PASSWORD=YOURPASSWORD

Run the following command to generate an application key. It will set APP_KEY with the right value automatically.

php artisan key:generate
Application key [base64:j8RgNwHGsqir1ovhDWXYlEa6P2ODNBwRGMaQTm4ZBTs=] set successfully.

Run all migrations executing the following command

php artisan migrate

Enable avatar uploads for the contacts created in Monica

php artisan storage:link
The [public/storage] directory has been linked.

Populate the activity types and countries table

php artisan db:seed --class ActivityTypesTableSeeder
php artisan db:seed --class CountriesSeederTable

In order for the reminders to work properly, we have to set a cronjob that runs every minute with the following command

php artisan schedule:run

Once Monica is successfully installed on your server, you can access it at http://yourIPaddress/monica


Of course, you don’t have to do any of this if you use one of our Software Installation Services, in which case you can simply ask our expert Linux admins to install Monica for you. They are available 24×7 and will take care of your request immediately.

PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.

The post How to install Monica on Ubuntu 16.04 appeared first on LinuxHostSupport.

]]>
https://linuxhostsupport.com/blog/how-to-install-monica-on-ubuntu-16-04/feed/ 0