[GH-ISSUE #368] Need help after the cloning step (Linux) #331

Closed
opened 2026-02-26 00:32:21 +03:00 by kerem · 7 comments
Owner

Originally created by @htt-duong93 on GitHub (Oct 29, 2017).
Original GitHub issue: https://github.com/hirschmann/nbfc/issues/368

I'm currently trying to install NBFC on my ubuntu laptop while following the steps in this blog : https://blog.briantruscott.com/how-to-enable-laptop-fan-in-linux-with-nbfc/

Under the "Downloading NBFC" section, I'm trying to clone the /opt/directory with the exact command line but i get the following error message :
"bash: cd: /opt/nbfc: No such file or directory"

Are there any solutions for this?

Originally created by @htt-duong93 on GitHub (Oct 29, 2017). Original GitHub issue: https://github.com/hirschmann/nbfc/issues/368 I'm currently trying to install NBFC on my ubuntu laptop while following the steps in this blog : https://blog.briantruscott.com/how-to-enable-laptop-fan-in-linux-with-nbfc/ Under the "Downloading NBFC" section, I'm trying to clone the /opt/directory with the exact command line but i get the following error message : "bash: cd: /opt/nbfc: No such file or directory" Are there any solutions for this?
kerem 2026-02-26 00:32:21 +03:00
  • closed this issue
  • added the
    Stale
    label
Author
Owner

@GreyWorks commented on GitHub (Oct 31, 2017):

Seems to me there is a text formatting problem on that page.
Have you tried to directly clone it to the /opt directory (not /opt/directrory) with that command?
It should clone to /opt/nbfc.

<!-- gh-comment-id:340776775 --> @GreyWorks commented on GitHub (Oct 31, 2017): Seems to me there is a text formatting problem on that page. Have you tried to directly clone it to the /opt directory (not /opt/directrory) with that command? It should clone to /opt/nbfc.
Author
Owner

@htt-duong93 commented on GitHub (Oct 31, 2017):

You're right.... rookie mistake. I am new to Linux distributions so I didn't notice the mistake. However when I do the next step -> " sudo sh build.sh " the terminal sends me a message that displays :
" build.sh: 10: build.sh: Syntax error: "}" unexpected "

Basically, the terminal doesn't download the rest of the files for me.

<!-- gh-comment-id:340829679 --> @htt-duong93 commented on GitHub (Oct 31, 2017): You're right.... rookie mistake. I am new to Linux distributions so I didn't notice the mistake. However when I do the next step -> " sudo sh build.sh " the terminal sends me a message that displays : " build.sh: 10: build.sh: Syntax error: "}" unexpected " Basically, the terminal doesn't download the rest of the files for me.
Author
Owner

@GreyWorks commented on GitHub (Oct 31, 2017):

No problem. Everyone using Linux was a rookie at some point. I think i can help here, too :)
Roaming around the closed issues i found #324.
It points to a stackoverflow post

Basic TLDR:
Make the file executable if it isn't already:
chmod +x build.sh
Then run it like sudo ./build.sh instead of sudo sh build.sh

I hope that helps.

<!-- gh-comment-id:340838725 --> @GreyWorks commented on GitHub (Oct 31, 2017): No problem. Everyone using Linux was a rookie at some point. I think i can help here, too :) Roaming around the closed issues i found #324. It points to [a stackoverflow post](https://askubuntu.com/questions/834853/ubuntu-bash-functions-syntax-error-or-unexpected) Basic TLDR: Make the file executable if it isn't already: `chmod +x build.sh` Then run it like `sudo ./build.sh` instead of `sudo sh build.sh` I hope that helps.
Author
Owner

@htt-duong93 commented on GitHub (Oct 31, 2017):

Awesome thanks! I have the service up and running, however I only have one final step before I can get the service to fully run properly on start-up...
I followed everything correctly in the blog, but I can't get the last instruction executed properly :
"sudo sh nbfc.sh"

I made the file executable and then ran the exact way you showed me and this error appears :
"./nbfc.sh: 8: ./nbfc.sh: Syntax error: newline unexpected"

<!-- gh-comment-id:340847196 --> @htt-duong93 commented on GitHub (Oct 31, 2017): Awesome thanks! I have the service up and running, however I only have one final step before I can get the service to fully run properly on start-up... I followed everything correctly in the blog, but I can't get the last instruction executed properly : "sudo sh nbfc.sh" I made the file executable and then ran the exact way you showed me and this error appears : "./nbfc.sh: 8: ./nbfc.sh: Syntax error: newline unexpected"
Author
Owner

@GreyWorks commented on GitHub (Oct 31, 2017):

Hm.. i think this is as far as I can help. I'm not using Ubuntu so I can't really reproduce the problem.

But it may be the same as for the build.sh. At least the error seams close enough.
I would try to make it executable and run it as sudo ./nbfc.sh.

Also you meight have downloaded the github html instead of the nbfc.sh
The url to the raw file is: https://raw.githubusercontent.com/nomofica/nbfc_startscript/master/nbfc.sh

<!-- gh-comment-id:340850103 --> @GreyWorks commented on GitHub (Oct 31, 2017): Hm.. i think this is as far as I can help. I'm not using Ubuntu so I can't really reproduce the problem. But it may be the same as for the build.sh. At least the error seams close enough. I would try to make it executable and run it as `sudo ./nbfc.sh`. Also you meight have downloaded the github html instead of the nbfc.sh The url to the raw file is: https://raw.githubusercontent.com/nomofica/nbfc_startscript/master/nbfc.sh
Author
Owner

@hirschmann commented on GitHub (Nov 1, 2017):

@Kyuuren there is a tutorial on how to run NBFC on Linux in the NBFC wiki: https://github.com/hirschmann/nbfc/wiki/First-steps#linux

<!-- gh-comment-id:341218239 --> @hirschmann commented on GitHub (Nov 1, 2017): @Kyuuren there is a tutorial on how to run NBFC on Linux in the NBFC wiki: https://github.com/hirschmann/nbfc/wiki/First-steps#linux
Author
Owner

@github-actions[bot] commented on GitHub (Dec 7, 2019):

This issue is stale because it has been open more than 180 days with no activity. If nobody comments within 7 days, this issue will be closed

<!-- gh-comment-id:562787359 --> @github-actions[bot] commented on GitHub (Dec 7, 2019): This issue is stale because it has been open more than 180 days with no activity. If nobody comments within 7 days, this issue will be closed
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nbfc-hirschmann#331
No description provided.