Screen sharing over the internet, through SSH

February 6th, 2010

I’ve been using SSH to play with my home Mac for a while, but now figured out how to get VNC working through the VNC access.

For clarity, the home Mac is called Coruscant.

I had to set up screen sharing on Coruscant locally. I tried to enable it throught the command line SSH access, but didn’t get very far. Locally, you use the Sharing Preference pane. (I think) It’s important to enable the VNC password for non-mac systems to be able to connect.

Now, I left home and went to visit family. The first step to connect is to open a tunnel from a port on the local machine, through SSH to port 5900 on Coruscant.

The following command does it.

ssh -C -L 59001:127.0.0.1:5900 user@coruscant external ip

-C enable compression, which can help performance over the slow Internet.

-L 59001:127.0.0.1:5900 configures the tunnel – 59001:127.0.0.1 is the local port and address to connect with. 5900 is the port on Coruscant to connect with.

user@coruscant external ip is the normal SSH connect to use. I have dyndns set up so I use that address to resolve to the external IP address of Coruscant.

Next, just go to vnc://127.0.0.1:59001 in safari, and screen sharing opens and connects (after prompting for authentication)

It’s pretty much the same to connect from a non-mac system (at least the numbers are)

Links

Caching content for iPhone webapp

January 29th, 2010

This post is still in progress; I haven’t gotten caching to work well yet. Loading...Every time I load my iPhone webapp I have to wait for it to download ~100 images and buttons. I’ll be closing and opening this app lots, so I’m trying to turn local caching on for all these images.

This article has gotten me started.

First of all I generated a cache.manifest file. Ideally, I want to cache anything within specific folders (images folders) but I couldn’t see anything that lets you use wildcards in the manifest. I’ll come back to trying this once I get a basic cache working, so for the time being I used a string of UNIX commands to generated a list of the files in my image directories, and stick it in my base manifest file. Read the rest of this entry »

Building an iPhone webapp

January 28th, 2010

This post is in progress.

Making updates and retrieving data after the initial load needs to be done using ajax. If you try to load another web page from a webapp, the iPhone takes the user into safari.

Apple have good details of the meta tags you can use to customize how iPhone handles your webapp. Read the rest of this entry »

First steps of building an online database

January 26th, 2010

I’ve been working on a database for BYP to help me keep track of the people involved with Cinders. I have email distribution lists and release forms to keep track of. It will also be helpful when producing the credits for the film.

I wanted to put the database online so it’s easily accessible (by authorised users). I started with DaDaBik to quickly build a PHP frontend to a mySQL database. Read the rest of this entry »

Setting up my blog

September 6th, 2009

Getting my blog online has provided a few interesting challenges. I’d been thinking about registering a domain to have a personalised email address for a while. This itself is a challenge – email addresses have two personalised parts, but we only really have one name. Fred Sherbet is a name I made up for myself years ago, since there are already so many Matthew Russells on the Internet. So far I’ve not met a single other Fred Sherbet.

Anyway, after registering my domains with Go Daddy I found they give free hosting with domains. I got it all set up and found it’s supported by a bar of ads. They aren’t too obtrusive so I enjoyed having a play and publishing using iWeb. (mattandcaz.com is still powered by iWeb but I’m not sure what to do with that yet.)

The trouble with the advertising was the way they get ‘injected’. They get applied to iframes, so embedding and widgets got ruined by ads. Also, wordpress didn’t just work – the ads broke certain functionality.

I run Backyard Productions’ website, and we have lots of spare space and bandwidth. I was sure there must be a way to forward a domain to shared hosting account, but it’s something Id tried with websites before and not got very far. Forwarding the domain means the user ends up with a different URL in the address bar. Forwarding with masking makes links to other pages look weird, and there’s no nice way to link directly to pages on the site.

I was sure there must be a solution and found that Go Daddy do allow hosting of multiple web sites on a single hosting account, if you have a deluxe account. This isn’t much more expensive than an economy account, so I paid the cash and we had even more spare space and bandwidth, but more importantly access to this multi-site feature.

Setting up mattandcaz.com was fairly straightforward. Although Go Daddys instructions missed out pointing the domain at the right IP address, they were quick to reply toy support request.

I had trouble getting fredsherbet.com online. It came online intermittently for a while then disappeared again. It took a couple more emails to go daddy, but they were helpful and we found that my DNS settings weren’t quite right – the first CNAME needs to be www and point to the top level domain.

Once I’d gotten that right fredsherbet.com came online 😀

Next on the list is customizing the look and feel, and also I’m setting up Fever RSS Reader (feedafever.com), which allows you to give it lots of feeds and the most talked about stories get promoted to the top of the feed. I’m hoping it’ll help me keep up with the ‘important’ stuff without getting overhelmed with the dull stuff. Also I hop it’ll help mr discover other good sites. I’ll update the blog with my experiences once i’ve figured it out!