boltblog

Pausing and continuing a process on Linux

Posted on February 25, 2012

If you want to pause a process while you do something else, like for instance stop a heavy file operation while you're just moving some stuff around quickly, there are two signals to pay attention to: STOP and CONT.

STOP will pause a process (not actually stop it - it doesn't die)
CONT continues a stopped process, and does nothing if the process isn't stopped.

An easy way to experiment with this is to start xeyes:

$ xeyes &
[1] 26114

In this case, xeyes got the Process ID (PID) 26114. You can use "ps" to find Process ID's of running processes.

Xeyes is an application that shows two "eyes" on the screen, with eyeballs following your mouse pointer around.

To pause this process I use, in my case "kill -STOP 26114". Notice the eyes stop moving to follow the mouse pointer. "kill -CONT 26114" resumes the application.

 

Filed under: Howto's, Linux No Comments

Linux on Mac Mini – power on after power loss

Posted on February 17, 2012

The Mac Mini doesn't save this information in its BIOS (or equivalent), so you need to set it on each boot. I use my distribution's /etc/rc.local file for this.

Either way, these are the commands to run (copy, and uncomment the correct line for your Mini):

## PPC Mac Mini
#echo server_mode=1 > /proc/pmu/options

## Intel Mac Mini
#setpci -s 0:1f.0 0xa4.b=0

## nVidia Mac Mini
#setpci -s 00:03.0 0x7b.b=0x19

## Unibody Mac Mini
#setpci -s 0:3.0 -0x7b=20