Thursday, June 23, 2011

Forwarding X in snow leopard

Just picked this up from a blog as I needed to forward GUI apps over SSH.

The answer was just to replace localhost with

Start Terminal from utilities
run "startx" in the terminal
right click on the dock (my recent fav trick) run "xterm" from Applications menu.

The next are commands to run in the xterm.

xhost +
ssh -R 6000: myserver

Now, you can run your GUI app

I still have habits to do the xhost +, sometimes it's just conditioning and I'm not even sure if the commands are useful.

Sunday, June 19, 2011

themes for mac terminal application

I can't believe that I've been using mac's terminal all this while and i didn't know that if you right click the icon on the tray of the app that is already open or select from the drop down for new window you get to select a different theme of window.

My favorite is "homebrew", reminds me of my old terminals feel with the semi transparency and green font.

smarter home

well, it's not quite home automation, but i've upgraded my home systems. Here's a bit about what it does now. It's a lot simpler now not to mention easier to setup.

The brain
The core system now lie within a mac mini snow leopard server attached to the living room PC. I got one direct from apple store. it's very cool and not to mention cheap. ideal for home use. it's a home theater pc as well as running all the other IT services, i.e. DNS, DHCP, VPN and some other misc Apple stuff, like website, wiki, podcast and mail.

It monitors all the other network equipment, network attached storage (NAS), all in one printer, cameras and wireless access points. Essentially, I VPN to the box and through my secure VPN access all the other home systems without the messiness of having to NAT individual ports. It also adds another layer of security for remote access.

DHCP and DNS also helps each connected device find each other better that it would if I relied on the DHCP/DNS services of the internet router. I just needed to configure the DNS to accept recursive queries from "none" to "".

The DHCP scope is of course in that case 192.168.1.x (just make sure it's after the range you want to reserve for static IP addresses like the servers or security cameras. I created static maps to the printers, so that in case they were moved around they would still be able to do DHCP.

The mac mini provides remote login via VNC for windows and screen sharing on the mac clients. So that means on whatever device I happen to be on, i can always access the screen and applications on the mac mini. That also acts as a remote control if I have the TV on and too lazy to reach for the bluetooth keyboard and wireless mouse.

If the kids kick me off the TV, I just move to the next computer and carry on where I left off. I have a Canon PIXMA wireless printer which I think I enabled bonjour. So that means wireless scanning and printing is available without wires to another portion of the house (e.g. the messy study), leaving the sleekness outside.

As you may notice when you check out the snow leopard server mac mini is that it doesn't have a DVD rom. Well I have a mac book pro, so that means I use remote disk sharing, but i think the need for DVDs are slowly decreasing. Which brings about the next point on home entertainment

Media Systems
From the rule of only having one TV in the house, that's slowly changing with the availability of TVs these days. It seems everyone is giving away TVs and there is absolutely no value in second hand televisions.

I bought a 32in LED tv a while back and it's really done a pretty niffy job to date. Well, since then it's been joined by an Akira LED (although it doesn't look LED) and the Samsung 40in LED smart tv.

There are several ways to watch the same media in different rooms on different devices. obviously the first step would be to convert the DVDs to a playable file and copying it onto a shared storage, e.g. NAS. From there most network media players can access file shares and play xvid.

Remote access
The iphone 4 works great as a remote to a mac mini especially with no issues with tunneling through a linksys router. couple that with mocha vnc, it's like a remote desktop without having to expose the remote access from the internet.

it also lets you do whatever that you can do as if you're on your home network.

Well, I guess there wasn't any home automation like turning off the lights after you leave the house, but that's just good habit to turn off everything you don't need and there shouldn't be any cooling the house before you come home either, that's just not friendly. well, is leaving a mac mini on throughout the day any better? Well, it's better than a full blown PC or server and you also do use it when you're away. so there.

let me know if you think this is any smarter.

Saturday, June 04, 2011

install sugar crm on centos

Just some notes from the install into a fresh default install of centos with sugarcrm 6.2. I'm sure I missed out quite a lot of bits, but i'll add more over time. These are the additional packages to install for php and mysql

yum install mysql
yum install mysql-server

add repo


name=CentOS-5 Testing

yum upgrade php
yum install php-mysql
yum install php-mbstring

the rest of the install should be as the other documentation

dead pi

Well, I guess it has to happen at some point. the home automation raspberry pi has died. Much to do with the stupid Strontium mini SD card. ...