Warning: Undefined array key 1 in /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php on line 505
Warning: Undefined array key 2 in /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php on line 505
Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php on line 557 Linux – Technical Articles
build-essential is a metapackage on Debian and Ubuntu that installs the basic tools for compiling software. It typically pulls in:
gcc and g++ — C and C++ compilers
make — runs build instructions
libc6-dev — C library headers and development files
dpkg-dev — tools for building Debian packages
chrpath is a small Linux utility for inspecting and changing the RPATH/RUNPATH stored in an ELF executable or shared library. These paths tell the dynamic linker where to look for required shared libraries.
It’s commonly used during packaging to remove or adjust build-time library paths before distributing a program. Use it carefully: changing the path incorrectly can prevent the program from finding its libraries.
chrpath -l ./program # show its RPATH/RUNPATH chrpath -d ./program # remove it chrpath -r ‘$ORIGIN/lib’ ./program # set a relative path
cpio is both a command-line utility and a package that provides it. It creates and extracts archive files, often used for backups, packaging, and moving files while preserving metadata.
You may see it in Linux system workflows—for example, in initramfs images used during boot, or in software package archives. It’s similar in purpose to tar, though the archive formats differ.
ASLR (Address Space Layout Randomization) is a security feature that randomizes the memory addresses used by key data areas of a process — such as the stack, heap, libraries, and executable code.
🔍 Purpose:
To make it harder for attackers to predict memory locations during an exploit (e.g., buffer overflow, return-oriented programming).
Without ASLR, attackers can rely on fixed addresses to inject or jump to malicious code. With ASLR, every reboot or process restart changes memory layout, invalidating most static exploits.
How ASLR Works
Memory Region
What’s Randomized
Example
Executable base
Program’s load address
/bin/bash loads at different addresses each run
Stack
Stack start address
Prevents predictable stack-smashing offsets
Heap
Heap base
Stops heap spraying reliability
Shared libraries
libc, etc.
Mapped at different offsets each run
ASLR Compliance Meaning
Being ASLR compliant means:
The OS supports ASLR, and
The application, driver, or firmware image is built and linked to use ASLR.
In other words:
The binary and its runtime environment both must support and not disable ASLR.
Windows
ASLR is enabled system-wide via /DYNAMICBASE linker flag.
You can verify by running:
dumpbin /headers myapp.exe | find "Dynamic base"
→ If Dynamic base is listed → ASLR enabled.
Policies: Controlled via Exploit Protection or Group Policy.
Windows 10+ also support Force ASLR for all executables.
Linux
Controlled via /proc/sys/kernel/randomize_va_space
Value Meaning
0 ASLR disabled
1 Conservative randomization
2 Full randomization
With value 1, Linux randomizes these user-space memory areas:
Memory area
Randomized with value 1?
Notes
mmap base address
Yes
Affects shared libraries and memory mappings created with mmap()
Shared libraries
Yes
Because shared libraries are usually loaded through mmap()
Stack
Yes
Main thread stack location is randomized
VDSO page
Yes
Kernel-provided virtual syscall page is randomized
A Next-Generation Firewall (NGFW) extends beyond traditional packet filtering (Layer 3/4) by providing application-level (Layer 7) visibility and control. In embedded systems — such as IoT gateways, industrial controllers, or edge servers — integrating NGFW capabilities presents unique challenges due to limited CPU, memory, and power. Layer 7 filtering inspects the application data payload, not just IP/port. It can:
1. What Layer 7 Filtering Means
Enforce policy based on app, user, or content type — e.g. “block social media APIs” or “allow only JSON over HTTPS from whitelisted domains.”
Identify protocols like HTTP, MQTT, CoAP, Modbus, OPC-UA, etc.
Detect specific application actions (e.g., login, file upload, API calls).
2. NGFW Core Components for Embedded Systems
To achieve this in a constrained environment, the NGFW must include:
Component
Purpose
Lightweight Options
Deep Packet Inspection (DPI) Engine
Parses protocol layers, identifies apps
nDPI, L7-filter, Suricata-lite
Stateful Packet Inspection (SPI)
Tracks connection states
Netfilter conntrack (Linux)
Application Identification
Uses pattern matching and heuristics
nDPI, AppID library
Content Filtering / IDS
Detects malicious payloads
Snort ruleset subset, Suricata rules
Policy Engine
Enforces rules per app/user/device
Custom rule parser or iptables/nftables extensions
TLS/SSL Inspection (optional)
For HTTPS visibility
OpenSSL proxy or embedded MITM TLS proxy
3. Example Embedded Software Stack
A realistic embedded NGFW architecture could look like this:
To read transceiver (optics) data such as vendor name, part number, wavelength, or temperature from an NVIDIA ConnectX-7 Ethernet adapter, you can use the mlxlink or mlxconfig tools from the Mellanox/NVIDIA MLNX_OFED or NVIDIA Networking tools package.
🔹 1. Using mlxlink (preferred for transceiver info)
As part of development your lab network or corporate network might be under a proxy network to download docker images.
This article explains on how to add HTTP/HTTPS proxy to download the docker images in a corporate environment.
Raspberry pi is based on Debian distribution. This article may assist apt repository upgrade failures. When ever there is a broken install, you can use the below command.
apt –fix-broken install
Whatever library it depends on use the below command to resolve it.
Faced an issue of unable to connect remotely to my raspberry pi remotely over ssh. Enabled password based authentication etc in sshd_config file. Still the issue not resolved. Below commands assisted in the resolution of the problem.