Skip to content

Instantly share code, notes, and snippets.

View alsyundawy's full-sized avatar
🏠
WFH | Kaum Rebahan Garis Keras Dan Militas

༺ Initial H ༻ alsyundawy

🏠
WFH | Kaum Rebahan Garis Keras Dan Militas
View GitHub Profile
@alsyundawy
alsyundawy / sh.md
Created August 30, 2024 20:09 — forked from amanjuman/sh.md
Debian 12 Netplan.io

Install Packages

sudo apt install netplan.io openvswitch-switch

Configure Netplan

nano /etc/netplan/network.yaml
network:
@alsyundawy
alsyundawy / dist-upgrade-buster-to-bookworm.sh
Created August 26, 2024 08:04 — forked from rrottmann/dist-upgrade-buster-to-bookworm.sh
Dist-Upgrade Debian 10 Buster to Debian 12 Bookworm
# Debian 10
apt-get -y update
apt-get -y upgrade --without-new-pkgs
apt-get -y full-upgrade
cat > /etc/apt/sources.list <<"EOF"
deb http://deb.debian.org/debian/ bullseye main
deb-src http://deb.debian.org/debian/ bullseye main
deb http://security.debian.org/bullseye-security bullseye-security/updates main
deb-src http://security.debian.org/bullseye-security bullseye-security/updates main

Ubuntu GPU Server Setup

Quick and smooth setup of Ubuntu GPU server, including proper installation of Nvidia driver.

Estimated time: < 1 hour

  1. Download the “alternative” server image from Ubuntu: Alternative downloads | Ubuntu
  2. Create a bootable USB stick on macOS | Ubuntu
  3. Go to BIOS, disable secure boot. Then boot UEFI. Install Ubuntu, overwrite full partition, add SSH Server. Finish installation and login.
  4. You can now ssh in with password. Login and install nvidia driver. Since secure boot is disable, nvidia installation should go smoothly.
@alsyundawy
alsyundawy / move-var-part-ubuntu.md
Last active May 21, 2024 19:41 — forked from iambryancs/move-var-part-ubuntu.md
Move /var to another partition in Ubuntu

Move /var to another partition in Ubuntu

Create partition with fdisk or gdisk

fdisk -l
create a new GPT partition table by typing
gdisk /dev/sda
GPT fdisk (gdisk) version 1.0.5

Partition table scan:

Cut, copy, paste, and other common shortcuts

Shortcut Description
Command-X Cut the selected item and copy it to the Clipboard.
Command-C Copy the selected item to the Clipboard. This also works for files in the Finder.
Command-V Paste the contents of the Clipboard into the current document or app. This also works for files in the Finder.
Command-Z Undo the previous command. You can then press Command-Shift-Z to Redo, reversing the undo command. In some apps, you can undo and redo multiple commands.
Command-A Select All items.
Command-F Find items in a document or open a Find window.
@alsyundawy
alsyundawy / osx-software-update-urls-10.3-to-14.txt
Created March 23, 2024 21:57 — forked from b0gdanw/osx-software-update-urls-10.3-to-14.txt
URLs of the index files used by the software update client on OS X
10.3 (Panther):
https://swscan.apple.com/scanningpoints/scanningpointX.xml
10.4 (Tiger):
https://swscan.apple.com/content/catalogs/index.sucatalog
https://swscan.apple.com/content/catalogs/index-1.sucatalog
10.5 (Leopard):
https://swscan.apple.com/content/catalogs/others/index-leopard.merged-1.sucatalog
@alsyundawy
alsyundawy / PIHOLE+UNBOUND.md
Created January 29, 2024 23:46 — forked from bruvv/PIHOLE+UNBOUND.md
Setup Pihole + Unbound + DNS over TLS on ubuntu 20.02 LTS

Swap

First enable swap just incase

sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo cp /etc/fstab /etc/fstab.bak
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
sudo sysctl vm.swappiness=10
@alsyundawy
alsyundawy / clamav.pm
Created September 2, 2023 14:20 — forked from pmeulen/clamav.pm
A spamassassin plugin that calls clamav
## A spamassassin plugin for calling clamav
# Version 2.0 was downloaded from https://wiki.apache.org/spamassassin/ClamAVPlugin
#
# # version 2.0, 2010-01-07
# - use SA public interface set_tag() and add_header, instead of
# pushing a header field directly into $conf->{headers_spam}
#
# # version 2.1, 2017-09-09 (pmeulen):
# - Allow ClamAV::Client, which is provided by debian package libclamav-client-perl, to be used
# in addition to File::Scan::ClamAV

Server Build Guide: Ubuntu (20.04LTS) LNMP/LAMP

This is a living document which reflects the current process, accumulated and tuned over many years, that I use to set up a Ubuntu 20.04LTS LNMP/LAMP stack from scratch. It might not suit everyone, and probably isn't without its flaws, but it's a good foundation for any new server setup, one that I use for dev and production servers alike.

If you would like a quick, no-fuss, local LNMP stack, check out my ubuntu_lnmp_docker_vagrant repository.