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
# Part: 1 | |
sudo add-apt-repository ppa:git-core/ppa | |
sudo apt update | |
sudo apt install git | |
sudo git config --global user.name "YourName" | |
sudo git config --global user.email [email protected] | |
git --version | |
git config --list |
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-get update | |
sudo apt install vsftpd | |
#configure vsftpd- | |
sudo nano /etc/vsftpd.conf | |
sudo service vsftpd restart | |
sudo systemctl status vsftpd | |
sudo systemctl enable vsftpd | |
# Configure Firewall | |
sudo apt-get install ssh |
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
ufw - Uncomplicated Firewall | |
The default firewall configuration tool for Ubuntu is ufw. Developed to ease iptables firewall configuration, ufw provides a user-friendly way to create an IPv4 or IPv6 host-based firewall. | |
ufw by default is initially disabled. From the ufw man page: | |
“ ufw is not intended to provide complete firewall functionality via its command interface, but instead provides an easy way to add or remove simple rules. It is currently mainly used for host-based firewalls. ” | |
The following are some examples of how to use ufw: | |
First, ufw needs to be enabled. From a terminal prompt enter: |
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
Youtube: https://www.youtube.com/watch?v=wo5A6O8h6QY | |
#!/bin/sh | |
# Install openssh server: | |
$ sudo apt update | |
$ sudo apt upgrade | |
$ sudo apt install openssh-server | |
$ sudo systemctl status ssh |
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
echo "deb http://www.rabbitmq.com/debian/ testing main" | sudo tee /etc/apt/sources.list.d/rabbitmq.list > /dev/null | |
wget https://www.rabbitmq.com/rabbitmq-signing-key-public.asc | |
sudo apt-key add rabbitmq-signing-key-public.asc | |
sudo apt-get update | |
sudo apt-get install rabbitmq-server -y | |
sudo service rabbitmq-server start | |
sudo rabbitmq-plugins enable rabbitmq_management | |
sudo service rabbitmq-server restart |
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
#Install NGINX | |
sudo apt-get update | |
sudo apt-get install nginx | |
sudo systemctl start nginx | |
sudo systemctl enable nginx | |
sudo systemctl restart nginx | |
sudo systemctl stop nginx | |
sudo systemctl start nginx | |
sudo systemctl status nginx | |
nginx -v |
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
#Step 1 – Installing Nginx | |
#Because Nginx is available in Ubuntu’s default repositories, it is possible to install it from these repositories using the apt packaging system. | |
#Since this is our first interaction with the apt packaging system in this session, we will update our local package index so that we have access to the most recent package listings. Afterwards, we can install nginx: | |
sudo apt update | |
sudo apt install nginx | |
#After accepting the procedure, apt will install Nginx and any required dependencies to your server. | |
#Step 2 – Adjusting the Firewall |
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
#Start by updating the apt packages list by running the following command in your SSH terminal: | |
sudo apt update | |
#Install Redis by typing: | |
sudo apt install redis-server | |
#Once the installation is completed, the Redis service will start automatically. To check the status of the service, enter the following command: | |
sudo systemctl status redis-server | |
#Congratulations, at this point you have Redis installed and running on your Ubuntu 18.04 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
wget https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.3.zip | |
sudo unzip ruby-2.5.3.zip | |
cd ruby-2.5.3 | |
sudo ./configure | |
sudo make | |
sudo make install | |
sudo make test | |
ruby --version | |
# Youtube: https://youtu.be/OsV6GxZhrS0 |
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
# setup and configure git | |
sudo add-apt-repository ppa:git-core/ppa | |
sudo apt update | |
sudo apt install git | |
sudo git config --global user.name "YourName" | |
sudo git config --global user.email [email protected] | |
git --version | |