Category: ubuntu

Netlink Sockets: Addind a new socket family

Kernel version 3.13, Ubuntu 14.04 $ uname -a Linux ubuntu 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux We need two changes: User space Locate the file “netlink.h” $ sudo locate “netlink.h” You would get the header file at “/usr/include/linux/netlink.h” Add the new family #define NETLINK_MY     17 Keep…

Handbrake: Installation on Ubuntu 14.04 64-bit

Get sources link apt-get update sudo apt-get install bzr subversion yasm build-essential autoconf libtool zlib1g-dev libbz2-dev libfribidi-dev intltool libglib2.0-dev libdbus-glib-1-dev libgtk2.0-dev libgudev-1.0-dev libwebkit-dev libnotify-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev sudo apt-get install libass-dev libtheora-dev sudo apt-get install libvorbis* sudo apt-get install samplerate* bunzip sources go to ./build make make install

A priority queue with O(1) operations: C, Linux implementation

I have implemented a priority queue that enable O(1) time complexity for major operations i.e. enqueue and dequeue. It is C, POSIX compliant code. Things to note – It uses buffer pools – Its behavior is to return the highest priority node from the queue – If queue is empty/full, we use conditional waits –…

Fun with fuser and wisdom of killing Firefox

Who else is using my file? Ever got curious to know who else would be using a file/socket? If i invoke tail polling on a file in two different sessions: $tail -f logs.txt $tail -f logs.txt $ps -fu my my 11449 11322  0 10:14 pts/0    00:00:00 tail -f logs.txt my 11508 11450  0 10:14 pts/1   …

An efficient system setup for Linux programmer – part 2

We discussed the skeleton of the setup in Part 1. This post talks of the applications and utilities that would salvage your soul and make you feel blessed of FOSS. As I am a programmer, we will strictly talk of generic development application. Gnome Connection Manager: If you know about “putty”, still read on. It…

An efficient system setup for Linux programmer – part 1

A Linux software developer has plenty of development environment choices. But situation becomes complicated with a corporate IT policy that forces us to use Windows. And, I say not. So what to do? Here I’m sharing the best lot of my experience: Keep your Windows setup untouched Most of us get Windows PC from our…

Uninterrupted Linux session : screen command

Have you ever faced losing connections to a remote machine (e.g. from a putty) and you happened to be in middle of a script that took ten hours to complete. So what would you do?? Restart the script after re-connecting. Not anymore… Linux screen solves this problem with providing a terminal that runs on server…

>Running Ubuntu 9.10 Casper On your PC

>A complete solution: Image Writing to Installation Ubuntu is a free open source Linux distribution, primarily for desktop users. There are many reasons to use Ubuntu instead of other Linux distro(Just Google for it). I am assuming that reader is an Ubuntu user on a x86 system and knows some stuff about Linux. o) First…