I've been trying to build a barterdex machine. I purchased off of craigslist a used desktop, i7 8g ram for ~$200
Ubuntu 16 was extremely easy to install (via ubuntu's instructions, I put it on a thumb drive then installed over that god awful windows os)
My goal is to recreate the kmd-litecoin swap as seen in the ptytrader video
litecoin was relatively easy to install via their website and I've been fumbling around with trying to get syscoin installed and fumbling with chips.
Of course as luck would have it, I just found this beauty
https://support.supernet.org/support/solutions/articles/29000014808-installation-script-for-various-coinsThe GoodI followed this guide for kmd and barterdex
https://support.supernet.org/support/solutions/articles/29000014810-barterdex-linux-installation-guide-komodo-btcFollowing the instructions,
I got komodo to install and sync correctly I believe. (blocks and longest chain match)
I then copy pasted the rest of the instructions from the above install link down to where it says to bitcoin. (I have no interest at the moment of downloading that beast)
At this point, I think the barterdex is running, I'm not sure how to check if I did it correctly. I'm also not sure what to do next/ how to use it. I don't really even know how to start or stop it. I just left it running.
[I was also just focusing on installing the barterdex in this step, kmd was not running, so not sure if it needed to be running for install)
The BadI also noticed that the install guide for barterdex (link above) was not entirely as accurate as the
https://github.com/SuperNETorg/komodo/wiki/Installing-Komodo-ManuallyNote (I'm not a linux wizard) but I had to figure out how to install from root (ubuntu 16 doesn't allow easy root access)
The beginning line for the dex install says '# as root'. I googled this and came up with (sudo -i)
The other question I had about the install was the switching to barterdex user at the end of that section. When installing the marketmaker section, this is installed under the barterdex user. I assume this is correct? It also appears these instructions will install bitcoin (which i didn't do) under the barterdex user. Should I be installing all coins including kmd with barterdex user?
The Ugly I see that there is no swing wallet for the linux kmd. If I so choose to use a gui, can I launch command line kmd then launch agama into native mode?
https://github.com/SuperNETorg/dexuglyguiFrom the instructions it appears to only swap exactly 100kmd for bitcoin? Although from one of the videos it shows otherwise I think, old instructions?.
Obviously, I am a little lost at this point in time. There is a supernet forum, a wiki page, this support page (linked above) that comes from supernet.org, the reddit page, bitcointalk page, the slack page, the github page, videos on youtube, and the komodo platform page.
The most helpful has been the support.supernet.org. But it kinda seems like info is all over the place and I'm really having to do some digging.
_______________________________________________________________________________
_--
So TLDR.
I want to recreate the litecoin-kmd swap.
I believe that I have installed litecoin and kmd successfully (although I did just find that gem of a doc 'installation-script-for-various-coins', though haven't tried it yet)
1. I'm not sure If I installed barterdex correctly or how to use it, start it, etc.
2. I am also interested in trying the various gui. How do they work with the command line installs I have done? ie: start komodo then start agama? or start kmd and start litecoin then start uglygui?
3. I am interested in also trying to do a litecoin to syscoin swap. Can we get more guides? Can we get a video of a non-kmd coin to another non-kmd coin?
Thanks
hi, as a disclaimer, I am no expert with any of these tools are barely starting to get to the point of functional use. I haven't done my first atomic swap yet but I did setup most of it and it appears to be working. also on ubuntu. I am going to work on it a bit tonight and see if I can get a swap done with the GUI. some of what I post may very well be inaccurate and I hope to be corrected if so. from what I have seen there have been a couple tiers of instructions posted and they are not all exactly the same. the system has been evolving and it seems to have been geared more towards power users and is bit by bit moving towards greater ease for typical users. still it seems there is much work to be done for a simple and straight forward approach for the layman.
other than the ubuntu knowledge that i have accumulated from years of interacting with that OS, it seems we are in a similar place installing the barterdex. perhaps we can work together to achieve this. also i saw the question about the .iso disk as an prepackaged unit and this seems like a great plan. it may prove to be problematic though, but perhaps not. I have been mulling over the potential of this working and perhaps I will put an effort into design (as a community donation) if it seems feasible/possible. ubuntu likes to configure itself for the particular system upon installation installing the various drivers for that machine. however, with the .iso that they do provide perhaps it is possible? because the .iso allows a "try ubuntu" mode and it seems this is a fine generic config that works on all machines. perhaps we can integrate the barterdex and marketmaker as you suggest. this would be the 'magic bullet' for easy success installation of most users.
--> "The beginning line for the dex install says '# as root'. I googled this and came up with (sudo -i)"
just for an easy reference anything that installs 'as root' (which is typical to much installations done on ubuntu) can be called as the command is stated simply with a "sudo" in front of it. also if you would like a full command shell as root just type "sudo bash". when you type "exit" it returns to your 'user' account. be careful if you are using superuser command shell, not to erase of damage files inadvertently.
--> "At this point, I think the barterdex is running, I'm not sure how to check if I did it correctly. I'm also not sure what to do next/ how to use it. I don't really even know how to start or stop it. I just left it running."
a very helpful tool with ubuntu can be called typiing 'monitor' into the gui with the superkey (press the 'windows' button then type 'monitor' in the field) . this will load a process monitor from which 'komodod' and allies can be searched. it will also give you a hint into what is going on sometimes things appear to be stalled but when viewing through the process monitor you can see the cpu being used and know the system is not hung, just crunching math.
from here you can kill a process if need be. also this page is helpful:
https://github.com/SuperNETorg/komodo/wiki/Useful-commands-KNN .. in reference to the quote this command is particularly helpful from the command line: komodo-cli stop && bitcoin-cli stop && pkill -15 iguana
then you don't need to load process monitor to achieve the same result. I do enjoy the process monitor though it's a nice lens into whats going on.
--> "I see that there is no swing wallet for the linux kmd. If I so choose to use a gui, can I launch command line kmd then launch agama into native mode?"
there actually is a swing wallet that works great with ubuntu. and provided you don't need access to the assets or jumblr, etc, this wallet is great for t- and z- kmd transactions. it runs komodod and connects to the wallet.dat giving access to all privkeys, etc:
https://github.com/ca333/komodoGUI .. the installation is perhaps a bit tricky because it requires java runtime environment to be installed on ubuntu. i installed this a few months ago but I remember it was a bit glitchy getting the java set right as the environment needs to be specified to linux and the proper version of java i think was a bit problematic. however, I believe that installation with apt-get (from ubuntu repositories) _should_ put the right situation there are perhaps config the path as is required. although it was a bit glitchy to install the java as I recall, it could just be because of my initial approach. I do like this wallet though because it is simple and it functions very well on ubuntu. i saw some complaints on windows but I dont mess with that system at all, so I don't notice anything that is an issue with that one. It works in native mode and for me it was best to run Agama in native mode also. the agama basilisk mode was working but appears to sometimes require the cache to be reset and does not provide the privkeys for all the addresses in the wallet, so that was an issue for me. Agama in native mode worked great and gives all privkeys, etc because it's using the same wallet.dat the swing wallet does and komodod.
further, the komodo-cli works just fine and great! and is perhaps the simplest approach if not intimidated by command line function in linux. what matters is that you have your privkeys,.. theres a list of commands floating around for komodo-cli as the komodo-cli --help does not present the same list, it may be useful if you are going that route.
--> "Also how does the uglygui fit it? Should I ignore this or should I install this?"
like I said, I am no expert with these tools. Still figuring out how they all work together. but I have been playing with barterdex since it was in more advanced mode and achieved some functionality from the command line as all of the tools and scripts are present when downloaded. I think you have the same download instructions already linked without double checking.. those should have given you the marketmaker, iguana, and the supernet folder with those and the scripts, etc. these can all be used independently of uglygui as that's just a gui shell for all of the goodies that are included in the actual toolkit. when I first was checking this out I was following instructions for an LP node, just to setup as a client, and all seemed to be working great from the command line. It was a bit tricky for me because I had adjusted the default port settings in komodo.conf for other purpose and this breaks marketmaker's communication with the komodod.. without the uglygui I did get everything going I just didnt successfully execute a trade, however I did activate the coins and was able to view the 'orderbook', etc. So the gui is not necessary but it would likely simplify the equation for most users. I am going to do some tinkering with that now and check it out
-> "The other question I had about the install was the switching to barterdex user at the end of that section. When installing the marketmaker section, this is installed under the barterdex user. I assume this is correct? It also appears these instructions will install bitcoin (which i didn't do) under the barterdex user. Should I be installing all coins including kmd with barterdex user?"
this part was interesting also, when I did the Lp setup I just used the same user but perhaps using a specific user to barterdex grants needed privs and securities (?) I just started with the new install instructions and got so far as creating the user installing the tools again.. to answer your question though it seems to make good sense that any coins you are using are installed into that users account otherwise the tools may have permission problems when attempting to access the blockchains .. So I would assume to install and run everything under the same user.
edit: actually I think I am wrong here as the komodod and bitcoind are communicating through rpc calls not the user accounts.. my blockchains are already synced with a different user account that 'owns' them so now I am trying to I guess change permissions so the other user can read the blockchains then run the komodod and bitcoind with the barterdex user.. this should work, will right back
as for your final three questions, I am not fit to answer them yet but perhaps by tomorrow. I will run some tests and finish my install and try to get a swap done.. and when I have some data if it is not yet presented yet (the answers) then I will write again.
edit: re-indexing the whole bitcoin blockchain, again haha looks like I won't be doing a swap until tomorrow.. Also I like the idea of using litecoin for swaps right now it makes more sense considering the market!! so I am building litecoin and loading that chain tonight. will try a kmd->ltc swap tomorrow.. ; )