Saturday, October 11, 2008

Modding MOTOROKR E6/E6e/A1200

For the growing interest of how to mod your MOTOROKR E6/E6e/A1200 i have published a article How i moded My MOTORKR E6 edge aka E6e. I have also published Short tutorial for flashing your E6/E6e.

See this and let me know about your progress and never hesitate to post if you face any kindof problem.

Happy modding!!

Friday, October 3, 2008

My MOTORKR E6 edge

Hi Guys!! For since somedays i was busy with my newly bought MOTOROKR E6e aka E6 EDGE. I was too curious to mod it by as you know for modding and installing apps you have to flash your firmware to some firmwares which supprt modding. Like I have 22P firmware installed by default and these firmware is only available in indian phones, as far as i know. So i was eagerly waiting for the 22P firmware to come on internet as i have the alternate way if it doesnt work. After i got the original R535H10_G_11.87.22P aka 22P firmware. Now what should i do. To know more go here.

Thursday, September 18, 2008

How to Stop Windows XP from telling you about updates?

Your annoying windows update yellow baloon text will never appear after this. Want to do the trick rite now... more

Current IT Scenario in India

Intel to cut 1,000 managerial jobs worldwide...HP to cut 24,600 jobs following EDS takeover..Satyam Computers to axe 4,500 employees...TCS, Wipro recast hiring plans...Wipro Tech puts 3000 staff under scanner...Where is your skills rated??? The long term trends for the first 10 languages (programming) are........ The other languages in the list of top 50 are....more(aurosblog)

Wednesday, September 3, 2008

Google Chrome Beta Released!!!

Have you yet heard about Google Chrome (beta) which is a new web browser just released recently? IF you are not, you shall try and see it in action. Some of the greatest features included..... more

Saturday, August 30, 2008

How to Hack Windows XP Admin Password or any other password

I recently done this by seeing some youtube video http://in.youtube.com/watch?v=gnYSvs9QzmM. What i knew till now about this net user it is basically a command prompt tool which basically used by Windows Administrators. From this you can add delete users groups and all. To know more.....

Wednesday, August 27, 2008

Must Have Firefox Extensions

One of the nicest things in firefox is you can add plenty of extensions and add-on as you like. Some do little more than alter the aesthetics. But you’ll find others out there that you can’t browse without. No matter what your purpose in browsing, there is a killer-app extension just waiting for you. Lets take a look at this:

#1: Morning Coffee

This extension allows you to set a group of Web sites that will open (each in its own tab) with the click of a button. I use this extension to open up all the Web-based admin tools for sites I administer. You can even set sites up to open only on certain days (or every day). So news junkies or overworked administrators rejoice: This extension will make your browsing life a little easier.

#2: NoScript

This is one of the best tools for making sure your browsing experience is secure. With NoScript, you can disable active content from any site you don’t trust. Unless you configure it to allow JaveaScript, Java, and other executable scripting to run from a site, NoScript will completely block the script, keeping you browser safe from known and unknown exploits. And don’t think because you are using FireFox in Linux that you’re perfectly safe! Use this extension regardless of platform.

#3: ColorfulTabs

If you’re like me, you generally have a LOT of tabs open in Firefox. Sometimes this isn’t a problem. But there are times when the tabs can get a bit overwhelming and need a bit of organization. To help with this, ColorfulTabs gives each open tab a different color, making it easier to distinguish between them. With this simple extension, you can color-code tabs either randomly or according to URL. You can also set tabs to fade. Another fun feature is that you can set a background image for tabs.

#4: BBCode

This helpful extension adds BBCode, HTML, and XHTML symbols and formatting to the context menu. BBCode also allows you to add up to 10 custom tags to your menu. This extension shows itself when you’re in a forum and you right-click a text area where you can select the tag you want to add from the menu. This extension will make your forum work quite a bit easier, as well as faster.

#5: Buggybar

This extension is invaluable to Bugzilla power users. With this extension, you will have a Bugzilla Chrome sidebar available which will readily show all bugs that relate to a bug list you have created. As of version 0.2, Buggybar works with all instances of Bugzilla.

#6: Clear Cache Button

I don’t know about you, but I always set up my browsers to clear their cache at exit. But what about those times you want to clear the cache but not exit the browser? Instead of navigating through the menu structure, you can add this simple extension. It provides a button that gives you complete cache clearing with a single click.

#7: TimeTracker

Okay, this is not really a tool that will aid or better your browsing experience. In fact, this little extension will remind you how much time you spend browsing. I have found this little gem useful in a number of circumstances. Whether you are in need of a quick five-minute break from number crunching or you just need to know how much time you spend on a specific Web site, TimeTracker will keep track of how long you browse. What is nice about this is that the tool times across sessions. So when you close the browser, the timer stops, and when you open the browser back up, the timer starts again. You can reset the timer by right-clicking the status bar timer and selecting Reset.

#8: iMacros

This extension automates pretty much anything you do in Firefox. From opening up sites to filling out forms and even administration work — you can automate it with iMacros. The iMacros extension has a sidebar that shows favorite macros. It also has a record feature that allows you to create macros by simply clicking Record, going through the motions of the macro to be created, and clicking Save. These macros can be as complex as you need them to be. When you want to run them, you simply navigate to the macro in the iMacros sidebar and click the Play button. The only downfall I have found with this tool is that you can’t assign key combinations to run macros. Other than that, this extension is a must-have for power browsers.

#9: Fasterfox

This extension does one thing: It makes Firefox load pages faster. Speed of page loading can be increased by allowing simultaneous connections and prefetching. This extension is currently in the experimental stage because of the release of Firefox 3. To install it, you have to log into a Firefox account to download. The extension is worth the hassle. The speed increase is noticeable.

#10: BlogRovR

We all read blogs. From my aurosblog, aurolive, GoGetAuro or your loved one Blog4aurobindo to the countless other blogs available, we all read them daily. And this takes time. Instead of wasting time going to the blogs, let this handy extension fetch them for you. You do have to sign up for an account using this extension (they promise they won’t spam you.) and you will be asked to install another sidebar (Stickies), which is not necessary. Once you have this installed, you just enter the blog URL, and BlogRovR will begin fetching the information for you. Warning: If you have NoScript installed, you have to allow the BlogRovR page to run scripts or it won’t be able to fetch pages for you.

11: BugZilla

If you are into web development then this is one thing you can like the most. With this you can do amazing things like editing, debugging, and monitoring CSS, HTML, and JavaScript of your live websites. Isn't it amazing!!!

With this i also use S3Fox for my Amazon S3(Simple Storage Service) account to access my data and Google Gears to offline editing my files.

Share your experience what are the extensions you are using.

Tuesday, August 26, 2008

Mistakes to Avoid while installing softwares in your Linux distros

Installing software in Linux is nothing like it used to be, but there are still some pitfalls to watch out for. If you follow this little guide, your Linux life will be made simpler and safer.

#1: Installing from source when your system is primarily an .rpm or .deb system

Many new Linux users don’t understand that both rpm and apt (or dkpg) keep track of everything installed on the system. However, those systems (rpm, apt, and dkpg) can keep track only of packages they install. So when you find that obscure package that comes only in source and you compile it yourself, your package management system will not know what to do with it. Instead, create either an .rpm or .deb file from the source and install the package with the package management system so that system will be aware of everything you have installed.

#2: Neglecting the many graphical front-end package management applications

Most people don’t even realize that there are graphical front ends that take a lot of the guesswork out of installing packages in Linux. For yum (the command-line package management system for rpm), you can use Yumex for yum (installed with yum install yumex); you can use Synaptic or Adept for apt (installed with apt-get install synaptic or apt-get install adept).

#3: Forgetting to update the list of available packages

When using apt-get or yum, make sure you’re updating the list of available packages. Otherwise, your system will not remain updated with the latest releases of installed packages. To update with apt-get, you issue the command apt-get update. To update with yum, issue yum check-update.

#4: Not adding repositories for yum or apt-get

Both yum and apt-get use a listing of repositories that tell them where to locate available packages. But the default repositories (often called “repos”) do not include every Linux package known to Linuxkind. So if you run the command to install an application, and yum (or apt-get) can’t find the package, most likely you’ll have to add a repo to your sources listing. For yum, the sources are in /etc/yum.conf. For apt-get, they are placed in /etc/apt/sources.list. Once you have added a new repo, make sure you run the update so either apt or rpm is made aware of the new source.

5#: Not taking advantage of installing from a browser

Just as with Windows, when your system sees you are attempting to download an installable application, you’ll be asked whether you would like the package management system to attempt to install the file or just save it to disk. In both instances, you will be asked for the root password (so you must have access to said password for this to even work). One thing I’ve always like about this method (be it in a yum-based or dpkg-based system) is that it has almost always been good about locating and adding dependencies.

Naturally, this method works only when you are downloading a file that’s applicable to your system. If you attempt to download an rpm file on a Debian-based system, you won’t have the option of installing the file.

You can take this one step further and select the Always Do This… check box in the Firefox popup so that every time you download a file associated with your package management system, it will automatically prompt you for your root password and continue to install the package. This streamlines the process quite a bit.

#6: Forgetting the command line

Let’s say you’ve installed a headless server using Ubuntu or Debian (a common setup for Linux servers) and haven’t installed any of the graphical interfaces or desktops. To do any maintenance, you have to log in via ssh (because no admin would log in via telnet) and are limited to the command line only. Even so, your ability to keep your system updated or install new applications is not limited. You can still use yum or apt-get to manage your packages.

With a Debian-based system, you have another option: Aptitude. From the command line, issue the command aptitude and you will be greeted with a nice curses-based interface for apt. This system is easy to use and gives you an outstanding option for maintaining a gui-less server without losing functionality. Aptitude lists Security Updates, Upgradeable Packages, New Packages, Not Installed Packages, Obsolete Packages, Virtual Packages, and Tasks. As you scroll through the list, you will not only get the installed vs. the new package release numbers but also a description of the package. After using Aptitude, you will quickly see how simple updating Linux packages can be, even from the command line.

#7: Blindly unpacking tar files

I can’t tell you how many times I have downloaded a source package and without thinking, untarred the package not knowing its contents. Most times this works out fine. But there are a few times when the package creator/maintainer has failed to mention that the entire contents of the package are not housed in a parent directory. So instead of having a newly created directory housing the contents of the tar file (which can contain hundreds of files/directories), those files are blown up into the directory you unpacked them into.

To avoid this, I always create a temporary directory and move the tar file into it. Then, when I unpack the tar file, it doesn’t matter if the contents are contained within their own directory or not. Using this method will save you a LOT of cleanup in those cases where the creator didn’t pack everything in its own neat directory.

#8: Deleting those make files

When you’re installing from source, you’ll probably run make clean to get rid of all of those unneeded source files. But if you get rid of the Makefile, uninstalling will be a hassle. If you keep it, you can usually uninstall the program simply by issuing make uninstall from the directory housing the Makefile. A word of warning: Don’t dump all your Makefiles into one directory. First rename them so you know which application they belong to. When you want to uninstall the application, move the Makefile to another directory, rename it to its original name, and then run the uninstall command. Once you’ve uninstalled the application, you can delete the Makefile.

#9: Installing for the wrong architecture

You might notice that many rpm files will have an i386, i586, i686, PPC, 64, etc. There is a reason for this. Unless the rpm file has noarch included in the filename, that rpm file was created for a specific architecture. And when those files were created for that architecture, they were optimized for it, so they’ll will run better. Does that mean you can’t install an i586 on a standard 386 machine? Of course not. But it will not run as efficiently as it will on the indicated architecture. Now, you can’t install a PPC rpm on an x86 architecture. The PPC architecture is for the Motorola chipset. Nor can you install the 64 bit on a 32 bit. You can, however, install the 32 bit on a 64 bit (as in the case when you want to get Firefox running with Flash on a 64-bit machine).

#10: Failing to address problems with kernel updates

It used to be that updating kernels was a task left to the silverback geeks. No more. With the new package management systems, anyone can update a kernel. But there are some gotchas you should know about. One issue is that of space. With every update of a kernel, your old kernel is retained. If you continually update kernels, your system storage can quickly fill up. It’s always a good idea to check to see what older kernels you can get rid of. If you’re using rpm, issue the command rpm -qa | grep kernel to see what you have installed. You can remove all but the last two installed. It’s always best to keep two in case the one you are running gets fubar’d.

So guys who are using Ubuntu or any other distros please keep this things in mind while installing anything in your distros and you will never be in any problem.

Monday, August 25, 2008

Video recording comes to iPhone

One feature that ranks up there on most people’s iPhone wishlist (somewhere between Copy and Paste and MMS) is video recording. Now there are two options for recording video on the iPhone – the only caveat is that you have to jailbreak your iPhone to use them.

iSmashphone posted a review of the two video recording apps, Cycorder (free) and Video Recorder (US$20).

Cycorder features real-time compression but doesn’t have audio recording. Video Recorder features audio, portrait mode and YouTube sharing but no real-time compression (”it took over 2 minutes to encode a 30-second video.”)

Screen shots and video samples are at iSmashphone.com.

Sunday, August 24, 2008

Your E-Mail address says a lot about you

What is in a E-mail address you should ask. Isn't it? But after reading this you will never ask it to anyone for sure.
If you happen to be iamthegreatest@gmail.com, for example, will people think you a narcissist? And if they do, will they be right? People really do judge others based on the e-mail addresses they choose. What's more interesting, however, is that these judgments tend to be right.

In a research paper published recently in the Journal of Research in Personality, the scientists took a look at just under 600 e-mail addresses and had the people who created them fill out a brief personality questionnaire. Then, they asked 100 students to rate these same addresses to find out if the e-mail names seemed to be neurotic, open, agreeable, conscientious, narcissistic or extroverted. The first thing they discovered is that the students tended to judge people based on their addresses. For example, people who used words like "little" or "sweet" or "baby" combined with cute animal names like "mousie" or "bunny" were thought to be more agreeable ... and neurotic. On the other hand, words like "King" or "thebest" were linked to narcissism. Even more interesting, these judgments tended to be right in five of the six personality categories they measured. Openness was the easiest thing to correctly gauge, but when it came to extroversion, the students' assessments tended to miss the mark. Study participants had strong opinions about whether e-mail addresses were owned by extroverts -- they just didn't happen to be particularly accurate.
As per the researchers say it's astonishing that the sliver of information that you pass on in your e-mail address can be enough for people to get a valid read on your personality. So what if you don't want people to judge you based on your Gmail account? No way, say the researchers. Even if you choose a totally neutral address, you're still giving away information about yourself. Their advice is simple: Choose an address you like. After all, is it really such a bad thing for others to see you the way you are?

So next time you want to sign up for a new mail account please be sure about this. Please choose a separate email address always for your job search purposes. In this way you can beat others and make an impression on the employees. So never be late in that or maybe you just loose a job to a other guy who used my advice.

Best Of luck.

Friday, August 22, 2008

Highest Paid Executives in US

Recently Associated Press published a list of 500 highest-paid public company executives. A few from them are:

  1. Larry Ellison, Oracle Corp. (ORCL), $84.6 mln
  2. John Thain, Merrill Lynch & Co. (MERPO), $83.1 mln
  3. Leslie Moonves, CBS Corp. (CBS), $67.6 mln
  4. Richard Adkerson, Freeport-McMoran Copper & Gold Inc., $65.3 mln
  5. Bob Simpson, XTO Energy Inc. (XTO), $56.6 mln
  6. Lloyd Blankfein, Goldman Sachs Group Inc. (GS), $53.9 mln
  7. Kenneth Chenault, American Express Co. (AXP), $51.7 mln
  8. Eugene Isenberg, Nabors Industries Ltd. (NBR), $44.6 mln
  9. John Mack, Morgan Stanley (MS), $41.7 mln
  10. Glenn Murphy, Gap Inc. (GPS), $39.1 mln
They are basically US based public company executives.

Amazon's Elastic Book Store(EBS)

Amazon Web Services said today that it is enhancing its Elastic Compute Cloud by adding block storage.

Amazon Elastic Block Store allows applications to store data in EC2 without having to send it to Amazon's other storage service, Simple Storage Service (S3).

"EBS starts out really simple: you create a volume from 1GB to 1TB in size and then you mount it on a device (like /dev/sdj) on an instance, format it, and off you go. Later you can detach it, let it sit for a while, and then reattach it to a different instance. You can also snapshot the volume at any time to S3, and if you want to restore your snapshot you can create a fresh volume from the snapshot. Sounds simple, eh? It is but the devil is in the detail!" writes the RightScale blog in another post.







In the sense for reliability rightscale blog pointed that "EBS volumes have redundancy built-in, which means that they will not fail if an individual drive fails or some other single failure occurs. But they are not as redundant as S3 storage which replicates data into multiple availability zones: an EBS volume lives entirely in one availability zone. This means that making snapshot backups, which are stored in S3, is important for long-term data safeguarding."

For defining Volume Performance rightscale blog explained some extreme features like; "EBS volumes are network attached disk storage and thus take a slice off the instance’s overall network bandwidth. The speed of light here is evidently 1GBps, which means that the peak sequential transfer rate is 120MBytes/sec. “Any number larger than that is an error in your math.” We see over 70MB/sec using sysbench on a m1.small instance, which is hot! Presumably we didn’t get much network contention from other small instances on the same host when running the benchmarks. For random access we’ve seen over 1000 I/O ops/sec, but it’s much more difficult to benchmark those types of workloads. The bottom line though is that performance exceeds what we’ve seen for filesystems striped across the four local drives of x-large instances."

Now come the most simple to use and hard to understand feature come up that is Snapshot Backup. Here is the explanation given by the rightscale blog:

Snapshot backups are simultaneously the most useful and the most difficult to understand feature of EBS. Let me try to explain. A snapshot of an EBS volume can be taken at any time, it causes a copy of the data in the volume to be written to S3 where it is stored redundantly in multiple availability zones (like all data in S3). The first peculiarity is that snapshots do not appear in your S3 buckets, thus you can’t access them using the standard S3 API. You can only list the snapshots using the EC2 API and you can restore a snapshot by creating a new volume from it. The second peculiarity is that snapshots are incremental, which means that in order to create a subsequent snapshot, EBS only saves the disk blocks that have changed since previous snapshots to S3.

How the incremental snapshots work conceptually is depicted in the diagram below. Each volume is divided up into blocks. When the first snapshot of a volume is taken all blocks of the volume that have ever been written are copied to S3, and then a snapshot table of contents is written to S3 that lists all these blocks. Now, when the second snapshot is taken of the same volume only the blocks that have changed since the first snapshot are copied to S3. The table of contents for the second snapshot is then written to S3 and lists all the blocks on S3 that belong to the snapshot. Some are shared with the first snapshot, some are new. The third snapshot is created similarly and can contain blocks copied to S3 for the first, second and third snapshots.

Illustration of EBS snapshots to show incremental storage of a snapshots block in Amazon S3

There are two nice things about the incremental nature of the snapshots: it saves time and space. Taking subsequent snapshots can be very fast because only changed blocks need to be sent to S3, and it saves time because you’re only paying for the storage in S3 of the incremental blocks. What is difficult to answer is how much space a snapshot uses. Or, to put it differently, how much space would be saved if a snapshot were deleted. If you delete a snapshot, only the blocks that are only used by that snapshot (i.e. are only referenced by that snapshot’s table of contents) are deleted.

Something to be very careful about with snapshots is consistency. A snapshot is taken at a precise moment in time even though the blocks may trickle out to S3 over many minutes. But in most situations you will really want to control what’s on disk vs. what’s in-flight at the moment of the snapshot. This is particularly important when using a database. We recommend you freeze the database, freeze the file system, take the snapshot, then unfreeze everything. At the file system level we’ve been using xfs for all the large local drives and EBS volumes because it’s fast to format and supports freezing. Thus when taking a snapshot we perform an xfs freeze, take the snapshot, and unfreeze. When running mysql we also “flush all tables with read lock” to briefly halt writes. All this ensures that the snapshot doesn’t contain partial updates that need to be recovered when the snapshot is mounted. It’s like USB dongles: if you pull the dongle out while it’s being written to “your mileage may vary” when you plug it back into another machine…

While explaining situations generally arise in our systems like:

  • You create a volume, mount it on an instance, format it, and write some data to it.
  • Then you periodically snapshot the volume for backup purposes.
  • If you don’t need the instance anymore, you may terminate it and, after unmounting the volume you always take a final snapshot. If the instance crashes instead of properly terminating, you also always take a final snapshot of the volume as it was left.
  • When you launch a new instance on which you want the same data, you create a fresh volume from your snapshot of choice. This may be the last snapshot, but it could also be a prior one if it turns out that the last one is corrupt (e.g. in the case of an instance crash or of some software failure).

By creating a volume from the snapshot you achieve two things: one, you are independent of the availability zone of the original volume, and second, you have a repeatable process in case mounting the volume fails, which can easily happen especially if the unmount wasn’t clean.

Now, of course, in some situations you can directly remount the original volume instead of creating a new volume from a snapshot as an optimization. This applies if the new instance is in the same availability zone, the volume corresponds to the snapshot that we’d like to mount, and the volume is guaranteed not to have been modified since (e.g. by a failed prior mount). The best is to think of the volume as a high-speed cache for the snapshot.

Estimating the costs of EBS is really quite tricky. The easy part is the storage cost of $0.10 per GB per month. Once you create a volume of a certain size you’ll see the charge. The $0.10 per million I/O transactions are much harder to estimate. To get a rough estimate you can look at /proc/diskstats on your servers. This will include something like this:



3 0 hda 446216 784926 9550688 4382310 424847 312726 5922052 19310380 0 3376340 23705160
3 1 hda1 35486 38030 38030 38030


Now some help to understand the above segment:
if you look at /sys/block/hda/stat, you'll find just the eleven fields, beginning with 446216. If you look at /proc/diskstats, the eleven fields will be preceded by the major and minor device numbers, and device name. Each of these formats provide
eleven fields of statistics, each meaning exactly the same things. All fields except field 9 are cumulative since boot. Field 9 should go to zero as I/Os complete; all others only increase. Yes, these are 32 bit unsigned numbers, and on a very busy or long-lived system they may wrap. Applications should be prepared to deal with that; unless your observations are measured in large numbers of minutes or hours,
they should not wrap twice before you notice them. As described by rightscale blog,
you should sum the first number (reads completed) and the fifth number (writes completed) to arrive at the number of I/O transactions (9847+1912664 for /dev/sdk above). This is not 100% accurate but should be close (I believe subtracting the 2nd and 6th numbers gets you closer yet, but I prefer an over-estimate). As a point of reference, our main database server is pretty busy and chugs along at an average of 17 transactions per second, which should total to around $4.40 per month. But our monitoring servers, prior to some recent optimizations, hammered the disks as fast as they would go at over 1000 random writes per second sustained 24×7. That would end up costing over $250 per month! As far as I can tell, for most situations the EBS transaction costs will be in the noise, but you can make it expensive if you’re not careful.

In the conclusion we can say, All in all it’s amazing how simple EBS is, yet how complex a universe of options it opens. Between snapshots, availability zones, pricing, and performance there are many options to consider and a lot of automation to provide. Of course at RightScale we’re busy working out a lot of these for you, but beyond that it is not an overstatement to say that Amazon’s Elastic Block Store brings cloud computing to a whole new level. I’ll repeat what I’ve said before: if you’re using traditional forms of hosting it’s gonna get pretty darn hard for you to keep up with the cloud, and you’ve probably already fallen behind at this point!

Wednesday, August 20, 2008

Forbes Asia published a Thailand rich list : Nishita Shah ranked No. 19

Forbes Asia published a Thailand rich list on July, 10 2008 in Singapore. The rankings are almost filled with the same face as in the lists of 2006 and 2007. The Asia rich lists have been sponsored by SG Private Banking (Asia Pacific).

The notable and outstanding rich woman in all rankings is clearly seen to be Nishita Shah, an Indian origin who is the youngest on the list along with her family, she is ranked No. 19 and worth $375 million. The 28-year old is featured in a profile story in this week’s issue of Forbes Asia. She spoke about her plan of launching her own fashion label “Nsha” on three continents at the end of the year as well as helping to manage her family’s 140-year old business which includes Thai-listed Precious Shipping as her farther, Kirit Shah, last year made her a managing director of GP Group.

Nishita was born to be a business woman. To follow her father’s steps, she had graduated from Boston University with a degree in business and finance. For four years she learned all about the various companies, visiting most of them.

“My dad said I could study anything I wanted as long as it was business,” is her favorite speech. Not business alone she concentrated on, but she also has gone through something “creative” as she like to say. Her father suggested that she had fulfilled one of his own dreams and study flying. She earned an instrument rating for a single-engine plane and a private pilot’s license. In between flights she took yoga and surfing lessons.

With her clothing company “Burn Baby” with a mission statement “luxury active wear” for “modern urbanite women”. Nishita is a hands-on executive. At the same time she continues to read coal, shipping and metal reports every morning and sits in on meetings on the 15 days of the month when her father is overseas. Aside from Nishita Shah’s companies, her father, Kirit, has collected stakes in all sorts of companies for the GP Group. Here are some of what GP’s invested in, including the clan’s percentage stakes: Alva Aluminum 75%, Amari Atrium Hotel 95, Ambika 100, Eka 75, Mega LifeSciences 75 , MJets 50 and Premthai Energy 100.

Celebrity golfer Tiger Woods also have made his way into the list of next generation billionaires compiled by American US business magazine Forbes. Noting that the world’s current crop of billionaires has plenty of money but “not much youth”, the American magazine said the average age of the 1,125 people on Forbes’ list of the world’s wealthiest is 61.

So you could be the next now. How?
To know more follow my links here.

iPhone 3G launching in India on 22 Aug

Vodafone is delighted to announce that the iPhone 3G will be available in India from August 22, 2008
It will be available in 8GB & 16GB models, priced at Rs 31,000 and Rs 36,100 respectively.

Be the first to get the iPhone
As they have received a large number of registrations. As there are limited stocks, make sure that you get yours first, by paying an advance of Rs 10,000 to confirm your booking.

Where can you make this advance payment?
The iPhone 3G will be available at select Vodafone Stores. All you need to do is drop in at any select Vodafone Store between August 20 and 21 and make the advance payment by cash or credit card. Don´t forget to show the iPhone booking SMS, which you would have received from them, when you visit the Vodafone Store to pay the advance. To find a Vodafone Store near you, click here

Get an appointment now. No queues for you.
Once you pay the advance, they will immediately give you an appointment date and time, starting
August 22 when you can go and experience a full demonstration and collect your iPhone, all ready to use with your contacts and settings, by paying the balance amount.

Hurry! Limited stocks.
Remember, the sooner you confirm your booking, the earlier you´ll get your iPhone. We have limited stocks and it will be on first come, first serve basis.

Buy a Vodafone connection now!
If you are not a Vodafone customer, you will need a Vodafone connection for your iPhone 3G.
They would recommend that when you go to confirm your booking, please do get yourself a Vodafone connection too. Remember to carry a passport sized picture, photo ID proof and address proof as these are required for activating your Vodafone SIM card.

Happy to help
If you have any queries, log on to www.vodafone.in/iphone or call us on 9732097320 and we´ll be happy to help.
Hurry and be one of the first to make the iPhone 3G your own.

I just got the mail from Vodafone Customer Service and thought of sharing it with you. I know people are wondering here and there for the exact price of iPhone 3G in india. So go ahead and grab your own iPhone.

Rail Sampark 139

Indian Railways introduce a whole new Integrated Train Enquiry System(ITES) with modern, improved customer centric facilities. This service can be accessed by dialing ‘139′ from any landline, mobile or cdma phones. Rail Sampark -139 is a round the clock service. In addition to hindi and english the service is also available in other regional languages in South east and west zones. Through this system customers have choice of either getting the desired information through Interactive Voice Response System(IVR) or they can press * to speak to a highly skilled customer care executive to get instant information on arrival/departure, PNR status, Accommodation Availability, fare enquiry to name a few.
As they said this is gift to the nation from Indian Railways.

I just got the mail stating all this information from Indian Railways Tourism Department and thought of sharing with you. With this what you think The Indian Railways is improving a lot after Mr. Lallu Prasad had taken the lead. I can say No One Can stop India Now. The day is not too far when we will be a developed nation.

Saturday, August 9, 2008

Make hidden folders

This is a trick to make folders to keep your personal files safely.
1. Right Click on the free space and click on new folder.
2. While naming the folder just press ALT key and enter 0160
3. Now you can just select the folder and og to its properties.
4. There in the advanced option you can change the icon for the folder you created.
5. You can easily choose a blank image there.

And now you are done. If confused just watch the video:
http://www.metacafe.com/watch/376945/lock_hidden_folders_in_windows_vista_and_xp/




AddThis Feed Button

Solitaire

Now you can do a awesome trick to your Solitaire games comes by default with your windows xp version.
Just press the Key "Alt"+"Shift"+2 all the same like Ctrl+Alt+Del

You can win by this small trick while watching a amazing thing!!

Enjoy!

3D PinBall Trivk

You never know what you can do with your pinball games comes with your windows xp installation. Just see the video here and amaze your friends:

http://www.metacafe.com/watch/297793/windows_3d_pinball_hidden_trick/

How to get your system information in Ubuntu

I stumbled upon the nifty “lshw” tool today. lshw lists your hardware. Try it now:
$sudo lshw

You can get specific details by using the -C flag:
$sudo lshw -C disk
will list all you hard disks.

It create an html page with your hardware details if you do a:
$sudo lshw -html > your-file-name.html





AddThis Feed Button

UUID

You can run command to generate a uuid randomly:

sudo uuidgen

you can also run a perl script to get a randomly generated uuid:

#!/usr/bin/perl
#UUID generator

$uuid = `uuidgen`;
chomp $uuid;
print $uuid;

If you want to get UUID customized according to your need::

You will need UUID.pm file to get the below code running and you can get that by this command

sudo cpan Data::UUID

Synopsis:
use Data::UUID;

$ug = new Data::UUID;
$uuid1 = $ug->create();
$uuid2 = $ug->create_from_name(, );

$res = $ug->compare($uuid1, $uuid2);

$str = $ug->to_string( $uuid );

This modules provides several methods to create a UUID:

# creates binary (16 byte long binary value) UUID.
$ug->create();
$ug->create_bin();

# creates binary (16-byte long binary value) UUID based on particular
# namespace and name string.
$ug->create_from_name(, );
$ug->create_from_name_bin(, );

# creates UUID string, using conventional UUID string format,
# such as: 4162F712-1DD2-11B2-B17E-C09EFE1DC403
$ug->create_str();
$ug->create_from_name_str(, );

# creates UUID string as a hex string,
# such as: 0x4162F7121DD211B2B17EC09EFE1DC403
$ug->create_hex();
$ug->create_from_name_hex(, );

# creates UUID string as a Base64-encoded string
$ug->create_b64();
$ug->create_from_name_b64(, );

Binary UUIDs can be converted to printable strings using following methods:

# convert to conventional string representation
$ug->to_string();

# convert to hex string
$ug->to_hexstring();

# convert to Base64-encoded string
$ug->to_b64string();

Conversly, string UUIDs can be converted back to binary form:

# recreate binary UUID from string
$ug->from_string();
$ug->from_hexstring();

# recreate binary UUID from Base64-encoded string
$ug->from_b64string();

Finally, two binary UUIDs can be compared using the following method:

# returns -1, 0 or 1 depending on whether uuid1 less
# than, equals to, or greater than uuid2

Examples:

use Data::UUID qw(:all);

# this creates a new UUID in string form, based on the standard namespace
# UUID NameSpace_URL and name "www.mycompany.com"

$ug = new Data::UUID;

print $ug->create_from_name_str(NameSpace_URL, "www.mycompany.com");





AddThis Feed Button

SimpleDB in EC2 Ubuntu

I am showing here the How to guide for amazon-simpledb-cli(Command Line Interface)
This tool depends on the following Perl modules from CPAN:
      Getopt::Long
Pod::Usage
Digest::SHA1
Digest::HMAC
XML::Simple

You can install them using the "cpan" command on many Linux distros:
sudo cpan Getopt::Long
sudo cpan Pod::Usage
sudo cpan Digest::SHA1
sudo cpan Digest::HMAC
sudo cpan XML::Simple

This tool also depends on the Amazon::SDB modules provided by Amazon(not the one in CPAN). Amazon's modules can be found here:

http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1136

Here is the How to for the above:
curl -Lo amazon-simpledb-perl-library.zip \
http://amazon-simpledb-perl-library.notlong.com

unzip amazon-simpledb-perl-library.zip

sitelib=$(perl -MConfig -le 'print $Config{sitelib}')
sudo scp -r amazon-simpledb-*-perl-library/src/Amazon $sitelib

Finally, this command line interface can be installed with:

sudo curl -Lo /usr/local/bin/simpledb http://simpledb-cli.notlong.com
sudo chmod +x /usr/local/bin/simpledb

Now to test your installation::
  1. Extract the amazon-simpledb-2007-11-07-perl-library.zip file into a working directory.
  2. Edit desired sample. For example: src/Amazon/SimpleDB/Samples/CreateDomainSample.pl

    • Set AWS Access Key ID and AWS Secret Access Key
    •  my $AWS_ACCESS_KEY_ID        = "";
      my $AWS_SECRET_ACCESS_KEY = "";

    • Set request parameters. For example, find following pre-generated snippet:
    •  use Amazon::SimpleDB::Model::CreateDomain; 
      # @TODO: set action. Action can be passed as Amazon::SimpleDB::Model::CreateDomain
      # object or hash of parameters
      # invokeCreateDomain($service, $action);

    • And set action with DomainName parameter:
    •  use Amazon::SimpleDB::Model::CreateDomain; 
      my $action = Amazon::SimpleDB::Model::CreateDomain->new;
      invokeCreateDomain($service, $action->withDomainName("MyDomain"));

  3. Run CreateDomain sample:
  4.    perl src/Amazon/SimpleDB/Samples/CreateDomainSample.pl
  5. You should see the output similar to the following:


  6.     CreateDomainResponse
    ResponseMetadata
    RequestId
    95cdcb68-f46c-400b-8265-8c2de2a5c475

  7. Experiment with samples. When ready, install library in the perl include path and use it.

SEE ALSO
Amazon SimpleDB (SDB)
http://www.amazon.com/SimpleDB-AWS-Service-Pricing/b/?node=342335011

Amazon SimpleDB Developer Guide
http://docs.amazonwebservices.com/AmazonSimpleDB/2007-11-07/DeveloperGui
de/




AddThis Feed Button

Codecs & asterisk

If you have worked with Asterisk/Trixbox for any length of time, you have dealt with codecs. You’ve seen terms thrown around such as ulaw, alaw, G711, G729, and on and on and one. But what are these? And what are the differences between them? When should use use G726 instead of ulaw? What codecs are even possible in Trixbox? I’ll try to clear some of this up.

For VoIP communication, you need to start with a protocol. The three big protocols are SIP, IAX2, and H323. SIP and IAX2 are natively supported in Trixbox’s version of Asterisk (v1.2), so I’m going to assume that you’re using one of these. Once you have your protocol in place, a codec tells the system what format to send the calls across the protocol.

Codecs are used to convert an analog voice signal to digital. They vary in sound quality and bandwidth consumption. Typically, the better the sound quality, the more bandwidth consumed…the less bandwidth consumed, the worse the sound quality. Here are the codecs currently supported in Asterisk v1.2:

ulaw - AKA G.711 - 64Kbps - ulaw is the standard US codec for uncompressed voice. For internal extension to extension calls, this is the preferred codec. Notice the 64Kbps? This is how much bandwidth is consumed by this codec. When thinking about bandwidth consumption, I like to think in terms of phone lines…a typical phone line (or T1 channel) is 56Kbps (remember the days of modems??). ulaw is just a little higher than that. If your Internet connection is a modem, you would want a more compressed codec. If you have 768Kbps up/down DSL, you should be able to run 12 ulaw calls across the connection (768Kbps / 64Kbps = 12). That is typically not recommended however, and with other Internet stuff going on, that number gets reduced significantly. If a client told me they had a 768Kbps connection, I would tell them not to expect good voice quality on more than 3-4 simultaneous calls with ulaw and that connection.

alaw - AKA G.711 - 64Kbps - alaw is the same as ulaw, but it is the European standard codec.

G.723.1 - 6.3Kbps or 5.3Kbps - This is the standard codec used by H323. Since I’m not talking about H323, I’ll skip this one.

G.726 - 32 Kbps - G726 is a good alternative to ulaw when you need to save some bandwidth. It consumes 1/2 the amount of bandwidth of ulaw, and the voice quality isn’t degraded much.

G.729 - 8Kbps - The G729 codec is excellent, but there is a trade-off. It has very low bandwidth consumption and decent voice quality, however it also has a dark side in that it isn’t free. G.729 licenses are available from Digium at the cost of $10.00 per channel. They also take a significant amount of CPU power to process the compression. Installation requires a purchased license from Digium, and you have to download and run their registration program…it is pretty easy to do, but is still an additional step. Plus, it bases the registration on the MAC address of the computer it was installed on, and is only transferrable once (and you have to contact Digium to do it). This is a good codec, but try G.726 or GSM first.

GSM - 13Kbps - GSM is a codec that comes from cell phone technology. It has pretty low bandwidth consumption, but you will notice lower voice quality than a standard PSTN line.

iLBC - 13.33Kbps - iLBC is another low-bandwidth codec. They claim better quality than G729, but I haven’t had much experience with them…I don’t know if that is a true statement or not.

Speex - configurable 4-48Kbps - Speex is another less-known codec. It’s advantage is that it is flexible (4Kbps to 48Kbps) in terms of bandwidth consumption, but it takes up more CPU than even G.729. Again, I have never used this codec, so I don’t know much more about it.

I hope that helps clear codecs up a bit. My general rule of thumb is to use ulaw if there aren’t any bandwidth constraints. If bandwidth is a consideration, I then try G.726 and GSM in that order. If a customer is jazzed about G.729, I have no problem using that as well (although I don’t think it offers enough advantage over G.726 or GSM to be worth $10 bucks).





AddThis Feed Button

Tuesday, August 5, 2008

how to s3-bash in ubuntu ec2

s3-bash
wget http://s3-bash.googlecode.com/files/s3-bash.0.02.tar.gz
untar the files

  • To get files: use ./s3-get
  • To put files: use ./s3-put
  • To delete files: use ./s3-delete
Examples

./s3-get -k MyAWSAccessKeyId -s AWSSecretAccessKeyIdFile /bucket/pathtoobject
We use a file for the AWS Secret Access Key Id so that it does not appear in the list of running processes with ps


nano AWSSecretAccessKeyIdFile (paste your SecretKey there)

od -a AWSSecretAccessKeyIdFile

cat AWSSecretAccessKeyIdFile | tr -d '\n' >> AWSSecretAccessKeyIdFile2(if you get 41 bytes problem)





AddThis Feed Button

How to Convert wav file to ulaw for asterisk

To convert wav to ulaw:

sox -V vm-intro.wav -r 8000 -c 1 -t ul -w vm-intro.ulaw

To convert ulaw(gsm) to MP3:
sox /var/lib/asterisk/sounds/mymessage.gsm -r 8000 -c 1 -s -w /var/lib/asterisk/sounds/mymessage.wav

lame -V3 /var/lib/asterisk/sounds/mymessage.wav /var/lib/asterisk/sounds/mymessage.mp3

I think this is the only way to convert your recorded ulaw(gsm) file into MP3.




AddThis Feed Button

Text To Speech Engine Festival on Ubuntu EC2

Festival:

apt-get install festival
apt-get install festvox-kallpc16k

You need to add to /usr/share/festival/festival.scm:

(define (tts_textasterisk string mode)
"(tts_textasterisk STRING MODE)
Apply tts to STRING. This function is specifically designed for use in server mode so
a single function call may synthesize the string. This function name may be added to
the server safe functions."
(let ((wholeutt (utt.synth (eval (list 'Utterance 'Text string)))))
(utt.wave.resample wholeutt 8000)
(utt.wave.rescale wholeutt 5)
(utt.send.wave.client wholeutt)))


festival.conf
-----------------------------
[general]
host=localhost
port=1314
festivalcommand=(tts_textasterisk "%s" 'file)(quit)\n

but in extensions.conf when i call the festival app i put the text
'quoted' like this:


exten => 003,1,Festival('Hello asterisk user, how are you today?') ;
<-- note the quotes ... exten => 003,2,Wait(1)

exten => 003,3,Hangup()


From the command-line type 'festival --server'
Then restart Asterisk

This configuration reads a text file (limiting it to 130 characters or less) and then speaks the message to the caller.

exten => 3200,1,ReadFile(test=/tmp/test.txt,130)
exten => 3200,n,Festival(${test})
exten => 3200,n,Hangup

Example of a Auto Attendant menu.


[MainMenu]
exten => s,1,SetVar(NUMINVALID=0)
exten => s,2,Setvar(NUMTIMEOUTS=0)
exten => s,3,Background(sales_press_one)
exten => s,4,Background(support_press_two))
exten => s,5,ResponseTimeout(5)
exten => s,6,DigitTimeout(2)

exten => t,1,SetVar(NUMTIMEOUTS=$[${NUMTIMEOUTS} + 1])
exten => t,2,Gotoif($[${NUMTRIES} < 2]?s,3)
exten => t,3,Background(vm-goodbye)
exten => t,4,Hangup()

exten => i,1,SetVar(NUMINVALID=$[${NUMINVALID} + 1])
exten => i,2,Gotoif($[${NUMINVALID} < 4]?:10)
exten => i,3,Background(invalid)
exten => i,4,Goto(s,2)
exten => i,10,Playback(vm-goodbye)
exten => i,11,Hangup()




AddThis Feed Button

Running Perl and MySql for Asterisk

Setting up MySQL:(
if you forget ur mysql password:
  1. Stop the MySQL Server :sudo /etc/init.d/mysql stop
  2. Start the mysqld configuration : sudo mysqld --skip-grant-tables &
  3. Login to MySQL as root : mysql -u root mysql
  4. Replace YOURNEWPASSWORD with your new password! : UPDATE user SET Password=PASSWORD('YOURNEWPASSWORD') WHERE User='root'; FLUSH PRIVILEGES; exit;
Note: This method is not regarded as the securest way of resetting the password. However it works.

create database callrouting;
use callrouting;
grant all privileges on callrouting.* to callrouter@localhost identified by 'callrouter';

create table passwords(id int(11) AUTO_INCREMENT NOT NULL, password varchar(255),primary key(id));
SHOW TABLES;

DESCRIBE passwords;
insert into passwords(password) values("1234");
quit;

PERL: Password check::::
running pl files: ./filename.pl or perl filename.pl



AddThis Feed Button

Perl Support for Asterisk

PERL::AGI

wget http://asterisk.gnuinter.net/files/asterisk-perl-0.10.tar.gz

untar -> go to folder ->
pl Makefile.pl -> make -> make install

to test perl:
go to examples folder-> ./agi-test.pl or perl agi-test.pl





AddThis Feed Button

asterisk on Ec2 ubuntu

Install Pre-Requisites:

For compiling and installing:
apt-get install build-essential autoconf automake libtool flex bison libssl-dev
libnewt-dev libncurses5-dev linux-headers-`uname -r` gcc

SOUNDS:
apt-get install sox curl subversion subversion-tools

MySQL
apt-get install mysql-client mysql-server libmysqlclient15-dev


LIBPRI:
wget ftp.digium.com/pub/libpri/releases/libpri-1.4.4.tar.gz
make
make install


Speex:(
Speex is an Open Source/Free Software patent-free audio compression format designed for speech. The Speex Project aims to lower the barrier of entry for voice applications
by providing a free alternative to expensive proprietary speech codecs. Moreover, Speex is well-adapted to Internet applications and provides
useful features that are not present in most other codecs.)

wget http://downloads.us.xiph.org/releases/speex/speex-1.2beta2.tar.gz
./configure --prefix=/usr
make
make install

Asterisk:
wget ftp.digium.com/pub/asterisk/releases/asterisk-1.4.21.1.tar.gz

cd asterisk-1.4.13
Edit the Makefile(change the ASTVARRUNDIR= to /var/run/asterisk)
./configure
make menuselct(selct gsm sounds frm extras and core sounds in gsm)
make install
make samples

Asterisk Addons:
wget ftp.digium.com/pub/asterisk/releases/asterisk-addons-1.4.7.tar.gz
cd asterisk-addons-1.4.4
./configure
make menuselect
make install

LINKS(to install it apt-get install links)
go to http://asterikast.com -> downloads -> download the g729 codecs from there
UNZIP it... (apt-get install UNZIP)
copy that codecs into /usr/lib/asterisk/module/

DELETE all the codecs and asterisk-addons folder frm /usr/src

groupadd asterisk
useradd -s /bin/false -g asterisk asterisk

wget http://asterikast.com/_downloads/_scripts/ownast
cat ownast
chmod +x ownast
cp ownast /usr/bin/
ownast

safe_asterisk -U asterisk -G asterisk
(if you get "Bad fd number" try ln -sf /bin/bash /bin/sh)
asterisk -r
ps

edit the sip.conf
[general]
context=default
allowguest=yes
disallow=all
allow=ulaw
nat=yes
dtmfmode=rfc2833
canreinvite=no

[100]
type=friend
context=default
disallow=all
allow=ulaw
allow=g729
host=dynamic
username=100
secret=100
canreinvite=no






AddThis Feed Button

How to S3fs on EC2 Ubuntu

Download, build, and install (use libcurl3-openssl-dev for Ubuntu
7.04)

apt-get install -y subversion build-essential libcurl4-openssl-dev
libxml2-dev libfuse-dev
svn checkout http://s3fs.googlecode.com/svn/trunk/s3fs s3fs
make -C s3fs (install g++ if needed and install make)
cp s3fs/s3fs /usr/local/bin

- Set up an S3 access configuration file

export AWS_ACCESS_KEY_ID=...
export AWS_SECRET_ACCESS_KEY=...
echo "$AWS_ACCESS_KEY_ID:$AWS_SECRET_ACCESS_KEY" > /etc/passwd-s3fs
chmod 600 /etc/passwd-s3fs

- Start s3fs (probably best to use a new/empty bucket the first time):

bucket=...
mkdir -p /mnt/$bucket
/usr/local/bin/s3fs $bucket /mnt/$bucket

- Shut it down (flushes any cached data)

umount /mnt/$bucket

s3fs has a caching mechanism: You can enable local file caching to minimize downloads, e.g., :

/usr/bin/s3fs mybucket /mnt -ouse_cache=/tmp




AddThis Feed Button

JetS3t on Ubuntu

Download the JetS3t toolkit from here:
https://jets3t.dev.java.net/releases/jets3t-0.5.0.zip

sudo mkdir /opt/jets3t
unzip jets3t-0.5.0.zip -d /opt/jets3t

chmod 755 /opt/jets3t/bin/cockpit.sh
chmod 755 /opt/jets3t/bin/synchronize.sh
chmod 755 /opt/jets3t/bin/uploader.sh

export JETS3T_HOME=/opt/jets3t

nano /etc/bash.bashrc 9add the above line to the end of file)

nano
/opt/jets3t/configs/synchronize.properties(Add your Amazon S3 Credentials)
Run the synchronize script. Example: Uploading the contents of the /media/server1/HomeMovies/ to the HomeMovies Bucket:
/opt/jets3t/bin/synchronize.sh UP HomeMovies /media/server1/HomeMovies/
Use the cockpit utility to confirm the data is residing on the Amazon S3 server.
/opt/jets3t/bin/cockpit.sh

/opt/jets3t/bin/synchronize.sh UP -f




AddThis Feed Button

How to install Java in Ubuntu

sudo apt-get update

And finally, just tell it to install java :)

sudo apt-get install sun-java5-jdk


After this the rest of the process will display a dialog that will require you to accept the license agreement. When you do, the rest of the setup will happen on its own.

When you're on the command prompt type

javac -version

or

java -version

To Install jdk-6u5-linux-i586.bin:

download from http://15fwqxm1kxnjv9qge3r2.linux-packages.s3.amazonaws.com/jdk-6u5-linux-i586.bin
wget http://15fwqxm1kxnjv9qge3r2.linux-packages.s3.amazonaws.com/jdk-6u5-linux-i586.bin
-----------------------------------------------------------
Optional Runtime Dependencies:

ALSA Library-1.0.13: http://www.linuxfromscratch.org/blfs/view/svn/multimedia/alsa-lib.html
wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.13.tar.bz2
./configure --enable-static &&
make
make install &&
install -v -m644 -D doc/asoundrc.txt \
/usr/share/doc/alsa-lib-1.0.13/asoundrc.txt
make doc
install -v -d -m755 /usr/share/doc/alsa-1.0.13/html &&
install -v -m644 doc/doxygen/html/* /usr/share/doc/alsa-1.0.13/html

CUPS-1.2.12: http://www.linuxfromscratch.org/blfs/view/svn/pst/cups.html
wget ftp://ftp.easysw.com/pub/cups/1.2.12/cups-1.2.12-source.tar.bz2
useradd -c "Print Service User" -d /dev/null -g lp -s /bin/false -u 9 lp
patch -Np1 -i ../cups-1.2.12-security_fixes-2.patch &&
./configure &&
make
make install
gunzip -v /usr/share/man/man{\
1/{cancel,cups{-config,test{dsc,ppd}},\
lp{,options,passwd,q,rm,r,stat}}.1,\
5/{{classes,client,cups-snmp,cupsd,printers,subscriptions,mailto}.conf,\
mime.{convs,types}}.5,\
7/{backend,filter}.7,\
8/{accept,cups{d,addsmb,enable,-{deviced,driverd,lpd,polld}},\
lp{admin,info,move,c}}.8}.gz &&

rm -v /usr/share/man/man8/{reject,cupsdisable}.8.gz &&

ln -v -s accept.8 /usr/share/man/man8/reject.8 &&

ln -v -s cupsenable.8 /usr/share/man/man8/cupsdisable.8
make install-cups

GTK+-2.10.13: http://www.linuxfromscratch.org/blfs/view/svn/x/gtk2.html
wget ftp://ftp.gtk.org/pub/gtk/v2.10/gtk+-2.10.13.tar.bz2
./configure --prefix=/usr --sysconfdir=/etc &&
make
make install &&
install -v -m755 -d /usr/share/doc/gtk+-2.10.13/{faq,tutorial} &&
cp -v -R docs/faq/html/* /usr/share/doc/gtk+-2.10.13/faq &&
cp -v -R docs/tutorial/html/* /usr/share/doc/gtk+-2.10.13/tutorial &&
install -v -m644 docs/*.txt /usr/share/doc/gtk+-2.10.13

----------------------------------------------------

chmod 755 jdk-6u5-linux-i586.bin

./jdk-6u5-linux-i586.bin


cd jdk1.6.0_05
install -v -m755 -d /opt/jdk-6u5 &&
mv -v * /opt/jdk-6u5
chown -v -R root:root /opt/jdk-6u5 &&
ln -v -sf xawt/libmawt.so /opt/jdk-6u5/jre/lib/i386/
cd ..
sed -i 's@XINERAMA@FAKEEXTN@g' \/opt/jdk-6u5/jre/lib/i386/xawt/libmawt.so

ln -sf xawt/libmawt.so /opt/jdk-6u5/jre/lib/i386/: This fixes linking issues with other applications that expect to find the motif libraries with the other JDK libraries.

Configuring JDK

As the root user, create a symlink to the installation directory:

ln -v -nsf jdk-6u5 /opt/jdk

The information below assumes your system is set up using the instructions found in “The Bash Shell Startup Files”. You may need to extract the relevant information below and incorporate it into your system's startup files if your system is set up differently.

Add the following jdk.sh shell startup file to the /etc/profile.d directory with the following commands as the root user:

cat > /etc/profile.d/jdk.sh << "EOF" # Begin /etc/profile.d/jdk.sh

# Set JAVA_HOME directory
JAVA_HOME=/opt/jdk

# Adjust PATH
pathappend ${JAVA_HOME}/bin PATH

# Auto Java CLASSPATH
# Copy jar files to, or create symlinks in this directory
AUTO_CLASSPATH_DIR=/usr/lib/classpath
pathprepend . CLASSPATH
for dir in `find ${AUTO_CLASSPATH_DIR} -type d 2>/dev/null`; do
pathappend $dir CLASSPATH
done

export JAVA_HOME CLASSPATH
unset AUTO_CLASSPATH_DIR
unset dir

# End /etc/profile.d/jdk.sh

EOF

The Java plugin is located in $JAVA_HOME/jre/plugin/i?86/ns7/. Make a symbolic link to the file in that directory from your browser(s) plugins directory.



Choosing the default Java to use

apt-get install java-common
  • Open a Terminal window
  • Run sudo update-java-alternatives -l to see the current configuration and possibilities.

  • Run sudo update-java-alternatives -s XXXX to set the XXX java version as default. For Sun Java 6 this would be sudo update-java-alternatives -s java-6-sun

  • Run java -version to ensure that the correct version is being called.

You can also use the following command to interactively make the change;

  • Open a Terminal window
  • Run sudo update-alternatives --config java

  • Follow the onscreen prompt




AddThis Feed Button

Asterisk Installation Step By Step on Ubuntu

Install Pre-Requisites:
apt-get install build-essential autoconf automake libtool flex bison libssl-dev libnewt-dev libncurses5-dev linux-headers-`uname -r`
apt-get install sox curl subversion subversion-tools
apt-get install mysql-client mysql-server libmysqlclient15-dev
apt-get install php5 php5-cli php5-curl php5-gd php5-json(php5-common) php5-mcrypt php5-mhash php5-mysql php5-suhosin php5-xmlrpc php5-xsl php-pear
apt-get install apache2 apache2-mpm-prefork


Setup Accounts:
adduser --system --home /var/lib/asterisk --group asterisk
mkdir /var/run/asterisk
chown -R asterisk:asterisk /var/run/asterisk


Download Asterisk:

wget ftp.digium.com/pub/asterisk/releases/asterisk-1.4.21.1.tar.gz

wget ftp.digium.com/pub/asterisk/releases/asterisk-addons-1.4.7.tar.gz

wget ftp.digium.com/pub/libpri/releases/libpri-1.4.4.tar.gz


Uncompress Asterisk Sources:

tar xzvf asterisk-1.4.21.1.tar.gz

tar xzvf asterisk-addons-1.4.7.tar.gz

tar xzvf libpri-1.4.4.tar.gz

Compile Asterisk Sources:
cd asterisk-1.4.13 && ./configure && make install && make samples && cd -
cd asterisk-addons-1.4.4 && ./configure && make install && cd -
cd libpri-1.4.2 && make && make install && cd -


Setup MySQL:

mysql -u root –p (Enter your password to check if mysql is running properly or not)

mysqladmin -u root password ''
mysqladmin -p create asterisk create asteriskcdrdb
echo "GRANT ALL PRIVILEGES ON asterisk.* TO asterisk@localhost IDENTIFIED BY '';" | mysql -u root –p
echo "GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asterisk@localhost IDENTIFIED BY '';" | mysql -u root -p

Configure Asterisk Files:
(/etc/apache2/apache2.conf):
User asterisk
Group asterisk

(/etc/asterisk/asterisk.conf):
astrundir => /var/run/asterisk

(/etc/php5/apache2/php.ini):
post_max_size = 20M
upload_max_filesize = 20M

Install PEAR for PHP:
pear install db

Setup Asterisk:

edit /etc/init.d/skeleton

DAEMON=/usr/src/asterisk/asterisk

NAME=Asterisk

DESC="Asterisk PBX"

save file as asterisk in /etc/init.d/

>
chmod +x /etc/init.d/asterisk
/etc/init.d/asterisk start
nano /etc/inittab
chown -R asterisk:asterisk /var/spool/asterisk/
chown -R asterisk:asterisk /var/log/asterisk/

Setup FreePBX:
svn co https://amportal.svn.sourceforge.net/svnroot/amportal/freepbx/branches/2.3/ /usr/src/freepbx
mysql -p asterisk < /usr/src/freepbx/SQL/newinstall.sql mysql -p asteriskcdrdb < /usr/src/freepbx/SQL/cdr_mysql_table.sql cd /usr/src/freepbx

./install_amp

Username to connect to the asterisk database

[asteriskuser]asterisk

Password to connect to the asterisk database

[amp109]

Hostname of Asterisk Database [localhost]

Username to connect to the Asterisk Manager Interface[admin]

Password to connect to the Asterisk Manager interface[amp111]

Path to use for your AMP web root[/var/www/html]

Ip address or hostname used to access the AMP web-admin [xx.xx.xx.xx]

Password to perform call transfer with the flash operator panel[passw0rd]

Use simple Extensions [extensions] admin or separate Devices and Users [devicesandusers]

Directory to store AMP executable scripts [/var/lib/asterisk/bin]

Directory to store super user scripts [/usr/local/sbin]

If it fails running or problem connecting to the database try

./install_amp –username=root –password=[password]

&& cd -

Update Ubuntu Startup Files:
update-rc.d zaptel defaults
update-rc.d asterisk defaults

Setup Zaptel if Required:
(/etc/zaptel.conf)
span=1,0,0,esf,b8zs
bchan=1-23
dchan=24

Load Zaptel Modules:
modprobe zaptel
modprobe wct1xxp
ztcfg -vv

Visit the Web Interface:
http:///html/





AddThis Feed Button