Compile SVN for OSX

This reference will describe how to install SVN with support for http/https URLS for OSX. This has only been tested in Mountain Lion. This was done to counter “E170000: Unrecognized URL scheme for http*” and from installing SVN through Xcode.

  1. Download needed source files, and untar each of them: SVN from Apache, and Neon to support http and https urls.

  2. Install neon: Make sure that neon is installed to /usr/local/ by default

    cd neon
    ./configure --with-ssl
    make
    sudo make install
    
  3. Install svn:

    cd subversion
    ./configure --with-ssl -with-neon=/usr/local/
    make
    sudo make install
    
  4. Check to see if the installation worked correctly

    svn --version
    

    This is the response you should be looking for:

svn, version 1.7.8 (r1419691)
   compiled Jan 10 2013, 14:40:15

Copyright (C) 2012 The Apache Software Foundation.
This software consists of contributions made by many people; see the NOTICE
file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme

Setup Arch on Raspberry Pi

This is a basic tutorial running through the steps for partitioning, updating, and installing xfce4 on the Raspberry Pi. Note: This is assuming you already have made the SD card and have booted up, and are logged in as root.

1) Resize Partition

The reason why you need to resize the partition is that you want to match it to the size of the SD card.

  • fdisk \/dev\/mmcblk0
  • p [enter]
  • Note the first number on the second line
  • d [enter]
  • 2 [enter]
  • n [enter]
  • p [enter]
  • 2 [enter]
  • Enter the number that you noted [enter]
  • Select largest number of last sector aka [enter]
  • w [enter]
  • q [enter]
  • reboot
  • resize2fs \/dev\/mmcblk0p2

2) Update the system

pacman -Sy pacman
pacman-key --init
pacman -S archlinux-keyring
pacman-key --populate archlinux
pacman -Syu --ignore filesystem
pacman -S filesystem --force

3) Install X Server (xorg)

pacman -S xorg-server xorg-xinit xorg-server-utils

4) Install Video Divers for Pi

pacman -S mesa xf86-video-fbdev xf86-video-vesa

5) Install xfce4

pacman -S xfce4

6) Start x-session with xfce

startxfce4

Optional:

I think the fonts are terrible with the stock install so, I also installed a set of TrueType fonts:

pacman -S ttf-dejavu

VirtualBox Shared Folders

Here is a quick tutorial on how to add a automounted VirtualBox shared folder to Ubuntu without modifying the fstab.

  1. Boot the VM
  2. Goto Devices -> Shared Folders in VirtualBox
  3. Select Path and select the folder you’d like to share, then check Make Permanent and Automount. Then Ok.
  4. In terminal, run the command: sudo adduser your_username vboxsf
  5. Restart the VM
  6. Now you can access the shared folder in /media (i.e. /media/sf_sharename)
  7. Make a sym link to access the folder more easily: ln -s /media/sf_sharename share

Exchange Powershell Calendar Permissions

This is a brief write-up on how to connect to exchange and change the permissions of calendars for a domain through powershell. This was tested with Office 365.

Make sure you are running powershell in administrator mode, and have enabled scripts to run. If you’re not sure you can run the command:

Get-ExecutionPolicy
# If the policy is set to restricted, run this command:
Set-ExecutionPolicy RemoteSigned

Connecting to Exchange

$LiveCred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
Import-PSSession $Session

Changing Permissions

If you have never changed anything before on the domain, you will need to enable domain customizations. This may take a while, but should eventually show a status at the top of powershell. Once enabled, you do not need to run this command again.

Enable-OrganizationCustomization

Now, you need to know what the policy name is before you can edit it:

Get-Mailbox -Identity user@yourdomain.com |fl *SharingPolicy*
# An example of what it returns:
# SharingPolicy : countableset.onmicrosoft.com\Default Sharing Policy

In this case the policy name for my domain is “Default Sharing Policy”, for the rest of the commands this is the name I will use. If yours is not the same substitute yours policy name instead.

To see what the policy is set to run this command:

Get-SharingPolicy -Identity "Default Sharing Policy" |fl *Domains*
# Will return something like:
# Domains : {Anonymous:CalendarSharingFreeBusyDetail}

To change the policy, run the command:

Set-SharingPolicy -Identity "Default Sharing Policy" -Domains "anonymous:CalendarSharingFreeBusyDetail"

Where “CalendarSharingFreeBusyDetail” is the permission for an “anonymous” user.

To change the policy for different domains or add in different domains, add in the domain and permissions afterward:

Set-SharingPolicy -Identity "Default Sharing Policy" -Domains "anonymous:CalendarSharingFreeBusyDetail", "nulldirective.ch:CalendarSharingFreeBusyDetail"

Disconnect

Remove-PSSession $Session

Adding Git to Windows 7 Path

Note: You must have msysgit installed on your machine. Also, the path to my git install is “C:\Program Files (x86)\Git” yours might be different. Please check were yours is before continuing.

Open Windows Environment Variables/Path Window

  • Right-Click on My Computer
  • Click Advanced System Settings link from the left side column
  • Click Environment Variables in the bottom of the window
  • Then under System Variables look for the path variable and click edit
  • Add the pwd to git’s bin and cmd at the end of the string like this:
;C:\Program Files (x86)\Git\bin;C:\Program Files (x86)\Git\cmd

Now test it out in PowerShell; type git and see if it recognizes the command.