This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
what is Swift and Vapor? | |
Vapor is an open source web framework written in Swift. It can be used to create RESTful APIs, web apps, and real-time applications using WebSockets. In addition to the core framework, Vapor provides an ORM, a templating language, and packages to facilitate user authentication and authorization. | |
##Step 1 — Installing Swift | |
sudo apt-get update | |
sudo apt-get install clang libicu-dev libpython2.7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update && sudo apt -y upgrade | |
sudo apt -y install git curl wget libnewt-dev libssl-dev libncurses5-dev subversion libsqlite3-dev build-essential libjansson-dev libxml2-dev uuid-dev | |
If you get an error for subversion package on Ubuntu like below: | |
E: Package 'subversion' has no installation candidate | |
Then add universe repository and install subversion from it: | |
sudo add-apt-repository universe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update | |
sudo apt install vsftpd | |
sudo cp -v /etc/vsftpd.conf /etc/vsftpd.conf.bk | |
sudo nano /etc/vsftpd.conf | |
Uncomment below lines. | |
write_enable=YES | |
local_umask=022 | |
chroot_local_user=YES |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
What is a LAMP Stack? | |
Lamp Stack is a renowned web development platform commonly used to run dynamic websites. Lamp Stack's main specialty is that it consists of Linux, Apache, MySQL, and PHP/Python/Perl. Usually Lamp Stack is selected for the construction and development of high performance website owing the strong foundation it has. | |
# Step 0: Before we install the LAMP stack, it’s a good idea to update repository and software packages: | |
sudo apt update | |
sudo apt upgrade | |
############## APACHE ############## | |
# Install Apache from the Ubuntu repository | |
sudo apt install apache2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Update & Install Nginx | |
sudo apt update && apt upgrade | |
sudo apt-get install nginx | |
sudo systemctl start nginx | |
sudo systemctl enable nginx | |
sudo systemctl restart nginx | |
sudo systemctl status nginx | |
# Install MySQL & check |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#video tutorial | |
https://youtu.be/VSNY9jj8Etc | |
echo 'deb http://www.rabbitmq.com/debian/ testing main' | sudo tee /etc/apt/sources.list.d/rabbitmq.list | |
wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install rabbitmq-server | |
sudo systemctl enable rabbitmq-server | |
sudo systemctl start rabbitmq-server | |
sudo systemctl status rabbitmq-server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Redis? | |
Redis is an in-memory data structure project implementing a distributed, in-memory key-value database with optional durability. | |
What is Redis used for? | |
According to Redis homepage, Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports various data structures such as Strings, Hashes, Lists, Sets etc. | |
How To Install and Secure Redis on Ubuntu 18.04: | |
sudo apt update && sudo apt upgrade -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ruby? | |
Ruby is an interpreted, high-level, general-purpose programming language. | |
What is Ruby used for? | |
Ruby is most used for building web applications. However, it is a general-purpose language similar to Python, so it has many other applications like data analysis, prototyping, and proof of concepts. Probably the most obvious implementation of Ruby is Rails web, the development framework built with Ruby. | |
sudo apt update && sudo apt upgrade -y | |
cd ~/Downloads/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Netdata | |
Netdata is an open source tool to visualize and monitor real-time metrics, optimized to accumulate all types of data, such as CPU usage, disk activity, SQL queries, visits to a website, etc. | |
Netdata is distributed, real-time, performance and health monitoring for systems and applications. | |
sudo apt update | |
sudo apt upgrade -y | |
sudo apt-get install netdata -y | |
sudo nano /etc/netdata/netdata.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This script will install ntopng on Ubuntu | |
sudo apt update -y | |
sudo apt upgrade -y | |
sudo apt install ntopng | |
sudo systemctl restart ntopng | |
sudo ntopng -h | |
sudo ufw enable | |
sudo ufw allow 3000 |