Thursday, October 19, 2006

Using Apple X11 to access CDE/GNOME/KDE/etc. on a remote machine

I've been playing around with solaris servers in the office this last week and came up against a problem when I wanted to access one of our machines remotely. I installed Apple X11 onto my machine (see earlier posts) and was found myself with an Xterminal command line and the question: How do access my remote machine? I know nothing about Xterminals so the following info. maybe ovbious to a frequesnt *nix user but I didn't know what to do. After much digging on the internet I found the answer.

1)Open X11.app (in Applications/Utilities)
2) In the Xterminal command window that appears, type the following:

Xnest :1 -query (hostname/ip address)

So, for example:

Xnest :1 -query 192.168.0.37

i'm sure there are other ways of doing this that give you more options but this should definately get you started if you're having trouble getting it to work.

If you want to set up a shortcut to this command, go to 'Applications' in the X11 app and choose 'Customize...'. From here, you can add the command line to open any X11 application. A word of advice though, if your remote connection isn't working properly, open up an Xterm window and type the command direct into there rather than using an application shortcut. this is because when you run Xcommand from the Xterminal command line, the terminal command line window acts as a log so you can determine where your X11 is experiencing problems.

Tuesday, October 17, 2006

Installing a Media Wiki on Mac OS X Server (Panther)

I decided it would be cool to set up a Media Wiki (ala Wikipedia) for a project I'm involved in at work and set about installing it on my OS X Server. I tried installing version 1.8.2 only to find that the PHP it needs to run is version 5. Seeing as Panther is distributed with PHP4, I went on a long crusade to try and install the new PHP5 module into my OS X Server so I could run the new Wiki version.

My advice? Use an older version of the Wiki!

I went through hell and high water trying to install PHP5. An installer has been made to install PHP5 into standard OS X pain free. The URL is:

http://www.entropy.ch/software/macosx/php/

HOWEVER, I found that it didn't install happily on my Panther Server. I tried a whole host of other methods as well, spent a good 3 hours on it and then started fuming with defeat. I went back to the Media Wiki page and found that there is actually a relatively recent version of the Media Wiki that can be install pain free on a Panther OS X Server:

http://prdownloads.sourceforge.net/wikipedia/mediawiki-1.6.8.tar.gz?download

Media Wiki 1.6.8 will install happily provided you've got your Web Server & MySQL server running (and have created a database & user for the Wiki to install into).

Installing Apple X11 from Tiger install disks

Simple thing but I found installing this little puppy a pain in the behind for 5 minutes. On the disks that came with my Macbook, the installer is contained in the package contents on disk 1. I found the installer by typing 'X11' into spotlight and it came up as 'X11user' in the applications section.