The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   UNIX - General (http://hintsforums.macworld.com/forumdisplay.php?f=16)
-   -   Newbie Needs Help In XDarwin! (http://hintsforums.macworld.com/showthread.php?t=6826)

mcolman 11-06-2002 03:21 PM

ok. I'm reinstalling os X now because of an unrelated issue, but I'll reread the fink installation instructions next time.

tsugaru 11-06-2002 10:41 PM

Dude, how's my FINK??!
 
Hey:

I did the fink thing from scratch after I patched and updated the Jaguar Dev Tools. I ran the fink installer from ./bootstrap.sh. It downloaded the files from all the mirrors successfully.

Ok it installed correctly. I edited my .cshrc and all that. Ran fink update and fink -update all. I guess I have fink installed properly (woo hoo!!!)

I did some fooling around with fink and went 'fink install gtetrinet'. Where do I go now to play it? Is fink basically a package listing and if you want to install anything (say GIMP), you just go 'fink install gimp'? When I install a package, am I to do it from the Terminal (Aqua) or XDarwin (xTerm)?

How do I run gtetrinet from XDarwin? How do I boot into XDarwin straight from power on instead of going through Aqua (hate Quartz on my machine).

sao 11-07-2002 01:04 AM

tsugaru,

Congratulations!

Well done. It was not so difficult, eh?

Quote:

tsugaru wrote:
Ran fink update and fink -update all
Did you just made at the end 'fink update' or 'fink selfupdate-cvs?

Unfortunately, some days ago they posted the following at gtetrinet web page:

<<October 27, 2002
GTetrinet 0.4.4 has been released, and you should upgrade RIGHT AWAY. Steve Kemp and James Antill discovered 'several grave security problems' in previous versions of GTetrinet, which are remotely exploitable if you connected to a malicious tetrinet server. The new version hopefully fixes all of these buffer overflows, so it's the only recommended version right now.>>

http://gtetrinet.sourceforge.net/

I wrote to Ben Hines, the Fink 'gtetrinet' package maintainer, and he already wrote back to say he will update it. (Thanks, Ben!)


About how to play gtetrinet, check the following page:

http://gtetrinet.sourceforge.net/tetrinet.txt

Code:

It has info about:
Concept          - Game explanation
Inventory        - Explanation of inventory feature (READ!!)
Win list        - How the game keeps score
Partyline        - Explanation and features
Moderators      - What moderators are for
Server          - What is and how to set up a SERVER
Client          - What a client is
Teams            - Explanation of teams
Modifying        - How to modify TetriNET
Acknowledgements - People who helped alot in the making of TetriNET
VERSIONS        - Whats been changed throughout the versions


Cheers...

PS: 'gtetrinet' is already updated. The Fink package maintainers are fast!

tsugaru 11-07-2002 01:12 AM

Yo Sao
 
I ran fink selfupdate-cvs

I asked merv this. Maybe you can clarify. Can I run Xdarwin straight from the console or apple-s at bootup (single user) or do i hav eto go into aqua and do it?

You got icq or aim or yahoo? i hate mailing in these forums.

sao 11-07-2002 01:32 AM

tsugaru,

I haven't logged in through >console in a while. But the following two different options have always worked for me:

When you start your Mac (or when you log-out), at the login window, type (instead of the user name):

>console

Then,

1) Start an X11 session through the console with:

the "startx" command.

Then, when you quit and get the blank background and the spinning wheel, type "logout" and a return (even though there looks like there's nothing to type in). It appears that you are still logged into the console, it is just not showing it. I believe "exit" works, also. This'll send you back to the login window.

2) Instead of starting X11 with "startx", start it with:

"exec startx"

Then, when you quit X11, it should go back to the login window.


Cheers...

tsugaru 11-07-2002 01:37 AM

StartX?
 
startx... hmmm...

What do you need installed to run that? Or do I have everything I need installed already?

sao 11-07-2002 01:57 AM

Quote:

tsugaru wrote:
Is fink basically a package listing and if you want to install anything (say GIMP), you just go 'fink install gimp'?
To install the software Fink uses package managment tools ported over from Linux:

apt-get, dselect, dpkg

and it's own tool named ...'fink'

Apt-get and dselect only know about binary packages. When you install a binary package what you get is a ready to run program, saving you the time for compiling. Soon, when they release Fink 0.5.0, some binary packages will be available again, for installing in 10.2.

But, right now, there is no precompiled binary packages available for 10.2.

So, at the moment you're installing 'only' from source with the 'fink' tool. Like you said, by running 'fink install packagename'.

You can run:

'sudo fink list' to get a list of packages you can install.

Run 'fink list --help' to get the options listed. Try the different options.

Then, choose the package you want to install and run, for example:

'fink install gimp'

And Fink will do the rest.


Cheers...

PS: I prefer to post at the forums, not to use ICQ, so other people can read the posts too.

tsugaru 11-07-2002 02:04 AM

Hey Sao:

Yeah that's true about the ICQ thing. Dagnabbit I've been compiling gtetrinet for over an hour now. Geez, and that's a SMALL program. Wonder how long GIMP will take...

Anyways, once I get gtetrinet compiled, how do I go about running it? Just go to the CLI and go 'gtetrinet'? :confused:

sao 11-07-2002 02:11 AM

tsugaru,

You already have everything you need to type startx at the login window.

But, I would install before some window managers, as I don't like the default very much.

The classic ones to install would be 'windowmaker' or 'blackbox', or 'icewm'. It's up to you...

Also, after installing the window managers, you need to write a ~/.xinitrc file.

The .xinitrc file is a shell script that runs when you start the X11 system (or when it automatically starts for you). This file contains the commands to define which applications are started when your X11 system boots up.

It contain for example, the commands to start the window manager, some xterms or a desktop environment (like GNOME or KDE), along with various command line options to control their behavior or appearance, such as setting sizes, background colors, fonts, etc.

Fast way is to write a .xinitrc file with the editor pico in your 'home' directory. And make it very simple at the beginning, like:

Code:

source /sw/bin/init.sh

exec wmaker

This will be enough to start 'windowmaker' window manager in X11.


Cheers...

PS: After you did this, then you can run 'startx' from console.

sao 11-07-2002 02:34 AM

Quote:

tsugaru wrote:
Dagnabbit I've been compiling gtetrinet for over an hour now
Strange, it should compile only in a few minutes. Probably you need more ram?

If you are running X11, then type in xterm:

'gtetrinet &'

and it will open the application.

Also, you probably know that there are basically two ways to start XFree86 under Mac OS X:

1-XDarwin.app
Double-clicking the XDarwin.app in your Applications folder.

Then, a dialog will appear where you can choose between full screen and rootless mode. In XDarwin Preferences, you can set XDarwin to always use the mode of your choice and disable the startup dialog.

2-Terminal.app
From the terminal.app you can type either:

startx -- -fullscreen
or
startx -- -rootless

To enable entering XWindows commands in the Terminal.app "when XWindows is running" write at the beginning of your ~/.cshrc file:

setenv DISPLAY :0.0

So, if you type 'gimp' in Terminal.app the corresponding X11 binary will open in XWindows.

You could set the XDarwin.app to start up when you login in the Login Panel of the System Preferences and then add to your ~/.cshrc file:

if (! $?DISPLAY) then
setenv DISPLAY :0.0
endif

This will set DISPLAY automatically in every shell. It doesn't override the current value when DISPLAY is already set, though. This way you can still run X11 applications remotely or through ssh with X11 tunneling.

Cheers...

PS: I think for the moment, you should digest all this, and we continue later.

sao 11-07-2002 09:46 AM

tsugaru,

I remember that you have installed XFree86 (from XDarwin.org).

I would recommend you delete it and install it again with Fink.

But, if you want to keep it, it's very important that you install with Fink the package 'system-xfree86' (It's just a placeholder package) in order that Fink recognize your XFree86 installation.

Let me know.


Cheers...

tsugaru 11-07-2002 03:46 PM

Sao:

You're telling me I gotta delete fink?

I don't know why gtetrinet took so long to install. I think some other stuff got installed too cuz it installed like X11. It took over 4 hours. I left the machine on compiling.

In order to delete fink, do I just delete the sw directory? Or do I gotta do more stuff?

BraindeadMac 11-07-2002 04:29 PM

Quote:

Originally posted by tsugaru
Sao:

You're telling me I gotta delete fink?

I don't know why gtetrinet took so long to install. I think some other stuff got installed too cuz it installed like X11. It took over 4 hours. I left the machine on compiling.

In order to delete fink, do I just delete the sw directory? Or do I gotta do more stuff?
tsugaru

Whoa...I think sao was saying to delete X11, not all of fink. To delete X11 delete /usr/X11R6 and /etc/X11.

Did gtetrinet install anything additional (like gnome)---like the files it depends on, e.g., gnome-libs and orbit-shlibs? That would account for the massive build time....Also, fink should have asked you to resolve the xfree86 dependency by selecting system-xfree86 or xfree86-base or xfree86-rootless. How did you answer that question from fink?

The current patch level of X11 under fink and from the XonX source (4.2.1.1) is pretty darned similar from what I've been able to find. X11 builds in about 30 minutes on a Dual 1.25, but takes several hours on 500ish MHz machines, and that's with plenty of RAM.

tsugaru 11-07-2002 05:41 PM

Sao and BrainDeadMac...
 
What is wrong? I guess gtetrinet isn't the only thing compiling.

It takes THAT long on a dual 1.25? Geez. I have an iMac 233 w/ 320MB of RAM. I bet this'll take near a week.

When I go to install gtetrinet, I get this...

Code:

[glorfindel:~] avu% fink install gtetrinet
sudo /sw/bin/fink  install gtetrinet
Information about 1728 packages read in 3 seconds.


fink needs help picking an alternative to satisfy a virtual dependency. The
candidates:

(1)  xfree86-base: XFree86 libraries, utilities, clients and data
(2)  system-xfree86: Placeholder package for manually installed XFree86
(3)  xfree86-base-threaded: XFree86 libraries, utilities, clients and data

Pick one: [1] 2

fink needs help picking an alternative to satisfy a virtual dependency. The
candidates:

(1)  giflib: GIF image format handling library, LZW-enabled version
(2)  libungif: GIF image format handling library, LZW-free version

Pick one: [1] 1

fink needs help picking an alternative to satisfy a virtual dependency. The
candidates:

(1)  giflib-bin: GIF image format handling library, LZW-enabled version
(2)  libungif-bin: GIF image format handling library, LZW-free version

Pick one: [1] 1

fink needs help picking an alternative to satisfy a virtual dependency. The
candidates:

(1)  giflib-shlibs: GIF image format handling library, LZW-enabled version
(2)  libungif-shlibs: GIF image format handling library, LZW-free version

Pick one: [1] 1
The following package will be installed or updated:
 gtetrinet
The following 46 additional packages will be installed:
 audiofile audiofile-bin audiofile-shlibs autoconf25 automake db3 db3-shlibs
 dlcompat docbook-dsssl-nwalsh docbook-dtd esound esound-bin esound-common
 esound-shlibs giflib giflib-bin giflib-shlibs glib glib-shlibs
 gnome-libs-dev gnome-libs-shlibs gtk+ gtk+-data gtk+-shlibs gtk-doc imlib
 imlib-shlibs libjpeg libjpeg-bin libjpeg-shlibs libpng libpng-shlibs libtiff
 libtiff-bin libtiff-shlibs m4 netpbm netpbm-bin netpbm-shlibs openjade orbit
 orbit-bin orbit-shlibs passwd sgml-entities-iso8879 system-xfree86
Do you want to continue? [Y/n]

What am I supposed to do? I deleted fink by going sudo rm -rf /sw like it said on the fink FAQ page. How can I make Darwin look better than that green kvm thing? How do I install a window manager? Why do I need GNOME anyways?

I'm getting very peeved at this... eugh...

BraindeadMac 11-07-2002 07:11 PM

Re: Sao and BrainDeadMac...
 
Quote:

Originally posted by tsugaru
What is wrong? I guess gtetrinet isn't the only thing compiling.

It takes THAT long on a dual 1.25? Geez. I have an iMac 233 w/ 320MB of RAM. I bet this'll take near a week.

When I go to install gtetrinet, I get this...

[all this stuff snipped]
Pick one: [1] 1
The following package will be installed or updated:
gtetrinet
The following 46 additional packages will be installed:
audiofile audiofile-bin audiofile-shlibs autoconf25 automake db3 db3-shlibs
dlcompat docbook-dsssl-nwalsh docbook-dtd esound esound-bin esound-common
esound-shlibs giflib giflib-bin giflib-shlibs glib glib-shlibs
gnome-libs-dev gnome-libs-shlibs gtk+ gtk+-data gtk+-shlibs gtk-doc imlib
imlib-shlibs libjpeg libjpeg-bin libjpeg-shlibs libpng libpng-shlibs libtiff
libtiff-bin libtiff-shlibs m4 netpbm netpbm-bin netpbm-shlibs openjade orbit
orbit-bin orbit-shlibs passwd sgml-entities-iso8879 system-xfree86
Do you want to continue? [Y/n] [/CODE]

What am I supposed to do? I deleted fink by going sudo rm -rf /sw like it said on the fink FAQ page. How can I make Darwin look better than that green kvm thing? How do I install a window manager? Why do I need GNOME anyways?

I'm getting very peeved at this... eugh...
you deleted fink? D'oh! The reason it was taking gtetrinet so long to compile was the 46 additional packages above. That looks like an overnight or 24 hour compile job on a 233 MHz imac....

if you have a broadband connection I can set it up so you can download a disk image with /sw on it....

-braindead

tsugaru 11-07-2002 08:02 PM

Braindead
 
Hey:

I reinstalled fink by going >console, then startx. Took an hour to reinstall fink.

So now that I reinstalled fink, I tried to reinstall the gtetrinet program. Yet it still asks for the 46 packages. I thought that they were pre-installed with Jaguar and/or fink.

Anyways, I am on cable. I guess it may seem that I may want to get the .dmg or .toast file of the /sw folder. What do you have compiled anyways in there?

Also, a side question. When I go >console, startx, how to I get back into Aqua without restarting. I went 'exit' from that x interface, and then that little spinny thing that is under the Apple logo just spins around endlessly til I give my Mac the 3 finger salute.

I'll be on ICQ (10258525) later on today. I can set up my FTP or Carracho server if you do want to upload it to me. I guess even if it was a big file, it would save a lot of time downloading rather than just compiling.

Thanks to Sao and Braindead for all the help here.

sao 11-07-2002 08:06 PM

tsugaru,

Wow...what a mess!

First, your installation of gtetrinet was fine. It was just installing what was necessary for your set-up (40 packages). So, the only thing you had to do was to wait.

Then....I thought I wrote somewhere to ask before you do.

Well, you asked, but you didn't wait for my answer.

I can't believe you deleted...Fink.

I was talking about your XFree86 (XDarwin) installation.

So, what's your situation now, what did you do exactly?


Cheers...

sao 11-07-2002 08:18 PM

Quote:

tsugaru wrote:
I reinstalled fink by going >console, then startx. Took an hour to reinstall fink.
What the hell are you talking about? You found a new way of reinstalling Fink? What you are doing is just starting X11 in this way.

If you really did 'sudo rm -rf /sw'. Your Fink installation is no more existing. You will have to install it again in the same way you did it initially.

Quote:

tsugaru wrote:
So now that I reinstalled fink, I tried to reinstall the gtetrinet program. Yet it still asks for the 46 packages. I thought that they were pre-installed with Jaguar and/or fink.
Pre-installed with Jaguar...? or fink? I thought you said you deleted Fink...

I think tsugaru, you need to study a bit more about all these new tools, before you can play with them.

Please stop, I want to get out from the bus now.


Cheers...

BraindeadMac 11-07-2002 08:21 PM

Re: Braindead
 
Quote:

Originally posted by tsugaru
Hey:

I reinstalled fink by going >console, then startx. Took an hour to reinstall fink.

So now that I reinstalled fink, I tried to reinstall the gtetrinet program. Yet it still asks for the 46 packages. I thought that they were pre-installed with Jaguar and/or fink.

Anyways, I am on cable. I guess it may seem that I may want to get the .dmg or .toast file of the /sw folder. What do you have compiled anyways in there?

Also, a side question. When I go >console, startx, how to I get back into Aqua without restarting. I went 'exit' from that x interface, and then that little spinny thing that is under the Apple logo just spins around endlessly til I give my Mac the 3 finger salute.

I'll be on ICQ (10258525) later on today. I can set up my FTP or Carracho server if you do want to upload it to me. I guess even if it was a big file, it would save a lot of time downloading rather than just compiling.

Thanks to Sao and Braindead for all the help here.
Well I just attempted to make a disk image for you with disk copy and it choked....I'll see what Toast can do with it. FTP put to you would be good, or I can set up ftp as well. I'll try to icq you in the next hour or two.

i have kde-bundle, mysql, xfree86, ncbi, emboss, some others. I will have to massage some of the directories to get rid of some personalized stuff and some client stuff.....

tsugaru 11-08-2002 12:02 AM

Sao
 
I was thinking of reinstalling Jaguar from scratch to get it to work properly.

Yeah I sudo rm -rf /sw therefore removing fink. I reinstalled it from Xdarwin in xterm. I still gotta compile all that stuff that it needs I guess. Eugh... Maybe on my Mac I'll need a 3 day holiday (this weekend to do it). Geez.

Braindead, I was on ICQ then you started saying hello then you logged off. I was on at the time, albeit my computer was being quite slow. Therefore you may not have gotten my message (Damn YOU FIRE!!!!!!!) Thanks for your help. I dunno what would be wrong with Disk Copy or Toast Titanium in that it wouldn't be able to make a disc image.

I need that bus to run me over...:(


All times are GMT -5. The time now is 06:13 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.