LinuxQuestions.org
Visit Jeremy's Blog.
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 07-29-2006, 02:33 PM   #1
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Starting a new X session from within Xfce4


In KDE, it's easy, just 'logout', 'Switch Users'

But how to do this in Xfce?

EDIT*** Running init 4.

In other words, how do I spawn a new X11 session?

Last edited by cwwilson721; 07-29-2006 at 03:55 PM.
 
Old 07-29-2006, 03:47 PM   #2
Mr_C
Member
 
Registered: Jan 2004
Location: Trinidad & Tobago
Distribution: Slackware
Posts: 317

Rep: Reputation: 30
Well this works depending on your default in ~/.xinitrc
Code:
startx -- :1
 
Old 07-29-2006, 03:49 PM   #3
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
Quote:
Originally Posted by Mr_C
Well this works depending on your default in ~/.xinitrc
Code:
startx -- :1
Doh!!!

I feel like such a Homer...
 
Old 07-29-2006, 03:51 PM   #4
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
Sorry, gives me the 'console/screen/descriptor' type error.
Code:
bash-3.1$ startx -- :9
xauth:  creating new authority file /home/carl/.serverauth.9876
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/toaster:9
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

X Window System Version 6.9.0
Release Date: 21 December 2005
X Protocol Version 11, Revision 0, Release 6.9
Build Operating System: Linux 2.4.32 i686 [ELF]
Current Operating System: Linux toaster 2.6.16.20 #5 PREEMPT Mon Jun 26 00:50:32 CDT 2006 i686
Build Date: 02 May 2006
        Before reporting problems, check http://wiki.X.Org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.9.log", Time: Sat Jul 29 15:50:33 2006
(==) Using config file: "/etc/X11/xorg.conf"

(EE) I810(0): [dri] DRIScreenInit failed. Disabling DRI.
Synaptics DeviceInit called
SynapticsCtrl called.
Synaptics DeviceOn called
Synaptics DeviceOff called

waiting for X server to shut down FreeFontPath: FPE "/usr/X11R6/lib/X11/fonts/misc/" refcount is 2, should be 1; fixing.


Couldnt get a file descriptor referring to the console
I'm running init 4. init 3 would work, but already know to do that...
 
Old 07-29-2006, 04:45 PM   #5
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
ctrl-alt-backspace (all together, now!)

then startx

Works for me, but I use runlevel 3...
 
Old 07-29-2006, 04:46 PM   #6
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
No. I need to keep the current session running....

Comparable to 'Switch Users' in KDE.
 
Old 07-29-2006, 06:24 PM   #7
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
Code:
gdmflexiserver
This will work, if you have GDM. Don't recall if Slack still includes it.
 
Old 07-29-2006, 06:42 PM   #8
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
Nope. Ain't not got it.
 
Old 07-29-2006, 07:41 PM   #9
Mr_C
Member
 
Registered: Jan 2004
Location: Trinidad & Tobago
Distribution: Slackware
Posts: 317

Rep: Reputation: 30
Actually I don't know how to get a switch users like whats avaliable in init 4. I use init 3 cause 4 disables my direct rendering for some insane reason.

That said I usually do the startx -- :1 thingeee and it maps like this

normal X = CTRL+ALT+F7
:1 = CTRL+ALT+F8
:2 = CTRL+ALT+F9
etc

Last edited by Mr_C; 07-29-2006 at 07:42 PM.
 
Old 07-29-2006, 07:45 PM   #10
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
Here's what I get:
Code:
bash-3.1$ startx -- :1
xauth:  creating new authority file /home/carl/.serverauth.14124

_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/toaster:1
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

X Window System Version 6.9.0
Release Date: 21 December 2005
X Protocol Version 11, Revision 0, Release 6.9
Build Operating System: Linux 2.4.32 i686 [ELF]
Current Operating System: Linux toaster 2.6.16.20 #5 PREEMPT Mon Jun 26 00:50:32 CDT 2006 i686
Build Date: 02 May 2006
        Before reporting problems, check http://wiki.X.Org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Sat Jul 29 19:42:48 2006
(==) Using config file: "/etc/X11/xorg.conf"
(EE) I810(0): [dri] DRIScreenInit failed. Disabling DRI.
Synaptics DeviceInit called
SynapticsCtrl called.
Synaptics DeviceOn called
Synaptics DeviceOff called

waiting for X server to shut down FreeFontPath: FPE "/usr/X11R6/lib/X11/fonts/misc/" refcount is 2, should be 1; fixing.


Couldnt get a file descriptor referring to the console
bash-3.1$
So there is nothing like the 'Switch User' function in KDE?

If you don't know what I'm talking about, try it first.
 
Old 07-29-2006, 07:55 PM   #11
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
Code:
kdmctl reserve
Since you are (guessing here) using KDM as your login manager, this should work.
 
Old 07-29-2006, 07:59 PM   #12
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
Cool. That did it. Thanks Shilo...
 
Old 07-30-2006, 10:27 AM   #13
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Quote:
Originally Posted by cwwilson721
No. I need to keep the current session running....

Comparable to 'Switch Users' in KDE.
Sorry man, I didn't understand what you wanted. I didn't know such a thing was possible.
 
Old 07-30-2006, 10:32 AM   #14
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
Quote:
Originally Posted by shilo
Code:
kdmctl reserve
Since you are (guessing here) using KDM as your login manager, this should work.
Shilo's thing worked like a charm. Just what I was looking for. Now to put it in a script, and make a cute icon for it...lol
 
Old 07-30-2006, 02:29 PM   #15
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
I haven't bothered to test this, but it should work for WMs that follow the FDO specs. This will put an entry in the menu for you.

Create a file, /usr/share/applications/kdmctl-reserve.desktop :
Code:
[Desktop Entry]
Encoding=UTF-8
Name=New Login
GenericName=New Login
Comment=Log in as another user without logging out
Exec=kdmctl reserve
Icon=/opt/kde/share/icons/crystalsvg/128x128/apps/kdmconfig.png
Terminal=false
Type=Application
Categories=Application;System;
You may have to logout and login again for this to work.

You can use this as a base. Change the icon to anything you like. There are likely already some .desktop files in /usr/share/applications that will give you an idea how the files should be structured.

One thing to note, the user switching is not dependant on the WM, it is dependant on the login manager. The previous solutions offered in this thread assumed no login manager. "kdmctl reserve" is used when KDM is being used as the login manager. "gdmflexiserver" is used when GDM is the login manager. Haven't bothered to look up the command for when you use XDM as the login manager.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Starting up in KDE session cdc7 Linux - General 2 01-10-2005 12:52 AM
xfce4-session fails to save session ! OneManArmy Debian 0 12-10-2004 02:14 PM
problem with starting new session shyam_d_sundar Linux - Newbie 1 05-07-2004 10:08 AM
starting an x session in gentoo franzfranz Linux - Newbie 10 04-27-2004 10:28 AM
X Session not starting gigglesnorter Linux - Newbie 2 04-27-2004 06:45 AM

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

All times are GMT -5. The time now is 04:32 AM.

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