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.

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()

Output:
{“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}'
Output:
c
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)}'
Output:
b
To print only number of fields with awk:

Upgrade from Fedora 19 to 20 using fedup

The recommended upgrade method for Fedora is to use the fedup tool. Below is my experience in following the fedup procedure to upgrade from Fedora 19 to 20. The upgrade was done over the Internet ("network upgrade") instead of from a local DVD media.

  1. Back up all important data in the system.

view counter