ThomasTJdev / nim_websitecreator

Nim fullstack website framework - deploy a website within minutes
https://nimwc.org
MIT License
176 stars 7 forks source link

Error: Xvfb program was not found #68

Closed jots closed 5 years ago

jots commented 5 years ago

running ./nimwc gives: Error: Xvfb program was not found in /usr/bin directory, please install it

I have noX=true in config.cfg in the firejail section.

Why does it want Xvfb?

juancarlospaco commented 5 years ago

X Isolation.

You have 2 options:

Usually is named xorg-server-xvfb or xvfb on most Linux distros. :slightly_smiling_face:

jots commented 5 years ago

Thank you! I had that option backwards in my mind. Now I get:

Mounting tmpfs on /var/lock
Error mounting /lock: fs_var.c:254 fs_var_lock: Too many levels of symbolic links
Error: proc 4901 cannot sync with peer: unexpected EOF
Peer 4902 unexpectedly exited with status 1

I'm running this on crouton on a chromebook. Is this another firejail problem?
How can I disable firejail? I tried nim c -d:firejail=no nimwc.nim but that didnt' do it.

juancarlospaco commented 5 years ago

Just remove the -d:firejail from the compile command. Then is Disabled and no Firejail code is on the binary. Everything Firejail is also gone, including its UI.

You can also set everything to false on the config.cfg


[firejail]
noDvd=false
noSound=false
noAutoPulse=false
no3d=false
noX=false
noVideo=false
noDbus=false
noDebuggers=false
noMachineId=false
noRoot=false
noAllusers=false
noU2f=false
privateTmp=false
privateCache=false
privateDev=false
noShell=false
forceEnUsUtf8=false
caps=false
seccomp=false
noTv=false
writables=false
noMnt=false
maxSubProcesses=0
maxOpenFiles=0
maxFileSize=0
maxPendingSignals=0
timeout=0
maxCpu=0
maxRam=0
cpuCoresByNumber=0
hostsFile=/etc/hosts
dns0=""
dns1=""
dns2=""
dns3=""
jots commented 5 years ago

Thanks. I commented out -d:firejail from nimwc.nim.cfg and it works! I look forward to checking this system out, it seems very cool!