Thursday, 29 September 2011

Howto Configure Linksys PAPT2 and SPA2102 for PennyTel

The Linksys PAP2T and SPA2102 ATA work well with PennyTel and other VOIP SIP providers.
  1. Get the quick start guide from www.cisco.com/en/US/docs/voice_ip_comm/csbpvga/spa2102/quick_start/guide/spa2102_quick.pdf

  2. And the PennyTel guide for PAP2T / PAP2 from www.pennytel.com/doc/linksys_pap2.pdf

  3. The main commands to get started are:

    To get into the Menu dial "****"

    To get the IP address (assuming you have DHCP) press "110"

  4. Then in your web browser load the IP you get. By default you get User Login, so click on the Admin Login link upper right. Then click "Line 1" and configure per below.

Monday, 26 September 2011

Ubuntu Guest on OSX: getting 1280 x 800 and other resolutions

After install, pretty much everything works out of the box, except one annoyance. The screen resolution was stuck at 1024 x 768, which on a MacBookPro is annoying when you've got 1280 x 800 to play with.

Selecting System > Preferences > Monitor gives only 1024 x 768, 800 x 600, 640 x 480.




You need to install two things. First open a terminal window (Applications > Accessories > Terminal) and run the command

sudo apt-get install dkms

Put in your password, and it installs.

After its finished, install the Additions:

Right at the top, on the VirtualBox menu bar, select Devices / Install Guest Additions. You get the AutoRun prompt, so accept, then after click Run, and put in your password when asked.



Follow this through, it may take a few minutes and then restart. The 'power button' upper right.

After restart, initially things will look worse! You'll get 800 x 600. Don't worry. Go into full screen mode by pressing Apple-F.

The window will resize automatically to fill your screen ie 1280 x 800. You can then back into monitor settings and the new resolution will be there. When you press Apple-F again you'll run windowed mode, which is actually my favourite.



Friday, 23 September 2011

Howto Install Ubuntu Guest on OSX Host

If you are running an Apple Mac and you want / need to install Ubuntu as a Guest operating system.

I've used Parallels and VMWare and I find VirtualBox to be quite good, and free.

  1. Get VirtualBox from www.virtualbox.org/wiki/Downloads and install. Current version is 4.1.2

  2. Download the Ubuntu ISO from www.ubuntu.com/start-download?distro=desktop&bits=32&release=latest

  3. Create a new virtual machine. You can just follow the wizard. When its done you need to edit some settings.
    Link
  4. On the 'system' tab, deselect 'floppy', then select the CDROM and then the down arrow to move it down

  5. Click on Storage

    and the 'empty' under IDE controller. Click the disc symbol on the right and then "choose a virtual CD/DVD disk file" and that allows you to load the Ubuntu ISO file you just downloaded.



  6. I usually click on Audio and deselect it.


  7. Then click on Network , Advanced and change the emulated network adapter to PC-net. I fin the Intel Pro/1000 doesn't always work.

  8. Click OK, and then Start. Now we're running!

  9. Ubuntu starts and soon we can choose what to do. The defaults are OK, just remember to select the correct keyboard.



    I do like the way Ubuntu allows you to do some configuration while its installing. After a few minutes you can restart.

  10. Pretty much everything works out of the box, except one annoyance. The screen resolution was stuck at 1024 x 768, which on a MacBookPro is annoying when you've got 1280 x 800 to play with.

    Selecting System > Preferences > Monitor gives only 1024 x 768, 800 x 600, 640 x 480.




  11. You need to install two things. First open a terminal window (Applications > Accessories > Terminal) and run the command

    sudo apt-get install dkms

    Put in your password, and it installs.

    After its finished, install the Additions:

    Right at the top, on the VirtualBox menu bar, select Devices / Install Guest Additions. You get the AutoRun prompt, so accept, then after click Run, and put in your password when asked.



    Follow this through, it may take a few minutes and then restart. The 'power button' upper right.

  12. After restart, initially things will look worse! You'll get 800 x 600. Don't worry. Go into full screen mode by pressing Apple-F.

    The window will resize automatically to fill your screen ie 1280 x 800. You can then back into monitor settings and the new resolution will be there. When you press Apple-F again you'll run windowed mode, which is actually my favourite.



Thursday, 25 August 2011

Protecting yourself from Flash cookies

Its not well known that Flash has some good privacy options. When installed on OSX, you get a control panel item that allows to set your preferences. If you use Firefox you can also use Betty Privacy to control your flash cookies, also known as Longterm Storage Objects or LSOs.



In System Preferences, click on the Flash button





and it loads the options. You can choose what you want, suggest going for "ask me before allowing sites". Google's gmail sets 2 LSOs, maybe it doesn't work properly if you prevent gmail setting LSO.





You can also click "local storage settings by site" to set per Site options, or "delete all" and do exactly that.



Sunday, 21 August 2011

Howto forget known host in CrOS / ChromeOS

Since CrOS / ChromeOS does not have a real test editor, if a host you SSH to changes, its not obvious how to remove the old one from known_hosts so you can add the new one.



In CrOS (ctrl+alt+t) type



    ssh_forget_host


You then get a list of know hosts, so just type in which one you want to forget.

Monday, 15 August 2011

Macs with AES-NI

Macs with AES-NI - green = yes, red = no. If your Mac is not on the list, then likely its no, as at 15 August 2011. Basically to have any chance you need Core i5 or i7.







With OSX 10.7 Lion having Full Desk Encryption (FileVault 2), and it being able to have hardware
acceleration from CPUs that have AES-NI, you need to ask which CPUs in Apple Macs have AES-NI. Also useful if you use TruCrypt, which can use AES-NI. You can use TruCrypt to share encrypted drives / partitions between Macs and Windows - very useful if you use your office for off-site backup of home data.



Information compiled from www.everymac.com and ark.intel.com

Friday, 12 August 2011

How fast is openssl with AES-NI?

Now that Apple have moved to core i CPUs across their line from just a few before,

and with the release of Lion with its AES based full disk encryption called File Vault 2 (FV2), I've been curious about performance hit from FV2.



As far as I can tell, using FV2 gives a file system performance hit of less than about 10%. So if you were to move to SSD from spinners and then use FDE / FV2 on Lion then you would still see a big gain in disk I/O.



Anyway, you can run some openssl benchmarks.



On my personal MBP a 2.53 core 2 duo



    $openssl speed aes-256-cbc



    Doing aes-256 cbc for 3s on 16 size blocks: 18280734 aes-256 cbc's in 2.96s

    Doing aes-256 cbc for 3s on 64 size blocks: 4660089 aes-256 cbc's in 2.94s

    Doing aes-256 cbc for 3s on 256 size blocks: 1196116 aes-256 cbc's in 2.98s

    Doing aes-256 cbc for 3s on 1024 size blocks: 298821 aes-256 cbc's in 2.97s

    Doing aes-256 cbc for 3s on 8192 size blocks: 36577 aes-256 cbc's in 2.92s

    OpenSSL 0.9.8r 8 Feb 2011

    built on: Apr 22 2011

    options:bn(64,64) md2(int) rc4(ptr,char) des(idx,cisc,16,int) aes(partial) blowfish(ptr2)

    compiler: -arch x86_64 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O3 -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DMD32_REG_T=int -DOPENSSL_NO_IDEA -DOPENSSL_PIC -DOPENSSL_THREADS -DZLIB -mmacosx-version-min=10.6

    available timing options: TIMEB USE_TOD HZ=100 [sysconf value]

    timing function used: getrusage

    The 'numbers' are in 1000s of bytes per second processed.

    type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes

    aes-256 cbc 98934.37k 101410.31k 102676.20k 102983.81k 102790.17k



If you have AES-NI and your openssl has AES-NI ability you can run



    $openssl speed –engine aesni –evp aes-256-cbc



If I find myself in an Apple store I might try running this.