Howto's

Drupal 7: How to remove throbber image from ajax links and create a custom throbber.

In this howto, we will see how to remove the blue throbber image and related markup when you click on an ajax link and replace with a custom throbber image.

Any form element or link can be made ajax by setting #ajax property. But #ajax property is tied closely to drupal form elements. There is another way in drupal to convert a link to use ajax, by setting 'use-ajax' class. But for those links the progress type is always throbber.

In this howto we will look at one of the many ways to change to our custom throbber.

How to: Get the information of your Computer's Hardware components using Dmidecode command

Dmideocde is a wonderful utility to get detailed information about your system’s hardware components. It extracts the information from the computer’s Desktop Management Interface(DMI) and displays in a human readable format. Please note that, it doesn’t probe the devices in order to gather the information, it just reads it from some data structures.

Howto: Find the uptime and system load of a Linux machine using uptime command

Uptime is the amount of time a machine has been up and running, providing all its services without any downtime. For a linux machine, this information can be found out using the “uptime” command. Along with the uptime, this command also tells you how many users are currently logged in and the load on the system in the past 1, 5 and 15 minutes.

How to run commands on a remote machine using ssh(no interactive shell)

We all use ssh to access machines remotely, but not many know that instead of using a shell we can use ssh to simply run a command on the remote system. Just add the command, you want to be executed, after the user@host part and instead of throwing an interactive shell, ssh will run the command on the remote machine and show you the output(if any).

Here is a simple illustration:

Use Tail command to view growing/changing files in real time

Many a times you will feel the need to view a constanly updating file. This is a common case with logs. People usually think that tail command is only used to view the last parts of a file, but it even provides you with the ability to view growing/changing files.

Please note that, by growing I mean files to whom data is being appended constantly. Using the “-f” option, tail lets us view the data that is being added to the file in real time.

Drupal 7: Convert user login block to use ajax

In this simple how to we will see how we can easily convert drupal 7 user login block to use ajax. This is one of the many methods of using ajax for login block. We will see few cool d7 tricks that makes this very easy.

Before we start lets checkout a quick demo

How to remove or uninstall Nouveau drivers from Ubuntu

So, I blew my Graphic card today  and while troubleshooting the issue I tried to install proprietary Nvidia drivers. But in order to do that you are required to remove nouveau drivers from the system. This guide will tell you how to disable and remove nouveau drivers step by step.

How to - Use the Readlink command to find the canonical filename of a symbolic link

Sometimes you may encounter a chain of files linked together using symbolic links. Readlink is a tool that can follow the chain and help you find out what is at the other end of it, the absolute file. Lets take an example of the Debian Alternate system. The file /usr/bin/editor is symlinked to /etc/alternatives/editor which in turn is linked to the actual editor binary - /bin/nano.

How to: Get the Inode utilization data of a filesystem using df command

When we talk about a file in ex2/3/4 filesystems, it consists of two kinds of information - filename and inode. The latter is a special data structure to store information about the file - file type, size, ownership, access information(read,write,execute bits), location of the file content etc. Such type of information is also known as metadata.

How To - Set the default content of a new user's home directory using /etc/skel

When you create a user account on a Linux system and ask it to create a home directory, some files are automatically added to it e.g. - .bashrc, .bash_history etc. How does that happen or how can I add/remove files to a user's home during the creation of his account? This is all taken care of by the /etc/skel directory.

Syndicate content