Connect to Cisco VPN from Mac OS X Lion (10.7)

Here are some instructions about using the Apple built-in client instead of the Cisco VPN software. Using the Apple built-in client will help ensure support as the Mac OS Evolves.

  1. Here’s how to use the Apple built-in client instead:
  2. Open System Preferences > Network
  3. Click the lock button to unlock it and make changes
  4. Click the plus sign above the unlocked lock button to add an interface.
  5. On the “Interface” drop-down select “VPN”
  6. On the “VPN Type:” drop-down select “Cisco IPSec”
  7. In the “Service Name:” text box create a memorable interface name such as “Your Company VPN”
  8. Click OK and then select this new interface
  9. Configure the interface with server address, vpn group and pre-shared key, username and password, etc.
In case you’ve an encrypted password you should be able to decode it here.

Install Subversion on Mac OS X Lion (10.7)

Edit the SystemVersion.plist file to change your Mac OS X version from 10.7 to 10.6:
sudo vi /System/Library/CoreServices/SystemVersion.plist
Replace each occurrence of 10.7 with 10.6
Save the file
Install Universal Subversion 1.6.17 Binaries for Snow Leopard (Mac OS X 10.6) from http://www.collab.net/downloads/community/
Revert the file we edited previously (10.6 to 10.7 this time)

[AS3 SNIPPET] Video loop class

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
package com.rblab.framework.video
{  
    import flash.events.AsyncErrorEvent;
    import flash.events.NetStatusEvent;
    import flash.media.Video;
    import flash.net.NetConnection;
    import flash.net.NetStream;

   
    public class VideoLoop extends Video
    {  
        //--------------------------------------------------------------------------
        //
        //  Private properties
        //
        //--------------------------------------------------------------------------

        private var _URL : String;  
        private var _connection : NetConnection;
        private var _stream : NetStream;
        private var _playedOnce : Boolean = false;  

        //--------------------------------------------------------------------------
        //
        //  Constructor
        //
        //--------------------------------------------------------------------------

        public function VideoLoop(w : int, h : int, videoPath : String, streamer: String) : void
        {
            super(w, h);
           
            _URL = videoPath;
           
            _connection = new NetConnection();
            _connection.addEventListener(NetStatusEvent.NET_STATUS, onStatus, false, 0, true);
            _connection.connect(streamer);
            _connection.client = this;
        }

        //--------------------------------------------------------------------------
        //
        //  Private methods
        //
        //--------------------------------------------------------------------------

        private function initVideo() : void
        {
            _stream = new NetStream(_connection);
            _stream.addEventListener(NetStatusEvent.NET_STATUS, onStatus, false, 0, true);
            _stream.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler, false, 0, true);
            attachNetStream(_stream);
           
            var infoClient : Object = new Object();
            infoClient.onMetaData = onMetadata;
            infoClient.onBWDone = onBWDone;
            _stream.client = infoClient;
           
            loadVideo(_URL);
        }

        private function loadVideo(url : String) : void
        {
            _URL = url;
            _stream.play(_URL);
        }

        //--------------------------------------------------------------------------
        //
        //  Public methods
        //
        //--------------------------------------------------------------------------

        public function resume() : void
        {
            _stream.resume();
        }  

        public function pause() : void
        {
            _stream.pause();
        }

        //--------------------------------------------------------------------------
        //
        //  Event handlers
        //
        //--------------------------------------------------------------------------

        private function onStatus(nse : NetStatusEvent) : void
        {
            if (nse.info.code == "NetConnection.Connect.Success" && !_playedOnce)
            {
                _playedOnce = true;
                initVideo();
            }
            if (nse.info.code == "NetStream.Play.Stop" && _playedOnce)
            {
                _stream.seek(0);
            }
        }  

        private function asyncErrorHandler(event : AsyncErrorEvent) : void
        {
            trace(event.toString());
        }

        private function onMetadata(event : Object) : void
        {
        }

        public function onFCSubscribe(event : Object) : void
        {
        }
       
        public function onBWDone() : void
        {
        }
    }
}

Older Entries »