Pages

Thursday, May 30, 2013

Service and killing X

  Spent the last few days playing with my ubuntu virtual machine.  Not sure what happened but I believe something in the upgrade to the latest version went wrong.  Had a lot off issues with lightdm.  Ended up just trashing it but learned a few things along the way.



Manage services useing the service command

get service status
      service --status-all

      service sends the status-all output to stderr.  If you want to search for a service name you can run this:  service  --status-all  |&  grep <pattern> 



service restart
     service <service name>  restart
     example: sudo service lightdm restart



If X hangs you can run a few things to kill it
    Alt + PrtScn +K
               or
    Ctrl + Alt + F1
       (if you want more then one terminal you can hit F2 and F3)



No comments:

Post a Comment