You are not logged in.

#1 2013-09-12 12:30:55

pekka
Member
Registered: 2011-07-21
Posts: 104

Arch headless Boinc server [Solved]

Clean fresh default install (pactrap /mnt base grub)
Then intalled
xorg-server xorg-xinit xorg-server-utils
nvidia
openssh
boinc-nox and openclnvidia

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.

Last edited by pekka (2013-09-12 17:11:58)

Offline

#2 2013-09-12 14:16:56

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,362

Re: Arch headless Boinc server [Solved]

pekka wrote:

Clean fresh default install (pactrap /mnt base grub)
Then intalled
xorg-server xorg-xinit xorg-server-utils
nvidia
openssh
boinc-nox and openclnvidia

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.

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.

Last edited by nomorewindows (2013-09-12 14:19:37)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#3 2013-09-12 14:56:54

pekka
Member
Registered: 2011-07-21
Posts: 104

Re: Arch headless Boinc server [Solved]

"Headless Boinc server",not need X.

but without Xserver boinc not use cuda ?

Offline

#4 2013-09-12 15:13:32

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,362

Re: Arch headless Boinc server [Solved]

Do you have cuda installed?
What does your /var/lib/boinc/std*.txt show in regards to cuda?


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#5 2013-09-12 15:23:05

pekka
Member
Registered: 2011-07-21
Posts: 104

Re: Arch headless Boinc server [Solved]

Cuda is installled

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.

Offline

#6 2013-09-12 15:33:40

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,362

Re: Arch headless Boinc server [Solved]

I'm thinking it's the xorg-server-xephyr, xorg-server-xnest or xorg-server-xvfb server that can run without being displayed.

Last edited by nomorewindows (2013-09-12 15:34:06)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#7 2013-09-12 15:34:23

progandy
Member
Registered: 2012-05-17
Posts: 5,180

Re: Arch headless Boinc server [Solved]

Can you try this instead of starting x?
http://reference.wolfram.com/mathematic … dless.html


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#8 2013-09-12 15:46:11

pekka
Member
Registered: 2011-07-21
Posts: 104

Re: Arch headless Boinc server [Solved]

progandy wrote:

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

Offline

#9 2013-09-12 15:51:09

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,362

Re: Arch headless Boinc server [Solved]

pekka wrote:
progandy wrote:

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

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.

Last edited by nomorewindows (2013-09-12 15:52:44)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#10 2013-09-12 16:15:18

pekka
Member
Registered: 2011-07-21
Posts: 104

Re: Arch headless Boinc server [Solved]

Shell scripts directly run (sh /usr/bin/boinc-cuda) works.

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.

Offline

#11 2013-09-12 16:42:03

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,362

Re: Arch headless Boinc server [Solved]

Do your script work on its' own?


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#12 2013-09-12 17:11:00

pekka
Member
Registered: 2011-07-21
Posts: 104

Re: Arch headless Boinc server [Solved]

Solved

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"

Last edited by pekka (2013-09-13 15:36:17)

Offline

Board footer

Powered by FluxBB