Compatible Support Forums: how to end an x client session

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

how to end an x client session

#1 User is offline   ndering 

  • stranger
  • Group: Members
  • Posts: 12
  • Joined: 13-June 03

Posted 15 June 2003 - 07:04 PM

Hi,

I want to upgrade the latest version of Xfree86 and the install script (Xinstall.sh) says I should end my x session before I continue with installation. But how do I do that? Help I can't find anything that shows me how ;(

thanks for any help!!
0

#2 User is offline   EgoWarrior 

  • stranger
  • Group: Members
  • Posts: 20
  • Joined: 26-May 02

Posted 15 June 2003 - 07:44 PM

ctrl-alt-backspace will end your current xsession. But if you run xdm or gdm you should log out, switch to a console terminal (ctrl-alt-1 through 4 usually) and stop the gdm or xdm from running. Then you can upgrade X.

(xdm and gdm are the graphical login screens, if you run these they'll try to keep restarting X, so just log out, then switch to the console by pressing ctrl-alt-1)

If you run RedHat you can stop gdm or xdm by typing:
Code:
$ service xdm stop

for xdm, or
Code:
$ service gdm stop

for gdm.

If you run debian do:
Code:
$ /etc/init.d/xdm stop

or
Code:
$ /etc/init.d/gdm stop

as required.
0

#3 User is offline   ndering 

  • stranger
  • Group: Members
  • Posts: 12
  • Joined: 13-June 03

Posted 15 June 2003 - 08:52 PM

hi again,

ok, I tried

"service xdm stop," and i got "bash: service: command not found"

i tried the debian one even though i'm running rh 9 and it told me that the directory doesn't exist. is there a service manager or something that i'm supposed to have installed somewhere?
0

#4 User is offline   souldreamer 

  • journeyman
  • Group: Members
  • Posts: 60
  • Joined: 09-March 03

Posted 15 June 2003 - 10:54 PM

Code:
ctrl + alt + f1

0

#5 User is offline   ndering 

  • stranger
  • Group: Members
  • Posts: 12
  • Joined: 13-June 03

Posted 16 June 2003 - 12:19 AM

ok, thanks for the help guys laugh

this is what I did that finally worked:

1. opened /etc/inittab with vi

2. changed the line 'id:5:initdefault:' to 'id:3:initdefault'

3. rebooted the computer and it booted to the text login so I wouldn't have to figure out how to kill gdm. Then I was able to install the new version of Xfree86

but if anybody can give me some insight about what i'm doing wrong concerning killing gdm without editing inittab I'm still curious
0

#6 User is offline   EgoWarrior 

  • stranger
  • Group: Members
  • Posts: 20
  • Joined: 26-May 02

Posted 18 June 2003 - 10:57 AM

Were you logged in as root or su'd? If you were su'd you need to do "su -" in order for the path to be changed to the proper root path, the service executable is in /sbin on rh systems iirc. I haven't played with redhat since 7.3 tho so I'm not sure if they changed anything with their system.

I don't know why /etc/init.d/ doesn't exist for you, thats a bit weird. Does an "ls /etc/init.d" work?
0

#7 User is offline   jlb1182 

  • stranger
  • Group: Members
  • Posts: 1
  • Joined: 24-July 03

Posted 24 July 2003 - 10:32 AM

Anyone ever figure this out? I'm having the exact same problem. DPKG tells me I should stop GDM before installing a package. But I can't figure out how to stop it. I know the ctr alt F1 to switch to terminal command line, but that does not _stop_ gdm. It is still running and I can switch back by hitting alt F7. I need to actually kill the program and exit to command line. That's one of the frustrating things about Linux (Debian) that I have found. Why is there no exit key? I also tried going to the command line, switching to the /etc/init.d and typed gdm stop This did not work. It said "aborting... GDM already running."
Such simple things seem to have difficult answers with Linux.
0

#8 User is offline   wayt 

  • stranger
  • Group: Members
  • Posts: 1
  • Joined: 31-July 03

Posted 31 July 2003 - 07:39 PM

Here's one, admittedly inelegant, method that should work on most any Linux system to kill gdm:

# ps auxw | grep gdm

[identify PID (the number following "root") of the first instance of gdm]

# kill [PID of gdm]

For example, when I do this, ps returns:

root 2221 0.0 0.6 11852 3168 ? S 12:15 0:00 /usr/bin/gdm
root 14463 0.0 0.0 11908 3444 ? S 12:28 0:00 /usr/bin/gdm
root 14464 0.1 1.5 13652 7864 ? S 12:28 0:00 /etc/X11/X :0 -nolisten...

etc.

The command
kill 2221

halts all instances of gdm and its child processes (including the X server).

Hope that helps.
0

#9 User is offline   Zuti 

  • stranger
  • Group: Members
  • Posts: 15
  • Joined: 03-October 02

Posted 01 August 2003 - 10:33 PM

Would typing (as root):
Code:
/sbin/init 3


do the same? wink
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users