How to change Linux server time

August 5th, 2011

Command to change Linux server time to IST

# ln -sf /usr/share/zoneinfo/Asia/Calcutta localtime

You can check by the below command

#date

How to add SPF & Domain Keys in a Server

July 21st, 2011

Hi,

Using the below steps you can add SPF record on a linux server running WHM control panel

For example:
Domain name: www.secureslash.com
Username: secure

Command to add SPF record for a domain name:

# /usr/local/cpanel/bin/domain_keys_installer secure

once done restart the dns service (/etc/init.d/httpd restart)

Steps to enable SPF record in Cpanel

1.Login into Cpanel

2.Under Mail Menu Click ” E-Mail Authentication”

3.Click on enable under ” SPF”

Command to check SPF record for a domain

# host -t txt secureslash.com

Command to add Domain keys for a domain name:

#/usr/local/cpanel/bin/domain_keys_installer secure

once done restart the exim service (service exim restart)

Steps to enable Domain keys in Cpanel

1.Login into Cpanel

2.Under Mail Menu Click ” E-Mail Authentication”

3.Click on enable under ” Domain Keys”

How to assign multiple IP’s in Debian Linux

May 14th, 2010

Debian Linux command to get into network interface card

#vi /etc/network/interfaces

How to assign multiple IP addresses in debian linux:

You can assign multiple IP addresses to the same network interface by using interface alias. This is useful if you need to have more than one server visible on the internet. Note that for multiple Apache servers you can use virtual hosts to add as many servers as you like with one single IP address.Apache simply utilises the domain name supplied by the client in the http host header.

You must turn off dhcp because you must use static assignment if you are configuring multiple IPs, so basically this file is:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.90
gateway 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255

Assuming that you interface is eth0, you can assign three IP addresses editing /etc/network/interfaces similar to this:

# the loopback interface
auto lo
iface lo inet loopback

#
auto eth0
iface eth0 inet static
address 192.168.1.42
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1

auto eth0:0
iface eth0:0 inet static
address 192.168.1.41
netmask 255.255.255.0
broadcast 192.168.1.255

auto eth0:1
iface eth0:1 inet static
address 192.168.1.43
netmask 255.255.255.0
broadcast 192.168.1.255

auto eth0:2
iface eth0:2 inet static
address 192.168.1.44
netmask 255.255.255.0
broadcast 192.168.1.255

Note that gateway is only assigned to eth0. If you include dns-nameservers, it should also only be specified for eth0.

If you make changes to this file you can cause them to take effect by running:
/etc/init.d/networking restart

# /etc/init.d/networking restart
Reconfiguring network interfaces…if-up.d/mountnfs[eth0]: waiting for interface eth0:0 before doing NFS mounts (warning).
if-up.d/mountnfs[eth0]: waiting for interface eth0:1 before doing NFS mounts (warning).
if-up.d/mountnfs[eth0]: waiting for interface eth0:2 before doing NFS mounts (warning).
if-up.d/mountnfs[eth0:0]: waiting for interface eth0:1 before doing NFS mounts (warning).
if-up.d/mountnfs[eth0:0]: waiting for interface eth0:2 before doing NFS mounts (warning).
if-up.d/mountnfs[eth0:1]: waiting for interface eth0:2 before doing NFS mounts (warning).
done.

How to fix  if-up.d/mountnfs[eth0:1]: waiting for interface eth0:2 before doing NFS mounts (warning). ?

Reconfiguring network interfaces…if-up.d/mountnfs[eth0]: waiting for interface eth0:0 before doing NFS mounts (warning).
if-up.d/mountnfs[eth0]: waiting for interface eth0:1 before doing NFS mounts (warning).
if-up.d/mountnfs[eth0]: waiting for interface eth0:2 before doing NFS mounts (warning).
if-up.d/mountnfs[eth0:0]: waiting for interface eth0:1 before doing NFS mounts (warning).
if-up.d/mountnfs[eth0:0]: waiting for interface eth0:2 before doing NFS mounts (warning).
if-up.d/mountnfs[eth0:1]: waiting for interface eth0:2 before doing NFS mounts (warning).
done.

Solution:

It means that it is making sure that all ‘net interfaces are up before trying to mount a network based filesystem.

How to Fix Trojan.FakeAlert.5 Bitdefender Alert?

March 20th, 2010

Well, Today is the craziest day for Bitdefender. This looks like a climax of the movie iRobot. Thousands of windows users install bitdefender for securing their machine. But, Unfortunately a lame update file from bitdefender started killing itself(literally).

Today, All Windows7 64bit users received a threat alert called “Trojan.Fakealert.5″.

And it detected all DLL files / EXEs of my windows machine as a trojan and started deleting them. You know how frustrates it? I really have a paid account for Bit Defender Internet Security 2010. I ignored my nerd friend’s words about installing a 3000 days crack for bitdefender and I called myself as “I dont want to steal someone’s work”.

But today, My taskmanager, explorer & almost everything got quarantine. I didnt paid to bitdefender for this lame mistake.

What is the cause of Trojan.FakeAlert.5?

There was a wrong update from bitdefender caused this issue.

How to fixTrojan.FakeAlert.5?

Disable the realtime protection

Antivirus -> Shield -> Disable Real-time protection.

Do not run any scans. Disable if there is any scheduled scans.

Try to do a “System Restore” or restore the “Quarantine” files.

There a big thread at bitdefender forums with thousands of active frustrated users(including me) shouting bitdefender for this lame problem.

Note: My friend & Secure Slash co-editor Mr. PaimPozhil said to me that, There is a “real” trojan in that same name. So, Do not just disable bitdefender!  Scan your computer using “SpyBot Search & Destroy” it will find the exact trojan alone as well. Thanks Paim :)

Gmail 502 Server Error Again!!

September 1st, 2009

I wonder how bad Google is in handing 502.

It happens once again in same year. Probably more than 4 times in 2009?

If you are facing the problem while loading www.gmail.com . Just wait till they resolve this issue.

But the shame thing is.. Its corporate email solution www.google.com/a works perfect.

Windows 7 with Wide Driver Support

November 6th, 2008

While DeVaan is adamant that 95% of PCs now have good driver support, Microsoft doesn’t want a repeat of that experience when Windows 7 comes around, and thus constantly emphasised the need to cooperate with hardware builders. “Ecosystem readiness is a super-important part of the lessons learned,” DeVaan said.

That may be slightly easier because Windows 7 represents a less radical evolution for hardware companies. “In Vista, we changed a lot of our device driver models and other things at low levels of the system,” DeVaan said. “For Windows 7, we have the tenet that if something works on Vista, it really should work on Windows 7.”

Indeed, while Windows 7 has an enhanced driver installation model that is designed to simplify installation, many of its features are implemented via XML and other information stored in what’s known as the Device Display Object. In theory, hardware manufacturers can simply add those components to their existing Vista driver rather than rewriting the entire code base.

However, the window of opportunity (ahem) for relatively private testing won’t be wide. Windows vice president Steven Sinofsky confirmed that Microsoft hopes to have a widespread release of an official Windows 7 beta in early 2009. Although widely available both via its PDC and WinHEC appearances and through numerous illegal torrent sites, the current Windows 7 release is the internal M3 candidate, which is missing many new UI features and isn’t being touted as feature-complete, but rather as a pre-beta. (Most of the demos at WinHEC, incidentally, were on later internal builds.)

Read the full story

WPA Wi-Fi encryption is cracked

November 6th, 2008
November 6, 2008, 09:23 AM — IDG News Service —

Security researchers say they’ve developed a way to partially crack the Wi-Fi Protected Access (WPA) encryption standard used to protect data on many wireless networks.

The attack, described as the first practical attack on WPA, will be discussed at the PacSec conference in Tokyo next week. There, researcher Erik Tews will show how he was able to crack WPA encryption, in order to read data being sent from a router to a laptop computer. The attack could also be used to send bogus information to a client connected to the router.

To do this, Tews and his co-researcher Martin Beck found a way to break the Temporal Key Integrity Protocol (TKIP) key, used by WPA, in a relatively short amount of time: 12 to 15 minutes, according to Dragos Ruiu, the PacSec conference’s organizer.

They have not, however, managed to crack the encryption keys used to secure data that goes from the PC to the router in this particular attack

Security experts had known that TKIP could be cracked using what’s known as a dictionary attack. Using massive computational resources, the attacker essentially cracks the encryption by making an extremely large number of educated guesses as to what key is being used to secure the wireless data.

The work of Tews and Beck does not involve a dictionary attack, however.

To pull off their trick, the researchers first discovered a way to trick a WPA router into sending them large amounts of data. This makes cracking the key easier, but this technique is also combined with a “mathematical breakthrough,” that lets them crack WPA much more quickly than any previous attempt, Ruiu said.

Tews is planning to publish the cryptographic work in an academic journal in the coming months, Ruiu said. Some of the code used in the attack was quietly added to Beck’s Aircrack-ng Wi-Fi encryption hacking tool two weeks ago, he added.

WPA is widely used on today’s Wi-Fi networks and is considered a better alternative to the original WEP (Wired Equivalent Privacy) standard, which was developed in the late 1990s. Soon after the development of WEP, however, hackers found a way to break its encryption and it is now considered insecure by most security professionals. Store chain T.J. Maxx was in the process of upgrading from WEP to WPA encryption when it experienced one of the most widely publicized data breaches in U.S. history, in which hundreds of millions of credit card numbers were stolen over a two-year period.

Read Full Story

Android Open Source Project

November 1st, 2008

An introduction to Android Open Source Project. Android is the first free, open source, and fully customizable mobile platform. Android offers a full stack: an operating system, middleware, and key mobile applications. It also contains a rich set of APIs that allows third-party developers to develop great applications. Learn more at source.android.com

Introducing Android

Android Demo

Full Web Experience: Web Browser on Android-Powered Phones

On Android-powered phones, the browser lets users experience the full web and easily move between browsing and other tasks on their phone.

Android – Apps without borders

Watch Android engineers demonstrate that applications on Android exist without borders. Apps on Android can access core mobile device functionality through standard APIs. Through intents, apps can announce their capabilities for other apps to use.

SuperLamer & His Vista Experience

November 1st, 2008

Sunday:

One day a lamer installed his Vista Ultimate x86 just after adding 1Gig DDR ram. He noticed that installation was smooth and OEM Emulator also went nice. His installation passed in “Genuine” check too. Great!!

Monday:

I hate installating OS in my live machine. It will lead us to install all of our applications, Firewall, Antivirus (I dont use “total security”, A primary Firewall only software is 5 times better than ALL Security shits here software). But Mr.Lamer is eager to download all of his day to day applications like (MSOffice, Winamp, WinRar, RoadRash, VCD Cutter, Yahoo Messenger, uTorrent & etc).

Tuesday:

Everything was smooth. But, Suddenly he got Sky and some birds on monitor. LOL Yes, Blue Screen!

It says some xxx_POOL_Error & Memory dump … He dont know why.

Wednesday:

He become very sad, Yes He already spent 5 days for downloading Vista from a ThePirateBay torrent. He started blaming Vista, Microsoft & almost all microsoft products. He started explaing his experience with his friend. We know that all lamers has a better lamer as their friends. He too experienced same Sky & Birds problem.

Thursday:

Mr.Lamer heard that most of his friends(ofcourse lamers) blamed vista. So he decided to go back to Xp Pro.

Friday:
Windows XP Professional – WoW This is what I call stable OS!! Vista Sucks!! Vista Sucks!!

Well, I see lots of my classmates still blaming Vista.

How not to be a Lamer?

First Understand what is happening inside your hardware & software.

First of all they have to understand onething that, Latest version is always better than older versions.
No matter what powerful Processor you use. But You must need 2GB minimum ram.
40% of RAM comes with “Failure” issue. If you are inserting two rams in your mobo then both of their FSB must be same.

If you use 333mhz & 800mhz rams then you may expect “Auto restart” or Blue Screen problems.

Next one is your drivers. If you have installed a new modem, graphics card, audio device recently then you must check its installation status. An unsuccessful installation may lead BlueScreen errors.

Memory & Drivers cause most of the blue screen problems. If you want to go deeper then download & install Win Debug www.microsoft.com/whdc/devtools/debugging/ and analyze your DMP files.

It is an excellent tool to figure out your hardware issues.

Most of the lamers use pirated copy, They deserve 0$ and expects millions. You can find an another big lamer group in Digg.com they usually digg it & comment bad on all microsoft related topics. They thinks themsevels as Linus, Larry Wall, GNU & others. All they are JUST LAMERS.

lamers never analyze things, They stick with Peer group. They never find solutions. If you do the same then do not do it more. Find the solutions & stop being a lamer.

Lamers can not find the exact problem and solution. All they can say is

“I suck last night, Vista does now!”.

No Matter the Question, Google is the Answer

October 4th, 2008

Google is about telling its users to how to  type “google.com” in its search box.

Google Chrome Review

October 4th, 2008

Know the basic features of Google’s own browser Chrome here . It may be cool for beginner level internet users and google fans. But I am unable to migrate from FF’s Firebug.

Browser capability test

August 28th, 2008

When i was sitting workless just thought of testing my browser with java script and also my system capability to work on stress.I did two test in two browsers

1.Internet Explorer 6.0

2.Firefox 3.1X
Read the rest of this entry »