The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   UNIX - Newcomers (http://hintsforums.macworld.com/forumdisplay.php?f=15)
-   -   help with Xfree and Wmaker (http://hintsforums.macworld.com/showthread.php?t=7791)

sao 12-14-2002 08:31 AM

gilfortes,

Very weird, it doesn't show any installation of xfree86-rootless:
Quote:

Cristal:~] gil% fink list -i --section=x11-system
Information about 769 packages read in 1 seconds.

----------
This is what I get with the same command:
Code:

298 Sao  @ ~  $ fink list -i --section=x11-system
Information about 1897 packages read in 1 seconds.

 i  rman                  3.0.9-2          Generalized filter for UNIX manual pages
 i  tightvnc              1.2.3-1          Enhanced version of VNC
 i  xfree86-base-threaded  4.2.1.1-3        XFree86 libraries, utilities, clients and data
 i  xfree86-base-threaded  4.2.1.1-3        XFree86 libraries, utilities, clients and data
 i  xfree86-rootless-thre  4.2.1.1-3        XFree86 libraries, utilities, clients and data
 i  xfree86-rootless-thre  4.2.1.1-3        XFree86 libraries, utilities, clients and data

What comes out when you run: 'sudo apt-get install xfree86-base'...


Cheers...

gilfortes 12-14-2002 08:37 AM

Sao.
here is what I get:

-------------
Cristal:~] gil% sudo apt-get install xfree86-base
Password:
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
xfree86-base
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
5 packages not fully installed or removed.
Need to get 0B/42.5MB of archives. After unpacking 0B will be used.
(Reading database ... 4686 files and directories currently installed.)
Unpacking xfree86-base (from .../xfree86-base_4.2.1.1-3_darwin-powerpc.deb) ...

You have an existing X11 installation in /usr/X11R6 and /etc/X11.
This package refuses to overwrite these. Remove them, then tell Fink to
install xfree86-base again. (The package won't be recompiled.) If you want
to keep your X11 installation, install system-xfree86 resp. system-xtools
instead to make this known to Fink's package system.

Press Return to continue.

dpkg: error processing /sw/var/cache/apt/archives/xfree86-base_4.2.1.1-3_darwin-powerpc.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/sw/var/cache/apt/archives/xfree86-base_4.2.1.1-3_darwin-powerpc.deb
E: Sub-process /sw/bin/dpkg returned an error code (1)
[Cristal:~] gil%
-------------------

Do you think I should delete everything (fink and xfree86) and start again from scratch?

I must go now; get back to this on monday.
Thanks once again for all your patience.
gil fortes

sao 12-14-2002 09:10 AM

gilfortes,

To start from scratch would be a good idea. We can do it together on monday.


Cheers...

gilfortes 12-16-2002 05:21 AM

start again
 
Sao:

Would like to start again:

was thinking to do the following:
1- sudo rm -rf /sw (to delete Fink)
2- sudo rm -rf /usr/X11R6 /etc/X11 /Applications/XDarwin.app (to delete Xfree86)

3- install Fink 0.5.0.a

4- sudo apt-get install xfree86-rootless

Please let me know if this is the correct thing to do, or do you have a better idea.
Thankx
gilfortes

sao 12-16-2002 06:18 AM

gilfortes,

Please, do:

1, 2, and 3

Then, in terminal.app write in your ~/.cshrc file:

source /sw/bin/init.csh

Then, run :

'fink scanpackages'

and

'sudo apt-get update'

If everything went ok, then run:

'sudo apt-get install xfree86-base'

'sudo apt-get install xfree86-rootless'

When finished, come back here and we will continue.


Cheers...

gilfortes 12-16-2002 08:11 AM

Sao:
it seems that everything went well; here is the outcome of some commands:


-----------
[Cristal:~] gil% startx -- -rootless

2002-12-16 13:06:37.489 XDarwin[689]
XDarwin 1.1.1.1
Running rootless inside Mac OS X window server.

This is a pre-release version of XFree86, and is not supported in any
way. Bugs may be reported to XFree86@XFree86.Org and patches submitted
to fixes@XFree86.Org. Before reporting bugs in pre-release versions,
please check the latest version in the XFree86 CVS repository
(http://www.XFree86.Org/cvs)

XFree86 Version 4.2.1.1 / X Window System
(protocol Version 11, revision 0, vendor release 6600)
Release Date: 18 October 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.
Display mode: Rootless Quartz
Screen 0 added: 1024x747 @ (0,21)
Screen 0 placed at X11 coordinate (0,0).
cat: /Users/gil/.Xauthority: No such file or directory
xterm: fatal IO error 32 (Broken pipe) or KillClient on X server ":0.0"
xinit: connection to X server lost.

waiting for X server to shut down xterm: fatal IO error 32 (Broken pipe) or KillClient on X server ":0.0"
Quitting XDarwin...
.......

[Cristal:~] gil% fink -V
Package manager version: 0.11.1
Distribution version: 0.5.0a
[Cristal:~] gil% gcc -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
Thread model: posix
Apple Computer, Inc. GCC version 1161, based on gcc version 3.1 20020420 (prerelease)


[Cristal:~] gil% fink list -i --section=x11-system
Information about 769 packages read in 1 seconds.

i xfree86-base 4.2.1.1-3 XFree86 libraries, utilities, clients and...
i xfree86-base-sh 4.2.1.1-3 XFree86 libraries, utilities, clients and...
i xfree86-rootles 4.2.1.1-3 XFree86 libraries, utilities, clients and...
i xfree86-rootles 4.2.1.1-3 XFree86 libraries, utilities, clients and...
-------------------
what to do next? Install fvwm2 with "sudo apt-get install fvwm2"?

Thank you
gilfortes

sao 12-16-2002 08:31 AM

gilfortes,

Of course it will not work, you haven't installed a windowmanager yet.

Well, everything looks ok, let's continue.

Do me a favor, as blackbox-rootless is quite small, for the purpose of testing, just install for now:

'sudo apt-get install blackbox-rootless'

Then write a ~/.xinitrc file in your home directory with *only* these two lines:
Code:

source /sw/bin/init.sh

exec blackbox

*after* you have made this, start XDarwin from terminal.app with:

startx -- -fullscreen

and let me know.


Cheers...

PS: Remember, to get out from the XFree86 desktop to OS X desktop, press Command-option+A (default). Then, you can quit from the XDarwin.app. menu.

gilfortes 12-16-2002 08:40 AM

Sao:
here is the outcome:
--------------------------------------------
[Cristal:~] gil% startx -- -fullscreen

2002-12-16 13:34:42.579 XDarwin[786]
XDarwin 1.1.1.1
Running full screen in parallel with Mac OS X Quartz window server.

This is a pre-release version of XFree86, and is not supported in any
way. Bugs may be reported to XFree86@XFree86.Org and patches submitted
to fixes@XFree86.Org. Before reporting bugs in pre-release versions,
please check the latest version in the XFree86 CVS repository
(http://www.XFree86.Org/cvs)

XFree86 Version 4.2.1.1 / X Window System
(protocol Version 11, revision 0, vendor release 6600)
Release Date: 18 October 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: Full screen Quartz
Screen 0 added: 1024x768 @ (0,0)
cat: /Users/gil/.Xauthority: No such file or directory
failed to set locale, reverting to "C"
BScreen::BScreen: managing screen 0 using visual 0x22, depth 24
failed to set locale, reverting to "C"
Quitting XDarwin...
X connection to :0.0 broken (explicit kill or server shutdown).
xinit: connection to X server lost.

waiting for X server to shut down

[Cristal:~] gil%

-----------------
some problems found.

gilfortes

sao 12-16-2002 09:04 AM

gilfortes,

So seems it worked well. When you start again XDarwin, you can option-click on the desktop in XFree86 and a menu will appear. From there, you can open an xterm, etc.etc...

What problems did you found?


Cheers...

gilfortes 12-16-2002 09:12 AM

Sao:

I thought I had problems, because could not get xterm working for example; did not know about "option-click" to get the menu.
Now, shall I install fvwm2? I heard is a good WM.
How to do it?
thank you very much.
gilfortes

sao 12-16-2002 09:48 AM

gilfortes,

Great !

To install fvwm2:

'sudo apt-get install fvwm2'

Then, write in your ~/.xinitrc file:
Code:

source /sw/bin/init.sh

exec fvwm2

After that, try to start by double clicking the XDarwin.app in the Applications folder, and choose fullscreen-mode. Just to try other way to start up.

Let me know.


Cheers...

PS: I know about configuring blackbox-rootless a bit, so if you need any help for it, let me know.

gilfortes 12-16-2002 10:20 AM

Sao:

meanwhile am installing fvwm2; is it possible to use blackbox in rootless mode; tried to start in rootless mode by double clicking the XDarwin.app and nothing happens;
sorry about another silly question, but to configure my ~/.xinitrc file for fvwm2, must delete first the previous configuration for blackbox, or is there a way to keep both?
thankx
gil fortes

sao 12-16-2002 10:57 AM

gilfortes,

Did you installed blackbox-rootless, or just blackbox?

If you installed blackbox-rootless it should work in rootless.

Before you start, move the dock to the right or left in the OS X Desktop. Then, double-click the XDarwin.app, it should appear a window where you can choose the mode, choose rootless. And wait a bit. It takes a moment to start. You should be able to see the thin menu bar from blackbox. If you click over the time clock on that bar, it will appear the app.menu.

You can write your ~/.xinitrc file like this:
Code:

source /sw/bin/init.sh

#exec blackbox

exec fvwm2

Just comment (#) the one you don't want to use at the moment.


Cheers...

gilfortes 12-16-2002 11:21 AM

Sao:
I am very pleased with all the patience you had with me; blackbox is working well in rootless mode; just because the dock is full, could not see the menu bar from blackbox.
fvwm2 is working well in fullscreen mode (can get the menu by clicking anywhere on the screen) but in rootless mode I can see the bar with a time clock and amail box and a couple of other stuff, but can not get a menu to start for example xterm. what shall I do?
I appreciate if you could help me in some configuration of these window managers.
Thank you once again, you have done all the hard work for me; am very pleased.
gil fortes.

sao 12-16-2002 12:06 PM

gilfortes,

No problem to pass you tips for blackbox, fvwm2 I have it installed but I would have to study the configuration as I don't use it.

Don't have much time right now, but will try it soon.

About blackbox, copy the menu file from /sw/share/Blackbox/menu to ~/.blackbox at your home directory and then open the menu file with pico and you can configure it as you want.

Check this thread here:

http://forums.macosxhints.com/showth...=blackbox+menu

Of course you need still to install with Fink the applications you would want.

Download some blackbox themes from:

http://themes.freshmeat.net/browse/920/?topic_id=920

and cp them to /sw/share/Blackbox/styles/


Cheers...

gilfortes 12-16-2002 12:31 PM

Sao:
do not have a ~/.blackbox; the only blackbox file I got in my home directory is .blackboxrc; do I have to create ~/.blackbox with pico?

pico .blackboxrc gives me this:
--------------------
session.screen0.slit.placement: CenterRight
session.screen0.slit.direction: Vertical
session.screen0.slit.onTop: False
session.screen0.slit.autoHide: False
session.screen0.toolbar.onTop: False
session.screen0.toolbar.autoHide: False
session.screen0.toolbar.placement: BottomCenter
session.screen0.toolbar.widthPercent: 66
session.screen0.edgeSnapThreshold: 0
session.screen0.focusLastWindow: False
session.screen0.workspaceNames: Workspace 1
session.screen0.rowPlacementDirection: LeftToRight
session.screen0.windowPlacement: RowSmartPlacement
session.screen0.workspaces: 1
session.screen0.focusModel: SloppyFocus
session.screen0.focusNewWindows: False
session.screen0.strftimeFormat: %I:%M %p
session.screen0.colPlacementDirection: TopToBottom
session.screen0.fullMaximization: False
session.opaqueMove: False
session.cacheMax: 200
session.colorsPerChannel: 4
session.autoRaiseDelay: 400
session.menuFile: /sw/share/blackbox/menu
session.cacheLife: 5
session.doubleClickInterval: 250
session.imageDither: True
------------------------------------
sorry about my ignorance, but .blackbox is a directory or a file?

gil fortes

sao 12-16-2002 12:54 PM

gilfortes,

Create a ~/.blackbox folder in your home directory. And cp to that folder the menu file from /sw/share/Blackbox/menu

Cheers...

sao 12-16-2002 01:30 PM

gilfortes,

You can create an ~/.Xdefaults file (not a folder) with pico and paste the following in it:
Code:

xterm*scrollBar:        true
xterm*saveLines:        10000
xterm*Background:      DarkSlateBlue
xterm*Foreground:      black
xterm*jumpScroll:      true

Later you can change as you want.

Then, write your ~/.xinitrc file like this:
Code:

source /sw/bin/init.sh

#exec blackbox

xterm -geometry 80x50+494+51 &

exec fvwm2

After start XDarwin, and an xterm in color will appear.


Cheers...

gilfortes 12-16-2002 01:45 PM

Sao:

just confirm if am doing it well (about the blackbox):
1- in my home directory: mkdir .blackbox
2- cd /sw/share/Blackbox
3-cp menu menu ~/.blackbox
4- pico menu (to configure)

thank you
gil fortes

sao 12-16-2002 01:53 PM

gilfortes,

1-ok
2-ok
3-cp menu /Users/gil/.blackbox
4-cd
5-cd .blackbox
6-pico menu (to configure)


Cheers...


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