30/5/13

on Leave a Comment

HowTo: Elastix DAHDI Trunk Routing with DID

If you have multiple FXO (PSTN) lines into your PBX, it is always nice to be able to route these in-bound calls based on the physical line they arrive upon.  Getting this working with DAHDI in Elastix has been driving me up the wall!

This issue has been bugging me for over a week now and I have finally got it to work.  I have two trunks connected via FXO modules on a TDM400 card, but I could not get the DID working with them (CLI with BT sorted).  But once Asterisk had the call, I could not make Asteriskmake a decision with call based on which number/line the caller called.  Not the number the caller is calling from, this is CLI or CID, but the number they dialled to make your line ‘ring’.

Asterisk was either saying there was no route and answering the call to say the number you have called is not in service, or just handling the 2 lines in the same way – i.e. it could not tell them apart.  Here I detail my findings so you can process lines automatically.

I had most of the configuration right, but I had to hand edit another configuration file to actually to get the changes made via the web interface actually working.  Trying to find this last little bit of information on the forums has been maddening to say the least.

24/4/13

on Leave a Comment

How to install Ubuntu Touch on a Nexus 7 (with Windows, Mac, or Linux)

Canonical has released tools that let you install a preview of Ubuntu 12.10 Touch on the latest Google Nexus phones and tablets. But using the official tools requires a computer running Ubuntu (or a similar Linux-based operating system), and a lot of patience: The process can take a very long time.

But there’s a simpler way to install Ubuntu, and it doesn’t require a Linux PC.

Here’s how I installed Ubuntu 12.10 Touch Preview on my Nexus 7 tablet.

Google Nexus 7 with Ubuntu Linux

Before you start, you’ll want to make sure you have a rooted phone or tablet with a custom recovery such as ClockworkMod or TWRP installed. You’ll also want to make sure that you have the proper drivers for your device on your PC, and that you can run fastboot commands.

I’m not going to walk you through all of those steps right now, but there are tools and guides at the xda-developers forum that can help. For instance, there’s a toolkit that you can use to root a Nexus 7, install a custom recovery, backup your device, and do more.

Once you’ve done that, it’s a very good idea to not only backup your phone or tablet using your recovery tool, but also copy that backup to a PC so that if the storage space on your device is wiped, you should be able to restore from your backup and get Android up and running again.

Download the Ubuntu 12.10 Touch Preview files

Canonical offers a series of files which you can use to install Ubuntu on the Galaxy Nexus and Nexus 4 smartphones and the Nexus 7 and Nexus 10 tablets.

Update: There are also daily builds available, which may offer new features… but which may also introduce new bugs. Proceed with caution if using a daily build.

The Nexus 7 is code-named “grouper,” so the files you need to download to install Ubuntu on this tablet all have grouper in the name. If you have a different device, look for the files that match its codename.

Here are the files you need to install Ubuntu on the Nexus 7:

  • quantal-preinstalled-boot-armel+grouper.img
  • quantal-preinstalled-armel+grouper.zip
  • quantal-preinstalled-phablet-armhf.zip

The first is the boot image, while the following files are the disk image that contain the touch-friendly version of Ubuntu for tablets.

Copy files to your device

Connect your Nexus 7 to your PC, and use Windows Explorer (or another file browser) to manually copy the quantal-preinstalled-armel+grouper.zip andquantal-preinstalled-phablet-armhf.zip files to your tablet’s main storage.

Installing the boot image (Optional)

Update: This step may not actually be required. I’ve seen a number of reports suggesting that you can use the existing boot image on your Nexus device, and simply flash the grouper.zip and phablet-armhf.zip files using ClockworkMod or TWRP, as described in the next section.

The simplest way to install the boot image is to use fastboot. If you’ve ever used fastboot before, you’re probably all set. If you’ve installed the Android SDK on your computer, you’ve probably got what you need.

But you don’t need the entire Android SDK. For instance, using the Nexus 7 Toolkit (the one that roots your device, among other things), probably means you have a working Fastboot utility.

So all you need to do is plug your Nexus 7 (or other device) into your PC with a USB cable, enter fastboot mode (see the first two steps below), open up the directory where fastboot is located, and type “fastboot devices” without the quotes to see if your Nexus 7 device shows up in a list of connected devices.

n7 ubuntu flash

If it does, then the next step is to reboot into fastboot mode and load the boot image. With a Nexus 7, here’s how you do that:

  • Press and hold the power button and then choose the option to turn off your tablet.
  • Once it’s off, press and hold the volume down button at the same time as the power button until you reboot into fastboot.
  • On your PC, place the quantal-preinstalled-boot-armel+grouper.img in the same directory as your fastboot.exe file.
  • Type the following: fastboot flash boot “quantal-preinstalled-boot-armel+grouper.img”

That’s it. Now you’ve got the boot image installed. You can disconnect your tablet from the PC for the rest of the steps if you want, but you don’t have to.

Install Ubuntu using your custom recovery

You may have noticed that Canonical offers a “recovery” file along with a boot image. But by leaving ClockworkMod or TWRP intact, you can use your existing recovery to install Ubuntu.

From the fastboot screen, press the volume buttons until you see an option to reboot into recovery.

Once you’ve done that, it’s probably a good idea to perform a factory reset and wipe your system — but you don’t necessarily have to do that. Installing Ubuntu will overwrite Android for you.

So all you really need to do at this point is choose the option to flash an update from your recovery software, navigate to the directory containing the
quantal-preinstalled-armel+grouper.zip and quantal-preinstalled-phablet-armhf.zip files, and install them one after the other.

flashing

Once you’ve done that, you can reboot your Nexus 7 and in a few moments it should boot into Ubuntu for the first time.

Restoring Android

Remember how I told you it was a good idea to backup your device using ClockworkMod or TWRP before starting all of this?

If you followed my advice, all you need to do is reboot into your custom recovery, choose  the restore option, find your latest backup, and a few minutes later you should have your Android tablet back.

If you somehow deleted your backup files from your device, I hope you followed my other suggestion, and made a copy on your desktop or notebook PC. Then you can just copy those files back to your mobile device and use TWRP or CWM to restore your backup.

But if you didn’t do either of those things, all is not lost. You’ll just need to be able to flash the factory image back to your device.

Canonical provides instructions for doing that from a Linux computer at the end of its instructions for installing Ubuntu the hard way. If you don’t have a Linux PC handy, you can follow instructions posted at the xda-developers forum for flashing a factory image using fastboot to return your tablet to its factory state.

28/3/13

on Leave a Comment

ESXi 5 Add USB to VM (USB passthrough)

I need to set up my ESXi 5.0 server to allow USB passthrough to the virtual machines.  In short I want to attach a USB hard drive to the physical ESXi server and have it show up in the Virtual machine as a mounted usb hard drive.


To do this first make sure your CPU and hardware support intel VT-d technology.  I have a CPU that has VT-x which does help with Virtual machines but you need VT-d to get I/O support to your virtual machines.   The particular machine I am working on has a xeon E5530 processor which if you go to its product page http://ark.intel.com/products/40200?wapkw=E5520 [1] and look around you will find this.

Which shoes it does have this technology

Also just to help out here is intel’s page that show all the CPUs they have that have this technology http://ark.intel.com/search/advanced?VTD=true [2]

This feature must be turned on in the bios.  In my particular case that is how the machine was already set up.  If your’s is not you need to boot up into the bios and enable this.  Intel has a how to page on this http://software.intel.com/en-us/blogs/2009/02/24/step-by-step-guide-on-how-to-enable-vt-d-and-perform-direct-device-assignment/ [3]

Configure your ESXi server

Now that you have vt-d enabled open up VSphere Client.

Click on the Configuration tab then select Advanced Settings on the left hand side and finally click on the Configure Passthrough.   If for some reason the “Configure Passthrough” link is not working and grayed out this may mean that you do not have vt-d enabled.

Check box all the USB controllers and click OK.

Now you should see all the USB controllers show up.

Adding USB drive to VM

After that is done, you may need to do  reboot, I did not.  At any rate after that is done I want to attach this USB drive to a Win-7 Virtual machine I have running on the ESXi 5 server.

Select the server then click on “Getting started” tab and select Edit the virtual machine.

In the hardware section click “add”

Select USB Controller and click next.

Select EHCI+UHCO and click next.

Click Finish.

Now click Add again.

Select USB Device and click Next.

Any available usb device will show up.   Here I attached a small hard drive.  Select the usb device you want and click next.

Click Finish.

Click OK.

And since it was a USB hard drive it quickly show up as a mounted hard drive and is usable!

theo: http://www.whiteboardcoder.com

25/3/13

on Leave a Comment

Prevent cut, paste, copy, delete, re-naming of files & folders.

(chống ghi, xóa, đổi tên file trong windows)

We are pleased to release Prevent v 1.0, a freeware app which runs on all Windows. If you don’t want anyone deleting or renaming or messing around with your data, maybe your younger sibling, then Prevent may be able to help you.

prevent Prevent cut, paste, copy, delete, re naming of files & folders.

The downloaded zip file consists of:
1. Prevent.exe
2. Pre_1
3. Pre_2
4. Read Me file.
5. Uninstall

Run the Prevent installer setup. The installer only places the Prevent folder in the system Program Files folder. A desktop shortcut will also be created. To run the program, click on Prevent. Set your Hot key to stop Prevent. You may set it as Ctrl+P if you wish. Hotkeys Win+F8 kills Pre_1 and Win+F9 kills Pre_2, too. But the single hotkey set by you will kill all Prevent processes at the same time.

Prevent :
1. Stops Cut
2. Stops Paste
3. Stops Copy
4. Stops Delete
5. Stops Copy To
6. Stops Move to
7. Stops Send To
8. Prevents renaming
9. Disables Task Manager’s End Process button. Also it doesn’t allow you to right click on process name and click on end process. It also grays out the context menu items, disable Ctrl+C, Ctrl+X and Ctrl+V and/or stops the process.

To uninstall or remove Prevent, use the Uninstaller situated in the Prevent folder, or uninstall it via the Control Panel or simply delete its Program folder.

download1 Prevent cut, paste, copy, delete, re naming of files & folders.

theo: http://www.thewindowsclub.com

Mrbaduong. Được tạo bởi Blogger.