tutorial

How to boot an Ubuntu VM from raw partition on physical disk in VMware

Introduction This tutorial assumes a dual boot installation on a physical drive. The instructions will guide you through the steps for creating a virtual machine using Windows 10 as the host and Ubuntu 18.04 as the guest. The process should be similar for other OS combinations though. Creating a new VM in VMware Workstation player Creating the VM Click “Create a New Virtual Machine”. Select “I will install the operating system later”.

Gitlab LDAP authentication without querying account or anonymous binding

*Note*: This tutorial was last tested with gitlab 8.5 installed from source. This tutorial aims to describe how to modify a Gitlab installation to use the users credentials to authenticate with the LDAP server. By default Gitlab relies on anonymous binding or a special querying user to ask the LDAP server about the existence of a user before authenticating her with her own credentials. For security reasons, however, many administrators disable anonymous binding and forbid the creation of special querying LDAP users.

How to build the linux kernel

Getting the source First you need to fetch the source. Visit kernel.org and get the version of your preference. Alternative, if you plan to hack it you might prefer to get the latest (merged by Linus Torvalds) code by cloning his git repository: git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Configuring After you decompress the fetched archive or the git clone is done, you will need to create a .config file for your build.

How to backup your configuration using Git

This tutorial is about backing up the configuration under a user’s home directory using Git. Git supports negation of patterns in .gitignore files. To negate a pattern we simply prefix it with !. This feature enables to use .gitignore file in a user’s home directory that instructs Git to ignore all files under this directory except the ones matching the patterns prefixed with !. i.e. ################################################################################ # Ignore everything except what we want to back up (Note that / is the # root of the repository and not the actual root of the filesystem ################################################################################ /* ################################################################################ # You definitely do not want to ignore your gitignore (: ################################################################################ !

How to change the UID of a user with an encrypted home directory in Ubuntu

This tutorial is about changing the UID of a user with an encrypted, by ecryptfs, home directory in Ubuntu. You first need to logout the user you want to modify and kill all processes he runs. An easy approach is to restart and log in as root or as another sudo user. To enable the root user (by default it is disabled) execute the following commands: sudo passwd root Now you can log in using root and the password you provided.

Enable automatic security updates in Ubuntu

This tutorial will enable automatic download and installation of security updates for Ubuntu. First we need to install unattended-upgrades: sudo apt-get install unattended-upgrades Then we need to enable it: sudo dpkg-reconfigure -plow unattended-upgrades More information can be found here.

Ubuntu 13.04 RAID-1 setup

Purpose This tutorial aims to help you setup a software RAID-1 (mirror) under ubuntu 13.04 Lets assume the following mapping /dev/sda1 / /dev/sda2 /home /dev/sda3 swap /dev/sda4 /spare We also assume that you have a second (empty) hard disk drive larger or equal to sda . We are going to create 4 new partitions (md1,md2,md3,md4) which will act as RAID-1 using sda1 & sdb1, sda2 & sdb2, sda3 & sdb3, and sda4 & sdb4 respectively to store the data.

Getting started with Emacs

So you want to learn how to use Emacs… First of all install Emacs (I suggest versions >=24). Then start using it. It is going to be hard in the beginning, but day by day you will get used to it and learn new things. Your friends Reference cards (will help you learn the most basic commands) The Emacs built in tutorial (Control-h t). http://www.emacswiki.org (Includes everything about Emacs)

Using emacs and notmuch as a mail client

This tutorial aims to help you setup notmuch for multiple IMAP accounts and use emacs as a frontend. ( At the time writing this tutorial emacs version was 24.3 and notmuch version was 0.15.2) Soon after writing this tutorial I experimented with mu and mu4e, the configuration is similar and the experience much better (IMO). The stack We are going to use the following stack to fetch, index and finally read our emails.

Google PDF viewer on Chromium

This is a tutorial (more like a code dumb) on how to enable the pdf viewer plugin from google chrome in chromium. wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb ar vx google-chrome-stable_current_amd64.deb rm google-chrome-stable_current_amd64.deb control.tar.gz debian-binary tar --lzma -xvf data.tar.lzma sudo cp opt/google/chrome/libpdf.so /usr/lib/chromium-browser/ rm -rf etc opt usr data.tar.lzma