James John – Software Engineer

Archives

Linux

Downloading Package Source Files and Rebuilding in Debian/Ubuntu

Gets to a point you might want to rebuild a package, maybe to be modified. It is easily done in Debian based systems. We will be using nano for this post, we are going to download nano source and rebuild it to a .deb file. Before this is done, you have to add deb-src to […]

This Python Program will Set your DNS Servers in /etc/resolv.conf Accordingly

Etisalat Mobile Communication Network blocked OpenDNS Server which turns out to be the server I use most. So each time I connect to Etisalat, I will go to edit my /etc/resolv.conf and set it to Google Public DNS. Been doing this for months and I told myself, why not write a program to check this […]

Bluetooth: Fix a2dp-source profile connect failed for XX Protocol not available in Linux

Been a while I’ve always wanted my Android to stay connected to my Linux via Bluetooth but I always get this heartbroken error message. bluetoothd[778]: a2dp-source profile connect failed for XX:XX:XX:XX:XX:XX: Protocol not available Why This Error? Most bluetooth devices are connected to your PC to use as Multimedia device (Sound), but when it wants […]

How to Set Up SSH Keys Between Servers

SSH Keys SSH keys serve as a means of identifying yourself to an SSH server using public-key cryptography and challenge-response authentication. One immediate advantage this method has over traditional password authentication is that you can be authenticated by the server without ever having to send your password over the network. Anyone eavesdropping on your connection […]

How to Enable Intel DRI3 in Xorg

The Direct Rendering Infrastructure (DRI) is a framework for allowing direct access to graphics hardware under the X Window System in a safe, efficient way. The main use of DRI is to provide hardware acceleration for the Mesa implementation of OpenGL. [Wikipedia] You may be experiencing some graphical glitch effects on your DE, this might […]

Fix Grub efibootmgr: Could not set variable *: No space left on device

On installation of Debian 8 on a PC, grub wasn’t installed. Trying this method to install it, I got the error: efibootmgr: Could not set variable Boot0004: No space left on device I thought, is my /boot partition filled up? or my / is filled up so early. Had to even extend my /boot partition […]

Python-SiDB: A Less Query SQLite Database Library

SiDB – A Simple Database Library for sqlite3, after writing similar thing for PHP MySQL, since I use Python too I decided to build for it too for my easier coding. After building and seeing how helpful it is, I decided to share. What Does SiDB do? In all, its for less SQL Queries, it […]

Fix “bash: warning: setlocale: LC_ALL: cannot change locale” in Debian

What is Locale? Locales defines language and country specific setting for your programs and shell session. You can use locales to see date, time, number, currency and other values formatted as per your country or language on a Linux or Unix-like system. To set system’s locale you need use shell variable. For example, LANG variable […]

KDEConnect – Synchronize your SmartPhone with KDE

One thing I’ve loved so much in KDE is the KDEConnect. A dope feature for me a lazy man 🙂 What is KDEConnect? KDE Connect is a project that aims to communicate all your devices. For example, with KDE Connect you can receive your phone notifications on your computer, or just use your phone as […]

Installing Package From LaunchPad PPA in Debian

LaunchPad PPA allows you to upload Ubuntu source packages to be built and published as an apt repository by Launchpad. Ubuntu accepts adding of Launchpad PPAs easily and install any package you want. But here in Debian, it’s not so. I figure out a way to download package from PPAs in Debian and receive updates […]