Page 2 of 2

Re: Afanasy on Ubuntu 20.04

Posted: Tue Mar 09, 2021 7:39 pm
by timurhai
To run something from the other user in a terminal, switch to this user first:

Code: Select all

sudo su - render
Then enter the command.

Re: Afanasy on Ubuntu 20.04

Posted: Wed Mar 10, 2021 5:15 am
by lalamax3d
Hi Timurhai (Sir)
thanks again. did all tests as instructed.
1- i was missing blender softlink in /usr/bin. sorted. after creating that. i can run task command in my terminal
2- also running it from afanasy conole work ( checked )
3- running after sudo su - render gives this error

Code: Select all

HOSTNAME=dell
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
Blender 2.92.0 (hash 02948a2cab44 built 2021-02-25 09:31:37)
Read blend: /home/user/Downloads/temp_blends/scene.20210309223503.blend
Unable to open a display
/opt/cgru/software_setup/bin/blender: line 5: 1859 Aborted (core dumped) $APP_EXE "$@"
my assumption is, alsa lib is related to sound..if so... output devices list seems like...

Code: Select all

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC269VB Analog [ALC269VB Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: H340 [Logitech USB Headset H340], device 0: USB Audio [USB Audio]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 11: HDMI 5 [HDMI 5]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 12: HDMI 6 [HDMI 6]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

i wish i knew how to set card1 as default output device.

OR

Q. is there a way to tell afanacy to use default user account (user) rather then user it created (render).?

thanks for your support / time. have a good day. regards,haseeb

Re: Afanasy on Ubuntu 20.04

Posted: Wed Mar 10, 2021 5:52 am
by timurhai
Hi!

If your render engine needs display, how are you going to render as service (w/o display)?
- Ask on Blender forums, how it happens, how to avoid it.
- As a temporary solution, try to run afrender not as a service, but as a common program with display. Open terminal from a GUI user session, stop afrender service:

Code: Select all

sudo systemctl stop afrender
.
Go to cgru root folder and start afrender not as a service:

Code: Select all

cd cgru
source ./setup.sh
afrender
Read SystemD manuals to find different ways to setup the user to start systemd service by.
There are lot of SystemD documentation over internet.