Quantcast

Forums | MacLife

You are not logged in.

#26 2009-10-29 1:51 am

gd
Honorary Member
Registered: 2009-04-06
Posts: 761

Re: Linux on Mac?

Is X11 supposed to come standard with your Mac? I searched the iMac dad brought from the office, it was in disuse, 10.5.8 and it seems to have it installed already.

Offline

 

#27 2009-10-29 4:22 am

ScifiterX
婚約中
Moderator
From: NW Palm Bay, Florida
Registered: 2000-02-10
Posts: 18083
Website

Re: Linux on Mac?

X11 has been part of the default install since Leopard. It was an includable optional installation for Tiger and a downloadable option for Panther.

Offline

 

#28 2009-10-31 4:03 am

Bren
Member
From: San Francisco, CA, USA
Registered: 1999-06-18
Posts: 5425
Website

Re: Linux on Mac?

Bear with me guys, your answers are helping, but I'm still confused.

So... Was X11 or KDE therefore translating calls from Linux apps, thus enabling them to run in OS X, despite the fact that I hadn't actually installed Linux?

I'm not saying I definitely didn't install Linux, but now that I think about it, I don't recall having to do so at any point. You'd think I'd remember the name of a Linux distro, if one had been involved.

So...

This isn't too different from using Cider or WINE to run Windows apps or games in OS X, yes-no?

That is to say, it all comes down to the translation of calls?


"It's better to be a pirate than to join the Navy."

                                            --Steve Jobs

Offline

 

#29 2009-10-31 8:52 am

Funkey Monkey
Il Maestro spettacolare
From: On the podium.
Registered: 2003-01-27
Posts: 1467
Website

Re: Linux on Mac?

Bren wrote:

So... Was X11 or KDE therefore translating calls from Linux apps, thus enabling them to run in OS X, despite the fact that I hadn't actually installed Linux?

I'd say that's accurate.

Bren wrote:

This isn't too different from using Cider or WINE to run Windows apps or games in OS X, yes-no?  That is to say, it all comes down to the translation of calls?

Maybe?   I'm not so sure on this one.

Offline

 

#30 2009-10-31 7:45 pm

Bren
Member
From: San Francisco, CA, USA
Registered: 1999-06-18
Posts: 5425
Website

Re: Linux on Mac?

Thank you! I am finally beginning to understand.


"It's better to be a pirate than to join the Navy."

                                            --Steve Jobs

Offline

 

#31 2009-11-01 2:51 am

Alien
Forum Czar
Administrator
From: Republic of Amsterdam
Registered: 1999-07-05
Posts: 16939
Website

Re: Linux on Mac?

No, you're not.

There isn't any translation going on. Since Mac OS X is Unix, and Linux is Unix-like, a properly designed application can simply be compiled for either system and run natively on it.

.tsooJ


http://macstack.net/forums/images/smilies/lol.gif

Offline

 

#32 2009-11-01 4:54 am

bheibert
Member
Registered: 2009-11-01
Posts: 2

Re: Linux on Mac?

Warning about installing Linux on your Mac, I did it and now I am having trouble getting MacOS X back installed.
I'd use a virtual machine, that's what I intend to do from now on.

Offline

 

#33 2009-11-01 10:07 am

dv
Negusa Negest
Moderator
From: Minneapolis, MN
Registered: 1999-08-30
Posts: 18078

Re: Linux on Mac?

Alien wrote:

No, you're not.

There isn't any translation going on. Since Mac OS X is Unix, and Linux is Unix-like, a properly designed application can simply be compiled for either system and run natively on it.

.tsooJ

So why would anybody need X11?

Or does your definition of "properly designed" only include CLI apps?


"Now commences the process of cutting off the head, which generally takes from an hour to an hour and a half by an expert workman with a sharp blade." -Reuben Delano, Wanderings and Adventures

Offline

 

#34 2009-11-02 5:02 am

Alien
Forum Czar
Administrator
From: Republic of Amsterdam
Registered: 1999-07-05
Posts: 16939
Website

Re: Linux on Mac?

Huh? Where'd you get that idea?

.tsooJ


http://macstack.net/forums/images/smilies/lol.gif

Offline

 

#35 2009-11-02 9:07 am

dv
Negusa Negest
Moderator
From: Minneapolis, MN
Registered: 1999-08-30
Posts: 18078

Re: Linux on Mac?

Alien wrote:

Huh? Where'd you get that idea?

.tsooJ

...it was an attempt at a joke. blush

640k of RAM should be enough for anybody!

The question about X11 was serious, though.


"Now commences the process of cutting off the head, which generally takes from an hour to an hour and a half by an expert workman with a sharp blade." -Reuben Delano, Wanderings and Adventures

Offline

 

#36 2009-11-02 10:11 am

Alien
Forum Czar
Administrator
From: Republic of Amsterdam
Registered: 1999-07-05
Posts: 16939
Website

Re: Linux on Mac?

Some apps have dependencies. An X server is one example.

.tsooJ


http://macstack.net/forums/images/smilies/lol.gif

Offline

 

#37 2009-11-02 11:08 am

dv
Negusa Negest
Moderator
From: Minneapolis, MN
Registered: 1999-08-30
Posts: 18078

Re: Linux on Mac?

Alien wrote:

Some apps have dependencies. An X server is one example.

.tsooJ

Because... lemme see if I got this straight... a window server and/or a GUI are not part of the "UNIX" or "UNIX-Like" standard? confused


"Now commences the process of cutting off the head, which generally takes from an hour to an hour and a half by an expert workman with a sharp blade." -Reuben Delano, Wanderings and Adventures

Offline

 

#38 2009-11-03 2:37 am

Bren
Member
From: San Francisco, CA, USA
Registered: 1999-06-18
Posts: 5425
Website

Re: Linux on Mac?

Alien wrote:

No, you're not.

There isn't any translation going on. Since Mac OS X is Unix, and Linux is Unix-like, a properly designed application can simply be compiled for either system and run natively on it.

.tsooJ

OK, so this statement, along with the subsequent posts, has me thinking...

Let's see if I'm understanding you...

You're saying that in a perfect world, a Linux app could just be "compiled" to run in OS X without X11, KDE, of X-window? And if it does need those things to run, that means it has "dependencies" on them?

And now I'm going to really go out on a limb and reveal my newbyness by admitting the following:

I've sometimes seen OS X and Linux apps and games out there on the Web that I'd like to download and try, but the only problem is the developers haven't made a version available with the normal kind of installer or drag-and-drop installation one would expect to find.

Instead, they instruct you to download resources of some sort and then compile them. I know I should know how to do this, but I don't. Could somebody direct me to a fun 'n' easy tutorial on how to compile stuff?

And as long as I'm asking, what is meant by "compiling my kernel?" I used to be acquainted with this dude who was a hardcore tweaker (the drug kind) and a hardcore tweaker (the Linux kind). Whenever he'd disappear for days on end or be mysteriously unavailable, I would joke with our mutual friends that he was probably compiling his kernel.

Which was funny, 'cause he was probably masturbating, and "compiling his kernel" kinda sounds like a euphemism.

The only thing is, I had no idea what I was really saying. I just knew that whatever it was, he did seem to do an awful lot of it.


"It's better to be a pirate than to join the Navy."

                                            --Steve Jobs

Offline

 

#39 2009-11-03 3:35 am

Alien
Forum Czar
Administrator
From: Republic of Amsterdam
Registered: 1999-07-05
Posts: 16939
Website

Re: Linux on Mac?

dv wrote:

Alien wrote:

Some apps have dependencies. An X server is one example.

Because... lemme see if I got this straight... a window server and/or a GUI are not part of the "UNIX" or "UNIX-Like" standard? confused

To be honest, I don't know. They may be a requirement for some sort of certification. But the aren't part of the OS. That's where all these "distro's" come from: they contain an OS plus a smurfload of stuff to turn it into a workable environment.

NetBSD, for example, can be run with as little as just the base.tgz tarball installed. That means you get a bare-bones OS with no fluff whatsoever. It'll work for most basic tasks, but many of the more usable user apps won't work on it; they need stuff that is contained in other OS packages. Like x.tgz and comp.tgz, etc. These would be the NetBSD equivalents of X11 and XTools.

.tsooJ


http://macstack.net/forums/images/smilies/lol.gif

Offline

 

#40 2009-11-03 3:47 am

Alien
Forum Czar
Administrator
From: Republic of Amsterdam
Registered: 1999-07-05
Posts: 16939
Website

Re: Linux on Mac?

Bren wrote:

Alien wrote:

No, you're not.

There isn't any translation going on. Since Mac OS X is Unix, and Linux is Unix-like, a properly designed application can simply be compiled for either system and run natively on it.

OK, so this statement, along with the subsequent posts, has me thinking...

Let's see if I'm understanding you...

You're saying that in a perfect world, a Linux app could just be "compiled" to run in OS X without X11, KDE, of X-window? And if it does need those things to run, that means it has "dependencies" on them?

Pretty much, yeah.

And now I'm going to really go out on a limb and reveal my newbyness by admitting the following:

I've sometimes seen OS X and Linux apps and games out there on the Web that I'd like to download and try, but the only problem is the developers haven't made a version available with the normal kind of installer or drag-and-drop installation one would expect to find.

... in the Mac world.

Instead, they instruct you to download resources of some sort and then compile them. I know I should know how to do this, but I don't. Could somebody direct me to a fun 'n' easy tutorial on how to compile stuff?

Well, in the aforementioned perfect world, the creator has included a "make" file, which is a script that'll tell your system what to do to compile the application for your system. So you'd unpack it into a directory, and then simply instruct your computer to

Code:

make this_app_i_just_downloaded

which will build the app for your system. Of course, in the real world, things rarely work as smoothly. Especially if you're compiling the app for another system than the creator's favourite distro or even, *gasp* a non-Linux system!! (Linux users are eerily like Windows users, in that respect.)

And as long as I'm asking, what is meant by "compiling my kernel?" I used to be acquainted with this dude who was a hardcore tweaker (the drug kind) and a hardcore tweaker (the Linux kind). Whenever he'd disappear for days on end or be mysteriously unavailable, I would joke with our mutual friends that he was probably compiling his kernel.

Which was funny, 'cause he was probably masturbating, and "compiling his kernel" kinda sounds like a euphemism.

The only thing is, I had no idea what I was really saying. I just knew that whatever it was, he did seem to do an awful lot of it.

Compiling your kernel is rebuilding the core (kernel) of your OS to better taylor it to your specific computer configuration. Especially in Linux, everything is compiled into the kernel, from network interface support to video support. That means that, in order to work on as many different systems as possible, a generic Linux kernel has drivers for just about every video card and Ethernet interface known to man built into it. That's a lot of waste. It takes up disk space, uses memory when running and may contain bugs that ruin your day. So what you do is take the kernel source, switch off support for everything you don't have on your system, and compile it. Presto: taylor made kernel that'll only work on your system, but is highly efficient. On top of that, you can apply additional tweaks, like optimizing compiler output to specifically target your exact CPU model, etc.

.tsooJ


http://macstack.net/forums/images/smilies/lol.gif

Offline

 

Board footer

Powered by PunBB 1.2.6
© Copyright 2002–2005 Rickard Andersson