Monday, September 6, 2010

Kill Maya

There are plenty of times when Maya goes rogue and takes control of your system. Here are some methods of killing the frozen process.

Linux has superior methods of handling this situation so we'll start here.
  • First connect to an auxiliary terminal.  
    • Open a Virtual Console.
      • Press Ctrl+Alt+Fn.
    • Connect from a remote terminal using a secure shell.  *The SSH server must be started on the client machine.  service sshd start on fedora.
      • ssh username@ip
    • Connect from a remote OS using a VNC as an alternative user.  *The VNC server must be started on the client machine.
  • Once connected to the local terminal identify and kill the process.
    • Use standard unix commands.
      • ps -u paul | grep maya
      • kill -signal pid
        • 9 SIGKILL -Hardest
        • 15 SIGTERM -Softest 
    • If installed use top.
      • top
        • z: color
        • x: highlight column sort
        • <, > change sort column 
        • q: quit
        • u: username
        • R: reverse sort
        • k: kill process id

            Windows on the otherhand does not have virtual consoles so all these methods require a auxiliary computer on the network.
            • Run a basic taskkill.
              • taskkill /s ip /u username /p password /im maya.exe /f  [/pid process id]
            • Connect using telnet. *The telnet server must be started on the client machine. Check Telnet Client and Telnet Server from Control Panel->Programs and Features->Turn Windows features on or off.
              • telnet ip
              • taskkill /u username /p password /im maya.exe /f
            • Connect from a remote OS using a VNC as an alternative user.  *The VNC server, or default Microsoft Terminal Server, must be started on the client machine.
              • runas /user:username "taskkill /im maya.exe /f"