ChrisTitusTech / mybash

My Bash profile - Highly customized Starship Theme - Just imagine Powerlevel10k and Nord Theme had a baby.
396 stars 204 forks source link

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

Open hollali opened 3 months ago

hollali commented 3 months ago

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

MaayerAli commented 3 months ago

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

hollali commented 3 months ago

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

MaayerAli commented 3 months ago

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 commented 3 months ago

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

MaayerAli commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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

AlissonJLO commented 3 months ago

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

hollali commented 3 months ago

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.

MaayerAli commented 3 months ago

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

hollali commented 3 months ago

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

MaayerAli commented 3 months ago

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

hollali commented 3 months ago

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

MaayerAli commented 3 months ago

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

MaayerAli commented 3 months ago

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

hollali commented 3 months ago

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

Yeah I figured 😂

manishjchoudhary commented 2 months ago

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 ". Maybe I'll raise a PR later with this if someone else hasn't already, see what boss man thinks xD

hollali commented 2 months ago

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 ".

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

MaayerAli commented 2 months ago

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 ". 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