misfoc.us

  • Archive
  • RSS
  • Ask me anything

Syncing Sublime Text 2 Settings via Dropbox

I just recently purchased Sublime Text 2 and thought I would do some digging into syncing the config files via Dropbox (affiliate link). There’s no real way of changing where Sublime looks for it’s file, but we can skirt this issue using symlinks. I run Sublime on Mac and a Windows machine, so I’ll post directions for both platforms.

Windows

(has been tested on Sublime Text 2 build 2165 on Windows 7)

First, create a folder in your Dropbox path where you’d like to put your Sublime files. I used

{Dropbox Path}/appdata/sublime

You’ll need to find out where Sublime is saving your settings. I found this by clicking on the Browse Packages menu option under Preferences. Here’s what mine looked like:

C:\Users\username\AppData\Roaming\Sublime Text 2\Packages

Make sure you’ve closed Sublime Text before continuing.

Copy Packages, Installed Packages, and Pristine Packages to the folder you’ve created on Dropbox.

At this point, remove the actual folders from the Sublime path. We’re going to create some symlinks now. Open a CMD window with administrator rights and navigate to the the above folder location and run the following:

mklink /D "Installed Packages" "C:\path\to\Dropbox\appdata\sublime\Installed Packages"
mklink /D "Packages" "C:\path\to\Dropbox\apps\sublime\Packages" 
mklink /D "Pristine Packages" "C:\path\to\Dropbox\apps\sublime\Pristine Packages"

You should now be able to fire up Sublime Text which will pull your data from Dropbox.

Mac

Make sure Sublime Text is closed before continuing.

Open up a Terminal window and navigate to the Sublime Text setting folder

cd ~/Library/Application\ Support/Sublime\ Text 2/

You’ll most likely already have package folders here, so you’ll need to remove them first

rm -r Installed\ Packages
rm -r Packages
rm -r Pristine\ Packages

Now, we’re going to create symlinks to the folders in

~/Dropbox/appdata/sublime/

Run the following commands to create the needed symlinks

ln -s ~/Dropbox/appdata/sublime/Installed\ Packages ./Installed\ Packages
ln -s ~/Dropbox/appdata/sublime/Packages ./Packages
ln -s ~/Dropbox/appdata/sublime/Pristine\ Packages ./Pristine\ Packages

You should now be able to fire up Sublime Text using the settings information present in your Dropbox folder.

    • #dropbox
    • #sublime text
    • #how-to
    • #mac
    • #windows
  • 1 year ago
  • 9
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Installing CrashPlan headless on OpenIndiana using Mac for GUI

I decided that I wasn’t quite ready for the work it was going to take to convert from OpenIndiana to FreeBSD 9.0 so I decided to quickly tackle a CrashPlan Headless install and also set up my Mac to access as the headless server when needed.

OpenIndiana: Installation and Setup

I pretty much followed the installation directions on the Crashplan’s website with a couple tiny modifications.

Download the application from here.

Move the downloaded file to /var/spool/pkg

pfexec mv CrashPlan_2010-03-08_Solaris.tar.gz /var/spool/pkg/

Unpack the archive

pfexec tar -xzvf CrashPlan_2010-03-08_Solaris.tar.gz

Install the package

pfexec /usr/sbin/pkgadd

At this point I diverged a little and made a change to a CrashPlan configuration file: (this tells the service to accept connections on any IP that my server will respond on)

/opt/sfw/crashplan/conf/my.service.xml

I changed the line

serviceHost 127.0.0.1

to

serviceHost 0.0.0.0

then fire up the service

pfexec /opt/sfw/crashplan/bin/CrashPlanEngine start

Mac: GUI Setup

You now need to setup the gui to point to your remote engine. Make sure you’ve installed CrashPlan on your Mac. After you’ve got it installed, open

/Applications/CrashPlan.app/Contents/Resources/Java/conf/ui.properties

and change the line that reads

#serviceHost=127.0.0.1

to

serviceHost={IP_OF_ENGINE}

If all goes well, you should now be able to fire up CrashPlan on your Mac, connect to your headless box, and setup your backups.

Todo
  1. Create a config for my local box and a config for my headless box
  2. Write a script that will switch configs depending on which system I want to manage
    • #OpenIndiana
    • #Mac
    • #how-to
    • #CrashPlan
  • 1 year ago
  • 1
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

About

A place for me to post about things that interest me. If you stick around, you might find something interesting!

Me, Elsewhere

  • @landrysplace on Twitter
  • adalan420 on Youtube
  • adalan on github

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile
Effector Theme by Pixel Union