Need some basic help with my new node setup!

19 replies 454 views
Posts: 19 · Reputation: 139
#1Oct 12, 2020, 09:54 AM
I'm feeling a bit overwhelmed here! I took an old laptop, replaced its dead battery, and added a new one along with a 2TB SSD. It's got 8GB of RAM, and I'm planning to upgrade to 16GB soon. After a lot of trial and error, I got Ubuntu 24.04 LTS installed and managed to update it by following a bunch of YouTube tutorials. Then I went to Bitcoin.Org to download the node software. The first file I tried was a TAR GZ format, which ended up in my downloads, but when I clicked it, it just opened a bunch of other boxes like Russian nesting dolls, and none of them were executable files. So I gave up on that and switched to the Linux Snap software, which actually installed something on my laptop! I was super happy to see the Bitcoin logo pop up! When I clicked on it, it asked if I wanted to run a full or pruned node, and I opted for a full node. But then the window just closed on me. I tried clicking it again, and it said something about it already running, but I can't see anything happening. I checked what seems to be the Linux equivalent of Task Manager, and I found a process called Bitcoind running, so it’s definitely doing something! Right now, the Bitcoind process shows a "Disk write total" of 52.6GB and it’s slowly going up, so I’m guessing that’s the block history file since I can't think of anything else that would take up that much space. Is there a way to see a progress bar for the sync? Otherwise, how will I know when it's fully synced? Is there a GUI available, or do I have to stick with all this command line stuff?
5 Reply Quote Share
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#2Oct 12, 2020, 11:50 AM
You're running bitcoind, which is the daemon. You're probably looking for bitcoin-qt, which has a GUI. You're going to download another 600 GB. If you're going to add 8 GB RAM anyway, I can only recommend to do that first. It'll make verifying all blocks a lot smoother.
1 Reply Quote Share
Posts: 19 · Reputation: 139
#3Oct 12, 2020, 04:18 PM
so do I just type: bitcoin-qt in the terminal?
6 Reply Quote Share
hash_bossLegendary
Posts: 1166 · Reputation: 5261
#4Oct 12, 2020, 07:06 PM
On folder which store blockchain files, open debug.log file. It should contain lines which says CURRENT_DATE_TIME UpdateTip: ... progress=0.XXXXX ... where value of progress should be between 0.0 and 1.0 which represent current sync progress.
1 Reply Quote Share
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#5Oct 12, 2020, 10:51 PM
Depending on how and where it's installed, that should probably work. But you'll need to kill bitcoind first. This probably works:
0 Reply Quote Share
Posts: 19 · Reputation: 139
#6Oct 12, 2020, 11:36 PM
I tried entering bitcoin-qt into terminal and it says: command not found then I tried this line from the bitcoin.org site: /usr/local/bin/bitcoin-qt and that comes back with: bash: /usr/local/bin/bitcoin-qt: no such file or directory so I need to add some stuff but I don`t know what or where from or even how??? I can`t find bitcoin-qt anywhere? I can see some Windows stuff, it keeps pointing me to bitcoin.org but I can`t find it on there either, just the  TAR GZ thing and the snap linux that I already installed (I think?). I`v got 116Gb downloaded now and I think I`m probably going to have to wipe the lot and start again because I haven`t got the slightest idea what I`m doing! it looks like the -qt program is the one I needed/wanted all along and not this daemon thing whatever that is??? I don`t even understand what half of the instructions mean! perhaps I should just stick to mining, I really don`t think I`m smart enough for this
3 Reply Quote Share
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#7Oct 13, 2020, 02:26 AM
What directory did you start bitcoind from? You'll probably find bitcoin-qt in the same directory.
1 Reply Quote Share
Posts: 19 · Reputation: 139
#8Oct 13, 2020, 02:45 AM
I`v no idea, I did find a bitcoin-qt in my downloads directory in the BIN folder along with others including the bitcoind (which is running fine), I tried running the Bitcoin-qt binary and it does nothing!? I tried opening it with other things and those just gave me errors. it just doesn`t seem to want to run? and non of the others do either, it`s only bitcoind that works? as for directories and stuff, I have no idea where anything is or even how to move around them or find them, it`s totally alien to me. and to top it all off, it turns out that closing the lid on my laptop turns the wifi off! I can`t find any setting anywhere to change this, unless it`s in the BIOS somewhere? but I can`t find anything in ubuntus settings. 176Gb downloaded now, and it looks like I`m going to have to keep the lid open 24/7 to run as a node now, NOT what I wanted! *sigh* if it helps at all, I didn`t partition the 2Tb drive, I installed directly onto it. also, to get the Bitcoind running, I just clicked on the bitcoin logo. this may help a bit more but it doesn`t make sense! The original TarGZ thing that went into the Download drawer Has all the Bitcoin-qt and many other files, but I didn`t see an Install thing anywhere so I ignored it. Then I tried the Snap thingd and that Did install and gave me a bitcoin logo that I clicked on and got Bitcoind working. the directory path for that is:  Home/snap/bitcoin-core/common/.bitcoin But... there`s no bitcoind file in there? and yet it`s clearly running? I had to click show hidden files to see most of these things too, but bitcoind doesn`t seem to be in there, but it must be? so I`m even more confused now! LOL
2 Reply Quote Share
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#9Oct 13, 2020, 04:01 AM
I'm not sure if you can start bitcoin-qt while already running bitcoind. That's why I suggested you kill it first. Just Wifi, or does it put the laptop in sleep mode? Either way, that's a power managent setting. You need to extract the tarball somewhere on your disk, then you can run the binaries. What are you trying to accomplish? What made you choose Ubuntu to run a Bitcoin node if you have no Linux experience?
0 Reply Quote Share
Posts: 19 · Reputation: 139
#10Oct 13, 2020, 06:30 AM
Ok, so in that thing that`s a bit like task manager I stoped the Bitcoind process then killed it, I then tried to open the bitcoin-qt and still nothing? same with a couple of other BIN files like Wallet and they did nothing either? I tried the bitcoinD BIN from there and it looked like it was trying to load the block history from the start again! so I killed that too. Then I clicked on the bitcoin logo and Now I have a propper screen for the first time telling me my sync status in days/weeks etc... pretty much what I wanted really. it`s still not the -qt thing, but it`s progress! I can`t find any power management setting in ubunto that deals with the lid being closed, it does go to "sleep" too and require a password to log back in again, but I switched all that off along with screen dimming and time-outs, the lid however... well that`s just not catered for in any place I can see. I couldn`t find anything called tarball anythere? What am I trying to accomplish, Hmm.. good question! LOL I essentially wanted to run my own node because one of my miners is a bit underpowered now and my usual pool (ocean) has done something to the difficulty a few months back and now it doesn`t work anywhere near as well as it used to before the change, so I thought it would be nice mine to my own pool as a lottery type thing. I like the idea or running a node and helping out the network, I know it doesn`t need my help but I already mine and have done for a while now and figured this would "complete the collection" LOL Joking aside, I just find the whole thing fascinating really! Why did I chose Linux? well I really REALLY! don`t trust windows, like not even a little bit! and I`v many mention about linux being a bit like bitcoin itself, open source and by and for the people and pretty much decentralised. so it seemed like a good idea at the time! LOL of course looking back, I`m starting to wonder if it was such a good idea now? well my new screen says I only have 20 hours left to go now, much better than I expected really.
2 Reply Quote Share
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#11Oct 14, 2020, 02:30 PM
It's hard to tell exactly what you did when you say "you clicked the logo".... One of the things of running Linux, is that you'll find yourself Googling any problem you have, and most of the time you'll find a solution. It's the .tar.gz file You're going to find a steep learning curve, but once you get it, you'll probably like it. But that includes Googling stuff and reading things. For what it's worth: I've never liked the Snap system, and try to avoid it. I prefer to install install packages normally. Chances are it's a bit optimistic, especially when your 8 GB RAM starts becoming a limitation (because chainstate grows to 12 GB during sync).
2 Reply Quote Share
Posts: 19 · Reputation: 139
#12Oct 16, 2020, 05:35 AM
unbeleivable! what I thought was me running bitcoinD again wasn`t, in fact when I checked "task manager" it`s Bitcoin-qt working! it must be lagged or something because there was no sign at all that QT was doing anything other than it`s usual Nothing. so this new screen I have isn`t bitcoind that I started, it was that QT was taking ages to do anything. at least I know it works now and that I can only run one or the other. of course now I`m a bit concerned because the near 160Gb progress I`d made running bitcoinD seems to have gone to zero now I`m running QT, which is only at 19Gb currently? I really hope I don`t end up downloading 2 copies of the blockchain!
1 Reply Quote Share
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#13Oct 17, 2020, 12:39 AM
Maybe the Snap version has a different location to save it's files. I'm not sure, never used it. It sounds like you started from scratch again.
2 Reply Quote Share
Posts: 19 · Reputation: 139
#14Oct 17, 2020, 05:15 AM
yup, I`m thinking that too, I seem to have 2 versions on here with very similar items in each and I dare not delete one in case it`s the wrong one! I`m happy with this -QT version though, it makes a lot more sense to look at, though I can`t seem to change DB cache value in there from the default 450Mb, and I tried opening the conf file and it won`t open? so I`ll just leave it for now. I`m at about 7% now and it says it`ll be about 24 hours. so will that mean that when it`s fully synced I`m technically running a node? or is there more I have to do after this? I know I`d like to get TOR implemented on there and use that rather than my own IP eventually, but that`s not essential to running a node.
6 Reply Quote Share
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#15Oct 17, 2020, 10:24 AM
You should be able to change this by clicking Settings, no need to manually edit the config file. Yes. For mining, Tor (delays) are not recommended. Imagine you'll jackpot-mine a block, but are half a second slow in broadcasting it so someone else wins....
2 Reply Quote Share
hash_bossLegendary
Posts: 1166 · Reputation: 5261
#16Oct 17, 2020, 10:58 AM
That directory path used to store blockchain and other files. If you want to find location of bitcoind installed by Snap, AFAIK you can do that by using command which bitcoin-core.daemon. You're most likely right. Looking at https://github.com/bitcoin-core/packaging/blob/main/snap/snapcraft.yaml#L16-L23, it seems it override $HOME which makes it's impossible for Bitcoin Core (snap version) to access actual $HOME.
3 Reply Quote Share
Posts: 19 · Reputation: 139
#17Oct 17, 2020, 04:52 PM
well I`m at 58% now and it`s still saying another 22 hours! LOL I guess that`s because the block height increased over time. I need to find some sort of instruction manual for it now, even if it`s just how to keep it maintained and security updated reglarly, I expect that some time tommorow it`ll be nearly done, then I can shut it down and try figure out how to stop it closing the wifi down when I shut the laptop lid, hopefully it`s something simple in the BIOS, failing that I`ll have to try and find the sensor switch when I`m fitting the ram upgrade and bypass that. Good point about TOR and lags, I think I`ll hold off doing that for now unless my ISP decides to be more of an ass than usual. Thanks for helping me out here, and talking me off a ledge! LOL I have a bit more confidence that this is going to work now a few more questions, I`m looking at the Bitcoin-qt program as it`s syncing up (60.54% now) and I`m in the "Peers" section. in "Type" it has 2 sorts listed; `full relay` and `block relay` is `full relay` the same as a full node like I`ll be running soon, and is `block relay` a pruned node? also in "User agent", is that the node software they`re running? would they see me as; /Satoshi:27.1.0/ for instance.
1 Reply Quote Share
im_lynxHero Member
Posts: 515 · Reputation: 2161
#18Oct 17, 2020, 06:36 PM
Please, stop violating rule #32 of Unofficial list of (official) Bitcointalk.org rules, guidelines, FAQ, posting unnecessary consecutive posts. When the last post in a thread is yours and you want to add something new, you can simply edit your own last post. No need to artificially blow up your post count, it doesn't make you smarter. A full relay node relays blocks and transactions, a block relay node only transmits blocks, no transactions. A pruned node can be a "full relay" or "block relay", depending what the node owner set up, but it indicates to its peers by its capabilities that it can't provide all block data, IIRC.
5 Reply Quote Share
hash_bossLegendary
Posts: 1166 · Reputation: 5261
#19Oct 17, 2020, 10:36 PM
1. Your node can be used by other node either as full relay or block relay. 2. Block relay isn't indicator of pruned node. 3. If you want to know whether certain full node is pruned or not, AFAIK you can find out by checking list of services which mention "NETWORK_LIMITED" but doesn't mention "NETWORK". Yes. But in theory, malicious node or node with poorly written software may give "wrong" user agent.
0 Reply Quote Share
Posts: 19 · Reputation: 139
#20Oct 18, 2020, 12:50 AM
Ok, so the node`s been running perfectly now and I managed to stop the lid closing from turning off the wifi by altering a config file and it`s all good! I`v bought a second 2tb internal ssd drive for the laptop so I can make backups of the block data every now and again (perhaps monthly). From what I can tell I need to copy the folders 'Blocks' and also 'Chainstate' are there any other essential files that will need backing up? I`m not bothered about wallets because I won`t be using it for that. also, on linux (specificaly ubuntu) can I just copy / paste these files onto the new drive and the next time I do it, will it just copy the new stuff that`s been added or will it be awkward? On windows it gives the option to 'Skip' files that already exist.
2 Reply Quote Share

Related topics