Learn how to effectively use social media from BJP IT Cell

Learn from the machinery of BJP IT Cell how to effectively use propaganda using photoshops, paid twitter trends, paid Facebook pages and paid news etc, to monetize the audience.
Though they spreads fake news, but it is worth to learn from them in the digital marketing world.

There are lots of worthy techniques, watch the video.

How to install Sun Java JDK in CentOS 6, OpenSUSE and Debian/Ubuntu

Some times some application needs only Sun Java, It will refuce to work in other version (eg. OpenJDK).

CentOS, Debian/Ubuntu method

But by default OpenJDK based java was installed in my system.

[root@server2 sandbox]# java -version
java version “1.6.0_17”
OpenJDK Runtime Environment (IcedTea6 1.7.9) (rhel-1.36.b17.el6_0-x86_64)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)

Continue reading “How to install Sun Java JDK in CentOS 6, OpenSUSE and Debian/Ubuntu”

How to use DHCP in Linux

How to use DHCP in Linux

DHCP is the Dynamic Host Configuration Protocol, which allows a networked machine to obtain its IP address and other information automatically from a DHCP server.

There are two methods through which a Linux system can obtain an IP address using DHCP:
1. Kernel level configuration.
2. User level configuration.

Kernel level auto-configuration:

To use kernel level auto configurtion select below options in the Linux kernel configuration.

-> Networking support (NET [=y])
-> Networking options
-> TCP/IP networking (INET [=y])
[*]   IP: kernel level autoconfiguration
[*]     IP: DHCP support

In case of your root file system in NFS and wanted to have a IP dynamicaly configirued though DHCP, kernel level DHCP will come to rescue you. Using kernel level DHCP you will have have a valid IP address by the time the Linux kernel have completed the booting and can immediately mount an NFS root file system.

Continue reading “How to use DHCP in Linux”

How to : screen lock or screensaver for awesome window manager

This post gives you answer for 2 questions.

1. Screen lock in awesome window manager ?
2. Screensaver in awesome window manager ?

By default awesome window manager doesn’t provide any inbuilt support for locking the screen or screen saver. It can be achieved with any one of the following standalone apps and small modification to rc.lua.

1. slock – http://tools.suckless.org/slock
2. xscreensaver
3. xtrlock

In this article I will demonstrate how to use xscreensaver with awesome to lock your screen. The steps for other tools should be almost same with very few small modification.

Installing xscreensaver. For Ubuntu:

sudo apt-get install xscreensaver

Continue reading “How to : screen lock or screensaver for awesome window manager”

How to turn off specific optimization flags in gcc

How to turn off specific optimization flags in gcc

For example I want to compile with optimization -Os, but -Os optimization turns on -ftree-dce. How do I turn it off -ftree-dce alone?

There is usually an equivalent ‘no’ flag. For example, -ftree-dce can be turned off by -fnotree-dce. Check the gcc docs for more flags.