Skip to content

Instantly share code, notes, and snippets.

@kimus
kimus / ufw.md
Created March 2, 2014 22:46
NAT and FORWARD with Ubuntu’s ufw firewall

UFW

I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.

Install UFW

if ufw is not installed by default be sure to install it first.

@abderraouf-adjal
abderraouf-adjal / gnu_linux_links.txt
Last active October 8, 2022 16:51
روابط مفيدة حول جنو/لينكس
@ankurk91
ankurk91 / install_lamp_ubuntu.sh
Last active May 7, 2026 02:54
Ubuntu 22/24 - PHP development (php 7.4 / 8.4, nginx)
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Ubuntu Server
export DEBIAN_FRONTEND=noninteractive
echo -e "\e[96m Adding php PPA \e[39m"
sudo add-apt-repository -y ppa:ondrej/php
@ziadoz
ziadoz / install.sh
Last active February 17, 2026 23:47
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
#!/usr/bin/env bash
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
# https://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
# https://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
# https://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
# https://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS https://chromedriver.storage.googleapis.com/LATEST_RELEASE`
@wellington1993
wellington1993 / wayland-gnome-ubuntu-mint.sh
Last active April 17, 2024 21:45
How to Install Wayland Gnome on Linux Mint Ubuntu with Dependencies with PPA
#!/bin/bash
# NOTICE, EASY WAY FIRST: sudo apt install gnome-session-wayland
# If easy way not work try this below:
################# 0 - Preparation ##################
# Update and PPA
sudo add-apt-repository -y ppa:wayland.admin/daily-builds; \
apt update; \
#
# Depends
sudo apt install -y doxygen xmlto; \
@hmidani-abdelilah
hmidani-abdelilah / install_lamp_18.sh
Created July 16, 2019 13:50 — forked from ankurk91/install_lamp_ubuntu.sh
Ubuntu 18.04 - PHP development (php 7.2, MySQL 5.7, apache 2.4)
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Ubuntu 18.04 dev Server
# Run like - bash install_lamp.sh
# Script should auto terminate on errors
echo -e "\e[96m Adding PPA \e[39m"
sudo add-apt-repository -y ppa:ondrej/apache2
#This procedure setup up a container with the latest kdenlive on debian
host +
lxc launch images:ubuntu/focal/amd64 kdenlivebuild
lxc exec kdenlivebuild -- /bin/bash
apt update
apt upgrade
apt install sudo
useradd -m kdeuser --shell /bin/bash
usermod -aG sudo kdeuser
# In The Name Of Allah .
# -- --- ---- -- ----- -
# Sun Nov 8 08:29:08 2020
# Written By : zer0err0r .
# ======= == = ========= =
# 6, Creating VMs with pools .
# First, Create a VM volume .
$ virsh vol-create-as my_pool centos1.raw 10G --format raw # raw, pool .
# In The Name Of Allah .
# -- --- ---- -- ----- -
# Wed Nov 11 05:56:57 2020
# Written By : zer0err0r .
# ======= == = ========= =
# 8, [virt-manager] .
= [virt-manager] is the GUI of [KVM + QEMU < Libvirt] .
= Exploring the interface, How to add new remote host .
# In The Name Of Allah .
# -- --- ---- -- ----- -
# Wed Nov 11 05:56:57 2020
# Written By : zer0err0r .
# ======= == = ========= =
# 11, VirtIO .
= para_virtualization VMs performance are better than full VMs .
= para_virtualization require modifying the VM from inside, Unlike full_virtualization .
= full_virtualization performance can be as fast as the para_virtualization using VirtIO drivers .