Installing Bitcoin Knots on Ubuntu

4 replies 146 views
Posts: 17 · Reputation: 226
#1Sep 3, 2021, 06:18 PM
Hey folks! So today I got my first computer just for running a node! It didn’t come with an OS, so I went ahead and put Ubuntu 24.04 on it. After doing some research, I decided that Knots is the right node software for me. Long story short, I hit a wall trying to install Knots. I looked around this forum and came across this thread: https://this forum.org/index.php?topic=5544143.0 but it didn’t help me out.. In the end, I installed Core, which was super simple from the Ubuntu App Center. I hope you guys can help me find a solution. Cheers, Åsmund Oh, wait... I figured it out myself.. But I have another question: If I remove Core, will all the synced data get deleted too? I noticed that Knots starts from 0%, so it looks like it’s creating its own "library". I just wanna clear all the data from Core.
4 Reply Quote Share
im_lynxHero Member
Posts: 515 · Reputation: 2161
#2Sep 3, 2021, 09:36 PM
Why do you violate rule #32 of forum rules (meanwhile your second post got merged into your first)? See here for better understanding and following them: Unofficial list of (official) Bitcointalk.org rules, guidelines, FAQ When you installed Bitcoin Core from Ubuntu's App Center, you installed the Snap package version with which I had issues in the past, especially when using Core over Tor. It might be fixed in recent Snap package version, but honestly, I'm not such a big fan of Snap. When you say how about to actually post what your problem was and how you solved it, because it might be of interest for other users, too. Don't you think so? I don't remember if the Snap Core used some other location for it's datadir. I didn't bother to try Knots, so I don't know if it uses a different datadir than Core or Snap's Core.
2 Reply Quote Share
coin_sigmaLegendary
Posts: 1275 · Reputation: 5553
#3Sep 3, 2021, 11:18 PM
I don't know if Bitcoin Knots is using the same directory path as Bitcoin Core, but if it's not, you can point your Bitcoin Knots to the Bitcoin Core blockchain directory. Bitcoin Knots has a guide about how to use datadir to point your Bitcoin Knots; you can check them from this link below - https://github.com/bitcoinknots/bitcoin/blob/5f8256608fc41c7b72a01a54e9a06ba509a61c8f/doc/files.md?plain=1#L33
6 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#4Sep 4, 2021, 01:42 AM
No it wont, only the related installed data will be deleted. But if you want extra ease-of-mind, you may rename the bitcoin data directory (location) before uninstalling Bitcoin Core, then rename it back after. It's not really needed though. If both Core and Knots are set to use the default datadir, Knots should continue to the last block that Core already synced. Otherwise, using a different data directory will create separate sync progress.
2 Reply Quote Share
Posts: 17 · Reputation: 226
#5Sep 4, 2021, 02:10 AM
I`m sorry! I was pissed off after struggling for hours! Thank you all for your answers! The way I solved it is  quite embarrassing and is directly caused by me not using linux for about 20 years.. Solution: sudo add-apt-repository ppa:luke-jr/bitcoinknots sudo apt update sudo apt-get install bitcoin-qt Thats it..
4 Reply Quote Share
?Reply
Sign in to reply to this topic

Related topics