Skip to content

Instantly share code, notes, and snippets.

View thinktanklinux's full-sized avatar

Shakil Shahjalal thinktanklinux

  • thinktanklinux
  • Dhaka
View GitHub Profile
sudo apt install curl
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update
sudo apt-get install git-core zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev nodejs yarn
cd
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
RabbitMQ
Step 1: Install Erlang/OTP
RabbitMQ requires Erlang to be installed first before it can run. Install Erlang on Ubuntu 18.04 system using our previous guide:
How to install Latest Erlang on Ubuntu 18.04 LTS
Once Erlang has been installed, proceed to step 2.
Step 2: Add RabbitMQ Repository To Ubuntu 18.04
Import RabbitMQ:
wget -O- https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc | sudo apt-key add -
wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -
Download WordPress Software
The software, WordPress, is actually a collection of PHP source code that integrated to form a website management system (WMS). You should not confuse WordPress (the software) with WordPress.com (the web service by Automattic). You can download WordPress as a package (either on ZIP or TAR) from WordPress Software Project website https://wordpress.org/download. At the time I write this article (June 22nd 2017) it reached version 4.8.
1. Install XAMPP
Follow this XAMPP Installation Tutorial. Please be aware this is only for 64bit computers.
2. Extract WordPress Package
Installing an FTP server (vsftpd) on Ubuntu 18.04 / 19.10
Last updated on 
vsftpd (Very Secure File Transfer Protocol Daemon) is a popular FTP server for Ubuntu. In this guide we will install and configure vsftpd on Ubuntu 18.04 / 19.10. We will also set up an FTP user and optionally configure SFTP for secure file transfers.
Before you begin…
It’s surprising how many web developers are still unaware of SFTP and the advantages over FTP/FTPS. SFTP comes with Linux Server preinstalled and works just like normal FTP, but is more secure and less hassle to set up. If your FTP client supports SFTP, you should use it!
• How to configure SFTP for a web server document root
1. Install vsftpd
Let’s begin by updating the package lists and installing vsftpd on Ubuntu 18.04 / 19.10.
Below we have two commands separated by &&. The first command will update the package lists to ensure you get the latest version and dependencies for vsftpd. The second command will then download and install vsftpd. Press y and ENTER when a
Install Stable Wireshark release
If you’re more interested in stability as opposed to cutting edge features, then you can install stable release of Wireshark on Ubuntu 20.04 / 18.04 / 16.04.
Add PPA repository and install Wireshark.
sudo add-apt-repository ppa:wireshark-dev/stable
sudo apt update
sudo apt -y install wireshark
Install Wireshark Development version
To get the development release, add
sudo add-apt-repository ppa:dreibh/ppa
Install Wireshark from the repository:
Metasploit Framework Requirements
Below are the minimum hardware requirements for running Metasploit Framework on Ubuntu 18.04 / Debian 9.
• 2 GHz+ processor
• 4 GB RAM available (8 GB recommended)
• 1 GB available disk space (50 GB recommended)
• 64-bit version of Ubuntu 18.04 / Debian 9
Install Metasploit Framework on Ubuntu 18.04 / Debian 9
The easiest way of installing Metasploit Framework on Ubuntu 18.04 / Debian 9 is from the Metasploit installer. This installer ships with all the dependencies and tools required to run the Metasploit Framework.
Download Metasploit installer by running the commands below in your terminal.
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall
Install Vagrant on Ubuntu
To install Vagrant on your Ubuntu system, follow these steps:
1. Installing VirtualBox
As mentioned in the introduction, we will provision the machines on top of VirtualBox, so the first step is to [install the VirtualBox package] which is available in the Ubuntu’s repositories:
sudo apt install virtualbox
If you want to install the latest VirtualBox version from the Oracle repositories, check this tutorial.
2. Installing Vagrant
The Vagrant package, which is available in Ubuntu’s repositories, is pretty outdated. We’ll download and install the latest version of Vagrant from the official Vagrant site.
At the time of writing this article, the latest stable version of Vagrant is version 2.2.6. Before continuing with the next steps, check the Vagrant Download page to see if a newer version is available.
Start by updating the package list with:
Step 1: Install Apache2 HTTP Server
Forma CMS requires a web server and Apache2 HTTP server is the most popular open source web server available today… To install Apache2 server, run the commands below:
sudo apt update
sudo apt install apache2
After installing Apache2, the commands below can be used to stop, start and enable Apache2 service to always start up with the server boots…
sudo systemctl stop apache2.service
sudo systemctl start apache2.service
sudo systemctl enable apache2.service
Now that Apache2 is installed…. to test whether the web server is working, open your browser and browse to the URL below…
http://localhost
Step 1 — Installing Webmin
First, we need to add the Webmin repository so that we can easily install and update Webmin using our package manager. We do this by adding the repository to the /etc/apt/sources.list file.
Open the file in your editor:
sudo nano /etc/apt/sources.list
Then add this line to the bottom of the file to add the new repository:
/etc/apt/sources.list
. . .
deb http://download.webmin.com/download/repository sarge contrib
Save the file and exit the editor.
Next, add the Webmin PGP key so that your system will trust the new repository:
Install MongoDB on Ubuntu 18.04 LTS
Step 1 - Importing the Public Key
GPG keys of the software distributor are required by the Ubuntu package manager apt (Advanced Package Tool) to ensure the consistency and authenticity of the package. Execute this command to import MongoDB keys to your server.
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 68818C72E52529D4
Step 2 - Create source list file MongoDB
Create a MongoDB list file in /etc/apt/sources.list.d/ with this command:
sudo echo "deb http://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
Step 3 - Update the repository
update the repository with the apt command: