Can I suggest adding an alias to the .bashrc? Instead of typing : ~/qtum-wallet/bin/qtum-cli, we can add to ~/.bashrc:
alias qtum-cli='~/qtum-wallet/bin/qtum-cli'
That way, we can just execute qtum-cli from the wallet directory by typing: qtum-cli
I cant connect to my wallet using qtum-cli :
$ ~/qtum-wallet/bin/qtum-cli getinfo
error: couldn't connect to server: unknown (code -1)
(make sure server is running and you are connecting to the correct RPC port)
I know nothing about .cookie so I don't know what to do. Any help?
The .cookie file gets created in the datadir (by default under
~/.qtum) whenqtumdstarts up and RPC is enabled. You probably don't haveqtumdrunning -- you can use$ pgrep -a qtumdto check (if that outputs nothing, then it isn't running).Yes, or add
~/qtum-wallet/bininto your$PATH. I should indeed have suggested it.