PDA

View Full Version : linux commands


lodore
August 25th, 2008, 03:54 PM
Hello,
im trying out fedora 9 with Gnome in a virtual machine.
at this link (http://www.howtogeek.com/howto/linux/disable-ctrlaltbackspace-from-restarting-x-windows-on-linux/)
it tells you how to restart gnome desktop manager
its ment to be located at
/etc/init.d/gdm restart
i typed in less /etc/init.d/ and looked for gdm restart and couldnt find it
then i found this (http://www.jirka.org/gdm-documentation/x1254.html)
it says its in the sbin directory so i used
less /sbin and tryed to find the gdm restart and couldnt find it there eiether.
so where is it located and what is the exact command in a terminal to restart gdm?
i tryed tpying gdm restart direct at the root prompt and got an error
warning failed to acquire ore.gnome.display manager
could not acquire name ;bailing out

Pedro
August 25th, 2008, 04:24 PM
What you're trying to find is '/etc/init.d/gdm'. 'restart' is the command.
So by typing '/etc/init.d/gdm restart' you're saying "hey gdm, restart" ;D

lodore
August 25th, 2008, 05:38 PM
-{ Quote: "What you're trying to find is '/etc/init.d/gdm'. 'restart' is the command.
So by typing '/etc/init.d/gdm' restart you're saying "hey gdm, restart" ;D" }-
LOL i see
cant find gdm
ok ive found gdm by using the shutdown now command and using the search in the GUI
its in /etc/pam.d/gdm
ive logged in as root and i get permission denied

btw by logging in as root i mean the following
login as user press ctrl alt F1 to go to text mode and logged in as root

Pedro
August 25th, 2008, 11:16 PM
I corrected the ' just to make sure it's right.
I don't know why you get permission denied. I "always" used ctrl-alt-backspace.

Try to google the exact error message. Someone somewhere answered that one. If you find it let me know, or tell me the message :)

Edit: are you sure it's not /etc/init.d/gdm ? Try

ls /etc/init.d | grep gdm

Does it say gdm?

GlobalForce
August 25th, 2008, 11:40 PM
*Don't mind me Pedro. ;) This work Lodore - su -c '/usr/sbin/gdm-restart' (http://www.fedoraguide.info/index.php?title=Main_Page#How_to_restart_GNOME_without_rebooting_computer)

S

Mrkvonic
August 26th, 2008, 03:12 AM
Hello,

Ctrl + Alt + Backspace

Try also /etc/init.d/xdm restart

You can also drop to runlevel 3 with init 3 then go back to GUI with init 5 ...

Mrk

lodore
August 26th, 2008, 04:45 AM
Hello,
the commands dont come up with an error but dont seem to do the task its ment to.
just goes to a blank prompt. and then no other commands work.
maybe a problem with the virtual machine thou, virtual box causes some strange problems.

if i ever accidently press ctrl alt F1 and dont want to lose any data or programs running how do i go back to rthe gui without losing it?

Mrkvonic
August 26th, 2008, 04:49 AM
Hello,

GUI is Ctrl Alt F7.

BTW, when you stop the desktop manager, it may not automatically move to tty, so the blank screen belongs to tty7. Try manually changing between the consoles until you get to the command line.

Mrk

lodore
August 26th, 2008, 05:21 AM
-{ Quote: "Hello,

GUI is Ctrl Alt F7.

BTW, when you stop the desktop manager, it may not automatically move to tty, so the blank screen belongs to tty7. Try manually changing between the consoles until you get to the command line.

Mrk" }-
Hello,
i pressed Alt + F1 alt +f2 and then alt+f3 and got back to commandline
then i pressed ctrl alt f7 to get back to the gui and the programs where still running.
how do i know if i acually restarted Gnome?

Mrkvonic
August 26th, 2008, 07:05 AM
Hello,
Did you try Ctrl + alt + Backspace?
That for sure is going to work.
Mrk

lodore
August 26th, 2008, 08:37 AM
-{ Quote: "Hello,
Did you try Ctrl + alt + Backspace?
That for sure is going to work.
Mrk" }-
yes that does work