linux commands

Discussion in 'all things UNIX' started by lodore, Aug 25, 2008.

Thread Status:
Not open for further replies.
  1. lodore

    lodore Registered Member

    Joined:
    Jun 22, 2006
    Posts:
    9,006
    Hello,
    im trying out fedora 9 with Gnome in a virtual machine.
    at this link
    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
    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
     
  2. Pedro

    Pedro Registered Member

    Joined:
    Nov 2, 2006
    Posts:
    3,502
    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
     
    Last edited: Aug 25, 2008
  3. lodore

    lodore Registered Member

    Joined:
    Jun 22, 2006
    Posts:
    9,006
    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
     
    Last edited: Aug 25, 2008
  4. Pedro

    Pedro Registered Member

    Joined:
    Nov 2, 2006
    Posts:
    3,502
    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?
     
    Last edited: Aug 25, 2008
  5. GlobalForce

    GlobalForce Regular Poster

    Joined:
    Jun 30, 2004
    Posts:
    3,581
    Location:
    Garden State, USA
  6. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    8,695
    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
     
  7. lodore

    lodore Registered Member

    Joined:
    Jun 22, 2006
    Posts:
    9,006
    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?
     
  8. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    8,695
    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
     
  9. lodore

    lodore Registered Member

    Joined:
    Jun 22, 2006
    Posts:
    9,006
    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?
     
  10. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    8,695
    Hello,
    Did you try Ctrl + alt + Backspace?
    That for sure is going to work.
    Mrk
     
  11. lodore

    lodore Registered Member

    Joined:
    Jun 22, 2006
    Posts:
    9,006
    yes that does work
     
Loading...
Thread Status:
Not open for further replies.