Linux

Be a Linux Kernel hacker when needed

Ever wanted to start hacking the kernel? Don’t have a clue how to begin? Let us show you how it’s done… Be a kernel hacker – Write your first Linux Kernel module is article is a good starting point to learn about Linux kernel programming. Kernel programming is often seen as a black magic because →

Debugging and profiling in Linux

Here is a simple way to do post-mortem debugging for a program that crashes. First enable the saving of core files when program crashes by running the following command in shell before starting the program you want to test: ulimit -c unlimited When program crashes Linux creates core file named core to program running directory You →

Creating Secure Software for Linux

Are you writing software that needs to be secure? Quite probably. Security critical programs include application programs used as viewers of remote data, web applications (including CGI scripts), network servers, and setuid/setgid programs.  Secure Programming for Linux and Unix HOWTO — Creating Secure Software on-line book provides a set of design and implementation guidelines for →

Intelnet of things

Intel chip revenue declined in 2013 as worldwide total grew by five percent due to a focus on dwindling PC market. Intel is trying to get new growth by trying to enter actively to mobile and Internet-of-Things application. Internet of Things (IoT) is being driven by the convergence of increasingly connected devices, cloud computing, and →

Linux Performance Analysis and Tools

I just watched though Linux Performance Analysis and Tools: Brendan Gregg’s Talk at SCaLE 11x. It is an interesting talk is about Linux Performance Analysis and Tools: specifically, observability tools and the methodologies to use them. It goes through over 20 Linux performance analysis tools, including advanced perf and DTrace for Linux, showing the reasons →

Open files in Linux

lsof is a very useful Linux command, which can be used to report a list of all open files and the processes that opened them. lsof is very useful in debugging because files in the Linux/Unix system include disk files, named pipes, network sockets and devices opened by all processes. lsof name comes from “list →

Linux TTY

The TTY subsystem is central to the design of Linux, and UNIX in general. The TTY system in Linux is a throwback to when computers first because interactive in real-time,but is still very much relevant today. Unfortunately, its importance is often overlooked, and it is difficult to find good introductory articles about it. The TTY →

Shell script testing

Some time ago I had to test several shell scripts how they affect the running environment on Linux. I ended up writing this simple script to help testing. This example script runs testsubject.sh script, and shows changes to enviroment variables the script causes. !/bin/bash # # Script to handle file sending to server # env →