The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   UNIX - General (http://hintsforums.macworld.com/forumdisplay.php?f=16)
-   -   installing gnome (http://hintsforums.macworld.com/showthread.php?t=2954)

bahamutX 05-23-2002 02:01 PM

yes i did install wmaker.inst, that i'm sure of,

but how do i see the .xinitrc file ?

sao 05-23-2002 02:17 PM

Ok, the open the terminal and type:

pico .xinitrc

when the file opens copy what you see and let me know what it says.

to close the file, just type Control x.


Cheers...


PS: I know you did 'fink install windowmaker', what I want to know is, if you also run after 'wmaker.inst'

sao 05-23-2002 02:19 PM

tar,


Run this command and let me know what it says :


ls -al /usr/bin/gcc



Cheers...

bahamutX 05-23-2002 02:22 PM

I posted my .xinitrc a few post ago, but here's the same one..


UW PICO(tm) 2.3 File: .xinitrc Modified

#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi

# start some nice programs

twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login
WINDOW_MANAGER=sawfish
exec gnome-session

sao 05-23-2002 02:25 PM

Bahamutz,


Last time, go to the terminal and type:

wmaker.inst


Cheers...

bahamutX 05-23-2002 02:33 PM

I've typed it and I replaced all the files when they ask me to as i have installed it...

these were the last few lines::::

Sorry, font coding or locale en_US not recognized.
Type wsetfont with no arguments for list of supported font codings...
Found Window Maker to already be your default window manager.
Installation Finished
There are menus in 2 different file formats. The plain text format and
the property list format. The plain text format is more flexible, but
the menu in the property list format can be edited graphically. The
menu that will be used by default is the property list one. Read
/private/var/root/GNUstep/Library/WindowMaker/README
for information on how to change it.
[bahamut:~] root#

::::

sao 05-23-2002 02:34 PM

tar,

look at the following do you have the same?:

[chris@dale:~$]> ls -al /usr/bin/gcc
lrwxr-xr-x 1 root wheel 4 Apr 28 20:44 /usr/bin/gcc -> gcc2

If that says gcc is a link to gcc2, that's okey.

If it says gcc3, just do "gcc_select 2" and that will set gcc2 up.


Cheers...

sao 05-23-2002 02:52 PM

BahamutX,

Ohhh, we get from bad to worse.

When the installer asked you "if you want to edit it by hand, press control C now", you only had to just press return and it will have done it automatically.

Ok, let's clean up.

Open terminal and just type :

ls -Ahl

let me know what it says.


Cheers...

tar 05-23-2002 03:08 PM

sao -

Indeed, it's pointing to gcc2. I have gcc3 in /usr/bin as well, but gcc is linked to gcc2. I noticed when I was installing things that it mentioned gcc v2.95, I believe. gcc3 is still a beta, is that what you were worried about?

Any other ideas as to why XDarwin's behaving so strangely?


tar

sao 05-23-2002 03:44 PM

No, there are several things that bother me:

1-I don't know the implications of changing the (folder) of XDarwin.app with the application you had in the trash.

I already knew of instances that this happened before, and the solutions had been different. For example, from the fink lists:


Solution that worked fine by Jeff Whitaker:

-----------------------------------------------------------
Do you have the April Dev Tools installed? If so, you can install the
binary xfree86-rootless package to workaround this problem.

-Jeff

On Sun, 12 May 2002, Duncan Smith wrote:

> I've pasted what happens below. I'll also point out that XDarwin.app is
> recognized as a folder, not an application
, so I cannot just open it.

>
> (from fink list)
> > i xfree86-base 4.2.0-5 XFree86 libraries, utilities, clients
> > and d...
> > i xfree86-rootles 4.2.0-2 MacOS X/Darwin XFree86 display server.
>
> (what happens)
> > [localhost:~] cyborg% startx
> >
> >
> > XFree86 Version 4.2.0 / X Window System
> > (protocol Version 11, revision 0, vendor release 6600)
> > Release Date: 18 January 2002
> > If the server is older than 6-12 months, or if your hardware is
> > newer than the above date, look for a newer version before
> > reporting problems. (See http://www.XFree86.Org/FAQ)
> > Operating System: Darwin
> > Using keymapping provided in /System/Library/Keyboards/USA.keymapping.
> > _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
> > Display mode: IOKit
> > Failed to connect to the HID System as the window server!
> >
> > Fatal server error:
> > Quit the Mac OS X window server or use the -quartz option.
> >
> > OsVendorFatalError
> > AbortDDX
> > Quitting XDarwin...
> > giving up.
> > xinit: Connection refused (errno 61): unable to connect to X server
> > xinit: No such process (errno 3): Server error.
> > [localhost:~] cyborg% startx -- -quartz
> >
> > 2002-05-12 09:12:45.491 XDarwin[21976] No Info.plist file in
> > application bundle or no NSPrincipalClass in the Info.plist file,
> > exiting
> > giving up.
> > xinit: Connection refused (errno 61): unable to connect to X server
> > xinit: No such process (errno 3): Server error.
------------------------------------------------------------

Another one:

-----------------------------------------------------------
the machine is a brand new G4 PB with those "April" Dev Tools installed,
here are the posts i sent, again reply straight to me please until i can
straighten out whatever problem is happening:
--------
fink install xfree86-rootless resulted in a folder in my my OS X
Applications folder called XDarwin.


in that folder are: XDarwin/Contents/MacOS/XDarwin

the last is file, a document, not an app.

what happened?

what should i do?

Solutions offered:

1-(This should work I suppose -- but I'm not sure). If I'm correct, you need
to get the .app folder recognized as an application, and my guess it's just
a privileges problem: chown -R username:staff the .app folder, and then
chmod -R 777 the whole thing. If that doesn't work, I vaguely remember more
things on how to get an .app bundle recognized, but I'm certain others on
this list know it better.

2-I read something on the Apple Discussion Boards about the problem where an app turns into a folder, and their fix (of course provided the folder has the .app extension) was to delete the three files in your
~/Library/Preferences that start in 'LS' (i.e. rm
~/Library/Preferences/LS*).
Then restart, which will recreate these files which apparently manage extension associations. Just another idea.
---------------------------------------------------------------

So, Im not sure you have a sound installation. Although your errors messages are not grave at all.
Have you installed any other window manager ?


Cheers...

sao 05-23-2002 03:58 PM

tar,

At this stage, I would try:

fink rebuild xfree86-rootless


and if that doesn't work I would probably try to remove the packages and do as osxpez suggested before and use apt-get:


'sudo apt-get install xfree86-base'

and

'sudo apt-get install-xfree86-rootless'


And move again from there.


Cheers...

bahamutX 05-23-2002 05:54 PM

sao,
oh my.... looks like i'm screwed up... lol
::::::
[bahamut:~] root# ls -Ahl
ls: illegal option -- h
usage: ls [-1ACFLRSTWacdfgiklnoqrstux] [file ...]
::::::

what's this supposed to mean?>

sao 05-24-2002 12:46 AM

BahamutX,


Why are you root ?

Please just do :

ls

Tell me what you get.


Cheers...

bahamutX 05-24-2002 11:44 AM

yep, i see the file:


.CFUserTextEncoding .cshrc .nsmbrc Documents
.DS_Store .cvspass .tcsh_history GNUstep
.FBCIndex .forward .xinitrc Library
.FBCLockFolder .mozilla Desktop Music

tar 05-24-2002 11:51 AM

sao -

I'll rebuild xfree86-rootless and let you know how it goes.

I noticed that when the XDarwin application turned into a folder that there were also some files missing from the folder that were there in the regular application when I examined the package contents. These files:

In the folder XDarwin/Contents:
Info-org.plist
PkgInfo
pbdevelopment.plist
Info.plist

and then the Resources folder was also missing. All that was present in the weird folder-XDarwin was the file XDarwin/Contents/MacOS/XDarwin. I also did a chmod so that it looked like this:

drwxrwxr-x 4 root admin

but it didn't help. I think it was the missing files that really caused the problem, but I don't know why they would be missing. I'm rebuilding now, so we'll see what happens. I might just have to start this whole process over. As I watch it rebuild, it is definitely using GCC 2.95.



tar

sao 05-24-2002 01:13 PM

BahamutX,


At this point I would stop the pain, delete and reinstall everything.

To delete fink, run:

sudo rm -rf /sw

And to get rid of XFree86 and the XDarwin.app :

sudo rm -rf /usr/X11R6 /etc/X11 /Applications/XDarwin.app


Then, I would get the 'XFree86 Install Guide' from MacOS X Hints :

http://homepage.mac.com/rgriff/xdarwin.html

and follow it to install again with what you already know.

Good luck.


Cheers...

tar 05-24-2002 03:55 PM

sao -

okay, this is getting kind of ridiculous. i deleted xfree86 completely, and then i deleted and reinstalled fink. after appropriately updating all the indexes and whatnot, i reinstalled xfree86-base and -rootless using apt-get instead of fink. i then reinstalled windowmaker again. i checked my ~/.xinitrc, and it is still the standard windomaker .xinitrc.

just to be safe, i logged out of the terminal, and logged back in. then, when i type startx, i get this:

[tar@chile tar]$ startx -rootless


XFree86 Version 4.2.0 / X Window System
(protocol Version 11, revision 0, vendor release 6600)
Release Date: 18 January 2002
If the server is older than 6-12 months, or if your hardware is
newer than the above date, look for a newer version before
reporting problems. (See http://www.XFree86.Org/FAQ)
Operating System: Darwin
Using keymapping provided in /System/Library/Keyboards/USA.keymapping.
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
Display mode: IOKit
Failed to connect to the HID System as the window server!

Fatal server error:
Quit the Mac OS X window server or use the -quartz option.

OsVendorFatalError
AbortDDX
Quitting XDarwin...
giving up.
xinit: Connection refused (errno 61): unable to connect to X server
xinit: No such process (errno 3): Server error.



and when i type XDarwinStartup -rootless, i get this:

[tar@chile tar]$ XDarwinStartup -rootless
2002-05-24 14:44:55.132 XDarwin[28215]
XDarwin 1.1
Running rootless inside Mac OS X window server.

XFree86 Version 4.2.0 / X Window System
(protocol Version 11, revision 0, vendor release 6600)
Release Date: 18 January 2002
If the server is older than 6-12 months, or if your hardware is
newer than the above date, look for a newer version before
reporting problems. (See http://www.XFree86.Org/FAQ)
Operating System: Darwin
Using keymapping provided in /System/Library/Keyboards/USA.keymapping.
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
Display mode: Rootless Quartz
Screen 0 added: 1056x771 @ (0,21)
Screen 0 placed at X11 coordinate (0,0).


at this point, the program launches, but with the same problem, where it shows no terminals or windows, or any other indication that a window manager has been executed.


i've looked over the install guide you pointed BahamutX to, but it didn't seem to offer any additional insight. should i try to uninstall the April Developer's Tools? do you think that's what's causing the problems?

thanks!



tar

WillyT 05-24-2002 08:36 PM

root problems
 
BahamutX

Almost 100% of your problems are root#

You will probably be best off at this point by reformating your OS X partition and starting over.


Everyone,

DO NOT LOG IN AS ROOT

You will only succeed in turning your system into a basket case!

In the 1 year+ I have been running OS X I have been logged in as root 3 times. I needed to be logged in as root 0 times. I messed things up 2 times. I got lucky 1 time. Total time logged in as root 30 minutes.

Real power comes from being able to suppress the urge to be all powerful.

Willy

sao 05-25-2002 01:24 AM

tar,

Look at one of my posts above. You will see one example with the same errors as you have now. So, Don't remove the April Dev Tools.

Just run now:

'sudo apt-get update'

and then again:

'sudo apt-get install xfree86-rootless'

Hopefully, that will solve your problems.

Let me know.


Cheers...

sao 05-25-2002 01:29 AM

BahamutX,

I agree with WillyT 100%. Don't login as root unless it's absolutely necessary.

And don't give up. Take a brake and start again.


Cheers...


All times are GMT -5. The time now is 06:19 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.