Thursday, September 11, 2008

How to install a CCcam server on Windows XP

In this tutorial, we are going to install and run a CCcam server on Windows XP, and as we know CCcam is programmed to run on Linux, well, it's still the case here and in order to install our server, we have to run CCcam on a Virtual Machine (VM) that has a Linux OS installed on it

The trick is not installing Linux on Windows XP and running it as a VM, many do that already using VMware Player or Microsoft Virtual PC,the trick is to make this VM be fully recognized by Windows XP and it self as a server that has it's own physical MAC-address and thereby it's own IP in the router.

To sum it all, we are going to trick the router that we are running a physical PC somewhere and that PC is physically connected to that router, in order to obtain an IP in the router so the Virtual Linux OS (OS means Operating System such as Windows XP, Vista, Ubunto, Opensuse..etc), can send and receive data over that router, and in this tutorial we are going to use Clarkconnect as a Virtual Linux OS.

I choose Clarkconnect as a Virtual server because it's secure, small, fast, stable and does not require much of disk space or RAM, don't be surprised if we used 2GB of hard disk space along with only 512MB RAM and our Clarkconnect Virtual server will actually only uses less than half of the disk space and about 250 MB of the RAM we are going to allocate for this Virtual Server.

If that have given an idea of what we are going to do then lets get started...we need tools do so...

The tools:

1: Clarkconnect Community Edition 4.2 SP1 as Virtual OS
http://www.clarkconnect.com/downloads/isos.php

2: VMware Player as our VM ( Requires a small registration )
http://www.vmware.com/download/player/


3: Pre-configured Clarkconnect VMware Virtual disk and configuration files (32-bit)
http://rapidshare.com/files/135584513/Clarkconnect_VMX_pre_configured.zip.html
Specifications:

32Bit Guest VM
One CPU and 512MB of RAM
One Hard disk of 2GB space
One physical CD/DVD-ROM
One virtual CD/DVD-ROM
One Bridged network adapter ( bridged to VMnet0 )
One Serial Port ( COM1 )
One USB controller

( MD5 checksum = 7c54a3017fcd173f4495e0116db61f2f *Clarkconnect_VMX_pre_configured.zip )

4: VMXBuilder as a VMware Virtual disk and configuration file builder
http://rapidshare.com/files/135584738/VMXBuilderSetup.zip.html

( MD5 checksum = ffb73f78b9fd1cf444c8232719d872de *VMXBuilderSetup.zip )

5: CCcam CS program
http://www.eucardsharing.com/index.php?action=tpmod;dl=item5

6: An FTP client program
http://www.filezilla.com

7: Putty to configure and start our CCcam server
http://rapidshare.com/files/130837134/putty.zip.html

Optional

1: TrayIt!, the program sends any running program on taskbar to the system tray

Download

2: USB development package V.0.1.12

Download

( MD5 checksum = caf182cbc7565dac0fd72155919672e6 *libusb-0.1.12.tar.gz )

3: Nftytool for Infinity USB Phoenix Card-reader V.1.1

Download

P.S. The MD5 checksums for the archives above are not passwords, they are to are there to confirm that the archives are uploaded by me and if an archive doesn't carry that hash-number I have provided here for it then the archive is not mine and have been modified by someone else, you can use MD5summer (Home of the MD5summer) to make sure of that.

Before we start:

I would like to inform a little about Clarkconnect VMware Virtual disk and configuration files provided for download above:

These are made using VMXBuilder, the easyvmx site that I have linked to in the earlier version in this tutorial is actually using VMXBuilder to generate the VMware configuration files without mentioning this program at all and I thought, as all of you, that they stood behind the development of the VMware configuration files but they are not.

I found about that when I started searching the internet to see if any others are facing the same problem as we have due to the COM-port in the Virtual Server created does not work at all, and that means that the there is something wrong with the VMware configuration for the COM-port, however, I found the authors homepage after much searching and along with that, I found out that they have been working on VMXBuilder since 11/05/2005.
LINK

After using this program to generate the configuration files I have no problem using the COM-port which now works flawlessly, and as you can see, the credit should go for the guys that stand behind this project and not for easyvmx.

Later on, I'm going to guide you through VMXBuilder and you can then make your own configurations using VMBuilder if you decide to use another OS than Clarkconnect or you have another Host OS than Windows XP.


Let's get started....





1. Configuring Network adapters:


*These steps are very important*

1. Install VMware Player on your system, when done, head over to Network Connections in Control Panel,right-click your physical network adapter and choose Properties...make sure that VMware Bridge Protocol is checked, if not, check it and hit OK as shown below..





2. Brows to : Program Files\VMware\VMware Player folder and click on vmnetcfg, when it starts choose the tab Host Virtual Network Mapping and change VMnet0 from Briged to an automaticlly chosen adapter to your own physical network adapter, hit Apply and OK..



3.Create a folder on drive C:\ and name it Clarkconnect, then extract the archive Clarkconnect_VMX_pre_configured.zip and copy the content of the folder to the Clarkconnect folder we created earlier on drive C:\, when done copy "community-4.2.SP1.iso" to the the same folder and rename the iso-image to Clarkconnect.

* You can burn the community-4.2.SP1.iso to a CD and install from your CD/DVD Drive if you want, but I have chosen to use the VMwares own virtual CD-ROM drive because it's faster, and that's why I choose to copy community-4.2.SP1.iso to the Clarkconnect folder on drive C:\.




2. Configuring and making the VMware configuration file:

Install VMXBuilder and run the program

The porgram should place a shortcut on your Desktop, otherwise, the program is located on Start ->All Programs ->RDPSoftware ->VMware ->VMXBuilder


Choose Create New Virtual Machine




Choose the location you want to save the configurations files to
*It will be easier to save them to your Desktop now and move them later, otherwise, you should save them to the location of your Guest-OS installation directory, it's C:\Clarkconnect in this tutorial.




Choose a name for you Virtual Machine




As showen below on the Options-Tab on General options, I changed the VM and VMX-file names to the name of the ISO-image that I'm using.
It's important that the Target Platform is : Workstation and the Version is : 5.5 , that will make the configuration flexible, it's still targeted at VMware Workstation version but we will still be able to use it with the VMware Player. The Guest-OS should be Linux.




The Kernel version of the Clarkconnect I'm installing is 2.6 , if you are installing an other Linux Guest-OS then you should follow your Guest-OS Kernel.




The Working Directory should be the location of your Guest-OS installation directory.




Change to the Hardware-Tab, I'm naming the Virtual Motherboard here.




As we are using the Player version of VMware and not the Workstation version, we should choose to have only one processor.




Choose the size of the Memory, I know 512 is enough for Clarkconnect.




Floppy configuration, I like to connect it manually.




No need for SCSI controller for me.




I like my Virtual OS to use the defaults of my Windows XP for the monitor confoguration, and 16MB of RAM is plenty.




We need to add our hardware to the configuration, starting with the Hard disk, Choose Add and highlight the Hard Disk and hit OK.




When the Hard Disk is added click on Create New in the field Disk file, you only need to choose a location for the Disk file ( Clarkconnect folder in this tutorial ) by clicking Select Folder and choosing the location...I suggest that you leave everything at it's default unless you need more Disk space, then change the parameters on the field Disk Size.




Disk file is created and saved to the Guest-OS installation directory, hit OK to move on.




We need a CD/DVD-ROM linked to the physical DVD-ROM on our PC, Click Add and highlight the DVD-ROM icon and then hit OK.




I like to use this CD/DVD-ROM when I need it, so I will activate it when needed, so I unchecked the Connected at Boot, and Auto Detect is fine, unless you need to link it to a specific CD/DVD-ROM if you more than one of them.




Click on Add again to create another CD/DVD-ROM, this one is virtual and it will be linked to the Clarkconnect.iso image, click on the small button near the field Use ISO Image to brows to the location of the ISO-image.

*This part is optional, do it only if you need the VM to read from the ISO-image itself.




Still no need to be Connected at Boot for me.




We need a Network adapter, click on Add, highlight the Network adapter and hit OK.




I need it to be Connected at Boot, and I'm choosing the Intel E 1000 Network adapter and I make sure that it's bridged and VMnet0 is the link, if not then you have missed Part 1 on this tutorial. You can choose your own MAC-address or leave the VMware generate it, I suggest that you leave it at Automatically Generated unless you know what you are doing.




Hit Add, choose the Serial Port Icon and hit OK to install a COM-port
*If your PC have more than one COM-port, then you can repeat this step again to install another Serial Port.




I choose to activate it when needed and as I only have one COM-port, then I need it to be locked at COM1 when activated.




Installing a USB Controller can be done the same way, hit Add and choose the USB-Controller icon and OK to confirm,here is the result.




When you have done adding the hardware for your Virtual OS, then you need to save the configuration...hit the button Save above as shown below.




And then hit OK.





3. Installing Clarkconnect:

If you have done all the steps above, then click the Clarkconnect file and VMware Player should start, if your are using the virtual CD-ROM drive VMware will not detect the .iso file just yet, so we need to enable the virtual CD-ROM drive next.

A. If you click on VMware Player window then your mouse and keyboard will be enabled ONLY in the VMware Player window, to release them hold Ctrl and Alt on your keyboard.

B. If you are using MAC-address filtering in your routers, then you need to pick the MAC-address shown at this part and enter it in your router, it's the blured text in the picture below.

*Enabled physical hardware such as CD/DVD-ROM drives, sound card and COM-port, will be unavailable for your Windows XP if they are enabled on the VMware Player window, you need to disable them for VMware Player in order to make them available for your Windows.
The physical CD/DVD drive of your PC is "CD-ROM (IDE 1:0)" and the virtual CD-ROM drive is "CD-ROM (IDE 1:1)".



Enable the virtual CD-ROM drive by clicking on it's button as shown.




Check if your virtual network adapter is connected and bridged




Connect your COM-port ( if needed ).




Restart VMware by clicking on VMware window and holding the buttons Ctrl+Alt+Insert on your keyboard ( Insert not Delete ),Insert button is next to F12, hit Enter to start the installation




1. To Navigate in the installation window, you need to use your keyboards buttons Tab and/or keyboard arrows
2. Space to Mark
3. Enter to Confirm


Choose Installation Language




Choose Keyboard Type




Choose Installation Source




Choose Installation Type




Confirm Installation, you need to write linux here




Choose System, Standalone-Mode here for your server




Choose DHCP for easy installation




Ignore the field for Nameserver and choose OK




Choose the Name of your server




Select your TimeZone




Choose the root password




Choose the Modules you need to install, you need only FTP for now, you can add any desired modules later on






Confirm your server settings to start installation




The server is being installed, that will take about 1 minut, I'm not kidding!




Reboot your server, installation is done!




Your server is starting




Type the root password you have chosen earlier during installation




Choose Launch Text-mode Console hit Enter, we don't know what IP have been assigned for the server in our router yet, we need to know that.




Type the root password and hit Enter twice




There it is, the IP assigned by the router is the one assigned to the external adapter eth0, write it down because we are going to use it a lot later.

As you can see, our server is a StandaloneMode - No Firewall server with no firewall activated, leave it as that, we need to log on the server, so we can leave the firewall off for now and we will enable it later when we choose which ports to be open.




Hit Q and then Y to quit Text-mode Console, choose Logout to leave the server.





4. Configuring the server:


As of now, our server is installed and we are going to log on our server now to configure it

Let us say that the IP that is assigned to your eth0 is ( example ): 192.168.23.108
Then, start your Internet Explorer and type: https://192.168.23.108:81 and hit Enter

*Writting the IP address alone or http://192.168.23.108:81 will result nothing, the "s" in the "https" means that your are requsting a secure connection to port 81 on your server in order to log on .

A Security Alert will appear, you need to accept the secure-connection certificate to logon, hit Yes to accept




Write root as user and type your root password to log on the server




When you have logged on the server, choose Account Manager and click on Users




Click on Continue




Create a user, all fields need to be filled and make sure that FTP is checked, click on Add when done




Choose Software and choose FTP Server





Click on Start to start running your FTP Server and click on Automatic to make it automatically start when/if you restart your server

*I recommend that you change the FTP portnumber here from the default TCP 21




Choose Network and click on IP Settings, here you can turn the firewall on and off by changing between Standalone-Mode and Standalone Mode-No Firewall and if you choose to turn the firewall on, then you need to open the TCP ports for your CCcam server, FTP and Webinfo...etc..click on Continue to confirm the changes.

In case you wonder, the DNS Server-IP here is the IP you type in your browser to log on your router ( your routers IP ).





If we choose to turn the firewall on then we need to open the ports for the services we would like to use, so choose Network and click on Incoming from the sub-menu...here you can open ports to services you would like to use, it's simple:

1. Write the name of the service in the field Nickname/port, like CCcam, FTP, PuTTy..etc..
2. Choose the TCP or UDP port for the service ( CCcam and PuTTy uses TCP-ports )
3. Choose the portnumber
4. Click Add to open the port




*Important: You need to register your copy of Clarkconnect to get updates, the registration takes about 2 minutes and truly painless, they only need a user name and a password and you can register while you are on Dashboard, to register choose "System" and click on Register System.*


5. Uploading CCcam to our FTP server:

I have used FlashFXP in this tutorial but any FTP client program will do...if you are more on the free software side, the I recommend that you use CoreFTP Lite, it's similar to FlashFXP.

1. Extract the archive CCcam-2.0.9.zip or CCcam-2.0.8.zip.
2. Install and start the FTP client program of your choice, the left panel is for your PC and the right panel is for the FTP you want to connect to, use the left panel to brows to the location of the extracted CCcam folder.
3. Cick on Connect and choose Quick Connect.




Fill the Quick Connect panel with the IP of your server, the port you have chosen (port 21 is default if you have not changed it), the username for the user we have created earlier and the password for that username, and hit Connect.




Choose the files CCcam.x86 and CCcam.cfg from the left panel to upload them to your FTP folder on the server on the right panel, when done, right-click on one of the files and choose Transfer.

*To upload more than one file on a single upload, click on one of them and hold the button Ctrl on your keyboard, and left-click on the other files to select them for upload.





The file are uploaded to the FTP folder on the server as shown, you can now close your FTP client program




6. Installing and configuring CCcam:


Extract the putty.zip that you have downloaded from the link provided, and start PUTTY,write the IP number of the port number for your PUTTY and hit Open.

*Default TCP port is 22 if you have not changed it and need to be open in your servers fierwall.





You will be met with a security warning, hit Yes to move on

*You need to logon as root ( not a user ) and use the root password, just as you did log on the server earlier in the part Configuring the server.




From now on, you are on your own....just kidding! Just head over to this wonderfull tutorial How to setup Linux PC CCcam server under 1 hour with ClarkConnect written by kapzas and follow his lead, as I find no point in re-writting what kapzas has in his tutorial, but I can provide some screenshots of the configuring process.

Just remember:

1. Linux is sensative to capital and small letters
2. nano = edit
3. Hitting Ctrl and O = save (That is an O not a zero) you need to hit Enter to confirm the changes
4. Hitting Ctrl and X = exit


Installing and configuring CCcam with kapzas' tutorial in the background




Editting rc.local to add CCcam.x86 to startup




Editting CCcam.cfg




Saving changes to CCcam.cfg





7. Installing the USB drivers and Nftytool( Optional ):

The USB drivers are not installed in Clarkconnect by default, and that's why you need to install them first...to install them you need to register your copy by choosing Services and then Register System on Clarkconnect's Dashboard.

Log on using Putty and when logged in copy these commands from here and right-click in Putty to execute the following commands ( if you don't like to write much ) :

1. apt-get install libusb-devel
*write y and hit Enter when prompted to download and install.

2. apt-get install gcc
*write y and hit Enter when prompted to download and install.


*If Clarkconnects update-server is down, then the USB drivers are provided for download above, but you need gcc anyway.

Download ntfytool (v1.1) and extract it at your desktop, rename the folder nftytool-1.1 inside the extracted archive to nftytool and upload it to your server's FTP folder using your FTP client program as you did with CCcam.x86 and CCcam.cfg when you have installed them.

Write in Putty:

cd /home/the_name_of_your FTP folder

cp -r nftytool /var
*You can copy it to the folder of your choice, I just like to have it with the other directories.

cd /var/nftytool

chmod 755 configure

./configure

make

Now the installation is done, you need to execute a command to start the program:

./nftytool -p phoenix -- -p phoenix -f 3.58 -e
*For 3.58MHz

./nftytool -p phoenix -- -p phoenix -f 3.68 -e
*For 3.68MHz

./nftytool -p phoenix -- -p phoenix -f 6.00 -e
*For 6.00MHz



You need to execute the command of the desired speed for your card in the nftytool folder once when you start it and again if you shutdown your your system ( not the Virtual Machine ) and start it later, not when rebooting.

*As long as the Infinity USB Phoenix gets power through the USB cable, then it will still function as it configured, only when it loose the power, then the command need to be executed to configure it again.

So if you shutdown your system and start it again later you need to execute these lines again in Putty:

cd /var/nftytool

./nftytool -p phoenix -- -p phoenix -f x.xx -e
*x.xx are the desired speed of your card


By the way, the path for the COM-port in the CCcam.cfg is:

PHOENIX READER PATH : /dev/ttyS0


8. Running the server in the background ( optional ):

VMware Player will run on taskbar, I don't know about you, but I like to run the programs that don't use all the time in the background, but like to see them in the System Tray ( Notification Area ), so I know what's running and if the program is still running in the background.

To that purpose I used a free software called TrayIt!, it's very simple to use and I must say that it did the job very well, and the server kept running in the System Tray without a crash when I have minimized the VMware Player window...the program is a standalone and don't need to be installed on Windows, all you have to do is run the program from it's folder.

I extracted it from archive and copied the folder to my Clarkconnect folder so I remember to start it when I start the server.

Configuring it is simple as you can see below




The summary:

At the end of this tutorial, we have made and successfully configured our server,and you might think that it took a long time to install, in fact I have installed it several times to check how long it will take to install, it actually took around 40 minutes to be fully functional and online!.

Some might say that I keep repeating the word Server not CCcam-Server, well, that is what it is actually...Running CCcam on it is only the tip of the iceberg, what we have now is a fully functional server, it could be an FTP server or a Mail server or any server that need to do a certain job, and what is most amazing about this server is :


1. Does not require a separate PC to run on.
2. Does not require much resources such as RAM and Disk space.
3. Can run in the background of your Windows that you have on your PC just like any other program.
4. Very secure.
5. Very fast.
6. Very reliable.
7. Does not need to be re-installed and re-configured every time you need to re-install your Windows or to format the drive you have your Virtual Server folder on, simply copy the Virtual-OS-folder ( in this tutorial it's the whole Clarkconnect folder that we have created on drive C:, around 1.6GB !!) to another drive, reinstall your windows or format the drive you want to format, install VMware Player and configure the network adapter if you have re-installed Windows as in part 1 in this tutorial, copy your Clarkconnect folder back to it's location and hit the file Clarkconnect to start the server and see the magic.

On the other side, the only downside I can see is that you need to keep the PC you have installed your Clarkconnect server on turned on all the time.



I hope that you have enjoyed this tutorial, and that you can make use of it...and if you think that this tutorial has been useful, please use the thanks button, thank you.


Special thanks to forum members davklaud, skippie and storm for there big help testing the server in the last 4 days



Updated 7/8/2008:

1. Added link to VMXBuilder
2. Added link to CCcam 2.0.8
3. Added link to Pre-configured Clarkconnect VMware Virtual disk and configuration files (32-bit)
4. Added link to USB development package V.0.1.12
5. Added link to Nftytool for Infinity USB Phoenix Card-reader V.1.1
6. Added a procedure for using VMXBuilder
7. Added a procedure for installing USB drivers and Nftytool.

All the best
http://www.eucardsharing.com

No comments: