How to Use Wrapper to Get Root Privilege for Scripts in Plesk Module

When you try to build a Plesk module you will come across number of doubts in that some of them are

How to Run a Shell Script or Binary as Root in Plesk Module?
How to use plesk wrapper to get root privilege for scripts?
How to use plesk wrapper from sbin?
What to do with “failed to open stream: Permission denied” in plesk module?

Plesk-modules
Its very difficult to get help on plesk module development. The tutorial provided by Parallels is really insufficient and incomplete. When I was trying to build a plesk module package, I faced many problems and googling never gave any solution too. After doing so much research I was able to develop a plesk module for my Client. I hope this post will be helpful for many who are trying to build plesk module and wanted root privilege to run a script in it.

Following is one of the methods which I used successfully in plesk 10.4. I hope it will work for all plesk versions.

Imagine you want to build a plesk module and that should have functionality to set ownership of  configuration file to root:root or any other ownership. Also need to write in to /etc/passwd or any file which can be edited only with root permission. This functionality is not possible with simple php script like chown, or system functions. It is because, plesk modules runs under psaadm user privilege so it can’t change files which is under root privilege. But there is one solution for this which is provided in plesk i.e. plesk module wrappers. This can be used to get root privilege for some scripts. To achieve this, you can follow below procedure or steps.

Imagine you have a shell script [setperm.sh] which is used to set permission for all files related to your module. To execute this script with root privilege use following steps.

1) Place setperm.sh under “/usr/local/psa/admin/sbin”  [don’t forget this path is very important]
2) Create a symbolic link in “/usr/local/psa/admin/bin/modules/<ur-module-foldername>”. By executing
“ln -s /usr/local/psa/admin/sbin/wrapper /usr/local/psa/admin/bin/modules/<ur-module-foldername>/ setperm.sh”
3) You are done with wrapper; now you can use this script in any php file inside your module script and it will execute as root.
4) For example you can call this script like this
<?php
system(/usr/local/psa/admin/bin/modules/<ur-module-foldername>/ setperm.sh, $varout);
?>
5) You can create this symbolic link while building RPM itself.

So this is all about plesk wrapper usage to get root privilege for scripts under plesk module.

First Tablet PC Xoom Motorola with Android 3.0

xoom-Android

Motorola Mobility’s hotly awaited tablet computer, the “Xoom,” will be available in the market soon.
With a 10.1-inch screen, the Xoom is about the same size as Apple’s iPad, which hit stores in April. Xoom will be the first tablet computer featuring Android 3.0, or Honeycomb, an operating system developed with tablets in mind.
“It has multi-tasking capability.” Several features on the Xoom that the iPad does not have; including front and rear facing cameras and the ability to play Adobe Flash video software, which is banned from the Apple device. Xooms to hit the market will feature 3G connectivity to the Internet through US carrier Verizon Wireless. A 4G Xoom will come out soon and 3G versions can be upgraded to 4G. HD video capture, 2MP video calling camera, 1GB RAM, 32 GB inbuilt memory with microSD Card slot, supports up to 10 hour video playback through its powerful standard battery. The XOOM Android Tablet is Wi-FI, Bluetooth and Corporate sync enabled

How to Uninstall Windows KDE from Windows XP or Vista

These are the simple steps to uninstall KDE from windows XP
Many are installing KDE in windows but they are unaware; how to un-install windows KDE application, so here is the simple step to uninstall KDE from windows XP.
[ad#add-top-in]

  • In TaskMgr processes, shut down kded4, dbus-daemon, klauncher, etc.
  • Run kdewin-installer, click each installed package until it shows a garbage can, and then complete the installer
  • Remove lib directory from %PATH% and the KDEDIRS environment variable which is created at the time of installation. In [ Start > Control Panel > System > Advanced > Environment Variables], click on KDEDIRS in User variable and delete Variable name KDEDIRS with Variable value; the directory where you installed KDE4, e.g. C:\KDE4.
  • Clean up your Download Path of all the downloaded packages, and delete your install directory too

Done now KDE is uninstalled from your system.

How to Install Windows KDE

Worlds Cheapest $10 Dollar Laptop From India

Do you think any thing in the world which is not possible by human beings????!!!

Like a laptop for $10! Yes for 10 dollar Laptop [Rs500 INR], that’s true. Indian government is going to launch $10 laptop soon.

The Indian Government [UPA] is launching the cheapest laptop ever seen priced at $10 even as the private sector, with its best efforts, has not managed to bring down the price of a laptop lower than $100[Rs5000 INR].

[ad#add-top-in]

This ultra low-cost $10 Laptop has been developed with support of IIT (Indian Institute of Technology), Indian Institute of Science and some B Tech students.

Details about the $10 Laptop remained limited, but higher education secretary R.P. Agrawal of India said last week that, it would be available within six months. Officials have not publicly demonstrated a prototype yet also not explained how it can be produced at such a low cost.

Following are some of the configurations.

  • It can be charged with a two-watt power input.
  • 2 GB memory can upgrade.
  • Wireless Internet capability.
  • Capability to project on a screen.
  • The configuration can be upgraded etc.

The government has invested more than 939 million dollars to develop the low-power gadget to work in rural areas with unreliable power supply and poor Internet connectivity etc. The planned laptop is part of a push to increase the number of students in higher education and give them the technological skills needed to further boost India’s economic growth.

Update 31-12-2010

10USD laptop

The Sakshat(10$ Laptop) is of 10” long and 5” wide hand-held device, resembling a modem, helps e-learners access the Web easily. Still contains only mystery parts. It appeared more like a storage device than anything else. As for the $10 price, the expected price is closer to $30 bucks.

There Is Nothing Which Can Stop Spam Mails Coming or Going Out Of Your Mil Address!!!

Email spam [Junk mail or Unwanted email] really annoys all. There’s something hideous about craftily and repeatedly forcing worthless products onto millions of people who really couldn’t care less about viagra logo enhancements or anything else on offer. Spam is a big problem for everyone from the individual home Internet user to the multi-national corporation that depends on email communications to conduct business.

There are different kinds of spamming around this electronic web world.
– Repeatedly forcing useless products onto millions.
– Hidden text and links
– Blog and Wiki spamming
– Email Bombing
– Porno spam [Mailing of “adult” advertisements or pornographic pictures]
– Virus spam [Mass mailing that contain viruses, Trojans, malicious scripts, etc.]
– Spam scams [Mass mailing of fraudulent messages]
Etc…..

There are more and more spam categories do you ever think about
– What the reason behind it?
– Why this spam’s are not blocked all the time?
– How this spamming happening?
– What action you can take against spamming?
– Can’t we stop this spamming?

Yes it’s true there are many questing regarding this but truly the problem is; “the worst mailing protocol itself”. The founder of mail protocol never thought of this kind of un-presidential use of this discovery. Yes that’s true! Now no one can change this protocol because this protocol is spread like spider web all over the world. One craziest thing in mailing is; any one can send mail to any one with others mail address also if that mail address exists or not! That meant I can send mail from your mail id with out using your mail account, is this craziest!!!

There are many tools and companies in the world to stop and prohibit this spamming but all are failed in it. Till now there is no product or agency which can stop spam mails coming or going out of your mail address. So this is all about mail security. We can only hop a good system will come to stop this nonsense in future.
[ad#add-top-in]
But still there are some tips to Identify this spam mails your self but its little technical I hop all can understand this. By seeing mail you cant identify how is sending mail and from ware it came from. The only way to check that is by looking in to header of the mail. All mail clients have the option to see the header of the mail the header of mail will looks like this it may differ in appearance depends up on providers

Return-Path: [spamers@address.com]
Received: from server.anydomai.com (mail.anymaildomain.com [126.43.75.123])
by spam01.d2.dfd.com (8.10.2/8.10.2) with ESMTP id NAA23597;
Fri, 12 Dec 2008 16:11:20 -0400 (EDT)
Received: from aol.com (127-34-56-98.dsl.mybigisp.com [127.34.56.98])
by server.mymailhost.com; Fri, 12 Jul 2002 13:09:38 -0700 (PDT)
Date: Fri, 12 Jul 2002 13:09:38 -0700 (PDT)
From: Hot Summer Deals <faike@aol.com>
To: your@mailaddress.com
Subject: You won the price of 10$Bln!!

In this you need to check the initial 6 lines which give exact picture of reply address and mail from server. This should mach the last 3 lines. Some time it also dot work; so this is not the 100% best solution for spam mail identification. I hop you can understand the complexity in mail identification.

NOTE:- Better solution is stop opening mails from unknown person. Never click any link in mails and also never download attached file which you are not sure about.

How to Migrate a Live Virtual Machine Without Interrupting Services!


Industry interest in live migration has grown as virtualization technology has become more widely adopted. Live Migration of VMs across physical servers is a vital component of data center management that enables IT managers to move VMs as necessary in order to perform tasks such as upgrading or conducting maintenance of a server, balancing the server load and proactively managing the server availability to avoid downtime or lost data. The demonstration illustrates AMD’s approach to an open and collaborative relationship with its partners to meet customer demands.

Red Hat and AMD were able to achieve this feat through the combination of Red Hat’s innovative, high-performing virtualization technology and the consistent and reliable architecture of the AMD Opteron processor.
[ad#add-top-in]
Live migration enables the movement of running virtual machines from one physical server to another without disrupting service to the end user, something that, till now, has only been demonstrated across systems based on one vendor’s platforms. Live migration demonstration moves a live VM from a dual socket Intel Xeon DP Quad Core E5420-based system to a system based on the forthcoming 45nm Quad-Core AMD Opteron processor, utilizing Red Hat’s high-performance open source virtualization software.

See the demonstration
httpv://www.youtube.com/watch?v=EuhU6jJjpAQ

AMDs New ATI Radeon HD 4800 HD 3000 Series Using DirectX 10.1

ATI Radeon HD 3000 series and the new ATI Radeon HD 4800 series using DirectX 10.1 and AMD’s graphics technology. This will enable Battleforge to look its absolute best.

AMD’s broad support for DirectX 10.1 compliant hardware and pleased to see newest technology brought to market so soon. One of the great advantages of PC gaming is the rapid pace at which the experiences evolve and improve. The ATI Radeon HD 3000 series and now the ATI Radeon HD 4800 series hardware delivers on the promise of DirectX 10 gaming with significantly improved visuals and enhanced performance.

With Battleforge, EA is pushing the boundaries of the real-time strategy genre introducing social and community technologies to deliver a whole new online experience. It only makes sense that leverage the latest technology such as DirectX 10.1 supported by the new ATI Radeon HD 4800 series of graphics cards from AMD to deliver an amazing experience for gamers.

ATI Radeon HD 3000 series graphics products and ATI Radeon HD 4800 series graphics products are widely available now at leading e-tailers, retailers and system integrators worldwide.
[ad#add-top-in]
AMD recently unveiled a real-time 3D demo called “Ping Pong” to illustrate some of the new graphical techniques made possible by the new features DirectX 10.1 and supported by both the ATI Radeon HD 3000 series and ATI Radeon HD 4000 series of graphics processors. The interactive demo shows off advanced lighting techniques only possible through DirectX 10.1.

DEMO
httpv://in.youtube.com/watch?v=omq3O22EUx4

Ubuntu 7.04 Support Period is now Nearing its End of life by Oct 19-2008

Since its launch in October 2004 Ubuntu has become one of the most highly regarded Linux distributions with millions of users in homes, schools, businesses and governments around the world. Ubuntu is Open Source software, costs nothing to download.

Ubuntu says the release of 7.04 almost 18 months old, that is on April 19, 2007. As with the earlier releases, Ubuntu committed to ongoing security and critical fixes for a period of 18 months. The support period is now nearing its end and Ubuntu 7.04 will reach end of life on Sunday, October 19th, 2008. At that time, Ubuntu Security Notices will no longer include information or updated packages for Ubuntu 7.04.

The supported upgrade path from Ubuntu 7.04 is via Ubuntu 7.10. Instructions and caveats for the upgrade may be found here…

[ad#add-top-in]
Note that upgrades to version 8.04 LTS and beyond are only supported in multiple steps, via an upgrade first to 7.10, then to 8.04 LTS. Both Ubuntu 7.10 and Ubuntu 8.04 LTS continue to be actively supported with security updates and select high-impact bug fixes.

The New mind Blowing and Compact 13-inch MacBook

Apple Introduced a new look for MacBooks. It looks pretty mind blowing and compact 13 inch laptop. There are lots of features and benefits in this new product; following are the details of the New 13-inch MacBook.

  • Precision aluminum unibody enclosure

Slid piece of aluminum comes a MacBook that’s thin and light, beautifully streamlined, and durable.
[ad#add-top-in]

  • Ultrathin 13.3-inch LED-backlit display.

Seamless glass and instant full screen brightness make everything you see flat-out spectacular. Including the display itself.

  • Up to 5x faster NVIDIA graphics performance.

Advanced NVIDIA integrated graphics provide more responsive gameplay and more realistic 3D environments.

  • All-new, smooth glass Multi-Touch trackpad.

Te entire glass trackpad is also the button, so it’s clickable everywhere.

New 13-inch MacBook  2.0GHz:

Intel Core 2 Duo
2GB DDR3 Memory
160GB hard drive
NVIDIA GeForce 9400M graphics
Price:- $1,299.00

New 13-inch MacBook  2.4GHz

Intel Core 2 Duo
2GB DDR3 Memory
250GB hard drive
NVIDIA GeForce 9400M graphics
Price $1,599.00

To purchase the MacBook click here…