view counter

Linux Feed

Linux Support, Oracle Linux, Red Hat Enterprise Linux, SUSE, Oracle Unbreakable Enterprise Kernel and the Oracle Unbreakable Linux Support Program (ULN) resources, news, and support articles.

How to Easily Install MIUI v6 Developer ROM on Mi 3 Indian version

Simple steps to speed up Xiaomi MI3 [no root required]

How to redirect sudo output to a file requiring root permission

sudo is the recommended way to execute a command which requires root permission. In effect, the target command takes on the permission of root without having to provide the root password. Consider the following scenario. In order to save the changes made to the iptables firewall rules, I need to run the following command which outputs the changes to a file with root permission. $ sudo iptables-save > /etc/iptables/rules.v4bash: /etc/iptables/rules.v4: Permission denied

Compiling VASP 5.3.5 with OpenMPI 1.6.5 and Intel 12.1.5

Do take a look Compiling VASP 5.3.3 with OpenMPI 1.6.5 and Intel 12.1.5 for the step by step approach to compiling. Instead I will put up my make file here for your evaluation
Step 1: Makefile for vasp.5.lib


Oracle OpenWorld is Upon Us! Application Developers Unite!

It's a super, extra, enormously busy time of the year at Oracle
because our big >Oracle OpenWorld Conference is next week. We have all been
working on new products and new presentations.

I have a full mix of events, meetings, presentations and booth
duty. If you're at the conference drop by to say Hi. I'll be at the
Application Development booth (Left - SLD-163) in Moscone South on
Monday morning, Tuesday lunchtime and Wednesday morning (plus other
odd times).

Remote vulnerability in bash – patches available for CVE-2014-6271, CVE-2014-7169

Bash or the Bourne again shell, is a UNIX like shell, which is perhaps one of the most installed utilities on any Linux system. From its creation in 1980, bash has evolved from a simple terminal based command interpreter to many other fancy uses.

Python – convert dictionary to json

To convert any dictionary to json use json.dumps(YourDictionary).
Below is an example to convert a dictionary to json:

import json

def toJson():
d = {'a' : 'Apple', 'b' : 2}
return json.dumps(d)

print toJson()

{“a”: “Apple”, “b”: 2}

lighttpd – allow/block ip range

To allow some or multiple ip rages use below code:
$HTTP["remoteip"] =~ "192\.168\.1\.*|10\.2\.20\.*" {
server.document-root = "/var/www"
Above code will allow only 192.18.1.* and 10.2.20.* ip rages and blocks all other ip’s.
To block some or multiple ip ragnes use below code
$HTTP["remoteip"] =~ "192\.168\.1\.*|10\.2\.20\.*" {
url.access-deny = ( "" )
Above code will block 192.168.1.* and 10.2.20.* ip rages and allow all other ip’s.

awk – print last field

NF is built in variable in awk which stores Number of fields.
To get last field with awk use following example:
$ echo a b c | awk '{print $NF}'
By default awk will take any white space character(space, tab, …) to split.
To get last but one field with awk:
$ echo a b c | awk '{print $(NF-1)}'
To print only number of fields with awk:

view counter