Bitcoin Forum
May 16, 2024, 11:24:59 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1] 2 3 »
1  Bitcoin / Electrum / Re: Can not edit config file in Electrum, it gets overridden after starting Electrum on: July 05, 2021, 07:41:30 PM
shouldn't the server line include double quotes:

Code:
"server": "localhost:50002:s",

don't turn off rbf. it's very useful.

i have it exactly like this
Code:
"server": "localhost:50002:s",


Thanks! i ended up not turning off rbf.
2  Bitcoin / Electrum / Re: Electrum-4.1.4 Installation from Python sources doesn't work on: July 05, 2021, 05:00:53 PM
You should see one of the paths being /usr/lib/python3/dist-packages, navigate there and check if the dependencies are present. You can also try to purge the modules if needed: apt-get purge python3-pyqt5.

I dont have the exact same path as you mentioned, i get this output:
['', '/usr/local/lib/python39.zip',   '/usr/local/lib/python3.9',   '/usr/local/lib/python3.9/lib-dynload', 
 '/home/mint/.local/lib/python3.9/site-packages',  '/usr/local/lib/python3.9/site-packages']


But i went to /usr/lib/python3/ and there was a dist-packages folder with many other sub folders,

I also went to  /usr/local/lib there i have 2 phython folders, phython3.8 & phython 3.9. In the first one i have only dist-packages folder with many other sub folders, in the second one there are many folders but no dist-packages folder.

In /home/mint/.local/lib/python3.9 i again have phythob 3.8 & 3.9 but there i have only site-packages folder with many other subfolders.

I did not run purge command, i am afraid to purge something because i dont know how to reinstall after that. As you can guess by my messages i am unfamiliar with all these Linux commands and values.
I guess will just use Electrum the way i managed to setup.

Thanks a lot for your time

 
3  Bitcoin / Electrum / Re: Can not edit config file in Electrum, it gets overridden after starting Electrum on: July 05, 2021, 04:29:13 PM

Thank you very much @nc50lc and @ranochigo!
4  Bitcoin / Bitcoin Technical Support / Re: Bitcoin-qt huge interface size, Linux Mint on: July 05, 2021, 04:18:42 PM
The other file shows the various unit tests of Core passing, so you're all set!

Thanks for your help @NotATether!!!

Try to save the output on directory owned by you, an example,

Code:
mint@amint:/usr/local/bin$ ./test_bitcoin -p -r detailed > ~/output.txt

Thanks @ETFbitcoin !
This code gave me the same output as in my previous post https://pastebin.com/raw/fUs0Kh2R
And it looks like all is ok, i assume that the error i get (Error: in "streams_tests/streams_buffered_file": memory access violation at address: 0x00000000: no mapping at fault address) is insignificant. Previous commentator said that i am all set.
5  Bitcoin / Bitcoin Technical Support / Re: Bitcoin-qt huge interface size, Linux Mint on: July 04, 2021, 08:53:32 PM

Your pastebin shows a ton of errors about /tmp/test_common_Bitcoin/ files generating permission denied errors, can you try changing the ownership of that directory to your user too?
Please take a look is this what you are looking for?

This is a test result copied from terminal
https://pastebin.com/mueEPFdN

This is output.txt content (i deleted begging part of the text since it had a huge list of some sort of timestamp, juts lots of numbers [1;35;49m*...... etc.).
https://pastebin.com/raw/fUs0Kh2R
6  Bitcoin / Electrum / Re: Electrum-4.1.4 Installation from Python sources doesn't work on: July 04, 2021, 06:48:11 PM
You have to restart your Ubuntu after the first pip installation for the path variables to take effect. I reproduced this with 21.04 and found Electrum to be correctly installed in ~/.local/bin but you can't execute it in terminal without first navigating to that. Restarting Ubuntu after the installation fixes this.

I just installed Python 3.9.6 (its was 3.8 before) restarted then installed Electrum again running this command python3 -m pip install --user Electrum-4.1.4.tar.gz it creates electrum file in ~/.local/bin, when i open terminal from this folder and run ./electrum i get this:
mint@amint:~/.local/bin$ ./electrum
Error: at least one of ('pycryptodomex', 'cryptography') needs to be installed.

Then i run this to install pycryptodomex
$ sudo apt-get install build-essential python3-dev
$ pip install pycryptodomex

 and this
$ pip install pycryptodome

But running a test python3 -m Cryptodome.SelfTest tells me this:
int@amint:~/.local/bin$ python3 -m Cryptodome.SelfTest
/usr/local/bin/python3: Error while finding module specification for 'Cryptodome.SelfTest' (ModuleNotFoundError: No module named 'Cryptodome')

So installing with Electrum`s official code python3 -m pip install --user Electrum-4.1.4.tar.gz creates Electrum file in ~/.local/bin which i cant use to launch Electrum.
But as i mentioned in my first post when i run this code sudo pip3 install Electrum-4.1.4.tar.gz it creates Electrum file in /usr/local/bin and when i insert it`s path in to desktop icon it launches Electrum wallet.

Back to my original question, are these both commands python3 -m pip install --user & sudo pip3 do the same thing?
 python3 and pip3 are the same? are they both for installing Electrum-4.1.4.tar.gz, just one does it for all users, the other for only one sudo user?
And since the second command works for me, can i continue using Electrum installed that way, without compromising security or privacy? Will it work without conflicts with a setup i am planning to do: Core+Tor+Electrum+EPS+Trezor?


update
After many attempts installing and uninstalling electrum, then isntalling and updating python3, pip, pycryptodomex, pycryptodome and few others something happened to pyqt5. Before i could run Electrum without installing, just running it with command python3 Electrum-4.1.4/run_electrum
Now i get errors: ModuleNotFoundError: No module named 'PyQt5', Error: Could not import PyQt5 on Linux systems, you may try 'sudo apt-get install python3-pyqt5

Though i have latest Python 3.9.6  and ppip 21.1.3, and when i do as it says in error and run sudo apt-get install python3-pyqt5 i see that i already have it: python3-pyqt5 is already the newest version (5.14.1+dfsg-3build1),0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
.

7  Bitcoin / Electrum / Re: Can not edit config file in Electrum, it gets overridden after starting Electrum on: July 04, 2021, 04:17:37 PM
Thank you all for your help.
I did as you guys said and managed to make values to stay this way

{
    "blockchain_preferred_block": {
        "hash": "0000000000156789g9c085aeg344t31e934ff74567hta2a6c172b3f1b89ghce26f",
        "height": 0
    },
    "check_updates": false,
    "config_version": 3,
    "confirmed_only": true,
    "gui_last_wallet": "/home/mint/.electrum/wallets/default_wallet",
    "is_maximized": false,
    "oneserver": true,
    "recently_open": [
        "/home/mint/.electrum/wallets/default_wallet"
    ],
    "rpcpassword": "yjXdMfDFR546nyP7Uk67ujxw==",
    "rpcuser": "user",
    "show_channels_tab": true,
    "skipmerklecheck": true
}


Red values are added by me, but no matter where i put other 2 values ("auto_connect": false, & "server": localhost:50002:s,) they disappear after launching electrum and erase all other manually added values.
But since i already have --oneserver --server localhost:50002:s in my shortcut i can use Electrum + EPS + Core without those 2 values, can i ?
8  Bitcoin / Electrum / Re: Can not edit config file in Electrum, it gets overridden after starting Electrum on: July 04, 2021, 02:24:23 PM
Are you by any chance having any Electrum instances open while you're editing and saving the file?

No, i edit config file then i run Electrum, before editing i close Electrum.

You already created a thread in "Beginners and Help" one hour ago (link), there's no need to repost it.
I believe it was moved to this board.

I try to delete that post but get this message: "You cannot delete your own topics in this board"

I have a reply to that thread, have you tried it already?

You should just edit your config file's existing values into those list's values.
Example: find "auto_connect" and set the value to "false", do the same to the rest.

If it's not available, your can add it to the next line.
Example: if "oneserver" isn't yet configured, add a line containing "oneserver": true,


Note: Do not forget to add "," if it's not the last line or it will result with the same behavior.
BTW, that happens when there's an error in the config file or if Electrum can't parse it.


I tried adding values as you said, and i do it one by one, only "oneserver": true, stays, other values get lost after i start electrum.
Looks like this values ls important for me as I run prune node. "skipmerklecheck": true,  <-- this is important if your node is pruned
I probably could ignore this value "server": "10.0.0.1:50002:s", <-- replace with your IP since my Electrum desktop icon already have this line --oneserver --server localhost:50002:s which i assume does the same.
I am not sure with other 3 value below, do i need them to run Core+Tor+Electrum+EPS
"auto_connect": false,
"confirmed_only": true,
"use_rbf": false





9  Bitcoin / Bitcoin Technical Support / Re: Bitcoin-qt huge interface size, Linux Mint on: July 04, 2021, 01:56:17 PM
You should try doing sudo rm output.txt or chown YOUR_USERNAME:YOUR_USERNAME output.txt and then run the test script.

Doesnt work:( here are all command lines
Code:
mint@amint:/usr/local/bin$ ./test_bitcoin -p -r detailed > output.txt
bash: output.txt: Permission denied

mint@amint:/usr/local/bin$ sudo rm output.txt
[sudo] password for mint:       
mint@amint:/usr/local/bin$ ./test_bitcoin -p -r detailed > output.txt
bash: output.txt: Permission denied

mint@amint:/usr/local/bin$ chown mint:mint output.txt
chown: cannot access 'output.txt': No such file or directory

mint@amint:/usr/local/bin$ ./test_bitcoin -p -r detailed > output.txt
bash: output.txt: Permission denied

mint@amint:/usr/local/bin$ sudo ./test_bitcoin -p -r detailed > output.txt
bash: output.txt: Permission denied


Then i opened a bin folder as root, run ./test_bitcoin -p -r detailed > output.txt in order to create output.txt file. Then i exited from root, run a terminal as normal user and run
sudo chown mint:mint output.txt ( i added sudo because without it i get a message: changing ownership of 'output.txt': Operation not permitted)
after it i run ./test_bitcoin -p -r detailed > output.tx which gave me ouptut.txt file attached below

https://pastebin.com/apqzTm11

10  Bitcoin / Electrum / Re: Electrum-4.1.4 Installation from Python sources doesn't work on: July 04, 2021, 01:15:05 PM
Were you using a privileged command line or did you run it with sudo?

I run the command the exact way it was in Electrum`s instructions, python3 -m pip install
So basically these both commands python3 -m pip install --user & sudo pip3 do the same thing?
 python3 and pip3 are the same, they both are installing Electrum-4.1.4.tar.gz, just one does it for all users, the other for only one user? did i get it right?
If so then why the fist command from Electrum`s website doesnt work form me? even if it installs for other users how come i dont have acccess to it? I am the only one user on my laptop.
As i mentioned i am very new to Linux, can do things only if i have detailed instructions,
11  Bitcoin / Electrum / Electrum-4.1.4 Installation from Python sources doesn't work on: July 04, 2021, 12:24:50 PM
Hi

I just start using Linux (Mint 20.1 Cinnamon) i am newby in Linux and have no coding knowledge.
I went to electrum.org and followed instruction for Installation from Python sources. It works as Appimage and by running without installation but not installing from python as described below.

Code:
 1. Install dependencies:	sudo apt-get install python3-pyqt5 libsecp256k1-0 python3-cryptography
2. Download package: wget https://download.electrum.org/4.1.4/Electrum-4.1.4.tar.gz
3. Verify signatures: wget https://download.electrum.org/4.1.4/Electrum-4.1.4.tar.gz.ThomasV.asc
4. gpg --verify Electrum-4.1.4.tar.gz.ThomasV.asc Electrum-4.1.4.tar.gz
5. wget https://download.electrum.org/4.1.4/Electrum-4.1.4.tar.gz.sombernight_releasekey.asc
6. gpg --verify Electrum-4.1.4.tar.gz.sombernight_releasekey.asc Electrum-4.1.4.tar.gz
7. Run without installing: tar -xvf Electrum-4.1.4.tar.gz
8. python3 Electrum-4.1.4/run_electrum
9. Install with PIP: sudo apt-get install python3-setuptools python3-pip
10.python3 -m pip install --user Electrum-4.1.4.tar.gz

All commands go trough and i get a message in terminal saying installation was successful, but there is no electrum folder in local/bin 
and when i try to uninstall electrum  (sudo pip3 uninstall electrum) to start over, i get message saying that can not uninstall since electrum is not installed.

But when instead of last code
Code:
python3 -m pip install --user Electrum-4.1.4.tar.gz
i use this code
Code:
sudo pip3 install Electrum-4.1.4.tar.gz
it works, it creates electrum folder in local/bin and after creating desctop icon as it is described here https://www.addictivetips.com/ubuntu-linux-tips/install-electrum-on-linux/ i am able to launch Electrum.

I want to ask if its ok changing command "python3 -m pip install --user" to command "sudo pip3 install" ?
Can i continue using Electrum installed the way i did, dont i compromise security or privacy?


12  Bitcoin / Bitcoin Technical Support / Re: Bitcoin-qt huge interface size, Linux Mint on: July 04, 2021, 11:50:28 AM

Did you share wrong file? It's log of running the test as root, not as normal user.



When running as a normal user with and without sudo i have this message: bash: output.txt: Permission denied
13  Bitcoin / Electrum / Can not edit config file in Electrum, it gets overridden after starting Electrum on: July 04, 2021, 11:29:29 AM
Hi
Im on Linux Mint 20.1 Cinnamon, i want to setup Electrum to run over EPS, now i have to edit config file to add following as it was described here https://curiosityoverflow.xyz/posts/bitcoin-electrum-wallet/#tor-configuration

Code:
{ "auto_connect": false,
"oneserver": true,
"confirmed_only": true,
"server": localhost:50002:s
"skipmerklecheck": true, <-- this is important if your node is pruned
"use_rbf": false }
I also added this in command line of my desktop icon --oneserver --server localhost:50002:s
Now when i edit config file, i save it then close, i start Electrum and all my changes in config file get lost.
How can edit it and save permanently?
14  Bitcoin / Electrum / Can`t edit config file in Electrum, it gets overridden after starting Electrum on: July 04, 2021, 10:31:57 AM
Hi
Im on Linux Mint 20.1 Cinnamon, i want to setup Electrum to run over EPS, now i have to edit config file to add following as it was described here https://curiosityoverflow.xyz/posts/bitcoin-electrum-wallet/#tor-configuration
Code:
{ "auto_connect": false, 
"oneserver": true,
"confirmed_only": true,
"server": localhost:50002:s
"skipmerklecheck": true, <-- this is important if your node is pruned
"use_rbf": false }
I also added this in command line of my desktop icon --oneserver --server localhost:50002:s
Now when i edit config file, i save it then close, i start Electrum and all my changes in config file get lost.
How can edit it and save permanently?
15  Bitcoin / Bitcoin Technical Support / Re: Bitcoin-qt huge interface size, Linux Mint on: July 03, 2021, 08:29:53 AM

I tried to run the test with "sudo./test_bitcoin"  it gives me "*** No errors detected.
I receive this error when i run without sudo.   "./test_bitcoin"

./test_bitcoin -p -r detailed > output.txt  this code gave me a huge list, i copied it to a text file bellow
https://drive.google.com/file/d/1CerApu_2QxmFzMLa1ImgF-S02OouKD2P/view?usp=sharing
16  Bitcoin / Bitcoin Technical Support / Re: Bitcoin-qt huge interface size, Linux Mint on: July 02, 2021, 09:34:49 PM
Thanks a lot for your answer.
17  Bitcoin / Bitcoin Technical Support / Re: Bitcoin-qt huge interface size, Linux Mint on: July 02, 2021, 08:33:14 PM

Last question if i may, while investigating this issue i found a fatal error by running /test_bitcoin command and it is still there even after fixing the initial issue, i just want to make sure this error doesn't compromise my privacy or security when i use bitcoin-qt

Below is my original post"

I also run a command /usr/local/bin$ ./test_bitcoin from bin folder of version 0.21.1 and received this error, maybe it has something to do with my initial issue? or i can ignore it

/usr/local/bin$
Code:
./test_bitcoin
Running 445 test cases...
unknown location(0): fatal error: in "streams_tests/streams_buffered_file": memory access violation at address: 0x00000000: no mapping at fault address
test/streams_tests.cpp(205): last checkpoint: "streams_buffered_file" test entry
*** 1 failure is detected in the test module "Bitcoin Core Test Suite"
18  Bitcoin / Bitcoin Technical Support / Re: Bitcoin-qt huge interface size, Linux Mint on: July 02, 2021, 08:22:12 PM
It worked !!!! Thanks A lot everyone for your help

To summarize and make it easier for  those newbies like me who bump in to similar issue with extra large Bitcoin_qt interface do the following:

Go to the folder wherever you have your bitcoin core`s bin folder, open up a terminal from there and launch the bitcoin-qt with this code
Code:
QT_AUTO_SCREEN_SCALE_FACTOR=0 ./bitcoin-qt

If you already have a bitcoin core icon you need to modify it to add this code and when you want to run bitcoin core next time, just click on the icon instead of launching from terminal.

Right-click on the icon, then click Properties.
On the command input box, fill it with:
Code:
Code:
env QT_AUTO_SCREEN_SCALE_FACTOR=0 ./bitcoin-qt
If that doesn't work try using this:
Code:
Code:
env QT_AUTO_SCREEN_SCALE_FACTOR=0 bitcoin-qt



19  Bitcoin / Bitcoin Technical Support / Re: Bitcoin-qt huge interface size, Linux Mint on: July 02, 2021, 06:43:11 PM
Here is the output

Code:
$ xrandr | head -n1

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384

$ xdpyinfo | head -n5

name of display:    :0
version number:    11.0
vendor string:    The X.Org Foundation
vendor release number:    12009000
X.Org version: 1.20.9

I run this code and it fixed the issue
Code:
QT_AUTO_SCREEN_SCALE_FACTOR=0 ./bitcoin-qt

But if i run Core from created icon i still have the issue. Looks like i found a solution to make this permanent fix but since i am not familiar with Linux, dont know how to do it, will you please explain how to do it?

Quote
Just modify your menu-entry accordingly or add export QT_AUTO_SCREEN_SCALE_FACTOR=0 to your ~/.profile to have this apply to all Qt apps.

PS: If you need to scale your two screens separately you can do that as well, e.g. QT_SCREEN_SCALE_FACTORS=1;1.5
20  Bitcoin / Bitcoin Technical Support / Re: Bitcoin-qt huge interface size, Linux Mint on: July 02, 2021, 07:59:06 AM
I can resize it just a little but it doesn’t make it useful anyhow.
I run  -resetguisettings in console of Core but looks like there is no such command, i googled about it and found very similar topic to my issue on https://bitcoincore.org/en/releases/0.21.0/
Under issue: gui#102 Fix SplashScreen crash when run with -disablewallet (hebasto)

It takes to this website https://github.com/bitcoin-core/gui/pull/116
Where they refer to another topics with similar issues where it was solved, but it seems there is no clear answer on what to do exactly to fix this bug, im very new to Linux and know only basic codes which i can use only if there are instructions.
Pages: [1] 2 3 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!