How To Install Attendize on Ubuntu 16.04 LTS

Install Attendize on Ubuntu 16

Attendize is an open-source event ticketing and event management application built using the Laravel PHP framework. Attendize was created to offer event organizers a easy solution to managing general admission occasions, without paying exorbitant support charges.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Attendize open source ticket selling and event management platform on an Ubuntu 16.04 Xenial Xerus server.

Install Attendize on Ubuntu 16.04 LTS

Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

sudo apt-get update
sudo apt-get upgrade

Step 2. Install LAMP (Linux, Apache, MariaDB, PHP) server.

A Ubuntu 16.04 LAMP server is required. If you do not have LAMP installed, you can follow our guide here. Also install all required PHP modules:

apt-get install php7.0-mysql php7.0-curl php7.0-json php7.0-cgi php7.0 libapache2-mod-php7.0 php7.0-mcrypt php7.0-xmlrpc php7.0-gd

Step 3. Configuring MariaDB.

By default, MariaDB is not hardened. You can secure MySQL using the mysql_secure_installation script. you should read and below each steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB.

mysql_secure_installation

Next we will need to log in to the MariaDB console and create a database for the Attendize. Run the following command:

mysql -u root -p

This will prompt you for a password, so enter your MariaDB root password and hit Enter. Once you are logged in to your database server you need to create a database for Attendize installation:

MariaDB [(none)]> CREATE DATABASE attendize;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON attendize.* TO 'attendize'@'localhost' IDENTIFIED BY 'strongpassword';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> \q

Step 4. Installing Composer.

Composer will pull in all the required libraries and dependencies you need for your project:

curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer

Step 5. Installing Attendize.

First, clone the Attendize repository from Github:

git clone https://github.com/attendize/attendize /var/www/myAttendize.com

Switch to the /var/www/myAttendize.com directory and set the .env variables:

cd /var/www/myAttendize.com
cp .env.example .env
nano .env
DB_TYPE=mysql
DB_HOST=localhost
DB_DATABASE=attendize
DB_USERNAME=attendize
DB_PASSWORD=strongpassword

Next, Install all of the application dependencies:

composer install

Step 6. Configure database.

Once Composer has downloaded the components run the install command to migrate the database and create an admin user:

php artisan attendize:install
 
--------------------
Attempting to install Attendize v1.0.0
--------------------
Generating app key
Migrating database.
Database successfully migrated.
Seeding DB data
Data successfully seeded
--------------------
Please create an admin user.
--------------------

 Enter first name::
 > Rezkia

 Enter last name::
 > Ulva
 Enter your email::
 > [email protected]

 Enter a password::
 >

Admin User Successfully Created

          _   _                 _ _
     /\  | | | |               | (_)
    /  \ | |_| |_ ___ _ __   __| |_ _______
   / /\ \| __| __/ _ \ '_ \ / _` | |_  / _ \
  / ____ \ |_| ||  __/ | | | (_| | |/ /  __/
 /_/    \_\__|\__\___|_| |_|\__,_|_/___\___|

Success! You can now run Attendize

We will need to change some folders permissions:

chown -R www-data: /var/www/myAttendize.com

Step 7. Configuring Apache web server for attendize.

Create a new virtual host directive in Apache. For example, create a new Apache configuration file named ‘attendize.conf’ on your virtual server:

sudo a2enmod rewrite
touch /etc/apache2/sites-available/attendize.conf
ln -s /etc/apache2/sites-available/attendize.conf /etc/apache2/sites-enabled/attendize.conf
nano /etc/apache2/sites-available/attendize.conf

Add the following lines:

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/myAttendize.com
ServerName your-domain.com
ServerAlias www.your-domain.com
<Directory /var/www/myAttendize.com/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/your-domain.com-error_log
CustomLog /var/log/apache2/your-domain.com-access_log common
</VirtualHost>

Now, we can restart Apache web server so that the changes take place:

systemctl restart apache2.service

Step 6. Accessing Attendize.

Attendize content management system will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com/ or http://server-ip and complete the required the steps to finish the installation. If you are using a firewall, please open port 80 to enable access to the control panel.

Congratulation’s! You have successfully installed Attendize. Thanks for using this tutorial for installing Attendize open source ticket selling and event management platform on your Ubuntu 16.04 system. For additional help or useful information, we recommend you to check the official Attendize web site.

How To Install Iftop Network Bandwidth Monitoring on Linux

Install Iftop Network Bandwidth Monitoring on Linux

iftop is a command line tool that shows a list of active network connections between local host and any remote host, sorted by their bandwidth usage. The list of top-ranking network connections (in terms of bandwidth usage) is periodically refreshed in a ncurses-based user interface.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Iftop Network Bandwidth Monitoring on a Linux server.

Install Iftop Network Bandwidth Monitoring on Linux

Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

### CentOS ###
sudo yum clean all
sudo yum -y update

### Ubuntu ###
sudo apt-get update
sudo apt-get upgrade

Step 2. Installing Interface TOP (IFTOP) on Linux.

To install iftop on Ubuntu, Mint or Debian:

sudo apt-get install iftop

To install iftop on CentOS:

sudo yum install epel-release
sudo yum install iftop

Step 3. Using IFTOP.

iftop is very simple to use. Just type the iftop command on terminal with root privileges to display the bandwidth usage of the first network interface. Press Q to exit from the iftop command output:

iftop

Congratulation’s! You have successfully installed Interface TOP (IFTOP). Thanks for using this tutorial for installing Iftop Network Bandwidth Monitoring on Ubuntu 18.04 LTS (Bionic Beaver) system. For additional help or useful information, we recommend you to check the official iftop web site.

How To Install SSH Server on Ubuntu 18.04 LTS

Install SSH Server on Ubuntu 18

OpenSSH (OpenBSD Secure Shell) is a connectivity tool that enables remote login via the SSH protocol, hence eliminating eavesdropping, connection hijacking, and other attacks. It helps to secure all network communications by encrypting all network traffic over multiple authentication methods through a secured tunnel. In this tutorial we will learn how to install SSH Server on Ubuntu 18.04 LTS.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation SSH Server on an Ubuntu 18.04 Bionic Beaver server.

Enable SSH on Ubuntu 18.04 LTS Bionic Beaver

Step 1. First, make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

sudo apt-get update
sudo apt-get upgrade

Step 2. Installing SSH Server on Ubuntu 18.04 LTS.

Install it by running the following command in your terminal:

apt-get install openssh-server

Furthermore, you can install the OpenSSH client application using the following command:

apt-get install openssh-server

After that, you should have SSH service enabled in your system:

systemctl start sshd.service
systemctl enable sshd.service

Last step is to open up the ssh firewall port:

ufw allow ssh
ufw reload

Step 3. Advanced Configuration SSH Server.

Now sometime we may want to change some settings (for example, the port, and root login permission) . This can be done by editing the configuration file via command:

nano /etc/ssh/sshd_config

The first thing you may want to do is to change the default SSH listening port. Open the file and locate the line that specifies the listening port:

Port 22

Change it to something else. For example, to 323:

Port 323

Save the file and close it. Then restart the service for the changes to take effect:

systemctl restart sshd.service

Congratulation’s! You have successfully installed OpenSSH. Thanks for using this tutorial for installing SSH Server on your Ubuntu 18.04 LTS (Bionic Beaver). For additional help or useful information, we recommend you to check the official OpenSSH web site.

How To Install OpenSSH on Ubuntu 16.04 LTS

Install OpenSSH on Ubuntu 16

OpenSSH (OpenBSD Secure Shell) is a connectivity tool that enables remote login via the SSH protocol, hence eliminating eavesdropping, connection hijacking, and other attacks. It helps to secure all network communications by encrypting all network traffic over multiple authentication methods through a secured tunnel.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation OpenSSH on an Ubuntu 16.04 Xenial Xerus server.

Install OpenSSH on Ubuntu 16.04 LTS

Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

sudo apt-get update
sudo apt-get upgrade

Step 2. Installing OpenSSH on Ubuntu 16.04.

Install it by running the following command in your terminal:

apt-get install openssh-server

Furthermore, you can install the OpenSSH client application using the following command:

apt-get install openssh-client

After that, you should have SSH service enabled in your system:

systemctl start sshd.service
systemctl enable sshd.service

Last step is to open up the ssh firewall port:

ufw allow ssh
ufw reload

Step 3. Advanced Configuration OpenSSH.

Now sometime we may want to change some settings (for example, the port, and root login permission) . This can be done by editing the configuration file via command:

nano /etc/ssh/sshd_config

The first thing you may want to do is to change the default SSH listening port. Open the file and locate the line that specifies the listening port:

Port 22

Change it to something else. For example to 2022:

Port 2022

Save the file and close it. Then restart the service for the changes to take effect:

systemctl restart sshd.service

Congratulation’s! You have successfully installed OpenSSH. Thanks for using this tutorial for installing OpenSSH on your Ubuntu 16.04 LTS. For additional help or useful information, we recommend you to check the official OpenSSH web site.

How To Install Microsoft SQL Server on Ubuntu 16.04 LTS

Install Microsoft SQL Server on Ubuntu 16

Microsoft SQL Server is a relational database management system developed by Microsoft. As a database server, it is a software product with the primary function of storing and retrieving data as requested by other software applications which may run either on the same computer or on another computer across a network (including the Internet).

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Microsoft SQL Server on a Ubuntu 16.04 (Xenial Xerus) server.

Install Microsoft SQL Server on Ubuntu 16.04 LTS

Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

sudo apt-get update
sudo apt-get upgrade

Step 2. Installing Microsoft SQL Server on Ubuntu 16.04.

To begin, we’ll need to add two repositories to our software sources list:

wget https://packages.microsoft.com/keys/microsoft.asc
sudo apt-key add microsoft.asc
curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server.list | sudo tee /etc/apt/sources.list.d/mssql.list
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list

Next we install the MS SQL server by following command:

apt-get update
apt-get install mssql-server mssql-tools -y

Step 3. Configure MS SQL server.

Once installation is complete, you will be reminded to run the configuration script (/opt/mssql/bin/sqlservr-setup) to accept the license terms, set the password for the SA user, and start the service.

sudo /opt/mssql/bin/sqlservr-setup

Output:

Microsoft(R) SQL Server(R) Setup

You can abort setup at anytime by pressing Ctrl-C. Start this program
with the –help option for information about running it in unattended
mode.


The license terms for this product can be downloaded from
http://go.microsoft.com/fwlink/?LinkId=746388 and found
in /usr/share/doc/mssql-server/LICENSE.TXT.

Do you accept the license terms? If so, please type "YES": YES

Please enter a password for the system administrator (SA) account: Enter Admin Password
Please confirm the password for the system administrator (SA) account: Re Enter Admin Password

Setting system administrator (SA) account password...

Do you wish to start the SQL Server service now? [y/n]: n

You can use sqlservr-setup --start-service to start SQL Server, and
sqlservr-setup --enable-service to enable SQL Server to start at boot.

Setup completed successfully.

Finally, Start the Microsoft SQL Server Service:

systemctl start mssql-server
systemctl enable mssql-server

Step 4. Connect to MS SQL server.

Once the installation is complete, connect to MS SQL server using the following command:

sqlcmd -H 127.0.0.1 -U sa
Password:
1>

Congratulation’s! You have successfully installed Microsoft SQL Server. Thanks for using this tutorial for installing Microsoft SQL Server (MS SQL) on your Ubuntu 16.04 LTS (Xenial Xerus) system. For additional help or useful information, we recommend you to check the official Microsoft SQL Server web site.

How To Install VMware Workstation on Ubuntu 16.04 LTS

Install VMware Workstation on Ubuntu 16

VMware Workstation is the most popular Virtualization software used at the desktop level on Linux like operating systems and Microsoft Windows. It allows the us to create and run multiple Virtual machines simultaneously. VMware Workstation is not an open source or free software so we need to buy its license key, though we can use its trail version for 30 days then later you can apply its license key. Continue reading “How To Install VMware Workstation on Ubuntu 16.04 LTS”

How to use Linux and Unix TAR Command

Linux and Unix TAR Command

The tar command used to rip a collection of files and directories into highly compressed archive file commonly called tarball or tar, gzip and bzip in Linux. The tar is most widely used command to create compressed archive files and that can be moved easily from one disk to anther disk or machine to machine. The main purpose of this article is to provide various tar command examples that might be helpful you to understand and become expert in tar archive manipulation. In this tutorial we will learn how to use Linux and UNIX TAR command.

Linux and Unix TAR Command

Create tar Archive File

Example command create a tar archive file wpcademy.tar for a directory /home/wpcademy in current working directory.

#tar -cvf wpcademy.tar /home/wpcademy/

/home/wpcademy/
/home/wpcademy/install.sh
/home/wpcademy/openvpn-2.0.9-1.tar.gz

Create tar.gz Archive File

Example command create a compressed gzip archive file wpcademy.tar for a directory /home/wpcademy in current working directory.

#tar cvzf Mythemes.tar.gz /home/wpcademy

/home/wpcademy/
/home/wpcademy/kardun
/home/wpcademy/eleganthemes
/home/wpcademy/adsready

Untar a tar File or gzip-bz2 tar File

#tar xvzf wpcademy.gz - for uncompress a gzip tar file (.tgz or .tar.gz)
#tar xvjf wpcademy.tar.bz2 - for uncompress a bzip2 tar file (.tbz or .tar.bz2)
#tar xvf wpcademy.tar - for uncompressed tar file (.tar)

Tar Command Options

c – create a archive file.
x – extract a archive file.
v – show the progress of archive file.
f – filename of archive file.
t – viewing content of archive file.
j – filter archive through bzip2.
z – filter archive through gzip.
r – append or update files or directories to existing archive file.
W – Verify a archive file.