Ubuntu Linux tutorials

How to add a user on Linux with sudo access

Sometime we need to add a user on Linux environment from command line or from a shell/bash script and give it sudo access. Linux has read more

How to check if a user has password on Linux

Any user created on Linux may or may not have a password. Linux stores passwords in encrypted format in /etc/shadow. Here is quick command line read more

How to install ViewVC for svn repository on Ubuntu Linux

ViewVC is a browser interface for cvs and subversion version control repositories. If you are using svn then its a great tool to browse your read more

How to setup ssl (https) for your site on Ubuntu Linux

You may need ssl for your site for multiple reasons. I needed it for facebook apps. So my requirements are not so strict. For building read more

Install rabbitmq on Ubuntu Linux

RabbitMQ is an open source message broker software that implements the Advanced Message Queuing Protocol (AMQP). It is written in the Erlang programming language. Here read more

LXC (Linux Containers) – quick start tutorial on Ubuntu

LXC (Linux Containers) is an operating-system-level virtualization environment for running multiple isolated Linux systems (containers) on a single Linux control host. Here is a quick read more

Linux – command to check swap size

Swap space is the area on a hard disk which is part of the Virtual Memory. Swap space temporarily holds memory pages that are inactive. read more

Linux – how to add a user using useradd

Adding a new user on Linux can be easily done on command line using useradd. These are some scenarios and handy commands to add a read more

Linux – how to create a large file like 1GB

Sometimes we need a large file with any content on Linux. This may be needs for benchmarking and testing purpose. Here are some ways to read more

Linux – how to create swap partition

Step to create swap partition on Ubuntu Linux. It should work on any other Linux also. Create storage file (say 4GB) using fallocate for swap read more

Linux – how to remove user from a group

To remove a user from a group on Linux, one can use gpasswd or deluser. Here are sample commands. Using gpasswd To remove user1 from read more

Linux – number of cpus (lscpu)

Command lscpu to find number of cpus on linux $ lscpu lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 32 On-line read more

Linux du – find disk usage of directories or files

Linux du command can be used to find disk usage of files and directories. Here are some handy du commands on Ubuntu Linux (or any read more

NFS client and server handy commands

In case you are using NFS server, here are some handy commands you can use while working in production. These were tested in Ubuntu Linux. read more

How to setup svn repository on AWS Ubuntu Linux with apache simple auth

Svn (Subversion) is one of the popular options for maintaining source code versions and revisions on Linux. Here are the steps to install and setup read more

Ubuntu – check if a service is upstart based

Ubuntu Linux (version 14) uses upstart to manage processes. But not all services are converted to upstart. Some are using sysv init. Also note that read more

Ubuntu – dpkg and apt-get beginner tutorial

Installing and managing packages is the first thing you do when you use any Linux system. It takes a while to get hang of it read more

Ubuntu – find file to package

Ubuntu dpkg-query can be used to find package name given a file name, its full path or partial name. Note that it does not follow read more

Ubuntu – find where will a package be installed from

Ubuntu apt-cache policy can be used to find the sources of a package and their order. This can be helpful in case we are downloading/installing read more

Ubuntu – how to auto start services on boot using update-rc.d (sysv init)

Utility update-rc.d is part of sysv init (package sysv-rc) on Ubuntu Linux. It can be used to manage services at boot time. It can be read more

Ubuntu – how to find boot autostart status of a service

There are two types of services on Ubuntu Linux (Ubuntu version 14). One are upstart based and others based on sysv init. To check if read more

Ubuntu – reload iptables rules during boot

Steps to load iptable rules automatically on Ubuntu Linux using package iptables-persistent. Install iptables-persistent $ sudo apt-get install iptables-persistent When asked during installation should it read more

Use x2go to access remote Ubuntu Linux

X2Go enables you to access a graphical desktop of a computer over network. It is a remote desktop solution for Linux. In this article we read more