LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-03-2008, 10:43 PM   #1
ahh_username_taken
LQ Newbie
 
Registered: Aug 2008
Distribution: Slackware 12.1,Ubuntu 8.04 & OpenSUSE 11
Posts: 18

Rep: Reputation: 0
problem running multiple x sessions


Good Day,

I'm trying to run a second X session, but when i <ctrl> <alt> F2 from kde and go into another terminal and run the startx -- :1 it freezes up on a blank screen. Do i need to perform any special configurations or something, any help would be greatly appreciated


Thanks in advance

Last edited by ahh_username_taken; 09-03-2008 at 11:54 PM.
 
Old 09-04-2008, 01:13 AM   #2
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
I'n no expert in this but your post prompted me to play around a bit.

I found that if I followed your instructions (Alt+f2 for a terminal, startx -- :2) I could load seperate X sessions and seperate KDE sesssions on top.

The key thing was to log into my second terminal as a different user from the first. I.e. two seperate users running X to save confusion with files created in ~.

I think X maybe getting confused with its files stored in $HOME if you try and run it as the same user but as I said - I'm certainly no expert in X and it's applications.
 
Old 09-04-2008, 08:28 AM   #3
ahh_username_taken
LQ Newbie
 
Registered: Aug 2008
Distribution: Slackware 12.1,Ubuntu 8.04 & OpenSUSE 11
Posts: 18

Original Poster
Rep: Reputation: 0
thanks for the reply, tried it but its still freezing up
 
Old 09-04-2008, 08:56 AM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Did you try to hit [ctrl] + [alt] + [f8] ?
Also did you run a xwmconfig to change Xsession before enter startx -- :1 ?
(eg, if it is set to KDE for X session 0, try fluxbox for example for X session 1)
 
Old 09-04-2008, 09:10 AM   #5
ahh_username_taken
LQ Newbie
 
Registered: Aug 2008
Distribution: Slackware 12.1,Ubuntu 8.04 & OpenSUSE 11
Posts: 18

Original Poster
Rep: Reputation: 0
tried the [ctrl] + [alt] + [f8] didn't work
also tried changing the x session as suggested but it still froze up
 
Old 09-04-2008, 11:42 AM   #6
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
If you're running KDE and you are using KDM as your display manager, your KDE menu should have a "Switch Session" menu item on it that will start a second (3rd, 4th) session for you using the window manager of your choice and user id of your choice.

The key is to use the KDM since the GDM (GNOME display manager) does not support multiple sessions "out of the box."

On Fedora the display manager started by startx is controlled by /etc/sysconfig/desktop:
Code:
$ cat /etc/sysconfig/desktop
#!/bin/bash
DISPLAYMANAGER=KDE
DESKTOP=KDE
Since I don't "slack," I can't offer further advice, except to note that Fedora 9 did not support using KDM until I installed KDE 4.1, so it's possible that the version of KDE you're using can make a difference.

Oh, you might want to look at man xinit which, among other things, shows you how to start an X session in a specific window.
 
Old 09-04-2008, 11:54 AM   #7
ahh_username_taken
LQ Newbie
 
Registered: Aug 2008
Distribution: Slackware 12.1,Ubuntu 8.04 & OpenSUSE 11
Posts: 18

Original Poster
Rep: Reputation: 0
thanks for the info, i'm running kde 3.5.10 btw, will checkout the man xinit and see if i can understand whats going on

EDIT: I ended up messing up my kde wouldn't boot into X session, not surprised though seeing i had to hard boot the comp quite a few times, i ended up doing a fresh installation and it seems to be working now.

But for some reason it only worked with startx --:2 not 1 i thought the first x session used 0 by default. O well glad its working hope it continues to work after I install video drivers, compiz etc

Last edited by ahh_username_taken; 09-04-2008 at 01:32 PM.
 
Old 09-04-2008, 02:18 PM   #8
ahh_username_taken
LQ Newbie
 
Registered: Aug 2008
Distribution: Slackware 12.1,Ubuntu 8.04 & OpenSUSE 11
Posts: 18

Original Poster
Rep: Reputation: 0
OK just install the latest fglrx drivers and the freezing problem stated back. SO i'm guessing it has something to do with my ati video driver. any help in finding a work around that does not involve me uninstalling the fglrx drivers would be appreciated

Last edited by ahh_username_taken; 09-04-2008 at 02:25 PM.
 
Old 09-04-2008, 02:51 PM   #9
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
As an altenative, KDE like other window managers has multiple desktop management feature
It's very convenient, I use this same feature everyday in xfce,
I don't know why you need multiple x sessions though, maybe to use X with more than one user ?
In that case, yes you need multiple X displays, I wonder if playing with VNC server/viewer on display 1 or 2.. using localhost would work... oupss I am idiot, a vncviewer would need a x session to open a x display

Last edited by keefaz; 09-04-2008 at 02:53 PM.
 
Old 09-04-2008, 03:26 PM   #10
ahh_username_taken
LQ Newbie
 
Registered: Aug 2008
Distribution: Slackware 12.1,Ubuntu 8.04 & OpenSUSE 11
Posts: 18

Original Poster
Rep: Reputation: 0
thanks for the reply, well i'm certain its the fglrx driver at fault,i uninstalled it and the multiple x sessions are working, as per your question on needing it I don't really need it at all, I just wanted to see if it could be done, and it can, i'm just glad i know what caused the problem in the first place.

Thanks for all the help
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Autologins; Multiple Users; Multiple Sessions mrclisdue Linux - Desktop 1 09-26-2007 05:50 AM
Problem starting multiple vnc sessions SevenFortyOne Linux - Server 2 08-16-2007 06:46 AM
Running firefox in multiple sessions Kodiak_Claw Fedora 1 08-06-2006 06:18 AM
Running a program with multiple sessions Poetics Linux - Newbie 5 12-29-2003 05:57 AM
problem in opening multiple Terminall Sessions in the same Terminal Window gem_skywalker Linux - General 2 12-19-2003 05:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration