Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

How to install OpenVPN server on Ubuntu & Linux

By // No comments:

How to install OpenVPN server on Ubuntu & Linux


In this article we will learn that How to install OpenVPN server on Ubuntu & Linux. It's totall open source vpn.

VPN or Virtual Private Network is a group of the computers connected to the private network over the public network (Internet). These days security is the primary concern for everyone and it’s more required while working over the public network.

Like you have a group of computers in a remote location. Now you need to access those computers as LAN network in your system. Also, you need all data should be encrypted during transfer between computers. The solution is VPN.You can use VPN network to connect two remote location systems with each other as they are on same LAN. This article will help you to install and configure OpenVPN server on Ubuntu, Debian, and Linux Mint systems.

To check and updates of operating system:

# sudo apt update

To check and upgrade operating system:



# sudo apt upgrade -y

To install openvpn server and configure on ubuntu, linux, Debian:

# wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh

Please follow steps to configuration of open vpn, see screen shot.














To create new user, revoke and remove openvpn:

#bash ./openvpn-install.sh

To edit in openvpn server configuation file:

# nano /etc/openvpn/server.conf

To edit bash file :

# nano /usr/share/doc/openvpn/examples/sample-config-files/client.conf

How to setup openvpn client on client system:

Please download openvpn client on client system and then install it as other application you install.

To download openvpn client please click here.....Open VPN Client

After installed openvpn client please open C:\Program Files\OpenVPN\config (For 64bit application) and C:\Program Files (x86)\OpenVPN\config (For 32bit application) and paste test.opvn configuration file and then click on openvpn shortcut file and then right click on openvpn icon in task bar (For more clarity see screenshot) and then connect.



Successfully ! You have connected with openvpn server.



How to install and configure Tomcat

By // No comments:

How to install and configure Tomcat

In this article we will learn that How to install and configure Tomcat server with java repository and  Oracle Java 8. Please follow below all steps to install and configure Tomcat and let us know if you face any kinds of problem. Hope you will enjoy in this article and solve your all query as well.



To create repository and install oracle java.



#add-apt-repository ppa:webupd8team/java
#apt-get update
#apt-get install oracle-java8-installer


Pop up will apear on your display regarding Oracle license agreement so please accept:

Press "Yes" & "Yes"

#java -version

Setup 1: Login with Root:

# su -
password


Step 2: Update the system:

# apt-get update

Step 3: Install Tomcat and other Tomcat-ADDONS:

# apt-get install tomcat8
# apt-get install tomcat8-docs tomcat8-examples tomcat8-admin

Step 4: start the services:

#systemctl start tomcat8
#systemctl restart tomcat8


Step 5: Open web browser:

http://ipaddress:8080

Step 6: Open the file

#nano /var/lib/tomcat8/conf/tomcat-users.xml

Please paste below code befor </tomcat-users> arrording to your requirment



To set different-different password:- (According to your requirement)

<role rolename="manager-gui"/>
<user username="manager" password="manager" roles="manager-gui"/>
<role rolename="admin-gui"/>
<user username="admin" password="admin" roles="admin-gui"/>

To set same in both manager & admin:- (According to your requirement)

<role rolename="manager-gui"/>
<role rolename="admin-gui"/>
<user username="tomcat" password="tomcat" roles="manager-gui,admin-gui"/>


Save the file

Restart the Tomcat Server

#systemctl restart tomcat8

How to install & Configure Wordpress in ubuntu

By // No comments:

   How to install & Configure Wordpress in ubuntu

In this article we will learn how to install WORDPRESS in UBUNTU 16.04. Please follow all the steps and get it done by this article and let us know if you are facing any kinds of issue during installation of Wordpress in Ubuntu.

Step by Step follow to install LAMP Server (Linux/Apache2/Mysql-Server 5.7+Php 7.0) along with Wordpress in Ubuntu 16.04

To install LAMP Server click here ..... LAMP Server

Steps to Install Wordpress in Ubuntu 16.04

Step 1: Update the System

#apt-get update

Step 2: Install LAMP Server

#apt-get install lamp-server

Step 3: Wordpress Database Initialization

#mysql -u root -p


Commands

CREATE DATABASE wordpressdb;

CREATE USER wordpressuser@localhost IDENTIFIED BY 'wordpresspassword';

GRANT ALL PRIVILEGES ON wordpressdb.* TO wordpressuser@localhost;

FLUSH PRIVILEGES;

exit

Step 4: Installing Wordpress

#cd /tmp

#wget http://wordpress.org/latest.zip

#unzip -q latest.zip -d /var/www/html/


#chown -R www-data:www-data /var/www/html/wordpress


#chmod -R 755 /var/www/html/wordpress


#mkdir -p /var/www/html/wordpress/wp-content/uploads


#chown -R www-data:www-data /var/www/html/wordpress/wp-content/uploads


#service apache2 restart

#apt-get install php7.0-mysql


Open web browser
http://ipaddress/wordpress



Note:-  If you will get any message after that step that i am unable to edit or create wp-config.php file so please copy and then create it.

So please type below command and then create wp-config.php file and paste that code into.

# sudo nano /var/www/html/wp-config.php

Example:- 

<?php
/**
 * The base configuration for WordPress
 *
 * The wp-config.php creation script uses this file during the
 * installation. You don't have to use the web site, you can
 * copy this file to "wp-config.php" and fill in the values.
 *
 * This file contains the following configurations:
 *
 * * MySQL settings
 * * Secret keys
 * * Database table prefix
 * * ABSPATH
 *
 * @link https://codex.wordpress.org/Editing_wp-config.php
 *
 * @pac

Then save it.

Hope this will help to all of you and resolved your all query if you have any query or question so you may ask on email our email account (onlinenetworkssolution@gmail.com) or leave comment on page.