I renamed boinc-cuda to boinc-cuda.service
and working systemd scripts is
[Unit]
Description=boinc-cuda
Before=boinc.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/boinc-cuda
[Install]
WantedBy=boinc.service
Now i have "Arch headless Boinc server"
]]>But systemd not
[Unit]
Description=My script
[Service]
ExecStart=/usr/bin/boinc-cuda
[Install]
WantedBy=multi-user.target
Failed to issue method call: Unit boinc-cuda.service failed to load: No such file or directory. See system logs and 'systemctl status boinc-cuda.service' for details.
]]>progandy wrote:Can you try this instead of starting x?
http://reference.wolfram.com/mathematic … dless.htmlWorking
It not necessary start XAnd new problems, how start shell scripts in systemd.
#!/bin/bash /sbin/modprobe nvidia if [ "$?" -eq 0 ]; then # Count the number of NVIDIA controllers found. N3D=`lspci | grep -i NVIDIA | grep "3D controller" | wc -l` NVGA=`lspci | grep -i NVIDIA | grep "VGA compatible controller" | wc -l` N=`expr $N3D + $NVGA - 1` for i in `seq 0 $N`; do mknod -m 666 /dev/nvidia$i c 195 $i done mknod -m 666 /dev/nvidiactl c 195 255 else exit 1 fi
Your modprobe that the kernel should activate automatically should make the devices for you.
This is a sysvinit script, not a systemd script. Although all it takes is for the systemd script to call your script.
Can you try this instead of starting x?
http://reference.wolfram.com/mathematic … dless.html
Working
It not necessary start X
And new problems, how start shell scripts in systemd.
#!/bin/bash
/sbin/modprobe nvidia
if [ "$?" -eq 0 ]; then
# Count the number of NVIDIA controllers found.
N3D=`lspci | grep -i NVIDIA | grep "3D controller" | wc -l`
NVGA=`lspci | grep -i NVIDIA | grep "VGA compatible controller" | wc -l`
N=`expr $N3D + $NVGA - 1`
for i in `seq 0 $N`; do
mknod -m 666 /dev/nvidia$i c 195 $i
done
mknod -m 666 /dev/nvidiactl c 195 255
else
exit 1
fi
if i connet ssh and manuall startx and restart boinc
cuda work
Problems is !
How auto star xserver, without login, no DE, no windows manager, no display manager.
but without Xserver boinc not use cuda ?
]]>Clean fresh default install (pactrap /mnt base grub)
Then intalled
xorg-server xorg-xinit xorg-server-utils
nvidia
openssh
boinc-nox and openclnvidiaand add remote_hosts.cfg to get remotly gui connection work.
But boinc, no usable Gpus found.
Ssh remotly login root, startx and restart boinc
Cuda gpu capatilies workProplem is.
How auto star xserver, without login, no DE, no windows manager, no display manager.
Wait...boinc-nox? Don't you want just regular boinc if you are using X?
You could ... run boinc in a
DISPLAY=:xx boinc
maybe or by using xpra-winswitch in the AUR? Then you could remotely connect to the active process that way. Using xpra-winswitch is kinda silly isn't it? All that intense graphics over the network, when all you need to do to check process can be done just like it is done in boinc-nox.
]]>and add remote_hosts.cfg to get remotly gui connection work.
But boinc, no usable Gpus found.
Ssh remotly login root, startx and restart boinc
Cuda gpu capatilies work
Proplem is.
How auto star xserver, without login, no DE, no windows manager, no display manager.
]]>