Show Posts
|
Pages: [1] 2 3 »
|
Thank you Abdussamad. Elecrtum is now working properly for me!
|
|
|
I agree that I should not be running Electrum as root, however at present that is the only way that I can get it to run. ~$ ls -lha ~/.electrum/ total 3.1M drwxr-xr-x 6 root root 4.0K Sep 9 08:57 . drwxr-xr-x 22 richard richard 4.0K Sep 10 10:22 .. -rw-r--r-- 1 root root 46M Sep 9 08:27 blockchain_headers drwx------ 2 root root 4.0K Sep 9 08:25 cache drwxr-xr-x 2 root root 4.0K Sep 9 08:57 certs -rw------- 1 root root 364 Sep 9 08:28 config -rw-r--r-- 1 root root 42 Sep 9 08:57 daemon drwx------ 2 root root 4.0K Sep 9 08:25 forks -rw-r--r-- 1 root root 495 Sep 9 08:57 recent_servers drwxr-xr-x 2 root root 4.0K Sep 9 08:28 wallets
I tried running the electrum.desktop from terminal. First I right-clicked on Electrum in my Start Menu and picked Properties. In the File Properties I set "Execute terminal emulator", "Keep terminal window open after execution" and selected OK. Back in Start Menu I clicked on Electrum. The terminal window opened, text appeared and then the terminal window immediately closed (no time to read). I then opened terminal and cd to ~/.local/share/applications where File Properties says my target file electrum.desktop is. I then tried the following: ~/.local/share/applications$ elecrum.desktop elecrum.desktop: command not found ~/.local/share/applications$ electrum W | simple_config | Cannot read config file. /home/richard/.electrum/config Traceback (most recent call last): File "/home/richard/.local/bin/electrum", line 355, in <module> fd, server = daemon.get_fd_or_server(config) File "/home/richard/.local/lib/python3.6/site-packages/electrum/daemon.py", line 77, in get_fd_or_server remove_lockfile(lockfile) File "/home/richard/.local/lib/python3.6/site-packages/electrum/daemon.py", line 58, in remove_lockfile os.unlink(lockfile) PermissionError: [Errno 13] Permission denied: '/home/richard/.electrum/daemon'
|
|
|
I now want to install an app launch in my start menu. I did this by cd ~/Electrum-3.3.5 sudo desktop-file-install electrum.desktop This installed the app launcher in my menu://applications/Internet directory (although it was a hidden app so I had to unhide it). For this app launcher the target file is "/home/richard/.local/share/applications/electrum.desktop" and the command is "electrum %u" The only problem is that when I try to launch Electrum in my start menu nothing happens. Where have I gone wrong?
|
|
|
Thank you all for your guidance. Yes, it was just an access problem. Using sudo python3 ~/Electrum-3.3.5/run_electrum it works. I have also sudo chmod 770 /home/richard/.electrum/daemon This does not appear to change anything. I still need sudo python3 ~/Electrum-3.3.5/run_electrum to get Electrum to run.
|
|
|
After recently installing Lubuntu 18.04.3 LTS on my 32-bit computer, I have been trying to install Electrum 3.3.8 so far without success. My latest try consisted of sudo apt-get update sudo apt-get install python3-setuptools python3-pyqt5 python3-pip wget https://download.electrum.org/3.3.5/Electrum-3.3.5.tar.gz tar xvf Electrum-3.3.5.tar.gz All appeared to work well (no error messages or warnings). I then tried to launch Electrum using Python. python3 ~/Electrum-3.3.5/run_electrum Traceback (most recent call last): File "/home/richard/Electrum-3.3.5/run_electrum", line 355, in <module> fd, server = daemon.get_fd_or_server(config) File "/home/richard/Electrum-3.3.5/electrum/daemon.py", line 77, in get_fd_or_server remove_lockfile(lockfile) File "/home/richard/Electrum-3.3.5/electrum/daemon.py", line 58, in remove_lockfile os.unlink(lockfile) PermissionError: [Errno 13] Permission denied: '/home/richard/.electrum/daemon' I was at loss on what to do. I then got thinking about whether Electrum 3.3.8 is able to operate on a 32-bit computer, so before I go any further, is Electrum 3.3.8 designed to operate on a 32-bit computer under Lubuntu 18.04?
|
|
|
DAY 2
First I would like to thanks those who have given their time in trying to help me with this project. It is very much appreciated.
After yesterday, things where getting just too complicated for me. Today I have decided to try and get Electrum 3.3.6 working on my Lubuntu 16.04 desktop using the Appimage.
I have downloaded the Appimage and now have the folder Electrum-3.3.6 in my Home Folder. The Electrum-3.3.6 folder contains-
Folders: contrib electrum Electrum.egg-info PACKAGES
Files: AUTHORS Electrum Bitcoin Wallet LICENCE MANIFEST.in PKG-INFO README.rst RELEASE-NOTES run_electrum setup.cfg setup.py
I then double-click on the file Electrum Bitcoin Wallet. My hard disk works for about 20 seconds and then nothing.
Next was to double-click on the file run_electrum and then click on “Execute”. Hard disk works for about 5 seconds and then nothing.
Next was to double-click on the file run_electrum and then click on “Execute in Terminal”. The terminal window opens and text appears in the window. The window then closes before I can read the text.
How can I get Electrum 3.3.6 to work on my desktop?
|
|
|
yes, [code]python3 -m pip --version gives the same error message. I have downloaded the AppImage. I extracted and read the Readme file. Was still none the wiser on how to install it. I then used wget https://bootstrap.pypa.io/get-pip.py sudo python3 get-pip.py as suggested. All looked good so I python3 -m pip install --user Electrum-3.3.6.tar.gz[fast] and got the following result Running setup.py install for psutil ... error ERROR: Complete output from command /usr/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-zbg0e535/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-ova3ijcd/install-record.txt --single-version-externally-managed --compile --user --prefix=: ERROR: /usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'python_requires' warnings.warn(msg) running install running build running build_py creating build creating build/lib.linux-i686-3.6 creating build/lib.linux-i686-3.6/psutil copying psutil/_psposix.py -> build/lib.linux-i686-3.6/psutil copying psutil/_pslinux.py -> build/lib.linux-i686-3.6/psutil copying psutil/_pssunos.py -> build/lib.linux-i686-3.6/psutil copying psutil/_psaix.py -> build/lib.linux-i686-3.6/psutil copying psutil/_common.py -> build/lib.linux-i686-3.6/psutil copying psutil/__init__.py -> build/lib.linux-i686-3.6/psutil copying psutil/_compat.py -> build/lib.linux-i686-3.6/psutil copying psutil/_psosx.py -> build/lib.linux-i686-3.6/psutil copying psutil/_pswindows.py -> build/lib.linux-i686-3.6/psutil copying psutil/_psbsd.py -> build/lib.linux-i686-3.6/psutil creating build/lib.linux-i686-3.6/psutil/tests copying psutil/tests/test_aix.py -> build/lib.linux-i686-3.6/psutil/tests copying psutil/tests/test_sunos.py -> build/lib.linux-i686-3.6/psutil/tests copying psutil/tests/test_unicode.py -> build/lib.linux-i686-3.6/psutil/tests copying psutil/tests/test_osx.py -> build/lib.linux-i686-3.6/psutil/tests copying psutil/tests/runner.py -> build/lib.linux-i686-3.6/psutil/tests copying psutil/tests/test_bsd.py -> build/lib.linux-i686-3.6/psutil/tests copying psutil/tests/test_memory_leaks.py -> build/lib.linux-i686-3.6/psutil/tests copying psutil/tests/test_connections.py -> build/lib.linux-i686-3.6/psutil/tests copying psutil/tests/test_posix.py -> build/lib.linux-i686-3.6/psutil/tests copying psutil/tests/__init__.py -> build/lib.linux-i686-3.6/psutil/tests copying psutil/tests/test_windows.py -> build/lib.linux-i686-3.6/psutil/tests copying psutil/tests/test_process.py -> build/lib.linux-i686-3.6/psutil/tests copying psutil/tests/test_misc.py -> build/lib.linux-i686-3.6/psutil/tests copying psutil/tests/test_contracts.py -> build/lib.linux-i686-3.6/psutil/tests copying psutil/tests/test_linux.py -> build/lib.linux-i686-3.6/psutil/tests copying psutil/tests/test_system.py -> build/lib.linux-i686-3.6/psutil/tests copying psutil/tests/__main__.py -> build/lib.linux-i686-3.6/psutil/tests running build_ext building 'psutil._psutil_linux' extension creating build/temp.linux-i686-3.6 creating build/temp.linux-i686-3.6/psutil i686-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=563 -DPSUTIL_LINUX=1 -I/usr/include/python3.6m -c psutil/_psutil_common.c -o build/temp.linux-i686-3.6/psutil/_psutil_common.o psutil/_psutil_common.c:9:20: fatal error: Python.h: No such file or directory compilation terminated. error: command 'i686-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- ERROR: Command "/usr/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-zbg0e535/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-ova3ijcd/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-zbg0e535/psutil/ I would now like to try using AppImag to upgrade my Electrum. How do I do this from the extracted files?[/code]
|
|
|
Thank you pooya87. I got all that done. python3 --version Python 3.6.8 Then I got python3 -m pip install --user Electrum-3.3.6.tar.gz[fast] /usr/bin/python3: No module named pip so I sudo apt-get update && sudo apt-get -y upgrade sudo apt-get install python-pip To check my pip install, I pip --version Traceback (most recent call last): File "/home/richard/.local/bin/pip", line 7, in <module> from pip._internal import main ImportError: No module named _internal This was not what I expected and I still get python3 -m pip install --user Electrum-3.3.6.tar.gz[fast] /usr/bin/python3: No module named pip Any further assistance would be much appreciated.
|
|
|
OS = LUbuntu 16.04.6 Currently installed Electrum 3.1.2 I am trying to upgrade to Electrum 3.3.6. I take the following steps: sudo apt-get install python3-pyqt5 wget https://download.electrum.org/3.3.6/Electrum-3.3.6.tar.gz sudo apt-get install python3-setuptools python3-pip All works well, then I: python3 -m pip install --user Electrum-3.3.6.tar.gz[fast] and get the following: Processing ./Electrum-3.3.6.tar.gz ERROR: Complete output from command python setup.py egg_info: ERROR: Error: Electrum requires Python version >= 3.6.1... ---------------------------------------- ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-ixoym5m6/ I have tried this multiple time with the same results. How can I upgrade my Electrum 3.1.2 to 3.3.6?
|
|
|
Thanks to longbob72, deleting the congfig file solved the preferences problem, however I then lostmy the PHP fiat display.
Thanks to kolloh, upgrading to 2.7.17 also fixed the preferences problem, but again still no PHP fiat display available. I guest I will just have to live with the no PHP fiat display until that is included again from Bitcoinaverage.
|
|
|
I recently upgraded my Electrum program to v 2.7.15 (Windows Standalone Executable). Ever since upgrading, I have not been able to access "Preferences".
I click Tools>Preferences and nothing happens. I click on the Preferences button (bottom right) and nothing happens.
Have we lost the use of preferences in 2.7.15?
|
|
|
Well look, there is a risk everywhere. I think that the credit card chargeback rate is about 20-25% and merchants take this risk on themselves. But you are also using a logic that person that paid $3 for a cup of coffee won't be doing a chargeback. It's not worth a risk.
We can use the same logic about the Bitcoin double spend. But if you are looking for a 100% solution, I guess that Bitcoin is not ready for paying a coffee like Ciyam has said above. Honestly I am not sure that this will be ever necessary in order for Bitcoin to succeed.
Mickeyb, you are thinking "western" here. The Philippines is not western. It is an under-developed third-world country. Less than 20% of adults (those 18yo and over) have a bank account. Less than 5% of all shop purchases are made with a credit/debit card. Yes, a cup of coffee costs about USD2 to USD3 in the Philippines, but that is almost half a day's salary for most workers. A graduate engineer in the Philippines earns about USD15 per day. A shop salesperson earns about USD6.50 per 10 hour day.
|
|
|
I hope my merchant doesn't see this topic. I can guess his response, "It looks to difficult and risky, I'll stick with cash only".
I have a meeting with his later next week.
|
|
|
The merchant, in this case, is hoping to just use an Android smartphone/tablet with say the Bitcoin Wallet ap installed to accept bitcoin payments. At the end of the day (or week) the merchant would use a Philippines bitcoin exchange to convert the received bitcoin into PHP and have it deposited directly into his bank account. Initially, bitcoin sales are likely to be only one or two a month so capital outlay has to be kept very low. I can not see him investing even one centavo in anything more complicated. From the replies that I have received in this thread, it looks like my response to the merchant's "double spend" concerns will be: There is a very slight risk of a double spend, however you have a greater risk of one of your staff giving free food/coffee to their friend than you have of experiencing a double spend.
A double spend generally requires a customer to spend the exact same amount of bitcoin again within about 10 minutes of the first transaction and that second transaction must be confirmed on the blockchain ledger before the first transaction. None of this is easy to do in the current environment. I need to keep my response fairly simple. Would this response be reasonable?
|
|
|
I did a quick read up on mobile internet in the Philippines. Is the 3G connection that bad at the shop that you need to use WiFi? I suspect that this is reason the question came up in the first place, but I thought I make sure regardless. In most of Europe as well as north America most people would probably assume that customers have a 3G/4G data plan if they pay with bitcoin and dont bother at all.
More towards the actual topic, I would not try to block all but bitcoin on the port layer, but go to the application layer (7). If you have a router that can be run with open firmware solutions like tomato or OpenWRT it should be possible to create a bitcoin only WiFi. This might get tricky to setup though as I doubt there are ready to use filters like there are for other p2p traffic like torrents.
Maybe you can find a "good enough" solution by blocking HTTP(S) and mail as well as other commonly used services that generate a lot of traffic without actually having an airtight solution.
Shorena, 3G connection is readily available in the Philippines. The problem is the cost (hence the offer of free WiFi in the shop). Minimum connection fee to 3G can cost you PHP10 for 30 minutes minimum when the average salary is about PHP300 for a 10 hour day. Your internet connection using a smartphone can cost you almost as much per minute as you can earn per minute!
|
|
|
Thank you all who have replied.
As I said previously, an average sale could be a day's pay for an average (Filipino) worker. Not an insignificant amount. The shop employee handling the transaction would have just a basic (Filipino) high school education. This would mean that he/she can do no more than follow basic instructions - if your lucky.
Neither the sales person or the customer are going to wait for even the first confirmation. The merchant (shop) cannot set or easily check the transaction fee. Let's assume that the customer makes the purchase with zero transaction fee. (I know, Bitcoin Wallet does not allow this.)
So, the customer walks in, buys a coffee and food (take-out) with bitcoin zero transaction fee, then leaves the shop. How does this customer "double spend" his/her bitcoin?
What is "another spend that uses the same inputs"?
|
|
|
Double spending doesn't work as you need more than 2 confs for the btc to be credited in any shop, at any rate are you asking how to scam?
I am definitely not asking "how to scam". Knowing how it could be done gives one knowledge on how to minimise the risk if handing over goods before any confirmations are received. The reason I am asking is because a coffee shop owner I am helping (gratis) to set up a system for accepting bitcoin as payment has asked me this. He is concerned that a bitcoin paying customer may "double spend" if he passes over goods before he has received at least one confirmation. He does not want to have to keep the customer waiting until he has received at least one confirmation. An average sale would be less than USD10 but this is in a country where his shop staff get paid that for a full day's work.
|
|
|
To keep this simple, let's assume I am using a wallet like Bitcoin Wallet by Bitcoin Wallet developers on an Android smartphone. I go into a coffee shop and buy using my bitcoin wallet. I understand that it is going to take about 5 to 10 minutes before the transaction is first registered on the Blockchain.
How can I then "double spend" my bitcoin?
|
|
|
[...] The shop already has free WiFi available to its customers. [...] It is not convenient to have every customer who wishes to pay with bitcoin to sign in to the shop's WiFi network. [...]
Out of curiosity, why not? Bitcoin users should realise that they need internet to pay in bitcoin*. If they don't have their own data plan and the shop provides free wifi to customers (which the people with paying bitcoin are too) anyway, how is it not convenient? Joining an open network is a security / privacy concern. * There are some wallet solutions that allow a tx to be transferred via bluetooth or NFC, but it obviously depends on the wallet in use. Newar, you have a valid point. Most paying with bitcoin will probably also want to also use the free WiFi (with password) in the shop. They still only have to enter the password once. That would cover their bitcoin transaction and later use of the shop's WiFi. I will run this past the shop owner. It he doesn't like it, we will look at restricting access through a second open AP.
|
|
|
I am helping a small retailer (food/coffee cafe) in Lapu Lapu City, Cebu to start accepting bitcoin payments in his shop. To the best of our knowledge, this will be the first retail store in the city to accept bitcoin.
The shop already has free WiFi available to its customers. Due to the relatively high cost of internet access here, the free WiFi access is secured by password that is changed daily.
It is not convenient to have every customer who wishes to pay with bitcoin to sign in to the shop's WiFi network. The shop's router has provision for enabling a second network to be established that can be open (no password required for access) and restricting access to a specific (or range of) IP address, port and/or protocol (TPC, UDP, ICPM, or All).
Is there a way to limit a customer's use of this open network to bitcoin transactions only?
|
|
|
|