Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Confused about Unix and OS X intereaction

Confused about Unix and OS X intereaction
Thread Tools
Junior Member
Join Date: Jan 2003
Location: Dartmouth College, NH
Status: Offline
Reply With Quote
Jan 29, 2003, 08:21 AM
 
Hi guys!

I'm about to switch to a mac (waiting for my albook 12" to ship...) and had a couple of questions about how Unix and OS X interact. Obviously, the terminal window allows me to type text commands, like any Unix terminal. Then there is:
-X11, which lets me run graphical Unix apps
-fink, whose purpose is to port Unix apps to OS X
-KDE, GNOME which are desktop environments

From the existence of Fink I gather that I can't run any Unix app natively on Os X, without porting. Also, I understand that the os x terminal is somewhat limited, doesn't include all the commands.
So here are my questions:
-are my descriptions of x11/fink/kde decent? Can you give a better explanation of their roles?
-say I want to run a graphical unix app on Os x, xemacs for example, how would I do it? what software do I need? etc.
-why would we need kde or gnome? Doesnt't x11 already provide the windowing and os x the desktop? The apple site seems to show the gimp running directly in x11, in an aqua window. Is there any reason to have another desktop environment on the mac?

Hopefully you can clarify all this,
Thanks,

KStor
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Jan 29, 2003, 08:33 AM
 
Originally posted by kstor:

-X11, which lets me run graphical Unix apps
-fink, whose purpose is to port Unix apps to OS X
-KDE, GNOME which are desktop environments
X11 is a Windowing system, like Aqua. Many UNIX apps use X11 to draw their graphics on screen. Having X11 on OSX means that these apps will compile and run on OSX as well.

Fink is a project that ports apps to OSX. The software just compiles and/or downloads precompiled versions of the apps. You don't have to do the porting of these apps -- the work has already been done for you.

KDE and Gnome are desktop environments on UNIX systems. They are also windowing libraries and widgets that make writing graphical clients on UNIX easier. KDE/Gnome sit on top of X11, so having X11 makes running KDE/Gnome apps possible.


Originally posted by kstor:

From the existence of Fink I gather that I can't run any Unix app natively on Os X, without porting. Also, I understand that the os x terminal is somewhat limited, doesn't include all the commands.
So here are my questions:
-are my descriptions of x11/fink/kde decent? Can you give a better explanation of their roles?
-say I want to run a graphical unix app on Os x, xemacs for example, how would I do it? what software do I need? etc.
-why would we need kde or gnome? Doesnt't x11 already provide the windowing and os x the desktop? The apple site seems to show the gimp running directly in x11, in an aqua window. Is there any reason to have another desktop environment on the mac?
1) You only have to port an app once. When it is compiled it is running natively. If someone has done the porting before you, all you have to do is compile it. All prominent open-source apps already have MacOSX as a build target, so the porting effort has been done already. All you have to do is "./configure; make; sudo make install"

2) The OSX Terminal is not at all limited. It's a full UNIX environment, and it has all the standard POSIX commands. If you install the developer tools and fink, you have all the GNU and other obscure commands as well.

3) To run XEmacs, you would double-click X11.app, then either in a terminal, an xterm, or in the X11.app menu run xemacs.

4) KDE and Gnome sit on top of X11. They are higher-level APIs that let you as a programmer not have to do "draw a square here filled with red, when the square is clicked change the look like this, and do that", instead doing "create a window, put a text box here, put a button there, when the button is clicked do this". As an end-user (non-programmer) all you need to know is that you need the KDE libraries to run KDE apps, and you need the Gnome libraries to run Gnome apps (like Gimp).
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
kstor  (op)
Junior Member
Join Date: Jan 2003
Location: Dartmouth College, NH
Status: Offline
Reply With Quote
Jan 29, 2003, 02:44 PM
 
Thanks, that makes it a lot clearer. So, if I've got this right, I can install the KDE and Gnome libraries without the KDE and Gnome desktop environments and all the software and stuff that comes with them. Then unix apps can then use KDE and Gnome APIs, but they will run in X11 windows. Is that about right?
     
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
Reply With Quote
Jan 30, 2003, 03:58 AM
 
Originally posted by kstor:
Thanks, that makes it a lot clearer. So, if I've got this right, I can install the KDE and Gnome libraries without the KDE and Gnome desktop environments and all the software and stuff that comes with them. Then unix apps can then use KDE and Gnome APIs, but they will run in X11 windows. Is that about right?
Yeah, that sounds right.

If you use fink to install X11 apps that require special APIs to work fink will even tell you that. It gives you a nice dependancy list that shows you what additional stuff is needed.
     
kstor  (op)
Junior Member
Join Date: Jan 2003
Location: Dartmouth College, NH
Status: Offline
Reply With Quote
Jan 30, 2003, 08:16 AM
 
Thanks! I'll try it when I get my mac...
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:19 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2