My linux reboots itsel randomly

Hmm… once this happens again issue (as root) “dmesg” and record the output and look toward the end for message that might have appeared at the time when the problem happened. Maybe you see a segmentation fault (and the process name causing it) or probably a “out of memory” situation.

I would also suggest to reboot and run Coreboot memtest to test the RAM for faults.

Cheers
nicole