Skip to content

Instantly share code, notes, and snippets.

Last active Aug 29, 2015
What would you like to do?


  • Download any kernel version from

  • tar xJvf kernel_verson_name

  • cd linux-version-name

  • sudo apt-get install libncurss5-dev libncursesw5-dev

  • make menuconfig

  • Now modify your modules function like disabling your keyboard etc SAVE and EXIT

  • make -j 8 ( andha time)

  • make modules

  • sudo make modules_install

  • sudo make install




  • Make a file hello.c with following code -

.#include <linux/module.h> .#include <linux/kernel.h>

int init_module(void) { printk(KERN_INFO "Hello world 1.\n"); return 0; }

void cleanup_module(void) { printk(KERN_INFO "Goodbye world 1.\n"); }

  • Create a file named Makefile in same dir as hello.c with the following content -

obj-m += hello.o

all: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

clean: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean

  • make

  • sudo insmode hello.ko

  • dmesg



.# Download these! sudo apt-get install postfix mailutils libsasl2-2 ca-certificates libsasl2-modules

.# Open sudo vim /etc/postfix/

.# Add these lines relayhost = []:587 smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_tls_CAfile = /etc/postfix/cacert.pem smtp_use_tls = yes

.# Open sudo vim /etc/postfix/sasl_passwd

.# Add this line .# This email ID will become the new sender! []:587

.# Some shit! sudo chmod 400 /etc/postfix/sasl_passwd sudo postmap /etc/postfix/sasl_passwd

.# Some more shit! cat /etc/ssl/certs/Thawte_Premium_Server_CA.pem | sudo tee -a /etc/postfix/cacert.pem

.# These are troubled times, harry! sudo /etc/init.d/postfix reload

.# Try sending a mail echo "Mail Body" | mail -s "Mail Subject"



  • sudo apt-get install vsftdp

  • ftp localhost



  • cd /etc

  • gedit hosts

  • Insert yourname

  • Connect to jamaia-wifi



  • Write bootloader code in assembly

  • nasm -f bin boot.asm -o boot.img

  • Make a bootable PD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment