how to end an x client session

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 ...




Topic Options
#2064 - 06/15/03 07:04 PM how to end an x client session
ndering Offline
stranger

Registered: 06/13/03
Posts: 12
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!!

Top
Advertisement
#2066 - 06/15/03 07:44 PM Re: how to end an x client session
EgoWarrior Offline
stranger

Registered: 05/26/02
Posts: 20
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.

Top
#2068 - 06/15/03 08:52 PM Re: how to end an x client session
ndering Offline
stranger

Registered: 06/13/03
Posts: 12
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?

Top
#2069 - 06/15/03 10:54 PM Re: how to end an x client session
souldreamer Offline
journeyman

Registered: 03/09/03
Posts: 60
Code:
ctrl + alt + f1

Top
#2070 - 06/16/03 12:19 AM Re: how to end an x client session
ndering Offline
stranger

Registered: 06/13/03
Posts: 12
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

Top
#2097 - 06/18/03 10:57 AM Re: how to end an x client session
EgoWarrior Offline
stranger

Registered: 05/26/02
Posts: 20
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?

Top
#2427 - 07/24/03 10:32 AM Re: how to end an x client session
jlb1182 Offline
stranger

Registered: 07/24/03
Posts: 1
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.

Top
#2498 - 07/31/03 07:39 PM Re: how to end an x client session
wayt Offline
stranger

Registered: 07/31/03
Posts: 1
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.

Top
#2518 - 08/01/03 10:33 PM Re: how to end an x client session
Zuti Offline
stranger

Registered: 10/03/02
Posts: 15
Would typing (as root):
Code:
/sbin/init 3


do the same? wink

Top


Forums
Windows Support Forums
Everything New Technology
Legacy OS
Hardware
Software
Games
Networking
Customization & Tweaking
Security

Linux Support Forums
Everything Linux
Linux Hardware
Linux Software
Linux Games
Linux Networking
Linux Customization & Tweaking
Linux Security

Apple Support Forums
Everything Apple
Recent Topics
x86 OS, RAM, & Virtual Machines
by Myke
12/22/09 08:16 PM
Ram Question
by JohnnyAshes
12/21/09 09:50 PM
NEWBIE needs help with REALTEK
by SerryJW
12/21/09 06:09 AM
What version of Linux is this?
by DxxLinux
12/15/09 07:59 PM
Anything like HyperCam?
by Luckycharm8989
12/11/09 02:08 PM
Who's Online
2 Registered (danleff, Philipp), 176 Guests and 31 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
91389 Members
24 Forums
59240 Topics
189765 Posts

Max Online: 1079 @ 03/12/08 01:36 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22