PDA

View Full Version : Starting KDE in console mode


christopher75
02-19-2003, 10:48 PM
Newbie Question.

Trying to start KDE in the >console mode.

Tried first:
startx and exec startx

And the results are:
(ipc/send) invalid destination port: initCGDisplaystate Can't map display interlocks

KCGErrorFaliure: CGSNewConnection Cannot connect to server
etc....

My .cshrc looks like this:

setenv DISPLAY :0.0
source /sw/bin/init.csh


I have no problems with running KDE with Apples X11.app

System: OS X 10.2.4
Fink 0.11.1

Any clues?

sao
02-19-2003, 11:26 PM
christopher75,

Apple's x11 run's only in rootless mode, so you can't login via console and use startx like that. Clicking on your X11.app icon effectively replaces startx.

christopher75
02-19-2003, 11:29 PM
Hmm.. Bummer..
If i understand it correct, this was possible with Xdarwin?

sao
02-19-2003, 11:37 PM
christopher75,

Yes, you're right. It works with XDarwin.

Also you can use it if you have both, Apple's X11 and XDarwin installed.

christopher75
02-20-2003, 02:59 PM
Ok, thanks for your help!
Any special oddities i should have in mind with Xdarwin and Apple X11 installed at the same time?

el_barto_2003
02-23-2003, 11:07 PM
Originally posted by sao
christopher75,

Apple's x11 run's only in rootless mode, so you can't login via console and use startx like that. Clicking on your X11.app icon effectively replaces startx.

I had Apple X11 installed after XDarwin too and after that I can't login into KDE via console. Today in Apple's Discussion Groups (Unix) I find out how:


% /usr/X11R6/bin/XDarwin&; /sw/bin/startkde


That works perfect for me.

El Barto
:D

sao
02-24-2003, 06:12 AM
el_barto_2003 wrote:
% /usr/X11R6/bin/XDarwin&; /sw/bin/startkde
Let's make it clear, christopher75 refers to "trying to start KDE in the >console mode in Apple's X11". In your case, you need XDarwin also installed for your command to work. (Starting from ">console" means not from the "terminal.app" or an "xterm")

In your "Login Panel" instead of your user name, you write >console and you will be dropped into the blackness of Darwin without the Aqua niceties.

Of course, this method works in "XDarwin". But, "Apple's X11" is rootless only - no fullscreen mode. Therefore it won't work without the Aqua windowserver.


There are two ways to do start an X session at the "Login Panel" when you hit a >console, as far as I know:

1- 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".When you quit X11, it should go back to the login window.


So, if you have XDarwin installed you can start an X session from your Login Panel typing >console, but it will not work if you have only Apple's X11 installed.

zimwy
02-26-2003, 04:12 PM
Hey all,
I have both XDarwin and Apple's X11 installed and I am unable to log in from the console. I get the display interlock issue. One of the previous posts said "Also, you can log in from console if you have both installed." Did you mean can't? If not, what am I doing wrong?! This worked way back when....

gabe

pyrohotdog
03-21-2003, 01:54 AM
I have Apple's X11 installed, and the XDarwin I found on versiontracker (http://versiontracker.com), and I can't start KDE from console mode either.I get the same interlock error, and if I try "XDarwin" it just sit's and does nothing forever, and I can't cancel it with control-c or anything. I have to ssh in from another computer to kill, or restart.:( KDE runs fullscreen on XDarwin slow, but fine regularly, just won't launch from console.

sao
03-21-2003, 06:18 AM
pyrohotdog wrote:
I have Apple's X11 installed, and the XDarwin I found on versiontracker
Of course it will not work, and you might just have damaged your Apple's X11 installation.

I managed to install 'both', because previously to install Apple's X11, I had installed with Fink the xfree86-base and rootless "-threaded" packages and decided to keep them, after I read how to do it, at the fink-users list.

If you would have made a "search" here on this forum for "Apple's X11 and XDarwin" you would have found the following posts where I explain about it:


http://forums.macosxhints.com/showthread.php?s=&threadid=8364

http://forums.macosxhints.com/showthread.php?s=&threadid=9840&highlight=XDarwin+and+Apples+X11


And at the X11-users mailing list, the following post by Michele Garoche:

http://lists.apple.com/archives/x11-users/2003/Jan/17/canx11formacosxandxdarwi.001.txt


and at the following thread at the fink-users list:

http://www.mail-archive.com/fink-users@lists.sourceforge.net/msg07802.html


The way I did it, it's certainly "not for beginners", and it can mess up your installations if you are not careful.

Besides, I had to adjust the settings when I updated to Apple's X11 v0.2, and even now, I had some trouble to adjust the settings to Apple's X11 v0.3.

pyrohotdog
03-21-2003, 11:33 PM
well I tried what you did, and neither X11.app or XDarwin.app would launch. I undid it all and I'm ok now. I can run any WM of choice in fullscreen via XDarwin. I still want to launch them from Console though.

What is the simplest way to configure and launch a WM (IceWm, WindowMaker, KDE etc.) from console mode?

sao
03-22-2003, 03:27 AM
pyrohotdog wrote:
well I tried what you did, and neither X11.app or XDarwin.app would launch
I told you, the instructions are "not for beginners". They worked with "Apple's X11 v0.1" without problems. You need to adjust the settings to make it work with "Apple's X11 v0.3". I'm trying to figure out all the adjustments myself.

Log out and when you're presented with your "Login Panel" instead of your user name, write:

>console

and you will be dropped into Darwin. Then you can start an X11 session through the console with:

"startx" command or "exec startx"

It will start X11, and your windowmanager will be called by your ~/.xinitrc file.

So, you need to write your session settings in your ~/.xinitrc file.

Read the "X11 : Frequently Asked Questions" at the top of the page in this forum, about "7. The .xinitrc file " (If you want to use another window manager.....etc.)

Anyhow, a simple ~/.xinitrc file that will call "windowmaker" will be:
source /sw/bin/init.sh

exec wmaker
Adjust accordingly.

pyrohotdog
03-22-2003, 04:54 AM
this is what I got, trying from console mode, recorded by script:
% startx



(ipc/send) invalid destination port : initCGDisplayState: cannot map display interlocks.


waiting for X server to begin accepting connections kCGErrorFailure : CGSNewConnection cannot connect to server
xp_init: error: not initialized
can't initialize window system

giving up.

xinit: No such file or directory (errno 2): unable to connect to X server

xinit: No such process (errno 3): Server error.
% exec startx



(ipc/send) invalid destination port : initCGDisplayState: cannot map display interlocks.


waiting for X server to begin accepting connections kCGErrorFailure : CGSNewConnection cannot connect to server
xp_init: error: not initialized
can't initialize window system

giving up.

xinit: No such file or directory (errno 2): unable to connect to X server

xinit: No such process (errno 3): Server error.

sao
03-22-2003, 07:26 AM
pyrohotdog wrote:
can't initialize window system
giving up.
xinit: No such file or directory (errno 2)
I don't know. It looks it can't find /etc/X11/xinit/xinitrc and your ~/.xinitrc file.

It may be calling Apple's X11, in which case, it wouldn't work from console, because Apple's X11 works only rootless and also, have slightly different files.

I don't know all what you mixed and installed from the beginning, and it could be your installation is messed-up.

I would called it a day and start from the XDarwin or the X11.app. Do you really need to start from >console?

If you give the defaults command to force XDarwin to use display :1, instead of the default of :0, you can actually run both XDarwin and Apple's X11 side-by-side.

Sorry, I can't be of more help to you.