søndag den 19. maj 2013

Tortoise SVN for Mac

This is a tutorial on how to install a Tortoise SVN client like application on mac.

NB: this application is from 2010 and is made for Mac OS Snow Leopard. Although it works perfectly fine on my machine running Mac OS Mountain Lion 10.8.3. I cannot guarantee that it will work on your version of mac nor that it will be bugfree. In my case I think it is the best free (and maybe the only) solution for running a fully working svn client integrated with finder. This client is a plugin called SCPlugin.

Install SCPlugin

For installing SCPlugin the first thing you have to do is to download the installation file: SCPlugin
When you have downloaded the file  - you just run the installation as you normally do - with normal mac os installations. You just have to run all the default setups - click Next without changing any settings.

When finish installing the plugin - open the Application folder and find SCToolbarButton:

Move SCToolbarButton up to the finder bar and now your are ready to go...

Using SCPlugin

SCPlugin is very simple to use - you just have to follow these steps:
  1. Create an empty folder - For example i created a folder called SVN_Folder on  the desktop:
  2. Open the folder
  3. Click on the SCPlugin icon and choose Checkout
  4. A new window opens and you just fill in the blanks with your SVN Repository URL, Usename and Password - Notice the screendump below - you have to check the Recursive checkbox.
  5. When you have filled the blanks, just click the Checkout  button and you are done ! 


onsdag den 15. maj 2013

Connecting Two Virtual Machines using virtual serial ports on VMWare for Mac

My Mac Sepcifications

MacBook Pro15'', late 2011
Processor  2,2 GHz Intel Core i7
Memory  8 GB 1333 MHz DDR3
Graphics  AMD Radeon HD 6750M 512 MB
Software  OS X 10.8.2 (12C60) - Mountain Lion

Installed Software

  • VMware Fusion Professional Version 5.0.3
    • Ubuntu 1 image installed on the virtual machine
    • Ubuntu 2 image installed on the virtual machine
So I have two ubuntu's running on my VMware.

Connect using virtual serial ports

For connecting the machines with serial ports on a mac - you have to do following steps:
  1. You have installed both VMware images
  2. Find folder for the first image (Ubuntu 1)
  3. Right click on the .vmx file and open with TextEdit
  4. Replace Serial0 text with following:
    serial0.present = "TRUE"
    serial0.fileType = "pipe"
    serial0.yieldOnMsrRead = "TRUE"
    serial0.startConnected = "TRUE"
    serial0.fileName = "/Users/khaledsaied/Documents/Serial/empty"
  5.  serial0.fileName has to be a directory on your mac where you put an empty ASCII file
    1. The ASCII can be created with TextEdit  - see screenshots below:
Open TextEdit

Convert to regular text

Choose ASCII Encoding (if ASCII is not in your list then choose change coding list)

Give the empty file a name without endings (.txt) for example: empty

For the Client just repeat the above steps on the other image (Ubuntu 2), the only difference is that you in step 4 add following statement serial0.pipe.endPoint = "client" as follow:

serial0.present = "TRUE"
serial0.fileType = "pipe"
serial0.pipe.endPoint = "client"
serial0.yieldOnMsrRead = "TRUE"
serial0.startConnected = "TRUE"
serial0.fileName ="/Users/khaledsaied/Documents/Serial/empty"

THATS IT!!! That is all you have to do for getting a virtual serial port working between two virtual machines on Mac.

Serial Communcation with Terminal

The only thing you have to do now is to turn on both of your machines (Ubuntu 1 and Ubuntu 2), open Terminal on Ubuntu 1 and write following:
cat /dev/ttyS0
Then open Terminal on Ubuntu 2 and write following:
echo some random text > /dev/ttyS0
Now you should see the text "some random text" on the Ubuntu 1 Terminal.
*It is ttyS0 because I have used serial0.

NB: while changing in the .vmx file the virtual machines have to be turned off!
The directory with the empty ASCII file has to be the full legal path!