Skip to content

Instantly share code, notes, and snippets.

View LinuxDevOpsGirl's full-sized avatar
🏠
Working from home

Irin Sultana LinuxDevOpsGirl

🏠
Working from home
View GitHub Profile
@LinuxDevOpsGirl
LinuxDevOpsGirl / Swift_vepor. sh
Created April 10, 2020 09:52
Swift and Vapor on Ubuntu 18.04
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
@LinuxDevOpsGirl
LinuxDevOpsGirl / Asterisk
Created April 6, 2020 12:51
Asterisk 16 LTS on Ubuntu 18.04
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
@LinuxDevOpsGirl
LinuxDevOpsGirl / FTP server on Ubuntu 18.04 LTS
Created March 9, 2020 10:53
FTP server on Ubuntu 18.04 LTS
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
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
@LinuxDevOpsGirl
LinuxDevOpsGirl / Install WordPress with LEMP Stack Nginx
Created March 8, 2020 10:33
Install WordPress with LEMP Stack Nginx
# 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
@LinuxDevOpsGirl
LinuxDevOpsGirl / RabbitMQ Server on Ubuntu 18.04
Created March 4, 2020 09:45
RabbitMQ Server on Ubuntu 18.04
#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
@LinuxDevOpsGirl
LinuxDevOpsGirl / How To Install and Secure Redis on Ubuntu 18.04
Created March 3, 2020 10:57
How To Install and Secure Redis on Ubuntu 18.04
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
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/
@LinuxDevOpsGirl
LinuxDevOpsGirl / Netdata
Created February 19, 2020 14:06
Install Netdata
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
@LinuxDevOpsGirl
LinuxDevOpsGirl / ntopng on Ubuntu 18.04
Created February 11, 2020 12:12
ntopng on Ubuntu 18.04
#!/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