27 March, 2011

Build Your Home BitTorrent Server through a Web Browser (Shared BitTorrent Web Client)

 

My brother and I use a lot the BitTorrent application for a lot of reasons and we realized that my brother was downloading something that I already had on my computer. The whole idea was sharing all our stuff internally, being aware of what we are downloading NOW and why spend our entire internet quota for duplications?
So I found a very easy solution, I was all around the BitTorrent application’s “preferences” window. In my case the program that I’m using is the BitTorrent 7.2 and I know that these instructions work as well on uTorrent application too.
 This solution requires a computer to be “ON” and “online” all the time that you want the resume your downloading stuff. It can be your desktop, laptop or even a virtual machine, in my case; I’m using a dedicated Windows XP VMware virtual machine. The user can connect to the BitTorrent application through almost any browser (tested with Internet Explorer 9, Google Chrome 10, and Mozilla FireFox 4) and start downloading any torrent through that window. Almost everything you can do through the real application, you can do it through the web browser of your choice.
Follow the instructions below to complete your own BitTorrent Server through a Web Browser;

1-      Download and install BitTorrent or uTorrent (You can always try software too. I think it’s worth a shot.)
2-      Open the BitTorrent application and in the menu bar, go to “options” and click on “preferences”.
3-      In the left pane, go to “Web UI” and click on the check box to “Enable Web UI”. Set your “username” and “password” under “Authentication” and under “Connectivity” check the box who says “Alternative Listening port (default is the connection port) and leave the field to “8080”.
4-      Cick on “Apply” and “OK”. Leave the application open.
5-      Download the WebUI.exe web engine. This is the only trick in the game that we are going to do J. That’s it. It’s not easy to find so I’ve already found a couple of links but I’m going to give you the most reliable ones and also my own upload through the Google Docs free service. Here you are…
Ø  From uTorrent forums (you can also find detailed information about this process in here)
Ø  Direct Download link from uTorrent forums. (A direct link given by the same uTorrent forum posts)
Ø  My own upload (I’m using this version and i uploaded it on Google Docs everybody can have access it more easily. Please note that I’m not the owner of these files in the webui.zip folder).
6-      Rename the downloaded .zip file to “webui.zip”
7-      Press the “Windows Key + R” or go to start and click on “run” and type “%AppData%”. Move the webui.exe file in the “Bittorrent” or “uTorrent” folder. All depending your configuration and software. The long path for this folder is “C:\Users\username\AppData\Roaming\” for windows 7 and “C:\Documents and settings\Username\Application Data\” for Windows XP.
8-      Now find out what the IP address of the machine and type it in a browser with the right port and address.

Ex:                          http://192.168.1.10:8080/gui

If you installed it on your own machine, you can easly access to the web console of the bittorrent application by this address.

                                http://127.0.0.1:8080/gui

9-      Now, the easiest way to add a torrent for download through this browser interface is to click on the first icon and paste the download “url link” in the “torrent url” field and click on OK.
10-   Done! You can now share your BitTorrent client with every house tenants J Enjoy.

Note: This solution was found on the internet from different sources. I just documented the whole solution through a step-by-step guide for others.

17 March, 2011

How to Create Customized Bootable WinPE 3.0 Image?

WinPE is a light version of Windows 7 (command line version). To be able to make a WinPE, you need to install Windows AIK (Automated Installation Kit) from Microsoft. With this professional series of tools, we can create our personalized WinPE 3.0 environment.
What can WinPE do for me?
WinPE contains very useful tools to…
-  Deploy desktop and server operating systems
-  Patch the existent OS with the newest updates, hot fix and patch
-  Backup your computer!
-  Add and Remove hardware drivers

Steps to create a WINPE environment
1-      Start the “Deployment Tools Command Prompt” with the “Administrator” rights!
2-      Enter the following command.
“copype.cmd (architecture) Destination Path”
[Copype.cmd X86 C:\WinPE] or [copype.cmd amd64 C:\WinPE64]

3-      You can add additional customizations by copying your favorite tools into the created C:\WinPE\ISO folder. Like “ImageX + Sysinternal Tools + GImageX + etc.” To do that, simply copy these tools in C:\WinPE\ISO folder that you created.

Copy “C:\Program Files\Windows AIK\Tools\x86\ImageX.exe” C:\WinPE\ISO

4-      Copy the base image (WinPE.wim) into the \WinPE\ISO\Sources folder and rename the file to Boot.wim

Copy C:\WinPE\WinPe.wim C:\WinPE\ISO\Sources\boot.wim

If you are finished with your WinPE image, you can create a bootable .ISO to burn it on a DVD or CD or you can make a bootable USB flash disk! To do that, look at the “Creating a Bootable USB Flash Disk” title.
If you want to add some drivers, activate features; add packages, updates, hot fixes… Look at the “Customizing the WinPE Image” title.

Creating a Bootable USB Flash Disk / ISO image

Bootable ISO

To create a bootable ISO image for your WinPE environment, type the following command from “Deployment Tools Command Prompt” with “Administrator” rights!

Oscdimg –n –bc:\WinPE\ISO\boot\etfsboot.com C:\WinPE\ISO C:\imagename.iso

                            Defines the boot sector!        -  Root of the desired image - Path to new ISO file!

This command creates a bootable image of the WinPE environment that you just created. You can than burn this ISO into a CD/DVD and boot your computers with this media. Usually, this is the last step to do after customizing and tweaking your WinPE image.

Bootable UFD (USB)

After finishing our WinPE image, we can now use a USB stick to boot on WinPE. To do that, follow the steps above and prepare your USB Flash Drive with “Diskpart” utility.

Diskpart Commands

Open an elevated command prompt with “Administrator” rights! It doesn’t have to be “Deployment Tools Command Prompt”, we can use the normal “cmd” in Windows 7. Type the following commands…

Diskpart
List disk (shows the connected disks with their I.D.)
Select Disk 1 (1 represents your USB KEY)
Clean (wipes the selected drive)
Create partition primary size=7500 (creates a partition on selected disk. The value is in MB)
Select partition 1 (selects the partition that is newly created)
Format fs=FAT32 quick label=”WinPE”
Assign
Active
Exit

These steps prepare the UFD to be bootable! It still needs the boot files and environment in it. You can copy the content of WinPE into the root of your UFD! To do that, enter the following command…

Xcopy C:\WinPE\ISO\*.* /e F:\       (F:\ is the USB Drive)

Customizing the WinPE Image

With the WIM files, we can add drivers, updates, packages, patches, hot fixes, enable/disable features, etc… The easiest way to do these operations is to use the “DISM” and “IMAGEX” command line tools. In this tutorial, I’ll only show how to add drivers in a WinPE environment. But the potential to do things with this tool is much more than just adding the drivers…

First thing to do when playing around with WIM images is to “Mount” the WIM image. Mounting is like putting a CD into your CD-ROM. As WIM files are image based files, they contain a structure of folders and files… By mounting the “WIM” image, we can access to the content of the image and make changes if we want to.

To mount a WIM image, enter the following command in the “Deployment Tools Command Prompt” with the “Administrator” rights.

Dism.exe /Mount-Wim /WimFile:C:\Images\myimage.wim /index:1 /MountDir:C:\MountedImages
Or
Imagex /Mountrw C:\Images\Myimage.wim 1 C:\MountedImages

(/Mountrw = this switch mounts the images with the re-write attributes.
/Mount = this switch mounts the images with the read-only attributes.
Imagex.exe /? = will display the detailed information about “Imagex” and its options.)

Note: If you have the possibility to mount the image on a different physical hard drive, this helps a lot in terms of performance while working with mounted images.

Once we have the “MountedImage”, we can now add or remove the additional options or packages. I will only provide the commands to manipulate your mounted image and it’s all up to you to make all the changes needed. 

Dism Driver Commands: 

 Dism /image:C:\Mountedimages[ /get-drivers | /get-driverinfo | /add-driver | /remove-driver]

To add a driver for WinPE:
Dism /image:C:\MountedImages /add-driver:C:\NewDrivers\mydriver.inf  

(Optionally you can add the “-forceunsigned” (without quotes) option at the end of this command to force the installation of unsigned drivers)  

Dism /image:C:\MountedImages /add-driver:C:\newdrivers\mydriver.inf /forceunsigned

(Optionally you can use the “-recurse” (without quotes) option to add all the drivers with in a folder. Let’s say you have 5 new drivers in a folder (C:\NewDrivers) and you want to install all these drivers with a single command)

Dism /image:C:\MountedImages /add-driver:C:\NewDrivers\ -recurse –forceunsigned

To Servicing Applications and Application Patches

dism /image:path_to_directory [/check-apppatch | /get-apppatchinfo: | /get-apppatches |
/get-appinfo | /get-apps] 

Ex:  dism /image:C:\MountedImages /get-apppatches 

If you want to display information about specific .msp patches applicable to the offline image, you can use the /check-apppatch parameter. You use /patchlocation to specify the path to the MSP patch file. You can specify multiple patch files by using /patchlocation more than once in the command. For example, to display information about two patch files, 30880d0. msp and 8c82a.msp (both in C:\Windows\Installer) in the mounted image, you would enter the following command:

dism /image:c:\mountedimages /check-apppatch /patchlocation:c:\windows\installer\30880d0.msp
/patchlocation:c:\windows\installer\8c82a.msp

If you need detailed information about all installed MSP patches applicable to the offline image, you would enter a command similar to the following:

dism /image:c:\mountedimages /get-apppatchinfo

Known Problems

Boot Problems – Bootmgr is missing – BCDBoot

You can try the “BCDboot.exe”. After applying a WIM image to the new computer, use the following command to recover the missing Boot files.

X:\>C:\Windows\System32\bcdboot.exe C:\Windows /s C:
 
(In this example, C: is the drive that contains Win7 with the defective boot files.)

Kubilay Elmas
Microsoft IT Professional 
Windows 7 Enterprise Desktop Administrator

15 March, 2011

Mv91xx.sys BSOD Repair – Windows 7 X64


I recently had a problem with this driver (mv91xx.sys) with a fresh install Windows 7 Ultimate X64. After a quick search I could find out what was causing the blue screen from time to time during the boot of my computer. It was the “Marvell 9123 Disk Controller” driver in conflict with some other drivers. So I had to find the latest drivers for this controller which was not provided from the supplier (Asus) but from a third party! This is really frustrating, because companies who sell worldwide should keep their drivers section always up-to-date!!!  I managed somehow downloading the needed drivers from a third-party driver website (http://www.station-drivers.com/). I’m happy that I found such a good site like this one where we can have the latest versions of drivers. Especially, the ones that we all have problems with… So, I ended up downloading the latest drivers and update the drivers on my computer, I did not see any BSOD (Bluescreen of Death) after this update. And also, I used to have a 2-3 second freezes during the normal usage of my system. I was thinking that this was related to the same problem and after the driver update, guess what… The freeze goes away too. I now have a perfect system. I wanted to share my experience so if you guys are suffering from the same problem.

Please right click on the link and choose “save as” in order to download the latest drivers of

Marvell MV-91xx (88SE91xx) Ahci/Raid Controller
(PCI\VEN_1B4B&DEV_90xx&CC_ & PCI\VEN_1B4B&DEV_91xx&CC_)


In order to install these drivers, you have to extract the content of the .exe file into a folder with a compression application such as (WinZip, 7Zip, WinRAR) and go to “device manager” under the “Computer Management” and expand the “Storage Controller” section to see all the controllers installed in your computer. You should see the Marvell’s controller too, right-click on the “Marvell’s Controller” and choose “update driver software”. You should than point the right folder who has the latest versions of the new driver and load the new drivers. Do not forget to restart your computer after the setup.