mybash icon indicating copy to clipboard operation
mybash copied to clipboard

Installing font 'FiraCode Nerd Font' Failed to resolve 'nerd' (Name or service not known)

Open hollali opened this issue 1 year ago • 19 comments

Screenshot from 2024-07-27 02-11-43

I am using fedora 40 workstation .it was working fine two weeks ago when now now i run the it but for a week now its been showing this error

hollali avatar Jul 27 '24 02:07 hollali

I am not sure if this will work and if it doesnt there IS a chance u may have to clone the repo again but have u tried editing the setup.sh and removing the font section. Try this at ur own risk. If u dont want to try it its is fine but It worked for me. Btw I am a Fedora 40 workstation user that uses gnome

MaayerAli avatar Aug 04 '24 07:08 MaayerAli

I am not sure if this will work and if it doesnt there IS a chance u may have to clone the repo again but have u tried editing the setup.sh and removing the font section. Try this at ur own risk. If u dont want to try it its is fine but It worked for me. Btw I am a Fedora 40 workstation user that uses gnome

Pls show my how you did it. i tried that what you say but it didn't work. maybe i went about it wrong

hollali avatar Aug 04 '24 07:08 hollali

Hey dude If I am being honest my solution didnt work (I am so sorry).But I have found a way. Number 1 is that you install the font first so Install the FiraCode Nerd Font from this url: https://github.com/ryanoasis/nerd-fonts/releases/download/v2.3.3/FiraCode.zip . After that extract the zip file with the font (u can use unzip in the terminal or extract via the gui).Open the extracted folder and select the font you want to use and open with the fonts app and click the install button (BTW double check the font is installed). Once ur done just open ur terminal (for me it is kitty) and enter the folder with the setup.sh file and run it with this command ( ./setup.sh) and proceed through the installation. Once ur done just close ur terminal and reopen to see the titus bash

MaayerAli avatar Aug 04 '24 09:08 MaayerAli

Screenshot from 2024-08-04 13-04-15

MaayerAli avatar Aug 04 '24 09:08 MaayerAli

Btw If u are wondering why the symbols are messed up. It is because I installed and used a different font (for my terminal and my bash) called JetBrains Mono. If you use a different font for the terminal the fastfetch symbols can be messed up

MaayerAli avatar Aug 04 '24 09:08 MaayerAli

If u need a video just let me know and also let me know if u need me to explain how to use a different font for the bash ONLY

MaayerAli avatar Aug 04 '24 09:08 MaayerAli

Hope it works out and let me know if it doesnt work

MaayerAli avatar Aug 04 '24 09:08 MaayerAli

Hey dude If I am being honest my solution didnt work (I am so sorry).But I have found a way. Number 1 is that you install the font first so Install the FiraCode Nerd Font from this url: https://github.com/ryanoasis/nerd-fonts/releases/download/v2.3.3/FiraCode.zip . After that extract the zip file with the font (u can use unzip in the terminal or extract via the gui).Open the extracted folder and select the font you want to use and open with the fonts app and click the install button (BTW double check the font is installed). Once ur done just open ur terminal (for me it is kitty) and enter the folder with the setup.sh file and run it with this command ( ./setup.sh) and proceed through the installation. Once ur done just close ur terminal and reopen to see the titus bash

Thank you very much, this solution worked perfectly for me!

image

AlissonJLO avatar Aug 07 '24 00:08 AlissonJLO

If u need a video just let me know and also let me know if u need me to explain how to use a different font for the bash ONLY

I also use bash so if you are still open to making the video it will really be of great help 🙏🏾. Because I am still confused.

hollali avatar Aug 08 '24 01:08 hollali

I dont use fedora anymore I switched to arch linux but I can make a video in a fedora virtual machine if u are interested but give me a day

MaayerAli avatar Aug 08 '24 09:08 MaayerAli

I dont use fedora anymore I switched to arch linux but I can make a video in a fedora virtual machine if u are interested but give me a day

I would appreciate that so much

hollali avatar Aug 08 '24 11:08 hollali

I dont use fedora anymore I switched to arch linux but I can make a video in a fedora virtual machine if u are interested but give me a day

I would appreciate that so much

Here is the video u requested https://youtu.be/23a5YJQIgoc

MaayerAli avatar Aug 08 '24 12:08 MaayerAli

I dont use fedora anymore I switched to arch linux but I can make a video in a fedora virtual machine if u are interested but give me a day

I would appreciate that so much

Here is the video u requested https://youtu.be/23a5YJQIgoc

image It worked. Thanks a lot. And I have subscribed to your yt channel

hollali avatar Aug 08 '24 15:08 hollali

Hey I am happy I could help you and I hope you enjoy using fedora. I use Arch btw

MaayerAli avatar Aug 08 '24 16:08 MaayerAli

Btw in the vid, I sound like a kid and thats because im in middle school 🤣

MaayerAli avatar Aug 08 '24 17:08 MaayerAli

Btw in the vid, I sound like a kid and thats because im in middle school 🤣

Yeah I figured 😂

hollali avatar Aug 11 '24 15:08 hollali

Hi I also encountered this issue today, the comments did help, thank you very much. But why keep a piece of code in the repository which would always require for the user to either modify, remove or resolve that part separately (install the font if it isn't already). Screenshot from 2024-08-12 17-15-32

Also as you can see the code exited in a fashion that suggested it "had" a problem with the download, but every thing else completed fine. Due to this I ran the code 2-3 times, deleting linuxtoolbox folder for each and even tried restarting, but no beautiful titus bash :( If I had not decided to check the Issues page, probably would have decided the repo to be a fail and moved on.

My suggestion: Check for a particular nerd font > if not present > throw some yellow warning msg saying "If you want premium bash experience we recommend installing one of the Nerd Fonts found at <trusted_url>". Maybe I'll raise a PR later with this if someone else hasn't already, see what boss man thinks xD

manishchoudharylive avatar Aug 12 '24 13:08 manishchoudharylive

Hi I also encountered this issue today, the comments did help, thank you very much. But why keep a piece of code in the repository which would always require for the user to either modify, remove or resolve that part separately (install the font if it isn't already).

Screenshot from 2024-08-12 17-15-32

Also as you can see the code exited in a fashion that suggested it "had" a problem with the download, but every thing else completed fine. Due to this I ran the code 2-3 times, deleting linuxtoolbox folder for each and even tried restarting, but no beautiful titus bash :(

If I had not decided to check the Issues page, probably would have decided the repo to be a fail and moved on.

My suggestion: Check for a particular nerd font > if not present > throw some yellow warning msg saying "If you want premium bash experience we recommend installing one of the Nerd Fonts found at <trusted_url>".

Maybe I'll raise a PR later with this if someone else hasn't already, see what boss man thinks xD

It used to work automatically. The problem just started happening about a month ago

hollali avatar Aug 12 '24 20:08 hollali

Hi I also encountered this issue today, the comments did help, thank you very much. But why keep a piece of code in the repository which would always require for the user to either modify, remove or resolve that part separately (install the font if it isn't already). Screenshot from 2024-08-12 17-15-32

Also as you can see the code exited in a fashion that suggested it "had" a problem with the download, but every thing else completed fine. Due to this I ran the code 2-3 times, deleting linuxtoolbox folder for each and even tried restarting, but no beautiful titus bash :( If I had not decided to check the Issues page, probably would have decided the repo to be a fail and moved on.

My suggestion: Check for a particular nerd font > if not present > throw some yellow warning msg saying "If you want premium bash experience we recommend installing one of the Nerd Fonts found at <trusted_url>". Maybe I'll raise a PR later with this if someone else hasn't already, see what boss man thinks xD

I know its stupid and yea but I think the firaCode nerd font (which is a dependency and a font that has to be used in this in the setup.sh script) is not in the fedora 40 official repos and therefore the script cant run and you get the issue. I am not entirely sure but u can check if u have doubts

MaayerAli avatar Aug 13 '24 12:08 MaayerAli