Skip to content

Instantly share code, notes, and snippets.

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

Tanzina Noor linuxfemale

🏠
Working from home
View GitHub Profile
@linuxfemale
linuxfemale / FTP.sh
Last active December 2, 2019 14:56
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
@linuxfemale
linuxfemale / samba.sh
Last active December 2, 2019 14:55
Samba Server(SMB/CIFS) on Ubuntu 18.04 LTS
sudo apt update
sudo apt install samba
sudo systemctl status nmbd
sudo ufw allow 'Samba'
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.backup
@linuxfemale
linuxfemale / jasmin.sh
Created November 18, 2019 15:07
Jasmin SMPP Panel for Jasmin SMS Gateway.
# Jasmin SMPP Panel (Server)
Jasmin SMPP Panel for Jasmin SMS Gateway.
- Ubuntu 18.04.3 LTS
- Django
- Apache
- SQlite
- Git
## Installation
@linuxfemale
linuxfemale / ssh.sh
Created November 18, 2019 15:06
Enable SSH in Ubuntu 18.04 LTS
sudo apt-get install openssh-server
sudo service ssh status
sudo nano /etc/ssh/sshd_config
set PermitRootLogin yes
set PasswordAuthentication yes
set PermitEmptyPasswords yes
@linuxfemale
linuxfemale / ufw.sh
Created November 18, 2019 15:05
UFW or Uncomplicated Firewall
UFW or Uncomplicated Firewall is a program for managing a netfilter firewall designed to be easy to use. It uses a command-line interface consisting of a small number of simple commands, and uses iptables for configuration. Ubuntu 8.04 Comes with ufw - a program for managing the iptables firewall easily.
To check the status of UFW:
sudo ufw status
To turn UFW on with the default set of rules:
sudo ufw enable
iptables is a command line utility for configuring Linux kernel firewall implemented within the Netfilter project. The term iptables is also commonly used to refer to this kernel-level firewall. It can be configured directly with iptables
Installing Iptables
sudo apt-get update
sudo apt-get install iptables
Checking current Iptables status
sudo iptables -L
Example output:
Chain INPUT (policy ACCEPT)
target prot opt source destination
@linuxfemale
linuxfemale / laravel.sh
Last active December 2, 2019 15:21
Laravel PHP Framework On Ubuntu 18.04
sudo apt update
sudo apt install apache2
sudo systemctl stop apache2.service
sudo systemctl start apache2.service
sudo systemctl enable apache2.service
sudo apt install php7.2 libapache2-mod-php7.2 php7.2-mbstring php7.2-xmlrpc php7.2-soap php7.2-gd php7.2-xml php7.2-cli php7.2-zip
@linuxfemale
linuxfemale / github.sh
Created November 18, 2019 15:01
git ssh add git clone git repo add
cd /home/sifat/.ssh/
ls -al ~/.ssh
ssh-keygen -t rsa -b 4096 -C "linuxfemale@gmail.com"
ls -al ~/.ssh
cat /home/sifat/.ssh/id_rsa.pub
copy key and add
https://github.com/settings/ssh/new
ssh -T git@github.com
cd Downloads/
git clone https://github.com/Jasmin-SMPP-Server-.git
@linuxfemale
linuxfemale / rocketChat.sh
Created November 18, 2019 14:49
Rocket.Chat in Ubuntu 18.04 LTS
##Step 1: Install MongoDB
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt update
sudo apt install -y mongodb-org
sudo systemctl stop mongod.service
@linuxfemale
linuxfemale / rails.sh
Created November 18, 2019 14:48
Ruby On Rails using rbenv
##Installing Ruby
# https://youtu.be/ABmt13zS7uM#
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