Skip to content

Instantly share code, notes, and snippets.

@jacquesbagui
jacquesbagui / lamp.sh
Created November 8, 2021 23:11 — forked from aamnah/lamp.sh
Bash script to install Apache, MySQL and PHP as well as PHPMyAdmin and some tweaks. For Debian and Ubuntu. To run, copy the script to the server and run ``bash lamp.sh``
#!/bin/sh
#######################################
# Bash script to install an AMP stack and PHPMyAdmin plus tweaks. For Debian based systems.
# Written by @AamnahAkram from http://aamnah.com
# In case of any errors (e.g. MySQL) just re-run the script. Nothing will be re-installed except for the packages with errors.
#######################################
#COLORS
Serial Keys:
FU512-2DG1H-M85QZ-U7Z5T-PY8ZD
CU3MA-2LG1N-48EGQ-9GNGZ-QG0UD
GV7N2-DQZ00-4897Y-27ZNX-NV0TD
YZ718-4REEQ-08DHQ-JNYQC-ZQRD0
GZ3N0-6CX0L-H80UP-FPM59-NKAD4
YY31H-6EYEJ-480VZ-VXXZC-QF2E0
ZG51K-25FE1-H81ZP-95XGT-WV2C0
VG30H-2AX11-H88FQ-CQXGZ-M6AY4
@extends('layouts.master')
@push('css')
<style media="screen">
.full-background-image {
background-repeat: no-repeat;
background-position: top;
background-size: cover;
}
.block {
background-color: #fff;
#!/bin/bash
echo "---------- Authors: ----------"
echo "Name: Jean Jacques Bagui"
echo "Email: jean-jacques.bagui@epitech.eu"
echo "------------------------------"
echo "> Loading french (AZERTY) keys..."
loadkeys fr-latin1
echo "> Enabling auto time update via NTP..."
timedatectl set-ntp true
127.0.0.1 localhost
::1 localhost
127.0.1.1 asrlab.lan localhost.localdomain
@jacquesbagui
jacquesbagui / mkinitcpio.conf
Created April 1, 2020 06:51
mkinitcpio.conf
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run. Advanced users may wish to specify all system modules
# in this array. For instance:
# MODULES=(piix ide_disk reiserfs)
MODULES=()
# BINARIES
# This setting includes any additional binaries a given user may
@jacquesbagui
jacquesbagui / install_grub_archlinux.sh
Created April 1, 2020 06:49
Installing the GRUB 2 bootloader (in UEFI mode)
echo "> Installing the GRUB 2 bootloader (in UEFI mode)..."
pacman --noconfirm -S grub efibootmgr
grub-install --target=x86_64-efi --efi-directory=esp --bootloader-id=GRUB
grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB
echo "> Editing the default settings for GRUB (workaround to detect LVM partitions)..."
wget -qO/etc/default/grub https://gist.github.com/fanfan54/ffbc4d64af24fe8a1f52c95fa506c8e7/raw/fe852b2b2245cea74b189e905c3a58ab9df0e015/grub
chmod 644 /etc/default/grub
echo "> Generating config file for Grub"
grub-mkconfig -o /boot/grub/grub.cfg
@jacquesbagui
jacquesbagui / arch_install_script_chroot.sh
Last active April 1, 2020 11:35
arch_install_script_chroot.sh
#!/bin/bash
echo "[i] Welcome to chroot."
echo "> Linking /hostlvm to /run/lvm..."
ln -s /hostlvm /run/lvm
echo "> Setting the persistant timezone to Europe/Paris..."
ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime
echo "> Syncing clock with hardware clock..."
hwclock --systohc --utc
echo "> Setting locale to English (US) (UTF-8)..."
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
@jacquesbagui
jacquesbagui / install_ubuntu.sh
Created April 1, 2020 06:11
install_ubuntu.sh
#!/bin/bash
echo "---------- Authors: ----------"
echo "Name: Jean Jacques Bagui"
echo "Email: jean-jacques.bagui@epitech.eu"
echo "------------------------------"
if [ -e "iso/ubuntu-19.04-live-server-amd64.iso" ]; then
echo "> File already exists."
echo "> Ubuntu Live Server"
iso="iso/ubuntu-19.04-live-server-amd64.iso"
@jacquesbagui
jacquesbagui / install_archlinux.sh
Last active April 1, 2020 06:11
install_archlinux.sh
#!/bin/bash
echo "---------- Authors: ----------"
echo "Name: Jean Jacques Bagui"
echo "Email: jean-jacques.bagui@epitech.eu"
echo "------------------------------"
if [ -e "iso/archlinux-2020.02.01-x86_64.iso" ]; then
echo "> File already exists."
echo "> Arch Linux ISO 2020.02.01"
iso="iso/archlinux-2020.02.01-x86_64.iso"