Skip to content

Instantly share code, notes, and snippets.

How to Share Folders Between Users in FTP

The Solution: use a Bind Mount. This makes the system treat the shared folder as if it physically exists in the user's directory.

# 1. Create a real, empty folder.
mkdir -p "/home/parsa/example"
@MortezaJavadian
MortezaJavadian / README.md
Last active September 27, 2025 13:25
A complete guide to setting up Remote Desktop on Ubuntu with GNOME using xRDP. Covers installation, configuration, and connecting from Windows and support some problems in NOTE.

Linux Remote Desktop (xRDP with GNOME)

RDP (Remote Desktop Protocol) is a Microsoft software that lets you remotely control another computer with a graphical interface. Windows already comes with an RDP client built-in (Remote Desktop Connection, mstsc).
Now, we will enable that on Linux by installing and configuring xrdp.

Installation & Setup on Ubuntu

1. Install xrdp

Sed CIL Linux

sed stands for Stream Editor.
It is a powerful command-line tool on Linux and macOS. It's main job is to find and change text inside files.

Basic Syntax

sed [OPTIONS] 'SCRIPT' [INPUT_FILE...]
  • OPTIONS: Settings that change how sed works.
@MortezaJavadian
MortezaJavadian / README.md
Last active September 17, 2025 09:37
A complete Pi-hole guide, from installation to setup. This document explains Pi-hole features, how to install it, configure DNS and DHCP, and manage your network with advanced blocking and filtering.

Pi-hole & Network Manager

It acts as a DNS server. When you try to visit a website, your device asks the Pi-hole for the address. If the address is a known in Pi-hole, Pi-hole filter the request as you want.

Pi-hole Features

  • Custom DNS Servers:
    You can tell Pi-hole to use any DNS provider you want, instead of just public ones like Google. like use Shecan DNS to access restricted content or services for your entire network.

  • Local DNS Records:

@MortezaJavadian
MortezaJavadian / README.md
Last active August 16, 2025 08:01
A complete Docker Course, starting from the basics and leading up to advanced usage. This course covers everything you need to containerize applications, manage images, use Docker Compose, Swarm, and deploy services.

Docker Course

Welcome To The Course!

Docker Version & System Information

Use these commands to verify your Docker setup:

docker version
@MortezaJavadian
MortezaJavadian / README.md
Last active July 31, 2025 07:54
Compile and install TestDisk and PhotoRec from source on Debian/Ubuntu-based systems and use those to recover file.

Build, Install and Usage TestDisk and PhotoRec from Source

Prerequisites

Install required dependencies:

sudo apt-get update && sudo apt-get install -y \
    build-essential \
 libext2fs-dev \
@MortezaJavadian
MortezaJavadian / .gitlab-ci.yml
Last active December 4, 2025 11:48
SonarQube Setup using Docker and Docker Compose, Includes PostgreSQL and SonarScanner images, with support for local and CI/CD-based code analysis
stages:
- sonar
sonar_scan:
stage: sonar
image: sonarsource/sonar-scanner-cli:latest
variables:
GIT_DEPTH: "0"
SONAR_SCANNER_CLI_OPTS: "-Dsonar.projectKey=$SONAR_PROJECTKEY
-Dsonar.sources=.